BlueChip PIO-96 User manual

PIO-96
User Manual
Document Part N°0127-1015
Document Reference 0127-1015.Doc
Document Issue Level 1.2
Manual covers PCBs identified PIO-96 Rev B
All rights reserved. No part of this publication may be reproduced, stored in any retrieval system, or
transmitted, in any form or by any means, electronic, mechanical, photocopied, recorded or otherwise,
without the prior permission, in writing, from the publisher. For permission in the UK contact Blue Chip
Technology.
Information offered in this manual is correct at the time of printing. Blue Chip Technology accepts no
responsibility for any inaccuracies. This information is subject to change without notice.
All trademarks and registered names acknowledged.
Blue Chip Technology Ltd.
Chowley Oak, Tattenhall
Chester, Cheshire
CH3 9EX.
Telephone : 01829 772000 Facsimile : 01829 772001.

Contents
Blue Chip Technology Ltd. 01271015.doc
1.0 INTRODUCTION..........................................................................1
ELECTROMAGNETIC COMPATIBILITY (EMC).................................2
EMC Specification .........................................................................3
2.0 USER ADJUSTMENTS................................................................4
2.1 Selecting the Base Address (JP1) ............................................4
2.2 Setting the Interrupt Channel (JP2) ..........................................6
3.0 PORT MAP..................................................................................7
3.1 Control Port Bit Functions ........................................................8
4.0 ELECTRICAL OPTIONS..............................................................9
4.1 Input Conditioning....................................................................9
4.2 Input/Output Connections.........................................................9
4.3 Connector Pin Details.............................................................11
5.0 OPERATING GUIDE..................................................................12
5.1 Using the Device....................................................................12
5.2 Programming Guide...............................................................13
Simple Inputs...............................................................................13
Simple Outputs............................................................................13
Typical Register Setups ...............................................................15
6.0 EXAMPLE PROGRAMS.............................................................16
Example Program 1.....................................................................16
Example Program 2.....................................................................17
7.0 COMMERCIAL DATA ACQUISITION PACKAGES ....................20
7.1 Use of the PIO-96 Board with ASYST ....................................20
APPENDIX.......................................................................................21
A1 I/O Address Map for PC/XT/AT Computers............................21
A2 Hardware Interrupt Levels for PC/XT ......................................22
A3 Hardware Interrupt Levels for PC/AT ......................................23
DMA Channels.............................................................................23

Introduction Page 1
Blue Chip Technology Ltd. 01271015.doc Page 1
1.0 INTRODUCTION
This card provides 96 programmable digital I/O lines. It is suitable for sensing
or driving TTL connections only.
There is provision for a set of on board pull up resistors to enable the board to
be used to detect contact closures on push buttons, relay contacts etc.
This manual refers to printed circuit boards identified (on the rear of the board)
by the reference “PIO-96 Rev. B”.
Whilst every effort has been taken to ensure that the information provided is
accurate, Blue Chip Technology cannot assume responsibility for any errors in
this manual or their consequences. Should any errors be detected, the company
would greatly appreciate being informed of them. A policy of continuous
product development is operated, resulting in the contents of this document
being subject to change without notice.

Page 2Electromagnetic Compatibility (EMC)
Page 201271015.doc Blue Chip Technology Ltd.
ELECTROMAGNETIC COMPATIBILITY (EMC)
This product meets the requirements of the European EMC Directive
(89/336/EEC) and is eligible to bear the CE mark.
It has been assessed operating in a Blue Chip Technology Icon industrial PC.
However, because the board can be installed in a variety of computers, certain
conditions have to be applied to ensure that the compatibility is maintained. It
meets the requirements for an industrial environment ( Class A product) subject
to those conditions.
• The board must be installed in a computer system which provides screening
suitable for the industrial environment.
• Any recommendations made by the computer system manufacturer/supplier
must be complied with regarding earthing and the installation of boards.
• The board must be installed with the backplate securely screwed to the
chassis of the computer to ensure good metal-to-metal (i.e. earth) contact.
• Most EMC problems are caused by the external cabling to boards. With
analogue boards particular attention must be paid to this aspect. It is
imperative that any external cabling to the board is totally screened, and that
the screen of the cable connects to the metal end bracket of the board and
hence to earth. It is recommended that round screened cables with a braided
wire screen are used in preference to those with a foil screen and drain wire.
Use metal connector shells which connect around the full circumference of
the screen; they are far superior to those which earth the screen by a simple
“pig-tail”. Standard ribbon cable will not be adequate unless it is contained
wholly within the cabinetry housing the industrial PC.
• If difficulty with interference is experienced the cable should also be fitted
with a ferrite clamp as close possible to the connector. The preferred type is
the Chomerics clip-on style, type H8FE-1004-AS.

