Instruction manual
Table Of Contents
- INTRODUCTION
- GETTING STARTED
- MAKING THE CONNECTIONS
- USING THE PC215E
- STRUCTURE AND ASSIGNMENTS OF THE REGISTERS
- Register Assignments
- Register Groups
- The Register Details
- Programmable Peripheral Interface PPI-X Data Register Port A
- Programmable Peripheral Interface PPI-X Data Register Port B
- Programmable Peripheral Interface PPI-X Data Register Port C
- Programmable Peripheral Interface PPI-X Command Register
- Programmable Peripheral Interface PPI-Y Data Register Port A
- Programmable Peripheral Interface PPI-Y Data Register Port B
- Programmable Peripheral Interface PPI-Y Data Register Port C
- Programmable Peripheral Interface PPI-Y Command Register
- Z1 Counter 0 Data Register
- Z1 Counter 1 Data Register
- Z1 Counter 2 Data Register
- Counter/Timer Z1 Control Register
- Z1 Counter/Timer Status Register
- Z2 Counter 0 Data Register
- Z2 Counter 1 Data Register
- Z2 Counter 2 Data Register
- Counter/Timer Z2 Control Register
- Z2 Counter/Timer Status Register
- Group Z Clock Connection Register
- Group Z Gate Connection Register
- Interrupt Source Selection Register
- Interrupt Status Register
- PROGRAMMING THE PC215E
- Copyright
- Files installed from the Distribution Diskette
- Windows DLL and Examples
- DOS 'C' Library and Examples
- Using the Dynamic Link Library
- Windows and DOS Library Functions
- Initialisation Functions
- Interrupt Control Functions
- Data Buffer Functions
- Timer/Counter Functions
- Differential Counter Functions
- Frequency Generation Functions
- Millisecond Stopwatch Functions
- Frequency Input and Output Functions
- Digitally- and Voltage-Controlled Oscillator Functions
- Digital Input/Output Functions
- Switch Scanner Matrix Functions
- Bi-Directional Data Bus Functions
- PC215E Library Error Codes
- PC215E Interface Guide For LABTECH NOTEBOOK
- Guide to User Programming
- Signal Centre
- CONTENTS
- DECLARATION OF CONFORMITY

PC215E Page 22
4.2.12 8-Bit Bi-Directional Bus
In mode 2 it is possible for an 82C55 PPI device to transfer data in two directions through a
single 8-bit port. In this mode, Port C handles the necessary control signals, Port A becomes
the 8-bit bi-directional port, and Port B is free to be programmed (with Group B) for basic input
or basic output operation. Please refer to the manufacturer's 82C55 data sheet included in the
appendices of this manual for a full description of the bi-directional bus operation mode of the
82C55 device.
Section 6.6.12 describes function DIOsetBiDirectionalBus which programs a given PPI chip for
this mode of operation. The PPI's Port C bit 3 interrupt source is used to generate PC215E
interrupts, which will occur when either
a) the device's Output Buffer is empty and ready for another data byte to write to
the Port A bus, or
b) the device's Input Buffer contains a data byte received from the Port A bus.
Two data buffers are required by the function: one which contains output data to be sent to Port
A (byte by byte) whenever a 'write' interrupt occurs, and another empty buffer into which in-
coming data will be stored (byte by byte) whenever a 'read' interrupt occurs. Please note that
functions enableInterrupts and disableInterrupts must be called to enable and disable these
interrupts.
Care must also be taken when connecting the Port C control signals to other devices on the bi-
directional bus.