| Motore di ricerca datesheet componenti elettronici |
|
H8/3334Y Scheda tecnica(PDF) 335 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/3334Y Scheda tecnica(HTML) 335 Page - Renesas Technology Corp |
|
335 / 747 page ![]() 305 13.3.8 Sample Flowcharts Figures 13.12 to 13.15 show typical flowcharts for using the I 2C bus interface in each mode. 1 2 3 4 5 6 7 8 9 10 Start Initialize Read BBSY in ICSR No BBSY = 0? Yes Set MST = 1 and TRS = 1 in ICCR Write BBSY = 1 and SCP = 0 in ICSR Write transmit data in ICDR Read IRIC in ICSR No Yes IRIC = 1? Clear IRIC in ICSR Read ACKB in ICSR ACKB = 0? No Yes No Yes Transmit mode? Write transmit data in ICDR Read IRIC in ICSR IRIC = 1? No Yes Clear IRIC in ICSR Read ACKB in ICSR End of transmission (ACKB = 1)? No Yes Write BBSY = 0 and SCP = 0 in ICSR End Master receive mode 1. Test the status of the SCL and SDA lines. 2. Select master transmit mode. 3. Generate a start condition. 4. Set transmit data for the first byte (slave address + R/W). 5. Wait for 1 byte to be transmitted. 6. Test for acknowledgement by the designated slave device. 7. Set transmit data for the second and subsequent bytes. 8. Wait for 1 byte to be transmitted. 9. Test for end of transfer. 10. Generate a stop condition. Figure 13.12 Flowchart for Master Transmit Mode (Example) |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |