English
Language : 

S7760A Datasheet, PDF (27/54 Pages) Seiko Instruments Inc – PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT)
PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT)
Rev.2.0_01
S-7760A
2. Read/Write in E2PROM
The example of flowchart for software when accessing to the E2PROM is shown in Figure 30.
START
WP pin = “L”?
Yes
Switching access to
E2PROM/register
No
1-byte command
(ST, DC2 to 0, 0001, 1, ACK, SP)*1
Access to
control port E2PROM
END
2-byte command
• Write
(ST, DC2 to 0, 0101, 0, ACK, CTR7 to 0, ACK, SP)*1
• Read
(ST, DC2 to 0, 0101, 1, ACK, CTR7 to 0, ACK, SP)*1
*1. ST
DC2 to 0
ACK
CTR7 to 0
SP
: Start condition
: Device code
: Acknowledgment
: Control port register
: Stop condition
Figure 30 Flowchart for Software Example 2
27