Instruction manual

Table Of Contents
Page
33
PC215E
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-Y port C data register is shown below.
5.3.8 Programmable Peripheral Interface PPI-Y Command Register
This is the command register for the PPI and can be used to set the operational mode of the
three digital I/O ports or to manipulate the bits of port C.
Register
Offset
Write and/or
Read
Register
Width
Register
Title
Mnemonic
0B
16
Write 8 bits
82C55 Programmable Peripheral
Interface PPI-Y Command
Register
PPI-Y CMD
FUNCTION
Provides a command word to define the operation of the PPI-Y ports A, B and C. Any port
programmed as output is initialised to all zeroes when a command word is written. A separate
feature allows any bit of port C to be set or reset using a single instruction.
The programming procedure for the 82C55 is flexible, but the command word must be written
before data bytes are loaded. As the command register and each port have separate addresses
(offsets 0 to 3) and each command word specifies the mode of each port, no other special
instruction sequence is required.
The Three Modes
The register function depends on the setting of bit 7 'Command Select' and the three mode
selections assume that bit 7 is set to '1'. which allows mode configuration.
01234567
PPI-Y Port C Upper
Byte Data Bits
PPI-Y Port C Lower
Byte Data Bits
SK1 Pin
Connections
SK1 70
SK1 31
SK1 50
SK1 11
SK1 30
SK1 49
SK1 10
SK1 68
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7