| 전자부품 데이터시트 검색엔진 |
|
7220 데이터시트(PDF) 201 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7220 데이터시트(HTML) 201 Page - Renesas Technology Corp |
|
201 / 303 page ![]() 5-28 APPLICATION 5.5 Example of I2C-BUS control by software (M37220M3-XXXSP/FP) 7220 Group User’s Manual 5.5.4 General flowchart (1) Write processing routine The processing routine which controls I2C-BUS devices branch to the write processing routine and the read processing routine. The START condition, the STOP condition and the data output processing routine are used as the common processing routine. Fig. 5.5.4 Flowchart of write processing routine Write start “WRITEDATA” ←Slave address (W) “BA 16” “F_ACK” = “0”? Data output Data output Yes (ACK) RAM: Flag: WRITEDATA NO ACK COUNTER WRITE DATA COUNTER F_ACK S Slave address (W) “BA16” A C K Sub-address A C K Data A C K P “WRITE DATA COUNTER” “NO ACK COUNTER” = “0” START condition “WRITEDATA” ←Sub-address “F_ACK” = “0”? Yes (ACK) No (no ACK) No (no ACK) “WRITE DATA COUNTER” = “0”? Yes (end) No (not yet) “NO ACK COUNTER” ←“NO ACK COUNTER” + 1 End STOP condition Bus H Data output “WRITEDATA” ←Write data “WRITE DATA COUNTER” ←“WRITE DATA COUNTER” – 1 STOP condition “NO ACK COUNTER” ≥ “3”? Yes (give up) No (try 3 times) = “1” (number of write bytes) |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |