English
Language : 

S-7760A Datasheet, PDF (27/53 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.1.3_00
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
: Start condition
DC2 to 0 : Device code
ACK
: Acknowledgment
CTR7 to 0 : Control port register
SP
: Stop condition
Figure 30 Flowchart for Software Example 2
Seiko Instruments Inc.
27