Electromagnetic Compatibility (EMC) Page 3
Blue Chip Technology Ltd. 01271015.doc Page 3
• It is recommended that cables are kept as short as possible, particularly
when dealing with low level signals.
• Ensure that the screen of the external cable is bonded to a good RF earth at
the remote end of the cable.
Failure to observe these recommendations may invalidate the EMC compliance.
Warning
This is a Class A product. In a domestic environment this
product may cause radio interference in which case the user may
be required to take adequate measures.
EMC Specification
A Blue Chip Technology Icon industrial PC fitted with this card meets the
following specification:
Emissions: EN 55022:1995
Radiated Class A
Conducted Class A & B
Immunity: EN 50082-1:1992 incorporating
Electrostatic Discharge IEC 801-2:1984
Performance Criteria B
Radio Frequency Susceptibility IEC 801-3:1984
Performance Criteria A
Fast Burst Transients IEC 801-4:1988
Performance Criteria B

Page 4User Adjustments
Page 401271015.doc Blue Chip Technology Ltd.
2.0 USER ADJUSTMENTS
2.1 Selecting the Base Address (JP1)
The board may be located in any 62 pin ISA slot in the PC motherboard, but
must be set up to appear at a specified position (or ‘address’) in the computer’s
port map.
Available positions are shown in the IBM-PC Technical Reference Guide.
However, for those who do not possess a copy of this document a good place is
the location normally allocated to the prototyping card as supplied by IBM.
This address is 300 (hex) or 768 (decimal). All Blue Chip Technology cards
are preset to this address at the factory.
However, no two devices should be used while set to the same address since
contention will occur and neither board will work. If your machine contains a
card with a conflicting address then another reasonably safe address is 200 to
21F (hex).
A set of links on the board set the base address of the board within the IBM-PC
port map. The address is in binary with the presence of a link representing a 0
and the absence of a link representing a 1.

User Adjustments Page 5
Blue Chip Technology Ltd. 01271015.doc Page 5
To set the base address to 300 hex (768 decimal) set the pattern on the links as
indicated below:
100H
200H
40H
80H
10H
20H
JP1
Figure 1 - Selecting the Base Address
More example addresses are shown in Appendix A.
Note: No Two cards must occupy the same address.

Page 6User Adjustments
Page 601271015.doc Blue Chip Technology Ltd.
2.2 Setting the Interrupt Channel (JP2)
The PIO-96 card supports the use of the interrupts generated from the
µPD71055 chips. These chips are identical functionally to the Intel 8255
integrated circuit. The use of the interrupts provides a means to monitor digital
inputs only when there has been a change at the input signal lines. The use of
interrupts requires the user to write an interrupt handler routine (either in C or
assembler) and install it prior to using the PIO-96 card.
To select an interrupt channel, a link must be set on jumper block JP2. An
interrupt is selected by placing a jumper link on the pair of link pins
corresponding to the desired interrupt channel. All other interrupt channel
links must be left open.
Note: Only one link is permitted on JP2. If more than one link is fitted then
the computer system may not function correctly.
Figure 2 - Setting the Interrupt Channel
The above diagram shows the jumper block JP2 with a link placed on interrupt
channel 3. Please note that the silk screen printing of the interrupt numbers on
the printed circuit board is incorrect. The diagram above shows the correct
sequence.

Port Map Page 7
Blue Chip Technology Ltd. 01271015.doc Page 7
3.0 PORT MAP
The PIO-96 has four µPD71055 (8255) chips. Each chip has three 8 bit ports
(A, B & C) which can be programmed as inputs or outputs by writing a control
word to the control port. (See Table 2). All “A” ports and “B” ports much each
be all input or all output, i.e. they should not be programmed to mixed input
and output bits within an individual port. Port C may be split into two 4 bit
sections each of which may be input or output. The board occupies sixteen
read/write addresses (four for each µPD71055 chip) in the IBM-PC port map.
ADDRESS PORT
Base + 0 Port A
Base + 1 Port B
Base + 2 Port C
Base + 3 Command Port 1
Base + 4 Port A’
Base + 5 Port B’
Base + 6 Port C’
Base + 7 Command Port 2
Base + 8 Port A’’
Base + 9 Port B’’
Base + 10 Port C’’
Base + 11 Command Port 3
Base + 12 Port A’’’
Base + 13 Port B’’’
Base + 14 Port C’’’
Base + 15 Command Port 4
Table 1 - Port Addresses

