| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
H8S/20223 bảng dữ liệu(PDF) 786 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8S/20223 bảng dữ liệu(HTML) 786 Page - Renesas Technology Corp |
|
786 / 992 page ![]() Section 21 I 2C Bus Interface 2 (IIC2) Rev. 1.00 Oct. 03, 2008 Page 760 of 962 REJ09B0465-0100 21.3.8 Example of Use Flowcharts in respective modes that use the I 2C bus interface 2 are shown in figures 21.17 to 21.20. BBSY=0 ? No TEND=1 ? No Yes Start [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [13] [14] [15] Initialize Set MST and TRS in ICCR1 to 1. Write 1 to BBSY and 0 to SCP. Write transmit data in ICDRT Write 0 to BBSY and SCP Set MST to 1 and TRS to 0 in ICCR1 Read BBSY in ICCR2 Read TEND in ICSR Read ACKBR in ICIER Mater receive mode Yes ACKBR=0 ? Write transmit data in ICDRT Read TDRE in ICSR Read TEND in ICSR Clear TEND in ICSR Read STOP in ICSR Clear TDRE in ICSR End Write transmit data in ICDRT Transmit mode? No Yes TDRE=1 ? Last byte? STOP=1 ? No No No No No Yes Yes TEND=1 ? Yes Yes Yes [1] Test the state of the SCL and SDA lines. [2] Set master transmit mode. [3] Issue the start condition. [4] Set the first byte (slave address + R/ W) of transmit data. [5] Wait for 1 byte to be transmitted. [6] Test the acknowledge transferred from the specified slave device. [7] Set the second and subsequent bytes (except for the last byte) of transmit data. [8] Wait for ICDRT empty. [9] Set the last byte of transmit data. [10] Wait for last byte to be transmitted. [11] Clear the TEND flag. [12] Clear the STOP flag. [13] Issue the stop condition. [14] Wait for the generation of stop condition. [15] Set slave receive mode. Clear TDRE. [12] Clear STOP in ICSR Figure 21.17 Sample Flowchart for Master Transmit Mode |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |