beautypg.com

I5216 series, Preliminary – Rainbow Electronics ISD5216 User Manual

Page 43

background image

I5216 SERIES

Advanced Information

PRELIMINARY

Publication Release Date: November 30, 2001

- 43

Revision A1

READ DIGITAL DATA

: For

a normal digital read, the Registers are loaded as follows:

1. Host executes I

2

C START.

2. Send Slave Address with R/W bit = “0” (Write).
3. Slave responds back with an ACK.
4. Wait for SCL HIGH.
5. Send Digital Mode command – 0X80h, 0XC9h
6. Slave responds with an ACK.
7. Wait for SCL HIGH
8. Host sends a byte to Slave - (Command Byte = E1).
9. Slave responds with an ACK.
10. Wait for SCL HIGH.
11. Host sends a byte to Slave - (High Address Byte).
12. Slave responds with an ACK.
13. Wait for SCL HIGH.
14. Host sends a byte to Slave - (Low Address Byte).
15. Slave responds with an ACK.
16. Wait for SCL HIGH.
17. Host sends repeat START.
18. Host sends Slave Address with R/W bit = 1 (Reverses Data Direction).
19. Slave responds with an ACK.
20. Wait for SCL HIGH.
21. Slave sends a byte to Host - (First 8 bits of digital information).
22. Host responds with an ACK.
23. Wait for SCL HIGH.
24. Steps 20, 21 and 22 are repeated until last byte is sent and a NO ACK is returned.
25. Host sends Slave Address with R/W bit = 0 (Reverses Data Direction)
26. Slave responds with an ACK.
27. Wait for SCL HIGH.
28. Host sends Exit Digital Mode command. – 0X40
29. Slave responds with an ACK.
30. Wait for SCL HIGH
31. Host executes I

2

C STOP.












S

SLAVE ADDRESS

A

P

W

Command

E1

A

DATA

N

DATA

A

High Addr. Low Addr.