| Electronic Components Datasheet Search |
|
7220 Datasheet(PDF) 203 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7220 Datasheet(HTML) 203 Page - Renesas Technology Corp |
|
203 / 303 page ![]() 5-30 APPLICATION 5.5 Example of I2C-BUS control by software (M37220M3-XXXSP/FP) 7220 Group User’s Manual (3) Data output processing routine The data output, the START condition, the STOP condition, and the bus H processing routines are the common routines within the transmit/receive processing routine. Data output Bit 0 of port P2 direction register = “output mode” “BIT COUNTER” = “0” Carry flag = “1”? RETURN Yes RAM: Flag: WRITEDATA BIT COUNTER F_ACK Rotate “WRITEDATA” left with Carry flag P20 (SDA) = “1” No No “BIT COUNTER” ≥ “8”? P20 (SDA) = “0” P21 (SCL) = “1” Wait 6 µs P21 (SCL) = “0” “BIT COUNTER” ←“BIT COUNTER” + 1 Bit 0 of port P2 direction register = “input mode Wait 6 µs P21 (SCL) = “1” Wait 6 µs P20 (SDA) = “1”? Yes No F_ACK = “1” F_ACK = “0” P21 (SCL) = “0” Yes Fig. 5.5.6 Flowchart of data output processing routine |
|
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 |