PIO-D48 Series Card
48-channel OPTO-22 Compatible DIO Board
User Manual/Ver. 3.4/Aug. 2015/PMH-006-34/Page: 41
6.3.5 Read/Write I/O Port
Control Word
(Read/Write): wBase+0xcc/ 0xdc
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
1
0
0
PA
PC-H
0
PB
PC-L
These are six 8-bit I/O ports in the PIO-D48 series.
Every I/O port can be programmed to be a D/I or
a D/O port based on the control word settings. All six ports are configured as D/I ports when the
power is first turned on.
(Read/Write)
wBase+0xcc =
Set Input/Output mode for the port-0/1/2
(Read/Write)
wBase+0xdc = Set Input/Output mode for the port-3/4/5
PA/PB/PC-H/PC-L:
1
Input port;
0
Output port
PC-H: high nibble of PC
PC-L: Low nibble of PC
Read/Write 8-bit Data
(Read/Write): wBase+0xc0/ 0xc4/ 0xc8/ 0xd0/ 0xd4/ 0xd8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
D7
D6
D5
D4
D3
D2
D1
D0
(Read/Write)
wBase+0xc0= Port-0 (PA)
wBase+0xc4= Port-1 (PB)
wBase+0xc8= Port-2 (PC)
wBase+0xd0= Port-3 (PA)
wBase+0xd4= Port-4 (PB)
wBase+0xd8= Port-5 (PC)