Keithley Instruments, Inc. warrants this product to be free from defects in material and workmanship for a period of
1 year from date of shipment.
Keithley Instruments, Inc. warrants the following items for 90 days from the date of shipment: probes, cables,
rechargeable batteries, diskettes, and documentation.
During the warranty period, we will, at our option, either repair or replace any product that proves to be defective.
To exercise this warranty, write or call your local Keithley Instruments representative, or contact
Keithley Instruments headquarters in Cleveland, Ohio. You will be given prompt assistance and return instructions.
Send the product, transportation prepaid, to the indicated service facility. Repairs will be made and the product
returned, transportation prepaid. Repaired or replaced products are warranted for the balance of the original
warranty period, or at least 90 days.
LIMITATION OF WARRANTY
This warranty does not apply to defects resulting from product modification without Keithley Instruments’ express
written consent, or misuse of any product or part. This warranty also does not apply to fuses, software,
non-rechargeable batteries, damage from battery leakage, or problems arising from normal wear or failure to follow
instructions.
THIS WARRANTY IS IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. THE REMEDIES
PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
NEITHER KEITHLEY INSTRUMENTS, INC. NOR ANY OF ITS EMPLOYEES SHALL BE LIABLE FOR ANY
DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
ITS INSTRUMENTS AND SOFTWARE EVEN IF KEITHLEY INSTRUMENTS, INC., HAS BEEN ADVISED IN
ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. SUCH EXCLUDED DAMAGES SHALL INCLUDE, BUT
ARE NOT LIMITED TO: COSTS OF REMOVAL AND INSTALLATION, LOSSES SUSTAINED AS THE RESULT
OF INJURY TO ANY PERSON, OR DAMAGE TO PROPERTY.
A G R E A T E R M E A S U R E O F C O N F I D E N C E
Manual Print HistoryKPXI 48-Channel General Purpose Card User’s Manual
Manual Print History
The print history shown below lists the printing dates of all Revisions and Addenda created for this
manual. The Revision Level letter increases alphabetically as the manual undergoes subsequent
updates. Addenda, which are released between Revisions, contain important change information that
the user should incorporate immediately into the manual. Addenda are numbered sequentially. When a
new Revision is created, all Addenda associated with the previous Revision of the manual are
incorporated into the new Revision of the manual. Each new Revision includes a revised copy of this
print history page.
Revision A (Document Number KPXI-DIO-900-01) ............................................January 2007
All Keithley Instruments product names are trademarks or registered trademarks of Keithley Instruments, Inc.
Other brand names are trademarks or registered trademarks of their respective holders.
KPXI-DIO-900-01 Rev. A / January 2007
The following safety precautions should be observed before using this product and any associated instrumentation. Although
some instruments and accessories would normally be used with non-hazardous voltages, there are situations where hazardous
conditions may be present.
This product is intended for use by qualified personnel who recognize shock hazards and are familiar with the safety precautions
required to avoid possible injury. Read and follow all installation, operation, and maintenance information carefully before using
the product. Refer to the manual for complete product specifications.
If the product is used in a manner not specified, the protection provided by the product may be impaired.
The types of product users are:
Responsible body is the individual or group responsible for the use and maintenance of equipment, for ensuring that the
equipment is operated within its specifications and operating limits, and for ensuring that operators are adequately trained.
Operators use the product for its intended function. They must be trained in electrical safety procedures and proper use of the
instrument. They must be protected from electric shock and contact with hazardous live circuits.
Maintenance personnel perform routine procedures on the product to keep it operating properly, for example, setting the line
voltage or replacing consumable materials. Maintenance procedures are described in the manual. The procedures explicitly state
if the operator may perform them. Otherwise, they should be performed only by service personnel.
Safety Precautions
Service personnel are trained to work on live circuits, and perform safe installations and repairs of products. Only properly
trained service personnel may perform installation and service procedures.
Keithley Instruments products are designed for use with electrical signals that are rated Measurement Category I and
Measurement Category II, as described in the International Electrotechnical Commission (IEC) Standard IEC 60664. Most
measurement, control, and data I/O signals are Measurement Category I and must not be directly connected to mains voltage or
to voltage sources with high transient over-voltages. Measurement Category II connections require protection for high transient
over-voltages often associated with local AC mains connections. Assume all measurement, control, and data I/O connections are
for connection to Category I sources unless otherwise marked or described in the Manual.
Exercise extreme caution when a shock hazard is present. Lethal voltage may be present on cable connector jacks or test
fixtures. The American National Standards Institute (ANSI) states that a shock hazard exists when voltage levels greater than
30V RMS, 42.4V peak, or 60VDC are present. A good safety practice is to expect that hazardous voltage is present in any
unknown circuit before measuring.
Operators of this product must be protected from electric shock at all times. The responsible body must ensure that operators
are prevented access and/or insulated from every connection point. In some cases, connections must be exposed to potential
human contact. Product operators in these circumstances must be trained to protect themselves from the risk of electric shock.
If the circuit is capable of operating at or above 1000 volts, no conductive part of the circuit may be exposed.
Do not connect switching cards directly to unlimited power circuits. They are intended to be used with impedance limited sources.
NEVER connect switching cards directly to AC mains. When connecting sources to switching cards, install protective devices to
limit fault current and voltage to the card.
Before operating an instrument, make sure the line cord is connected to a properly grounded power receptacle. Inspect the
connecting cables, test leads, and jumpers for possible wear, cracks, or breaks before each use.
12/06
When installing equipment where access to the main power cord is restricted, such as rack mounting, a separate main input
power disconnect device must be provided, in close proximity to the equipment and within easy reach of the operator.
For maximum safety, do not touch the product, test cables, or any other instruments while power is applied to the circuit under
test. ALWAYS remove power from the entire test system and discharge any capacitors before: connecting or disconnecting
cables or jumpers, installing or removing switching cards, or making internal changes, such as installing or removing jumpers.
Do not touch any object that could provide a current path to the common side of the circuit under test or power line (earth) ground.
Always make measurements with dry hands while standing on a dry, insulated surface capable of withstanding the voltage being
measured.
The instrument and accessories must be used in accordance with its specifications and operating instructions or the safety of the
equipment may be impaired.
Do not exceed the maximum signal levels of the instruments and accessories, as defined in the specifications and operating
information, and as shown on the instrument or test fixture panels, or switching card.
When fuses are used in a product, replace with same type and rating for continued protection against fire hazard.
Chassis connections must only be used as shield connections for measuring circuits, NOT as safety earth ground connections.
If you are using a test fixture, keep the lid closed while power is applied to the device under test. Safe operation requires the use
of a lid interlock.
If a screw is present, connect it to safety earth ground using the wire recommended in the user documentation.
!
The symbol on an instrument indicates that the user should refer to the operating instructions located in the manual.
The symbol on an instrument shows that it can source or measure 1000 volts or more, including the combined effect of
normal and common mode voltages. Use standard safety precautions to avoid personal contact with these voltages.
The symbol on an instrument shows that the surface may be hot. Avoid personal contact to prevent burns.
The symbol indicates a connection terminal to the equipment frame.
The WARNING heading in a manual explains dangers that might result in personal injury or death. Always read the associated
information very carefully before performing the indicated procedure.
The CAUTION heading in a manual explains hazards that could damage the instrument. Such damage may invalidate the
warranty.
Instrumentation and accessories shall not be connected to humans.
Before performing any maintenance, disconnect the line cord and all test cables.
To maintain protection from electric shock and fire, replacement components in mains circuits, including the power transformer,
test leads, and input jacks, must be purchased from Keithley Instruments. Standard fuses, with applicable national safety
approvals, may be used if the rating and type are the same. Other components that are not safety related may be purchased
from other suppliers as long as they are equivalent to the original component. (Note that selected parts should be purchased only
through Keithley Instruments to maintain accuracy and functionality of the product.) If you are unsure about the applicability of a
replacement component, call a Keithley Instruments office for information.
To clean an instrument, use a damp cloth or mild, water based cleaner. Clean the exterior of the instrument only. Do not apply
cleaner directly to the instrument or allow liquids to enter or spill on the instrument. Products that consist of a circuit board with
no case or chassis (e.g., data acquisition board for installation into a computer) should never require cleaning if handled
according to instructions. If the board becomes contaminated and operation is affected, the board should be returned to the
factory for proper cleaning/servicing.
Section 1: IntroductionKPXI 48-Channel General Purpose Card User’s Manual
Introduction
The Model KPXI-DIO-48 is a general purpose, 48 channel digital input / output (DIO) product. The
KPXI-DIO-48 emulates two industry standard Programmable Peripheral Interface (PPI) chips
operated under mode zero configuration. The cards are compatible in hardware connections as
well as software programming.
Each PPI connector has 3 ports: PA, PB, and PC. The PC can also be subdivided into 2 nibblewide (4-bit) ports - PC Upper and PC Low. Each connector is corresponding to one PPI chip with
24 DIO points. The Model KPXI-DIO-48 is equipped with one 100-pin SCSI-type connector.
Features
Model KPXI-DIO-48 products provide the following advanced features:
Digital I/O ports
•48 TTL/DTL compatible digital I/O lines
•Emulates industry standard mode 0 of 8255 PPI
•Buffered circuits for higher driving
•Output status read-back
Timer/counter and interrupt system
•A 32 bit timer to generate watchdog timer interrupt
•A 16 bit event counter to generate event interrupt
•Programmable interrupt source
•Dual interrupt system
Miscellaneous
•On board fuses that can be reset protect the power supply from external devices
Applications
•Programmable mixed digital input & output
•Industrial monitoring and control
•Digital I/O control
•Contact closure, switch/keyboard monitoring
•Useful with A/D and D/A to implement a data acquisition & control system
Safety symbols and terms
The following symbols and terms may be found on the KPXI DIO series module or used in this
manual.
The symbol indicates that the user should refer to the operating instructions located in the
!
manual.
The symbol shows that high voltage may be present on the terminal(s). Use standard safety
precautions to avoid personal contact with these voltages.
The symbol on an instrument shows that the surface may be hot. Avoid personal contact to
prevent burns.
1-2Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
KPXI 48-Channel General Purpose Card User’s ManualSection 1: Introduction
The WARNING heading used in this manual explains dangers that might result in personal injury
or death. Always read the associated information very carefully before performing the indicated
procedure.
The CAUTION heading used in this manual explains hazards that could damage the unit. Such
damage may invalidate the warranty.
Specifications
Refer to the product data sheet for updated KPXI DIO card specifications. Check the Keithley
Instruments website at www.keithley.com for the latest updates to the specifications.
Unpacking and inspection
Inspection for damage
CAUTIONYour KPXI DIO series module contains electro-static sensitive components
that can be easily be damaged by static electricity.
Therefore, handle the card on a grounded anti-static mat. The operator should
be wearing an anti-static wristband, grounded at the same point as the
antistatic mat.
The KPXI General Purpose DIO series module was carefully inspected electrically and
mechanically before shipment.
Inspect the module carton for obvious damages. Shipping and handling may damage the module.
Make sure there are no shipping and handling damages on the module’s carton before continuing.
After opening the card module carton, extract the system module and place it only on a grounded
anti-static surface with component side up. Save the original packing carton for possible future
shipment.
Again, inspect the module for damages. Report any damage to the shipping agent immediately.
Shipment contents
The following items are included with every Model KPXI DIO series order:
•Model KPXI DIO series module
•CD containing required software and manuals
Instruction manual
A CD-ROM containing this User’s Manual and required software is included with each Model KPXI
General Purpose DIO series order. If a hardcopy of the Model KPXI-DIO Series User’s Manual is
required, you can order the Manual Package (Keithley Instruments Part Number Model KPXI-DIO900-01). The Manual Package includes an instruction manual and any pertinent addenda.
Always check the Keithley Instruments’ website at www.keithley.com for the latest revision of the
manual. The latest manual can be downloaded (in PDF format) from the website.
KPXI-DIO-900-01 Rev. A / January 2007Return to Section Topics1-3
Section 1: IntroductionKPXI 48-Channel General Purpose Card User’s Manual
Repacking for shipment
Should it become necessary to return the Model KPXI General Purpose DIO series module for
repair, carefully pack the unit in its original packing carton or the equivalent, and follow these
instructions:
•Call Keithley Instruments’ repair department at 1-888-KEITHLEY (1-888-534-8453) for a
Return Material Authorization (RMA) number.
•Let the repair department know the warranty status of the Model KPXI General Purpose
DIO series module.
•Write ATTENTION REPAIR DEPARTMENT and the RMA number on the shipping label.
•Complete and include the Service Form located at the back of this manual.
Supporting software
This section contains information on provided software. Keithley Instruments’ provides versatile
software drivers and packages for different systems. Keithley Instruments not only provides
programming libraries such as DLL’s for most Windows
software packages such as LabVIEW.
All software options are included in the Keithley Instruments’ CD.
1
®
based systems, but also drivers for other
Programming library KDIO-DRVR
KDIO-DRVR includes device drivers and DLL’s for Windows XP® and Windows 2000®. Therefore,
all applications developed with KDAQ-DRVR are compatible on Windows XP/2000. The
developing environment can be VB, VC++, BC5, or any Windows programming language that
allows calls to a DLL. Documentation includes a User's Guide (refer to
User’s Guide), and a Function Reference (refer to Appendix B: KDIO-DRVR Function Reference).
KDAQ-LVIEW LabVIEW® driver
KDAQ-LVIEW contains the VI’s, which are used to interface with National Instrument's Lab-VIEW®
software package. The KDAQ-LVIEW supports Windows XP/2000. The LabVIEW
shipped free with the board — you can install and use them without a license. Documentation
includes an Interface Guide (refer to
and an interface Function Reference (refer to Appendix D: KIDAQ®-LabVIEW Compatible
Section 2: InstallationKPXI 48-Channel General Purpose Card User’s Manual
Introduction
This section contains information about handling and installing Keithley Instruments’ KPXI series
cards:
•Handling precautions
•PXI configuration
•Installation
•Jumper description
•Termination boards connection
•PCB layout
Handling precautions
CAUTIONUse care when handling the KIDAQ
When handling, make sure to observe the following guidelines:
•Only handle the card on a grounded anti-static mat.
•Wear an an anti-static wristband that is grounded at the same point as the anti-static mat.
PXI configuration
Plug and play
As a plug and play component, the board requests an interrupt number via its cPCI controller. The
system BIOS responds with an interrupt assignment based on the board information and system
parameters. These system parameters are determined by the installed drivers and the hardware
load recognized by the system. If this is the first time a KIDAQ
on your Windows
detailed information.
Configuration
Configuration is done on a board-by-board basis for all PCI boards on your system. Configuration
is controlled by the system and software. There is no jumper setting required (or available) for
base address, DMA, and interrupt IRQ.
®
KPXI series cards. KIDAQ® KPXI series
cards contain electro-static sensitive components that can be easily damaged
by static electricity.
®
®
system, a hardware driver needs to be installed. Refer to Installation for
KPXI series card will be installed
The configuration is not static, but is subject to change with every boot of the system as new
boards are added or removed.
Troubleshooting
If your system doesn't boot or if you experience erratic operation with your PCI board in place, it's
likely caused by an interrupt conflict (perhaps the BIOS Setup is incorrectly configured). In
general, the solution, is to consult the BIOS documentation that came with your system.
2-2Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
KPXI 48-Channel General Purpose Card User’s ManualSection 2: Installation
Installation
Step 1. Install driver software
Windows® will find the new module automatically. If this is the first time a KPXI series digital I/O
card has been installed, a hardware driver needs to be installed. Use the following installation
procedure as a guide.
NOTEKeithley Instruments controllers are pre-loaded with the necessary drivers.
For Windows XP/2000:
1.Insert the CD shipped with the module. The CD should auto load. From the base menu
install the KDIO-DRVR. This is the hardware driver that recognizes the KPXI series
modules. If the CD does not auto load run, then under x:\KDIO-DRVR\DISK1\, you will find
SETUP.EXE (x is the drive letter of your CDROM). This will run the CD menu. On the CD
menu, click the driver for your model to install.
2.When you complete driver installation, turn off the system.
Step 2. Inspect module
Keeping the “Handling precautions” information in mind, inspect the module for damage. With the
module placed on a firm flat surface, press down on all socketed IC's to make sure that they are
properly seated.
If the module does not pass the inspection, do not proceed with the installation.
CAUTIONDo not apply power to the card if it has been damaged.
The card is now ready for installation.
Step 3. Install module
Remove power from the system and install the KPXI card in an available slot.
The PXI connectors are rigid and require careful handling when inserted and removed. Improper
handling of modules can easily damage the backplane.
To insert the module into a PXI chassis, use the following procedure as a guide:
1.Read through this manual and setup required jumpers (as needed). Refer to Jumper
description for additional information.
2.Turn off the system.
3.Align the module's edge with the card guide in the PXI chassis.
4.Slide the module into the chassis until resistance is felt from the PXI connector.
5.Push the ejector upwards and fully insert the module into the chassis. Once inserted, a
"click" can be heard from the ejector latch.
6.Tighten the screw on the front panel.
7.Turn on the system.
To remove a module from a PXI chassis, use the following procedure as a guide:
1.Turn off the system.
2.Loosen the screw on the front panel.
3.Push the ejector downwards and carefully remove the module from the chassis.
KPXI-DIO-900-01 Rev. A / January 2007Return to Section Topics2-3
Section 2: InstallationKPXI 48-Channel General Purpose Card User’s Manual
Figure 2-1
Typical PXI module installation
Typical PXI
chassis
Card guide
Front panel
screw
Modules edge
Ejector latch
Step 4. Verify installation
When the system is turned on for the first time with a new module present (or a module in a new
slot), Windows Add New Hardware Wizard attempts to locate the correct driver. If it cannot find
the correct driver, even after you have loaded the driver above in Step 1, then force the Add New Hardware Wizard to look in Windows system32 directory. The driver files should be in this
location. If they are not, shutdown the system, remove the module, and restart the installation
process.
When the Add New Hardware Wizard finishes, the window will verify whether or not installation
was successful. To confirm if the module is installed correctly at a later time, use Windows Device Manager. In the Device Manager under KIDAQ Boards, look for a device name matching the
model number of the newly installed board (see
installation is complete. If the board appears with a exclamation point or warning in Device
Manager, the installation was unsuccessful. If unsuccessful, use Device Manager to update the
2-4Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
Figure 2-2 for an example). If it is found,
KPXI 48-Channel General Purpose Card User’s ManualSection 2: Installation
driver or un-install the module, power down the system, remove the module, and attempt
installation again from Step 1.
Figure 2-2
Device manager (successful installation)
Jumper description
Model KPXI-DIO-48 DIO cards are plug-and-play, which makes it unnecessary to setup the card
configurations to fit the computer system. However, to fit users’ versatile operation environment,
there are still a few jumpers to set the power-on status of ports and the usage of the +12V output
pin.
Power on Status of Ports
For every port on a Model KPXI-DIO-48 card, the power-on status is set as input, therefore, the
voltage could be pulled high, pulled low, or floating. It is dependent on the jumper setting.
Table 2-1 lists jumper reference numbers and corresponding port names.
Table 2-1
Jumpers and Port names list
JumperPort Name
JA1P1A (Port A of PPI1)
JB1P1B (Port B of PPI1)
JC1P1C (Port C of PPI1)
JA2P2A (Port A of PPI2)
JB2P2B (Port B of PPI2)
JC2P2C (Port C of PPI2)
KPXI-DIO-900-01 Rev. A / January 2007Return to Section Topics2-5
Section 2: InstallationKPXI 48-Channel General Purpose Card User’s Manual
The physical meaning of all the jumpers are identical. The power on status of each port can be set
independently. The default is to pull all signals high. The following diagram use JA1 as an
example to show the possible configurations.
Table 2-2
JA1 jumper setting
Port A (PPI1 connector)JA1
Power-on pulled high12
Power-on pulled low12
Power-on floating*12
*Jumper is removed
12V Power Supply Configuration
Pin 50 on connector CN1 can be configured as a 12V power supply or ground (refer to Connector
pin assignment contained in Section 3 for detalied connector information). Refer to Table 2-3 for
the 12 volts power supply position. JP1 sets the pin to be 12V or ground. Connections with ground
are set as default. The following diagram shows the setting of JP1, connecting pin 50 to 12 volts.
Table 2-3
JP1 12V Power Supply Configuration
JP1 through JP2
(12V)12 (Ground)
Termination boards connection
There are two termination boards that can connect with Model KPXI-DIO-48 for I/O expansion:
Model KPXI-32-DIO-TB
Model KPXI-32-DIO-TB is equipped with a 50-pin ribbon connector. They are used for
general-purpose applications. Two of these can be used together along with a KPXI-DIO-CAB2 to
connect with the KPXI-DIO-48.
Model KPXI-DIO-TB
Model KPXI-DIO-TB is equipped with 100-pin SCSI-type connector. It can connect with the
Model KPXI-DIO-48 via the KPXI-DIO-CAB cable.
2-6Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
KPXI 48-Channel General Purpose Card User’s ManualSection 2: Installation
PCB layout
Model KPXI-DIO-48 PCB layout
Figure 2-3
Model KPXI-DIO-48 PCB Layout
PPI2
JC2 JB2
JA2
PCI
Controller
Chip
JA1 JB1 JC1
PPI1
KPXI-DIO-900-01 Rev. A / January 2007Return to Section Topics2-7
Section 2: InstallationKPXI 48-Channel General Purpose Card User’s Manual
This page left blank intentionally.
2-8Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
In this section:
Top icPa ge
Digital I/O ports................................................................................... 3-2
Pin assignment of Model KPXI-DIO-48 ............................................ 3-7
Section 3: Operation and ConnectionKPXI 48-Channel General Purpose Card User’s Manual
Digital I/O ports
Introduction
Model KPXI-DIO-48 can emulate one/two/four mode 0 configuration of 8255 programmable
peripheral interface (PPI) chips. There are 24 DIO signals for every PPI.
8255 Mode 0
The basic functions of 8255 mode 0 are:
•Two 8-bit I/O ports−−port A (PA) and port B (PB)
•Two nibble-wide (4-bit) ports C−−PC upper and PC lower
•Each port can be used as either input or output
•Outputs are latched whereas inputs are buffered
•16 different input/output configurations are available
Special function of the DIO signals
Two I/O signals (PC0 and PC3) of PPI1 and PPI2 can be used to generate hardware interrupt.
Refer to
can be used as an input signal of an event counter.
Interrupt multiplexing for details about the interrupt control. In addition, the P1C4 signals
Digital I/O port programming
Users can write the digital output value to or read back the digital signal level from the PPI ports by
using the software library. Here we define the port name in Table 4.1. These port names are used
both in software library and all through this manual.
Table 3-1
I/O Port Names
Connector
NumberPPI1PPI2
P1AP2A
Port
Name
There are four ports on every 8255 PPI, including port A,B,C and the control port. PA, PB and PC
could be written or read but the control port is write only.
P1BP2B
P1CP2C
P1CTRLP2CTRL
Control word
The control word written in the control port is used to setup PA, PB and PC as input or output port.
Figure 3-1 shows the format of the control word. Table 3-2 shows the 16 possible control words
and the respective I/O configurations .
3-2Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
KPXI 48-Channel General Purpose Card User’s ManualSection 3: Operation and Connection
The default configuration after power on, hardware reset or software reset sets all ports as input
ports, therefore the users don’t have to worry about damaging the external devices when system
is power on. In addition, the default signal level can be pulled high or pulled low by setting the
jumpers. Refer to
KPXI-DIO-900-01 Rev. A / January 2007Return to Section Topics3-3
Jumper description for setting the power on status of the DIO ports.
Section 3: Operation and ConnectionKPXI 48-Channel General Purpose Card User’s Manual
Output data concern
CAUTIONBe careful of the initial condition of digital output signals. If users set the con-
trol word as output port after power on, the previous uncertain output value
will be put on the output pins immediately. Therefore, BE SURE TO WRITE A
SAFE VALUE TO THE PORTS BEFORE CONFIGURING THEM AS OUTPUT
PORTS.
Timer/counter operation
Introduction
One 8254 programmable timer/counter chip is installed Model KPXI-DIO-48. There are three
counters in one 8254 chip and 6 possible operation modes for each counter. The block diagram of
the timer /counter system is shown in
Figure 3-2
Timer/counter system of Model KPXI-DIO-48
Figure 3-2.
P1C4
Trigger
Edge
Control
2 MHz Clock
The timer #1 and timer #2 of the 8254 chip are cascaded as a 32-bit programmable timer. In
software library, the timer #1 and #2 are always set as mode 2 (rate generator).
In software library, the counter #0 is used as an event counter, that is, interrupt on terminal count of
8254 mode 0.
General purpose timer/counter
The counter 0 is a general purpose timer/counter for users applications. It can be used as an event
counter, or used for measuring frequency, or other functions. The following modes are provided by
the 82C54 chip.
'H'
'H'
'H'
8254 Chip
C
Counter #0
G
C
Timer #1
G
C
Timer #2
G
Event IRQ
O
O
Timer IRQ
O
•Mode 0: Interrupt on Terminal Count
•Mode 1: Programmable One-Shot.
•Mode 2: Rate Generator.
•Mode 3: Square Wave Rate Generator.
•Mode 4: Software Triggered Strobe.
•Mode 5: Hardware Triggered Strobe.
3-4Return to Section TopicsKPXI-DIO-900-01 Rev. A / January 2007
Loading...
+ 167 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.