| Electronic Components Datasheet Search |
|
R8C/16 Datasheet(PDF) 181 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/16 Datasheet(HTML) 181 Page - Renesas Technology Corp |
|
181 / 279 page ![]() R8C/16 Group, R8C/17 Group 15. I2C bus interface (IIC) Rev.2.10 Jan 19, 2006 Page 168 of 254 REJ09B0169-0210 Figure 15.24 Example of Register Setting in Master Receive Mode End RDRF=1 ? Master Receive Mode No Yes (1) Set the TEND bit to “0” and set to master transmit mode. Set the TDRE bit to “0”(1,2) (2) Set the ACKBT bit to the transmit device(1) (3) Dummy-read to the ICDRR register(1) (4) Wait for 1 byte to be received (5) Judge (last receive - 1) (6) Read the receive data (7) Set the ACKBT bit of the last byte and set to disable the continuous receive (RCVD=1)(2) (8) Read the receive data of (last byte - 1) (9) Wait the last byte is received (10) Set the STOP bit to “0” (11) Generate the stop condition (12) Wait the stop condition is generated (13) Read the receive data of the last byte (14) Set the RCVD bit to “0” (15) Set to slave receive mode ICCR1 Register TRS Bit ← 0 Dummy-read in ICDRR register Read RDRF bit in ICSR register Last receive - 1 ? ICSR Register TEND Bit ← 0 ICSR Register STOP Bit ← 0 ICCR2 Register SCP Bit ← 0 BBSY Bit ← 0 Read STOP bit in ICSR register STOP=1 ? ICSR Register TDRE Bit ← 0 No (1) (2) (3) (4) (5) (6) (7) (8) (12) (10) (13) (14) (11) (9) (15) ICIER Register ACKBT Bit ← 0 No Yes Read ICDRR register ICIER Register ACKBT Bit ← 1 ICCR1 Register RCVD Bit ← 1 Read ICDRR register Read RDRF bit in ICSR register RDRF=1 ? Read ICDRR register ICCR1 Register RCVD Bit ← 0 ICCR1 Register MST Bit ← 0 No Yes Yes NOTES: 1. Do not generate the interrupt during the process of step (1) to (3). 2. When receiving 1 byte, skip step (2) to (6) after (1) and jump to process of step (7). Process of step (8) is dummy-read in the ICDRR register. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |