NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
208
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
2. Set
Tx_NUM
= 0x01 and set
I2C_EN
= 1 of
CSR
register to enable I2C core.
3. Write 0x9C (slave a write bit 0) to
TxR[15:8]
, set 0x60 to
TxR[7:0]
.
4. Set
START
bit, and WRITE bit of
CMDR
register.
5. Wait for interrupt or
I2C_TIP
flag to negate
6. Read
I2C_RxACK
bit from
CSR
register, it should be '0'. If it is not ‘0’, there are some errors
happened.
7. Write 0x9D (slave a read bit 1) to
TxR[7:0]
.
8. Set
START
bit, and
WRITE
bit of
CMDR
register.
9. Wait for interrupt or
I2C_TIP
flag to negate
10. Read
I2C_RxACK
bit from
CSR
register, it should be '0'. If it is not ‘0’, there are some errors
happened.
11. Set
READ
bit of
CMDR
register.
12. Wait for interrupt or
I2C_TIP
flag to negate
13. Read
I2C_RxACK
bit from
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].
15. Continue step 11 - 14 until the final byte read
16. Set
READ
bit, set
ACK
to '1' (NACK), and set
STOP
bit of
CMDR
register.
17. Wait for interrupt or
I2C_TIP
flag to negate.
18. Read
I2C_RxACK
bit of
CSR
register, it should be '0'. If it is not ‘0’, there are some errors
happened.
19. Read out received final data from
RxR
register, it will put on RxR[7:0].