Rainbow Electronics DS28DG02 User Manual
Page 10
DS28DG02: 2kb SPI EEPROM with PIO, RTC, Reset, Battery Monitor, and Watchdog
10 of 33
PIO Direction
ADDR
b7 b6 b5 b4 b3 b2 b1 b0
122h
DIR7 DIR6 DIR5 DIR4 DIR3 DIR2 DIR1 DIR0
123h
X X X X
DIR11
DIR10
DIR9
DIR8
There is general read and write access to these addresses. These registers are automatically loaded with data
from address 10Ch/10Dh when the device powers up.
BIT DESCRIPTION
BIT(S)
DEFINITION
DIRn: PIO Direction
—
Direction of PIO0 to PIO11. DIR0 applies to PIO0, etc.
Legend
:
0 Î output; 1 Î input
X: (Not Assigned)
—
Reserved for future use.
PIO Read Inversion (PIO0 to PIO7)
ADDR
b7 b6 b5 b4 b3 b2 b1 b0
124h
IMSK7 IMSK6 IMSK5 IMSK4 IMSK3 IMSK2 IMSK1 IMSK0
There is general read and write access to this address. This register is automatically loaded with data from address
10Eh when the device powers up.
BIT DESCRIPTION
BIT(S)
DEFINITION
IMSKn: PIO Read-
Inversion
—
Read-inversion bit of PIO0 to PIO7. IMSK0 applies to PIO0, etc.
Legend
:
0 Î no inversion; 1 Î inversion
PIO Read Inversion (PIO8 to PIO11), PIO Output Type and Output Mode
ADDR
b7 b6 b5 b4 b3 b2 b1 b0
125h
OTM OT3 OT2 OT1
IMSK11 IMSK10
IMSK9 IMSK8
There is general read and write access to this address. This register is automatically loaded with data from address
10Fh when the device powers up.
BIT DESCRIPTION
BIT(S)
DEFINITION
IMSKn: PIO Read-
Inversion
b0 to b3
Read-inversion bit of PIO8 to PIO11. PIM8 applies to PIO8, etc.
Legend
:
0 Î no inversion; 1 Î inversion
OT1: Output Type
b4
Output type of PIO0 to PIO3;
Legend
:
0 Î push-pull; 1 Î open drain
OT2: Output Type
b5
Output type of PIO4 to PIO7;
Legend
:
0 Î push-pull; 1 Î open drain
OT3: Output Type
b6
Output type of PIO8 to PIO11;
Legend
:
0 Î push-pull; 1 Î open drain
OTM: Output Mode
b7
Output mode of PIO0 to PIO11;
Legend
:
0 Î low-current, simultaneous switching; 1 Î high-current,
sequential switching