Rev. 1.0, 09/01, page 721 of 904
P:
Stop condition. The master device drives SDA from low to high while SCL is high.
16.4.2
Master Transmit Operation
In I
2
C bus format master transmit mode, the master device outputs the transmit clock and transmit
data, and the slave device returns an acknowledge signal. For master transmit mode operation
timing, refer to figures 21.5 and 21.6. The transmission procedure and operations in master
transmit mode are described below.
1. Set the ICE bit in ICCRA to 1. Set the WAIT bit in ICMR and the CKS3 to CKS0 bits in
ICCR1 to 1. (Initial setting)
2. Read the BBSY flag in ICCRB to confirm that the bus is free. Set the MST and TRS bits in
ICCRA to select master transmit mode. Then, write 1 to BBSY and 0 to SCP using MOV
instruction. (Start condition issued) This generates the start condition.
3. After confirming that TDRE in ICSR has been set, write the transmit data (the first byte data
show the slave address and R/
:
) to ICDRT. After this, when TDRE is cleared to 0, data is
transferred from ICDRT to ICDRS. TDRE is set again.
4. When transmission of one byte data is completed while TDRE is 1, TEND in ICSR is set to 1
at the rise of the 9th transmit clock pulse. Read the ACKBR bit in ICIER, and confirm that the
slave device has been selected. Then, write second byte data to ICDRT, and clear TDRE and
TEND. When ACKBR is 1, the slave device has not been acknowledged, so issue the stop
condition. To issue the stop condition, write 0 to BBSY and SCP using MOV instruction. SCL
is fixed low until the transmit data is prepared or the stop condition is issued.
5. The transmit data after the second byte is written to ICDRT every time TDRE is set, thus
clearing TDRE.
6. Write the number of bytes to be transmitted to ICDRT. Wait until TEND is set (the end of last
byte data transmission) while TDRE is 1, or wait for NACK (NACKF in ICSR = 1) from the
receive device while ACKE in ICIER is 1. Then, issue the stop condition to clear TEND or
NACKF.
7. When the STOP bit in ICSR is set to 1, the operation returns to the slave receive mode.
Summary of Contents for H8S/2376 F-ZTAT
Page 24: ...Rev 1 0 09 01 page xxiv of xliv ...
Page 38: ...Rev 1 0 09 01 page xxxviii of xliv ...
Page 44: ...Rev 1 0 09 01 page xliv of xliv ...
Page 60: ...Rev 1 0 09 01 page 16 of 904 ...
Page 96: ...Rev 1 0 09 01 page 52 of 904 ...
Page 116: ...Rev 1 0 09 01 page 72 of 904 ...
Page 148: ...Rev 1 0 09 01 page 104 of 904 ...
Page 284: ...Rev 1 0 09 01 page 240 of 904 ...
Page 422: ...Rev 1 0 09 01 page 378 of 904 ...
Page 634: ...Rev 1 0 09 01 page 590 of 904 ...
Page 656: ...Rev 1 0 09 01 page 612 of 904 ...
Page 668: ...Rev 1 0 09 01 page 624 of 904 ...
Page 780: ...Rev 1 0 09 01 page 736 of 904 ...
Page 796: ...Rev 1 0 09 01 page 752 of 904 ...
Page 806: ...Rev 1 0 09 01 page 762 of 903 ...
Page 808: ...Rev 1 0 09 01 page 764 of 904 ...
Page 921: ...Rev 1 0 09 01 page 877 of 904 ø tBRQOD tBRQOD Figure 24 24 External Bus Request Output Timing ...
Page 938: ...Rev 1 0 09 01 page 894 of 904 ...