The PIO-16/16L(PC)V is a 16-channel digital input and
output interface board for the IBM PC/AT and compatible
computers. It can also be installed into a CONTEC I/O
expansion unit. Plugged in an ISA bus expansion slot on the
motherboard of a personal computer, can input and output
up to 16 channels.
PIO-16/16L(PC)VVer.1.30
Features
Opto-Isolated input/outputs for improved noise resistance
Up to 16 (8 signals x 2 groups) input signals
Up to 16 (8 signals x 2 groups) output signals
Two input signals can also generate interrupt requests.
Output ability: up to 35VDC, 100mA per signal, max.
Function
Input
When installed in a personal computer (PC), these boards
accept up to 16/32 digital signals (in two groups of eight) and
input them to the PC. The PC access the board for input
through four arbitrarily configurable input ports. When the
IN instruction is executed to read data through any of these
input ports, the corresponding buffer gate opens to receive
the group of digital signals from the external device. The
signals sent to the PC at this time have negative logic. The
user can assign two of the 16/32 input signals as interrupts
for the PC. These two signals can then be used as interrupt
request signals.
Output
When installed on a personal computer (PC), these boards
write up to 16/32 digital signals (in two groups of eight) to an
external device. The PC accesses the board for output
through four arbitrarily configurable output ports. When the
OUT instruction is executed to write data to any of these
output ports, the corresponding latch circuit holds the data.
The digital signals are then electrically insulated by the
photocoupler. They are output as a group to an external
device via the transistor. The signals output to the external
device at this time have negative logic. The data in the latch
circuit remains intact until the OUT instruction is executed
again.
Specification
Input
Output
Common
Item Specification
Type Opto-Isolated Input (for current sinking output) (Negative logic)
Resister 3kΩ
Current required to turn ON 3.4mA (Min.)
Current required to turn OFF 0.16mA (Max.)
Number of Channels 16 channels (2 of these 16 can be used as interrupt signal)
Response time 1ms (Max.)
Type Opto-Isolated Open Collector Output (current sinking type) (Negative logic)
Voltage 35VDC (Max.) Rating
Current 100mA Max. per channel
Number of Channels 16 channels (16 channels with the common)
Response time 1ms (Max.)
I/O address Any 2-byte boundary
Interrupt Two of IRQ 3-7,9-12,14 or 15Interrupt generated at falling edge
External power supply 12 to 24VDC (±15%) 4mA/12V~8mA/24V per input channel
Power consumption 5VDC 50mA (Max.)
Operating condition 0 to 50°C, 20% to 90% (not condensing)
Connecting distance 50m (Typ.) (depending on wiring environment)
Dimension (mm) 163.0(L) x 122.0 (H)
Weight 120g
(16 channels with the common)
163.0
122.0
[mm]
1
Page 2
Accessories (Option)
Accessories (Option)
Screw Terminal: EPD-37 *1
Termination Panel: DTP-3(PC)
Termination Panel: DTP-4(PC)
Signal Monitor for Digital I/O: CM-32(PC)
Signal Monitor for Digital I/O: CM-32(PC)E *1
*1 : The option cable PCB37P or PCB37PS is needed.
Cable & Connector (Option)
Flat cable with 37-pin D-SUB connectors at either end:
PCB37P-*(1.5m, 3m, 5m)
Shielded cable with 37-pin D-SUB connectors at either end:
PCB37PS-*(0.5m, 1.5m, 3m, 5m)
Flat cable with a 37-pin D-SUB connector at one end:
PCA37P-*(1.5m, 3m, 5m)
Shielded cable with a 37-pin D-SUB connector at one end:
PCA37PS-*(0.5m, 1.5m, 3m, 5m)
Ver.1.30PIO-16/16L(PC)V
Product Configuration List
Product Configuration List
- Board[PIO-16/16L(PC)V] ... 1
- This User's Manual ... 1
2
Page 3
PIO-16/16L(PC)VVer.1.30
C o n n e c t o r
u s e d 3 7 - p i n
D -
S U B
c o n n e c t o r
(
F e m a l e )
D
(
y
S c r e w
n u t
: U N
C
# 4 - 4 0
( i
n c h
s c r e w )
A p p l i c a b l e
c o n n e c t o r
(
y
D D K , M
F D C D - 3 7 P
(
m f d .
b y
H I
R O S E ,
M
a l e ) D C - 3 7 P - N
(
m f d .
b y
J A E ,
M
a l e ) 1 2
1 9
2 0
3 7
B o a r d V c c P h o t o c o u p l e r 3 k Ω 5 . 1 k Ω P h o t o c o u p l e r 3 k Ω I n p u t P i n I n p u t P i n E x t e r n a l D e v i c e E x t e r n a l P o w e r S u p p l y D C 1 2 V
~
C o m m o n 5 . 1 k Ω
B o a r d
1 2 k
1 2 k
V c c 1 k
1 k
E x t e r n a l D e v i c e
P l u s C o m m o n L o a d O u t p u t P i n L o a d
O u t p u t P i n M i n u s C o m m o n
E x t e r n a l P o w e r S u p p l y D C 1 2 V
External Connection
Connecting the Interface Connector
To connect an external device to this board, plug the cable from the device into the interface connector (CN1) shown below.
2 1
C L C - J 3 7 S A F - 2 0 L 9
1 7 J E - 2 3 3 7 0 - 0 2 ( D 8 C )
m f d .
m f d .
b
J A E )
e q u i v a l e n t
b
a l e )
Connector Pin Assignment
To connect an external device to this board, plug the cable from the device into the 37-Pin connector.
Common minus pin for
+0/+1 intput port
+0 port
(Input)
+1 port
(Input)
Common plus pin for
+0/+1 input port
*I00 and * I02 are also used as interrupt signals
*I 00
I 01
*I 02
I 03
I 04
I 05
I 06
I 07
I 10
I 11
I 12
I 13
I 14
I 15
I 16
I 17
N.C.
N0
1
20
2
21
3
22
4
23
5
24
6
25
7
26
8
27
9
28
10
29
11
30
12
31
13
32
14
33
15
34
16
35
17
P0
36
18
37
19
N1
O 00
O 01
O 02
O 03
O 04
O 05
O 06
O 07
O 10
O 11
O 12
O 13
O 14
O 15
O 16
O 17
P1
Common minus pin for
+0/+1 output port
+0 port
(Output)
+1 port
(Output)
Common plus pin for
+0/+1 output port
Input Circuit and Output Circuit
Input circuit
The on-board photocouplers isolate internal input circuits
from external devices. The input channels are to be connected
with current sinking output signals. You need an additional
power supply that is isolated from the PC to drive these
insulation circuits. When you use a 12VDC power supply,
each input channel consumes about 4mA current. With a
24VDC external power supply, each input channel consumes
about 8mA current.
V c c
P l u s
24V
Output circuit
The output channel is a photocoupler-isolated open-collector
(sink type). You need an additional power supply that is
isolated from the PC to drive these insulation circuits. The
maximum output current ranting is 100mA per channel.
Ω
Ω
Ω
Ω
24V
~
3
Page 4
I/O Address Setting
Use the on-board DIP switches (SW1 and SW2) to set the I/O base address of your board. Individual bits in SW1 and SW2
correspond to the 15 high-order bits (A15 to A1) in the I/O base address. Always set A0 to "0" (OFF) for the Board.
Ver.1.30PIO-16/16L(PC)V
SW2
1234567
OFF
8
0
Bin ary
Hexadecimal
SW1
1234567
OFF
A15 A14 A13 A12 A11 A10 A9 A8
000000011
8
3
A7 A6 A5 A4 A3 A2 A1 A0
00 0 000 00 0
The figure shows that the head I/O Address is set as 0300H by a diagram, and this board occupies the I/O Address of 0300H0301H.
Setting Interrupt Levels
Enabling Interrupts
This board can use two of their 32 digital input signals as
interrupt request signals. These signals issue interrupt
requests to the PC. Use the on-board jumper (JP1) to set
interrupt levels.
To disable interrupts, use lead strapping connectors to
prevent input signals from being connected to specific levels.
To enable interrupts, use the on-board jumper (JP1) to set
interrupt levels. The interrupt levels that can be set for this
board are IRQs 3 to 7, 9 to 12, 14, and 15. You can assign up
to two levels of interrupt request signals. The interrupts can
correspond to input signals on a one-to-one basis. Make sure
that the interrupt levels you assign to the PIO-32LV Series
board are not used by the PC or any other expansion board.
Notes!
(1) When using interrupts, choose interrupt levels which
are not used by any other resource.
(2)Do not plug or unplug any strapping connector on JP1
when the PC (or I/O expansion unit) is turned on.
Disabling Interrupts
JP1
IRQ
9
34567
SIG
1
2
IRQ
10 11 12 14 15
Use strapping connectors to connect input signals to the
desired interrupt levels. The assignable interrupt levels are
IRQ 3~7, 9~12, 14, and 15. Note, however, that IRQ 10~15
cannot be used on PCs with XT (8-bit) buses.
JP1
9
4567
3
1
2
10 11 12 14 15
I02 (4)
I00 (2)
IRQ
IRQ
( Example ) : To connect interrupt request signal SIG1(I02)
fromthe interface board to IRQ10 on the PC/
AT, set JP1 as shown below:
JP1
Interrupt level
Interrupt signal
Interrupt level
IBM PC/AT (input module)
IRQ
10
11
12
14
15
IRQ
SIG
IRQ
IRQ
9
3
4
5
6
7
934
1
2
1 0
1 1
5 6
1 2
1 4 1 5
Connection
cable
7
External I/O
SIG1(I02)
SIG2(I00)
4
Page 5
I/O Port Bit Assignment
PIO-16/16L(PC)VVer.1.30
Input Port
If input command is executed with external equipments (relay
point of contact, semiconductor switch, etc.) when having
short-circuited the input terminal the minus side of external
power supply (external input point of contact is ON state),
it will be taken in as internal logic [1].
I/O base
address
D 7 D 6D 5D 4D 3D 2D 1D 0
+0H
I07I06I05
[9][8][7][6][5][4][3][2]
+1H
I17I16I15I14I13I12I11I10
[17] [16] [15] [14][13] [12] [11] [10]
Ixx is a n input s ign al name; numbers in bracket s [ ]
are connector p in nu mber s.
I00 and I02 can a lso serve as interr upt signals.
Input Group 0 (+0 port)
I04
I03
Input Group 1 (+1 port)
I02
I01
I00
Block Diagram
DIP
swit ch
Output Port
By outputting internal logic [1] (output command being
executed), the transistor of the last stage will be in ON state.
Moreover, the outputted data is latched, and it holds the
state until output command is executed again.
D 7 D 6D 5D 4D 3D 2D 1D 0
+0H
O07 O06 O05 O04
[28]
+1H
O17 O16
[36][35]
Oxx is a n out pu t signa l n ame; nu mber in brack et s [ ]
are connector p in nu mber s.
External digital input
(8ch, group 0)
Output Group 0 (+0 port )
[26] [25] [24] [23] [22] [21]
[27]
Output Group 1 (+1 por t )
O15
[34] [33]
O03 O02
O14 O13
[32]
O12 O11
[31]
O01 O00
[30] [29]
Photocoupler
I/O base
addr ess
O10
Address bus
(A15~A0)
IOR
IOW
AEN
RESET
PC/AT I/O expansion bus
Data bus
(D7~D0)
IRQ3~7
IRQ9~12
IRQ14, 15
I/O address
coincidence
circuit
Control
circuit
Data
driver
Interrupt
control
Photocoupler
Photocoupler
&
Transistor
Photocoupler
&
Tran-
sistor
PIO-16/16L(PC)V
External digital input
(8ch, group 1)
External digital output
(8ch, group 0)
External digital output
(8ch, group 1)
5
Page 6
Example
- I
0 0
(
C N 1
:
2 p i n ) O 0 0
(
C N 1
:
2 1 p i n )
Positive common
Power supply
External
( C N 1
:
3 7 p i n )
D C 1 2
2 4 V L E D
5 . 1 k
O
Positive common
(
C N 1
:
1 8 p i n )
Negative common
(
C N 1 : 2 0 p i n )
Display Data
Ver.1.30PIO-16/16L(PC)V
Program that makes LED connected to O00 output terminal as
an example of use of this board. According to ON/OFF of the
external switch connected to I00 input terminal turn on switch
off is shown below. Description language is Microsoft C. In the
state of switch-on, 1 is displayed on screen, LED lights up, 0 is
displayed on screen in the state of switch-off, and LED puts out
the light.
Setting Conditions
I/O Address: 0300H
Interrupt: unused (Please remove all the short connectors of
JP1.)