NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
207
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
12. Wait for interrupt or
I2C_TIP
flag to negate
13. Read
I2C_RxACK
bit of
CSR
register, it should be '0'. If it is not ‘0’, there are some errors
happened.
14. Read out received data from
RxR
register, it will put on
RxR[7:0]
.
17.4.5.4
Read multi-byte data from slave (Sequential read)
Slave address = 0x4E (7'b1001110)
Memory location to read from = 0x60
I2C sequence:
1. Generate start signal
2. Write slave a write bit, then receive acknowledge from slave
3. Write memory location, then receive acknowledge from slave
4. Generate repeated start signal
5. Write slave a read bit, then receive acknowledge from slave
6. Read byte from slave and write acknowledge (ACK) for n-1 times
7. Read byte from slave and write not acknowledge (NACK) to slave, indicating end of transfer
8. Generate stop signal
'0'(write)
data transf er
(n by tes + acknowledge)
S
Slave Address
(7'b 1001110)
R/W
Data 1
A
Data n
A
P
Data address
(0x60)
A
A
'1'(read)
S
Slave Address
(7'b 1001110)
R/W
A
f rom master to slav e
f rom slav e to master
A = acknowledge (SDA low)
A = not acknowledge (SDA high)
S = START condition
P = STOP condition
.............
Commands:
1. Write a value into
DIVIDER
register to determine the frequency of serial clock.