CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

i2c master reception

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
alexbilo



Joined: 01 Jun 2004
Posts: 39
Location: Trois-Rivi�res

View user's profile Send private message

i2c master reception
PostPosted: Wed Sep 29, 2004 2:43 pm     Reply with quote

Hi,

I read this section in the PIC18fxx2 datasheet (doc 39564b.pdf) and I don't really understand the logic of it :

Quote:
Note: In the MSSP module, the RCEN bit must
be set after the ACK sequence or the
RCEN bit will be disregarded.


This in the section 15.4.11 (p. 155).

Anyone can tell me what that means? I would figure that the master should initiate the ack sequence after having actually received the data...

Thanks,
_________________
Alex
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 29, 2004 5:27 pm     Reply with quote

Quote:
Anyone can tell me what that means? I would figure that the
master should initiate the ack sequence after having actually received the data...

Look at Figure 15-22 in the data sheet. In the top line, which shows
the SDA signal, look where it says "ACK from Slave". Then right
after that, it says "Master configured as Receiver by programming
SSPCON2[3], RCEN = 1". This shows the timing that they're referring to.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group