English
Language : 

MAX1220_12 Datasheet, PDF (30/43 Pages) Maxim Integrated Products – 12-Bit, Multichannel ADCs/DACs with FIFO,Temperature Sensing, and GPIO Ports
12-Bit, Multichannel ADCs/DACs with FIFO,
Temperature Sensing, and GPIO Ports
GPIO Command
Write a command byte to the GPIO command register
to configure, write, or read the GPIOs, as detailed in
Table 12.
Write the command byte 00000011 to configure the
GPIOs. The eight SCLK cycles following the command
byte load data from DIN to the GPIO configuration reg-
ister in the MAX1220. The 16 SCLK cycles following the
command byte load data from DIN to the GPIO configu-
ration register in the MAX1257/MAX1258. See Tables
13 and 14. The register bits are updated after the last
CS rising edge. All GPIOs default to inputs upon power-
up.
The data in the register controls the function of each
GPIO, as shown in Tables 13–19.
Table 13. MAX1220 GPIO Configuration
DATA PIN
DIN
DOUT
GPIO COMMAND BYTE
00000011
00000000
GPIOC1
0
GPIOC0
0
DATA BYTE
GPIOA1 GPIOA0
0
0
XXXX
0000
Table 14. MAX1257/MAX1258 GPIO Configuration
DATA PIN
GPIO COMMAND BYTE
DATA BYTE 1
DATA BYTE 2
DIN
00000011
XXXX
DOUT
000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Table 15. MAX1220 GPIO Write
DATA PIN
GPIO COMMAND BYTE
DATA BYTE
DIN
0 0 0 0 0 0 1 0 GPIOC1 GPIOC0 GPIOA1 GPIOA0 X X X X
DOUT
00000000
0
0
0
0
0 000
Table 16. MAX1257/MAX1258 GPIO Write
DATA PIN
GPIO COMMAND BYTE
DATA BYTE 1
DATA BYTE 2
DIN
00000010
XXXX
DOUT
000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
30 ______________________________________________________________________________________