MEGA-FIFO, the CIO prefix to data acquisition board model numbers, the PCM prefix to data
acquisition board model numbers, PCM-DAS08, PCM-D24C3, PCM-DAC02, PCM-COM422,
PCM-COM485, PCM-DMM, PCM-DAS16D/12, PCM-DAS16S/12, PCM-DAS16D/16,
PCM-DAS16S/16, PCI-DAS6402/16, Universal Library, InstaCal, Harsh EnvironmentWarranty and Measurement Computing Corporatio n are registered trademarks of Measurement
Computing Corporation.
IBM, PC, and PC/AT are trademarks of International Business Machines Corp. Windows is a
trademark of Microsoft Corp. All other trademarks are the property of their respective owners.
Information furnished by Measurement Computing Corp. is believed to be accurate and
reliable. However, no responsibility is assumed by Measurement Computing Corporation
neither for its use; nor for any infringements of patents or other rights of third parties, which
may result from its use. No license is granted by implication or otherwise under any patent or
copyrights of Measurement Computing Corporation.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system,
or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording
or otherwise without the prior written permission of Measurement Computing Corporation.
Notice
Measurement Computing Corporation does not authorize any
Measurement Computing Corporation product for use in life support
systems and/or devices without the written approval of the President of
Measurement Computing Corporation Life support devices/systems are
devices or systems which, a) are intended for surgical implantation into
the body, or b) support or sustain life and whose failure to perform can
be reasonably expected to result in injury. Measurement Computing
Corp. products are not designed with the components required, and are
not subject to the testing required to ensure a level of reliability suitable
54.2 PARALLEL PORT REGISTERS ..................................
64.3 CONTROL & DATA REGISTERS ................................
74.4 DIGITAL I/O REGISTERS .......................................
10
This page is blank.
1INTRODUCTION
Welcome to the new PPIO (Parallel Port I/O) series of data acquisition and control
modules from
directly to your personal computer's parallel printer port.
The PPIO-DIO24H adds 24 high-drive digital I/O lines to your computer. The
PPIO-DIO24H uses standard connectors and termination so it is compatible with a
wide range of accessories, from termination panels to solid state relay racks. In fact,
any accessory designed for use with the Measurement Computing Corporation
CIO-DIO24 is compatible with the PPIO-DIO24H.
Even though the PPIO series is different from a plug-in board, we have done
everything possible to maintain compatibility and consistancy between our PPIO and
plug-in board line.
Measurement Computing Corporation
. PPIO modules connect
2SOFTWARE INSTALLATION
The board has no switches or jumpers to set before installing the board in your
computer. The simplest way to configure your board is to use the InstaCal
provided on the CD (or floppy disk).
InstaCal will create a configuration file that your application software (and the
Universal Library) will refer to so the software you use will automatically have access
to the exact configuration of the board. InstaCal also allows you to easily test your
installation.
Please refer to the ExtendedSoftware Installation Manual regarding the installation
and operation of InstaCal. The following hard copy information is provided as a
matter of completeness, and will allow you to set the hardware configuration of the
board if you do not have immediate access to InstaCal and/or your computer.
1
TM
program
3HARDWARE INSTALLATION
The PPIO-DIO24H is easy to install. There are no switches to set or jumpers to place.
Simply plug it in to your personal computer's parallel printer port, connect field
signals to the I/O connector, and begin switching or monitoring discrete I/O devices.
The PPIO-DIO24H is a digital input and output board. The board uses a set of
registers which emulate an 82C55 in mode 0. The PPIO-DIO24H is compatible with
Measurement Computing’s CIO-DIO24 connector. Since the PPIO-DIO24H uses the
parallel printer port and does not plug into the PC's bus, there is no I/O registercompatibility with the CIO-DIO24H.
The PPIO-DIO24H provides High Drive inputs and outputs. The DIO24H can sink
about 60 mA with output low. This is more than enough to switch on an LED, a solid
state relay or many types of mechanical relays.
The PPIO-DIO24H is 100% compatible with the 82C55, mode 0. Software written
for any 82C55 based digital I/O board that implements simple I/O using mode 0 will
work with the PPIO-DIO24H after the register addressing has been modified to suit
the layout of the PC's parallel printer port.
3.1INSTALLING THE PPIO-DIO24H
1. Turn the PC power off.
2. Remove the cover of your computer. Please be careful not to dislodge any of the
cables installed on the boards in your computer as you slide the cover off.
3. Plug the 25-pin cable into the PC's parallel printer port 1, 2, 3 or 4 (also known as
LPT1, LPT1, LPT3 & LPT4; LPT1 and PRN: are the same).
4. Locate an unused accessory power connector in your computer. These are white
plastic, four pin connectors which carry power from your computer's power supply
to disk drives. There should be a few spare connectors.
If there are no spare power connectors, a Y cable (C-PCPOWER-Y) can be
purchased from Measurement Computing to provide a power connection to your
PPIO board.
5. Connect the PPIO Power cable power cable to the PC's accessory power connector.
One end of the PPIO Power Cable plugs into the PC's accessory power connector
and the other is attached to the PPIO-DIO24H.
2
6. Route the power cable into the PC thr ough one of the PC's accessory openings in
the back of the PC. Please make sure there are no sharp burrs that may pierce the
cable and cause a short circuit.
7. When the power cable is installed, close your PC and turn on the power.
3.2INSTALLING THE PPIO-DIO24H IN A LAPTOP
There is no need to turn the Laptop power off.
1. Plug the 25-pin cable into the PC's parallel printer port 1, 2, 3 or 4.
2. Locate the Laptop's mouse connector and install the C-PCPOWER-2M.
mouse-to-power cable (available from Measurement Computing).
3. If you are powering the PPIO-DIO24H from an external power supply, connect the
PPIO Power Cable to the external
power supply.
Figure 3-1 shows the power connector
cable from the PPIO-DIO24H. Please
connect only a high quality 5V power
supply, paying close attention to
proper power and ground orientation.
It is not possible to power a PPIO
from the PC via the parallel port.
There are no connections to the power
supply via the parallel port.
Figure 3-1. Power Connector
3.3SIGNAL CONNECTIONS
The PPIO-DIO24H output signals are buffered (high output drive) TTL. TTL is an
electronics industry term, short for Transistor Transistor Logic, which describes a
standard for digital signals which have two states; near 0V or near 5V.
Under normal operating conditions, the vo ltages on the pins range from 0 to 0.45 volts
for the low state to between 2.4 to 5.0 volts for the high state.
3
The voltages and currents associated with external devices range from less than a
hundred mA at a few volts for a small flash light bulb to 50 Amps at 220 volts for a
large electric range. Attempting to connect either of these devices directly to the
PPIO-DIO24H would destroy the I/O chip. In these cases, external relays must be
used.
3.4CONNECTOR DIAGRAM
The PPIO-DIO24H field I/O connector is a
37-pin, D-type connector accessible through
the top cover of the PPIO (Figure 3-2).
The connector accepts female 37-pin, D-type
connectors, such as those on the C37FF-2, a 2
foot cable with connectors.
If frequent changes to signal connections or
signal conditioning is required, please refer to
the information on the CIO-TERMINAL and
CIO-MINI37 screw terminal boards. Contact
Customer Support for assistance in this
important area.
The PPIO-DIO24H is controlled and monitored by writing to and reading from four
consecutive 8-bit I/O registers.
The process of accessing the registers on the board is complicated by the fact that the
board registers are accessed through the parallel p ort registers. The PPI O-DIO24H is
supported by the Universal Library. We recommend that you use this library rather
than attempt register level programming. If you have determined that it is necessary,
the information for low level programming follows:
4.2PARALLEL PORT REGISTERS
As stated previously, access to the PPIO-DIO24H registers is done through the PCs
parallel port. The parallel port has 8-bits of latched data, 4-bits of control o utputs,
and 5-bits of status inputs. The 8 -bit data port will be used for address or data to the
PPIO. The control outputs will be used to command address latch, write data, read
data or initialize. 4 of the status inputs will be used as data input in 4-bit nibbles, plus
an interrupt signal.
Parallel port address usage:
BASE + 0:DATA TO PPIO (8-BIT)
BASE + 1:DATA FROM PPIO (4-BIT)
BASE + 2:CONTROL SIGNALS TO PPIO (RD, WR, ADDR, INIT)
4.2.1Control Signals: (BASE + 2):
PIN
10WRITE STROBE-STROBE
141READ STROBE-AUTO LF
162-INIT/ENABLE-INIT
173ADDRESS STROBE-SLCT IN
BITSIGNAL DESCRIPTIONCOMMON NAME
4IRQ EN (SW ONLY; ENABLES ACK TO IRQ7)
5NA
6NA
7NA
5
4.2.2Read Data Signals: (BASE + 1):
PIN
153READ DATA 0 OR 4ERROR
134READ DATA 1 OR 5SLCT OUT
125READ DATA 2 OR 6PAPER OUT
106PATH FOR INTERRUPT, IF USED ACK
117READ DATA 3 OR 7-BUSY
4.2.3Write Data Signals: (BASE + 0):
PIN
20WRITE DATA OR ADDRESSD0
31WRITE DATA OR ADDRESSD1
42WRITE DATA OR ADDRESSD2
53WRITE DATA OR ADDRESSD3
64WRITE DATA OR ADDRESSD4
75WRITE DATA OR ADDRESSD5
86WRITE DATA OR ADDRESSD6
97WRITE DATA OR ADDRESSD7
BITSIGNAL DESCRIPTIONCOMMON NAME
0NA
1NA
2NA
BITSIGNAL DESCRIPTIONCOMMON NAME
4.3CONTROL & DATA REGISTERS
The PPIO-DIO24H has three data and one control register. They occupy four
consecutive I/O locations. Direct register manipulation is best done with ASSEMBLY
language programs.
The register descriptions follow the format:
01234567
A0A1A2A3A4A5A6A7
The numbers along the top row are the bit positions within the byte and the numbers
and symbols in the bottom row are the functions of each bit.
To write to or read from a register in decimal or HEX, the weights in Table 4-1 apply:
6
Table 4-1. Bit Weights
HEX VALUEDECIMAL VALUEBIT POSITION
110
221
442
883
10164
20325
40646
801287
To write a control word or data to a register, the individual bits must be set to 0 or 1
then combined to form a byte.
The method of programming required to set/read bits from bytes is beyond the scope
of this manual. It is covered in most Introduction To Programming books.
In summary form, the registers and their function are listed on the following table.
Each register has eight bits which can constitute a byte of data or can be eight
individual bit set/read functions.
Table 4-2. Register Functions
WRITE FUNCTIONREAD FUNCTIONADDRESS
Port A OutputsPort A Inputs 0
Port B OutputsPort B Inputs1
Port C OutputsPort C Inputs2
ConfigureNone. No read back.3
4.4DIGITAL I/O REGISTERS
PORT A DATA
01234567
A0A1A2A3A4A5A6A7
PORT B DATA
01234567
B0B2B2B3B4B5B6B7
Ports A & B can be programmed as input or output. Each is written to and read from
in bytes. For control and monitoring purposes, individual bits are usually used. Mask
unwanted bits out of reads and writes.
7
PORT C DATA
01234567
C0C1C2C3C4C5C6C7
Or as
CL0CL1CL2CL3CH0CH1CH2CH3
Port C may be used as one 8-bit port of either input or outp ut, or it may be split into
two 4-bit ports which may be independently input or output. The notation for the
upper 4-bit port is CH3 to CH0, and for the lower, CL3 to CL0.
Although it may be split, every read and write to port C carries eight bits of data so
unwanted information must be ANDed out of reads, and writes must be ORed with the
current status of the other port.
OUTPUT PORTS
When 8255s (and emulators) are in mode 0 configuration, ports configured for output
hold the output data written to them. This output byte may be read back by reading a
port configured for output.
INPUT PORTS
When 8255s (and emulators) are in mode 0 configuration, ports configured for input
read the state of the input lines at the moment the read is executed . T r ansitions are not
latched.
CONTROL REGISTER
01234567
CLBM1CHAM2M3MS
Group BGroup A
The I/O ports can be programmed to operate in Input or Output modes (mode 0).
When the PPIO is powered up or RESET, the ports are reset. This places all 24 lines
in Input mode. No further programming is needed to use the 24 lines as TTL inputs.
To program the ports for input or output modes, the following control code byte must
be assembled into an 8-bit byte.
MS = Not Applicable. Set to 0.
8
M3M2Group A Function
00Mode 0 Input / Output
No other values are valid.
ABCLCHIndependent Function
1111Input
0000Output
M1 = 0 is mode 0 for group B.Input / Output
Ports A, B, C-High (CH), and C-Low (CL) can be independently programmed for
input or output. Refer to Table 4-3 that follows.
Table 4-3. I/O Configuration Coding
OUTOUTOUTOUT000000
OUTINOUTOUT220100
OUTOUTINOUT880010
OUTININOUT10A0110
OUTOUTOUTIN16100001
OUTINOUTIN18120101
OUTOUTININ24180011
OUTINININ261A0111
CLBCHADECHEXD0D1D3D4
INOUTOUTOUT111000
ININOUTOUT331100
INOUTINOUT991010
INININOUT11B1110
INOUTOUTIN17111001
ININOUTIN19131101
INOUTININ25191011
ININININ271B1111
9
POWER CONSUMPTION
+5V Supply400 mA typical.
Additional power will be drawn by user's connections to the power
pins accessible on PPIO-DIO24H connector.
DIGITAL I/O
Output High2.0V min @ 15 mA
Output Low0.55V max @ 64 mA
Input High2.0V min, 7.0V max
Input Low0.8V max, 0.5V min
5SPECIFICATIONS
NOTE
ENVIRONMENTAL
Operating Temperature0 to 50 deg C
Storage Temperature−20 to 70 deg C
Humidity0 to 90% non-condensing
Weight5 oz
10
EC Declaration of Conformity
Measurement Computing Corporation, declare under sole responsibility that the
We,
product:
Digital I/O BoardPPIO-DIO24H
DescriptionPart Number
to which this declaration relates, meets the essential requirements, is in conformity
with, and CE marking has been applied according to the relevant EC Directives listed
below using the relevant section o f the following EC standards and other no rmative
documents:
EU EMC Directive 89/336/EEC: Essential requirements relating to electromagnetic
compatibility.
EU 55022 Class B: Limits and methods of measurements of radio interference
characteristics of information technology equipment.
EN 50082-1: EC generic immunity requirements.
IEC 801-2: Electrostatic discharge requirements for industrial process measurement
and control equipment.
IEC 801-3: Radiated electromagnetic field requirements for industrial process
measurements and control equipment.
IEC 801-4: Electrically fast transients for industrial process measurement and control
equipment.
Carl Haapaoja, Director of Quality Assurance
Measurement Computing Corporation
16 Commerce Boulevard,
Middleboro, Massachusetts 02346
(508) 946-5100
Fax: (508) 946-9500
E-mail:info@measurementcomputing.com
www.measurementcomputing.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.