DIO24, User Manual
4.3.4. I/O Control Register (IOCR, 0x60, 32, RW)
This register is used to configure the I/O ports and bits as either inputs or outputs. Setting a bit to one programs the
port/bit as an output. Setting a bit to zero programs the port/bit as an input.
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Field
Default
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Bit
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
Field
CO1 PC7 PC6 PC5 PC4 PC3 PC2 PC1
PC0
PB
PA
Default
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Bit Field
Description
31-11
Reserved
10
CO1 Clock Out 1: This controls the enable of Clock Out cable signal
9
PC7
Port C, Pin 7: This controls the direction of Port C, bit 7.
8
PC6
Port C, Pin 6: This controls the direction of Port C, bit 6.
7
PC5
Port C, Pin 5: This controls the direction of Port C, bit 5.
6
PC4
Port C, Pin 4: This controls the direction of Port C, bit 4.
5
PC3
Port C, Pin 3: This controls the direction of Port C, bit 3.
4
PC2
Port C, Pin 2: This controls the direction of Port C, bit 2.
3
PC1
Port C, Pin 1: This controls the direction of Port C, bit 1.
2
PC0
Port C, Pin 0: This controls the direction of Port C, bit 0.
1
PB
Port B: This controls the direction of all eight Port B bits.
0
PA
Port A: This controls the direction of all eight Port A bits.
4.3.5. Discrete Data Output Register (DDOR, 0x64, 32, RW)
This register holds the data that will appear on I/O pins programmed as output. All 24 bits are latched so that reading
the register returns the last programmed value.
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Field
PORTC
Default
0 0 0 0 0 0 0 0
0x00
Bit
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
Field
PORTB PORTA
Default
0x00 0x00
Bit Field Description
31-24
Reserved
23-16 PORTC Port C: This is the output value for Port C pins programmed as output.
15-8
PORTB Port B: This is the output value for Port B when programmed as output.
7-0
PORTA Port A: This is the output value for Port A when programmed as output.
4.3.6. Discrete Data Input Register (DDIR, 0x68, 32, RO)
This register reports the logic state of the signals on all 25 port bits. If a bit is configured as an input then the
reported value is per the state induced by the attached device. If a bit is programmed for output then the reported
value is the value programmed from the DDOR.
18
General Standards Corporation, Phone: (256) 880-8787