Joined: 01 Jun 2004 Posts: 39 Location: Trois-Rivi�res
i2c master reception
Posted: Wed Sep 29, 2004 2:43 pm
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
Posted: Wed Sep 29, 2004 5:27 pm
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.
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