Instruction manual

Table Of Contents
Page
27
PC215E
5.3.3 Programmable Peripheral Interface PPI-X Data Register Port C
This eight bit register writes to and reads from port C of the 82C55 Programmable Peripheral
Interface PPI-X. All input/output lines PC0 to PC7 of this device are available to the user on
connector SK1 as digital I/O.
Register
Offset
Write and/or
Read
Register
Width
Register
Title
Mnemonic
02
16
Write and Read 8 bits
82C55 Programmable Peripheral
Interface X Port C Data Register
PPI-X C
FUNCTION
The PPI-X Port C Data Register is used to write or read 8 bit data to a port of the 82C55
Programmable Peripheral Interface device
The PPI can be configured to operate in several modes. Further details may be found by
reference to the device manufacturer's 82C55 data sheets in the appendices.
The eight data bits of port C are split into two groups, the upper port C bits 4 to 7 and the lower
port C bits 0 to 3. These bits can be data input, data output or control/handshake lines according
to the PPI mode:
Mode Port C Upper Port C Lower
Mode 0 Input or Output Input or Output
Mode 1 Control/Data Control/Data
Mode 2 5 bit Control (PC3 to PC7) 3 bit Control/Data (PC0 to PC2)
With bit 7 'Command Select' set to '0', any of the eight bits of port C can be set or reset using a
single output instruction. When port C is being used as status/control for port A or port B, these
bits can be set or reset using the Bit Set/Reset operation just as if they were data output ports.
The modes and programming of PPI operations are outlined in chapters 4 and 6 with the Digital
I/O connections shown in chapter 3.
BIT ASSIGNMENTS
The bit layout of the PPI-X Port C data register is shown below.
01234567
PPI-X Port C Upper
Byte Data Bits
PPI-X Port C Lower
Byte Data Bits
SK1 Pin
Connections
SK1 44
SK1 5
SK1 63
SK1 24
SK1 4
SK1 62
SK1 23
SK1 42
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7