Menu
A+ A A-
Programmable Counter/Timer, Interrupt, Digital I/O PC/104 Module

Onyx-MM

Programmable Counter/Timer, Interrupt, and 48 line Digital I/O PC/104 Module

Description

Overview

PC/104 Programmable Counter/Timer, Interrupt, and 48 line Digital I/O

Extensive software control of features is the highlight of this digital I/O module featuring 48 digital I/O lines, 3 16-bit counter/timers, and 3 independent PC bus interrupt inputs.

The 48 digital I/O lines on Onyx-MM are based on 2 82C55 ICs. They can be programmed for input or output in groups of 8 lines. Direct as well as strobed (latched) I/O modes are supported, and all I/O lines are connected to 10K Ohm pull-up resistors.

The 3 16-bit counter/timers are based on an 82C54 IC. They are controlled through a configuration register on Onyx-MM (in addition to the standard 82C54 configuration register). The counter inputs can be switched between external signals, the on-board 4MHz clock oscillator, or counter outputs, all under software control. By using one counter's output as another counter's input, you can cascade counters in software to create a 32-bit or 48-bit counter.

Onyx-MM also features programmable interrupt operations. A second software-controlled register on board configures up to 3 interrupt lines on the PC bus. Interrupts can be generated by the counter/timer outputs, digital I/O lines, or an external input line. This allows you to use a counter to generate bus interrupts at a programmed periodic rate, generate hardware interrupts under software control, or generate interrupts in response to an external event.

Interrupt Configuration

A unique feature of Onyx-MM is its interrupt control. The board has three separate interrupt circuits, each with its own level select jumper block. A control register (shown below) allows you to select each interrupt's source from among counter outputs, digital I/O lines, or a dedicated external interrupt input line. You can also individually enable and disable each interrupt. All interrupt circuits are tristate / active high with jumper-enabled 1KOhm pull-down resistors to implement interrupt sharing in accordance with the PC/104 specification.

Digital I/O Operation

Onyx-MM has 48 digital I/O lines using 2 82C55 ICs. Each chip has 24 I/O lines organized as three 8-bit ports, A, B, and C. All I/O lines are connected to 10KOhm pull-up resistors, and on power-up or system reset, all ports reset to input and are pulled high. A control register on the 82C55 chip allows you to program each port for input or output and for different operating modes, including basic I/O, strobed I/O, and bit set/reset.

Mode 0 operation provides basic input and output operations. No handshaking signals are used. This is the most common method of digital I/O and is useful for reading status signals, turning switches on and off, etc. All three ports can operate in Mode 0.Mode 1 operation provides strobed I/O on ports A and B with handshaking signals provided on port C. In input mode, one signal acts as a strobe to latch data into the port, a second signal acts as an acknowledge output, and a third signal acts as an interrupt request. In output mode, one signal indicates that the CPU has written new data to the port, a second signal acts as an acknowledge input, and a third signal is used as an interrupt in response to the acknowledge input. This interrupt signal can be routed to one of the PC bus interrupt circuits on Onyx-MM through proper programming of the Onyx-MM interrupt configuration register described elsewhere on this page. Thus you can generate PC bus interrupts in response to new data being latched onto the board.

Mode 2 operation allows the use of Port A as a bi-directional data bus, with port C lines used for handshaking. Port A is normally in tristate mode. When the CPU writes new data to port A, an output signal indicates new data is available. In response, the external circuit strobes an acknowledge input signal, thereby enabling the output buffers on Port A. The external circuit can also latch new data into Port A with an input data strobe signal. Both input and output operations can be used to generate interrupts.

Bit set/reset mode enables individually setting (1) or resetting (0) any bit on Port C without having to read Port C and worry about masking or protecting unaltered bits. Note: The driver software shipped with Onyx-MM allows you to easily perform bit set and reset operations on any bit of any port.

Free Software

Onyx-MM comes with free driver software compatible with C and Basic languages. Example programs are included to get you started quickly. Some examples of the supported board operations are:

  • Digital input, bit, byte, and word
  • Digital output, bit, byte, and word
  • Interrupt-driven digital I/O with external trigger
  • Configure counter/timers and interrupts
  • Counter/timer-controlled interrupts
  •  

    Specifications

    Counter/Timers
    Chip 82C54-2
    Counter/timers 3, 16 bits wide
    Maximum input freq. 10MHz
    On-board osc. 4MHz ±.01%
    Signal type TTL
    Input voltage  
    Low: -0.5V min, 0.8V max
    High: 2.0V min, 5.5V max
    Input current -200µA max (low), 2µA max (high)
    Output voltage  
    Low: 0.0V min, 0.4V max
    High: 3.0V min, Vcc -0.4V max
    Output current ±2.5mA max, each line
    Pullup resistors 10KΩ all input lines
    Digital I/O
    Chip 82C55A (qty. 2)
    Number of I/O lines 48, TTL/CMOS Compatible
    Direction All lines programmable for input in groups of 4 and 8
    Output current ±2.5mA max, each line
    Pullup resistors 10KΩ all input lines
    Interrupts
    Number of interrupts 3
    Pull-down resistor 1KΩ resistor selectable via jumper on each interrupt
    Interrupt level 2 - 7
    Interrupt sources Counter/timer outputs, Interrupt input, or DIO lines CO (programmable)
    General
    Power supply +5V ±10% @ 120mA typical all outputs open
    Temperature -40° to +85°C extended
    PC/104 Bus 8 bits
    Weight 2.8 oz/79g
    RoHS Compliant

    Ordering

    Available Models:
    OMM-XT Onyx-MM 48 Digital I/O + 3 Counter/timers Extended Temperature
    C-50-18 50-conductor .1" pitch 18" ribbon cable Data Acquisition
    C-14-18 14-conductor 18" ribbon cable

    By Email

    By Phone

    Main: 604.814.5069
    Fax: 888.831.5149

    By Mail

    Tri-M Technologies Inc.
    208 – 31510 Gill Avenue
    Mission, BC, Canada  V4S 0A1

    Login or Register