Diamond Systems 16-Channel 12-Bit Analog Output PC/104 Module Output Operations, Input Operations

Page 29

 

82C55A

 

 

tWOB

 

WR

 

 

 

tAOB

 

OBF

 

 

INTR

tWIT

 

 

 

ACK

 

 

 

tAK

tAIT

OUTPUT

 

 

 

tWB

 

FIGURE 9. MODE 1 (STROBED OUTPUT)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PA7-PA0

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

STBA

CONTROL WORD

 

 

RD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC5

 

 

 

 

 

 

IIBFA

D7

D6

D5

D4

D3

D2

D1

D0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC3

 

 

 

 

 

 

INTRA

1

0

1

1

1/0

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC6, PC7

 

 

 

 

 

 

I/O

 

 

 

 

 

 

 

 

PC6, PC7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = INPUT

PB7, PB0

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 = OUTPUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OBFB

 

 

 

 

 

 

 

 

WR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACKB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC0

 

 

 

 

 

INTRB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT A - (STROBED INPUT)

 

 

 

 

 

 

 

 

 

 

 

 

PORT B - (STROBED OUTPUT)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PA7-PA0

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OBFA

CONTROL WORD

 

 

WR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D2

D1

D0

PC6

 

 

 

 

 

 

ACKA

D7

D6

D5

D4

D3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC3

 

 

 

 

 

 

INTRA

1

0

1

0

1/0

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC4, PC5

 

 

 

 

 

 

I/O

 

 

 

 

 

 

 

 

PC4, PC5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = INPUT

PB7, PB0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 = OUTPUT

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

STBB

 

 

 

 

 

 

 

 

RD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC1

 

 

 

 

IBFB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC0

 

 

 

 

INTRB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT A - (STROBED OUTPUT)

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT B - (STROBED INPUT)

Combinations of Mode 1: Port A and Port B can be individually defined as input or output in Mode 1 to support a wide variety of strobed I/O applications.

FIGURE 10. COMBINATIONS OF MODE 1

Operating Modes

Mode 2 (Strobed Bi-Directional Bus I/O)

The functional configuration provides a means for communi- cating with a peripheral device or structure on a single 8-bit bus for both transmitting and receiving data (bi-directional bus I/O). “Hand shaking” signals are provided to maintain proper bus flow discipline similar to Mode 1. Interrupt gener- ation and enable/disable functions are also available.

Mode 2 Basic Functional Definitions:

Used in Group A only

One 8-bit, bi-directional bus Port (Port A) and a 5-bit control Port (Port C)

Both inputs and outputs are latched

The 5-bit control port (Port C) is used for control and status for the 8-bit, bi-directional bus port (Port A)

Bi-Directional Bus I/O Control Signal Definition

(Figures 11, 12, 13, 14)

INTR - (Interrupt Request). A high on this output can be used to interrupt the CPU for both input or output operations.

Output Operations

OBF - (Output Buffer Full). The OBF output will go “low” to indicate that the CPU has written data out to port A.

ACK - (Acknowledge). A “low” on this input enables the three-state output buffer of port A to send out the data. Oth- erwise, the output buffer will be in the high impedance state.

INTE 1 - (The INTE flip-flop associated with OBF). Con- trolled by bit set/reset of PC4.

Input Operations

STB - (Strobe Input). A “low” on this input loads data into the input latch.

IBF - (Input Buffer Full F/F). A “high” on this output indicates that data has been loaded into the input latch.

INTE 2 - (The INTE flip-flop associated with IBF). Controlled by bit set/reset of PC4.

10

Image 29 Contents
RUBY-MM-1612 Table of Contents Description O Header Pinout Signal Name DefinitionBase Address Board ConfigurationBase Address Configuration Header J5 Position Hex Decimal Adjustable Reference Voltage Analog Output Range ConfigurationOn-Board Reference Full-Scale Voltage Selection Full-Scale VoltageAnalog Output Configuration Header J4 Range RUBY-MM-1612 Board Drawing Base + Write Function Read Function Reset informationRuby-MM-1612 I/O Map Register Definitions Base + 0 or 1, Read Update DACsBase + 0, Write DAC LSB register Base + 1, Write DAC MSB registerBase + 3, Write External trigger register 82C55 Digital I/O Chip Operation Configuration Register82C55 Register Map DefinitionsFull Scale Analog Output Ranges and ResolutionFull Scale 1LSB 10. D/A Code Computation Output Code Explanation Output Voltage for ±5V Range Offset Binary Coding for bipolar output rangesLSB = 1/2048 x Full-Scale Voltage To generate an analog output on one or more channels HOW to Generate AN Analog OutputHardware Update Command Two channel output Examples Single channel outputCalibration Procedure Miscellaneous SpecificationsOrdering Information FeaturesDescription Pinouts82C55A Pin Description Functional DiagramData Bus Buffer 82C55A Functional DescriptionRead/Write and Control Logic Group a and Group B Controls82C55A Mode SelectionOperational Description Ports A, B, and COperating Modes Single Bit Set/Reset Feature FigureInterrupt Control Functions Inte Flip-Flop DefinitionMode 0 Configurations Mode 0 Basic InputMode 0 Basic Output Control Word #4 Control Word #8 IBF Input Buffer Full F/F Input Control Signal DefinitionSTB Strobe Input Intr Interrupt Request Output Control Signal DefinitionBi-Directional Bus I/O Control Signal Definition Mode 2 Strobed Bi-Directional Bus I/OOutput Operations Input OperationsMode Control Word Mode 2 Combinations Current Drive Capability Special Mode Combination ConsiderationsReading Port C Status Figures 15 Applications of the 82C55A