Page 8Port Map
Page 801271015.doc Blue Chip Technology Ltd.
The function and operation of each of the input/output ports (A, B & C) are
controlled by the control byte which is written to the appropriate Command
Port. Each bit within the byte has a specific function, shown in Table 2.
3.1 Control Port Bit Functions
BIT NO FUNCTION SETTINGS
7Mode Set Flag 0=Inactive
1=Active
00=Mode 0
5, 6 Mode Selection 01=Mode 1
4Port A 0=Output
1=Input
3Port C (Upper) 0=Output
1=Input
2Mode Selection 0=Mode 0
1=Mode 1
1Port B 0=Output
1=Input
0Port C (Lower) 0=Output
1=Input
Table 2 - Control Port - Bit Functions
The software described in section 5 the Operating Guide gives examples of the
more typical control bytes and their effects.

Electrical Options Page 9
Blue Chip Technology Ltd. 01271015.doc Page 9
4.0 ELECTRICAL OPTIONS
4.1 Input Conditioning
The 71055 has high impedance inputs. An option is provided to terminate
external input lines. This is useful in an electrically noisy environment or
where a load is required (e.g. open collector drive). The lines may be pulled up
to the on-board +5V supply using 12 off SIL resistor packs (identified on the
PCB as “RP1” to “RP6” and “RP11” to “RP16” inclusive). The recommended
values of each resistor to 10Kohm.
4.2 Input/Output Connections
Two 50 way insulation displacement connectors (IDC) are provided for I/O
channel signal connection. One connector is located on the rear bracket and
carries signals 1 to 48. The second connector is located on the board and
carries signals 49 to 96. This connector may be brought out to the rear of the
computer via an adapter cable. If access to individual channels is required, a 50
way IDC ribbon cable may be used to connect the I/O channels to a 50 way
screw terminal block available from Blue Chip Technology as part number
ST-24.
The pins are numbered as shown in the following diagram. Pins 1-48 contain
the I/O signal lines and pins 49 and 50 are connected to digital ground. Both
connectors are identical in their pin-out.

Page 10 Electrical Options
Page 10 01271015.doc Blue Chip Technology Ltd.
When the connector is viewed from the back of the system odd numbered pins
are on the left and even numbered pins are on the right with pin 1 at the top of
the connector.
Figure 3 - Connector Pin Details (P1 and P2)
(View with gold edge connector facing downwards.)

Electrical Options Page 11
Blue Chip Technology Ltd. 01271015.doc Page 11
4.3 Connector Pin Details
PORT BIT NO. PIN NO. PIN NO. BIT NO. PORT
A (1) 0120A (2)
1 3 4 1
2 5 6 2
3 7 8 3
4 9 10 4
5 11 12 5
6 13 14 6
7 15 16 7
B (1) 0 17 18 0 B (2)
1 19 20 1
2 21 22 2
3 23 24 3
4 25 26 4
5 27 28 5
6 29 30 6
7 31 32 7
C (1) 0 33 34 0 C (2)
1 35 36 1
2 37 38 2
3 39 40 3
4 41 42 4
5 43 44 5
6 45 46 6
7 47 48 7
Digital Ground 49 50 Digital Ground
Table 3 - Signal Pin Connection Details
(Pin out of both connectors is identical)

Operating Guide Page 13
Blue Chip Technology Ltd. 01271015.doc Page 13
5.2 Programming Guide
Simple Inputs
The state of the input lines may be determined by using either of the following
methods:
Microsoft BASIC A or GW BASIC.
X=INP (P)
Returns the byte from port P and assigns this value to the variable X.
8088/8086 Assembly language.
PORT EQU 0300H
GETDAT:
MOV DX,PORT
IN AL,DX
RET
Simple Outputs
The state of the output lines may be modified by using either of the following
methods:
Microsoft BASIC A or GW BASIC.
OUT P,D
Outputs the byte D to Port P

Page 14 Operating Guide
Page 14 01271015.doc Blue Chip Technology Ltd.
8088/8086 Assembly language
PORT EQU 0300H
PUTDAT:
MOV DX,PORT
MOV AX,DATA
OUT DX,AL
RET
The µPD71055 can operate in one of 3 modes (mode 0, 1 & 2).
In the first mode (mode 0) the µPD71055 provides simple I/O for three 8 bit
ports. Data is simply written to, or read from a specified port (A, B or C)
without the use of handshaking.
Mode 1 enables the transfer of data to or from a specified 8 bit port (A or B) in
conjunction with strobes or handshaking signals provided by Port C.
In mode 2 data is transferred via one bi-directional 8 bit port (A) with
handshakes (Port C).
Table of contents
Other BlueChip I/O System manuals
Popular I/O System manuals by other brands

Nico Technology
Nico Technology 1208L user manual

National Instruments
National Instruments USB-6525 USER GUIDE AND SPECIFICATIONS

Festo
Festo CPX Series Description

National Instruments
National Instruments FD-11634 quick start

National Instruments
National Instruments SC-2061 user manual

Alpha Data
Alpha Data XRM2-CLINK-MINI-RX user manual