Download Print this page

Epson S1C31D50 Technical Instructions page 249

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

16.4.4. 10-bit Addressing in Master Mode
A 10-bit address consists of the first address that contains two high-order bits and the second address
that contains eight low-order bits.
7-bit address
10-bit address
First address
Second address
The following shows a procedure to start data transfer in 10-bit address mode when the I2C Ch.n is
placed into master mode (see the 7-bit mode descriptions above for control procedures when a NACK
is received or sending/ receiving data). Figure 16.4.4.2 shows an operation example.
Starting data transmission in 10-bit address mode
1. Issue a START condition by setting the I2C_nCTL.TXSTART bit to 1.
2. Wait for a transmit buffer empty interrupt (I2C_nINTF.TBEIF bit = 1) or a START condition interrupt
(I2C_nINTF.STARTIF bit = 1).
Clear the I2C_nINTF.STARTIF bit by writing 1 after the interrupt has occurred.
3. Write the first address to the I2C_nTXD.TXD[7:1] bits and 0 that represents WRITE as the data
transfer direction to the I2C_nTXD.TXD0 bit.
4. Wait for a transmit buffer empty interrupt (I2C_nINTF.TBEIF bit = 1).
5. Write the second address to the I2C_nTXD.TXD[7:0] bits.
6. Wait for a transmit buffer empty interrupt (I2C_nINTF.TBEIF bit = 1).
7. Perform data transmission.
Starting data reception in 10-bit address mode
1 to 6. These steps are the same as the data transmission starting procedure described above.
7. Issue a repeated START condition by setting the I2C_nCTL.TXSTART bit to 1.
8. Wait for a transmit buffer empty interrupt (I2C_nINTF.TBEIF bit = 1) or a START condition interrupt
(I2C_nINTF.STARTIF bit = 1).
Clear the I2C_nINTF.STARTIF bit by writing 1 after the interrupt has occurred.
9. Write the first address to the I2C_nTXD.TXD[7:1] bits and 1 that represents READ as the data
transfer direction to the I2C_nTXD.TXD0 bit.
10. Perform data reception.
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
D7
D6
D5
D4
D3
D2
A6
A5
A4
A3
A2
A1
Slave address
D7
D6
D5
D4
D3
D2
1
1
1
1
0
A9
Two high-order slave address bits
D7
D6
D5
D4
D3
A7
A6
A5
A4
A3
A2
Eight low-order slave address bits
Figure 16.4.4.1 10-bit Address Configuration
Seiko Epson Corporation
D1
D0
A0 R/W
0: WRITE (Master → Slave)
1: READ (Slave → Master)
D1
D0
A8 R/W
D2
D1
D0
A1
A0
16-11

Advertisement

loading