Keyboard Input: Provides Multiplexed Display
Keyboard Input: Provides Multiplexed Display
Keyboard Input: Provides Multiplexed Display
2 Features of 8279
1. 1C 8279 provides a scanned interface to a 64-contact key matrix, with two more
keys CONTROL and SHIFT.
2. It provides three input modes for keyboard interface.
Review Question
1. List features of 8279.
12.3 Pin Description
.Fig. 12.3.1 shows functional and pin diagram of 8279. It is a 40 pin device and
looking at Fig. 12.3.1 (a) we can see that these pins are divided in four functional
groups
CPU interface Key data
Display data Scan
9*Vcc
IRQ Vcc
RLg-7K6 RL3 L 2 RLI
Key
DATA data CLK RLo
BUS SHIFT RO CNTLSTB
CNTL
STB
RL SHIFT
Sl
WR Rle L sLa
7 SL
CS RESETL slo
oUTAp-3 RDL 10 8279
WR OUT B
RESET OUT Bo3 Y
DBG 12
oUT Ba
DB,13 28 ouTB3
CLK DB 14
OUTA
D
DB 15
OUTA
DB16 OUTA2
DB 17 OUTA
DB18 BO
DB; 19
Cs
SHIFT
I t is a special key input line.
.Its status is stored along with the key position on the key closure in the scanned
keyboard modes.
I t has an active internal pullup to keep it high until a switch closure pulls it low.
CNTLISTB: Control/strobe
For scanned keyboard mode this line is used as a control input.
Like SHIFT key, its status is stored along with the key position on the key closure.
. I t also has an active internal pullup to keep it high until a switch closure pulls it
low
I n the strobed input mode this line is used as a strobe input. When activated,
loads the status of keyboard into the FIFO RAM.
These are used for sending data to display drivers from display RAM and
connected to the segment inputs of 7 segment display or row inputs of dot matrix
displays.
.These lines are synchronized to the scan lines (SLo-SL3) for multiplexed digit
display.
.In other words we can say that when the data on the scan lines is 0000, ports will
have data from register 0 of display RAM and when the data on the scan lines is
1111, ports will have data from register 15 of display RAM. The two 4-bit ports
can be blanked independently.
BD Blank Display
This is an active low output used to blank the display during digit switching or by a
display blanking command.
Review Question
1. Drarw the functional pin diagram of 8279 and explain the function of different pins.
Display Timing
and
registers control
Scan counter Retun
Shift
OUTAA OUT B-B3 BD
SL-SL RLoRL7 CNTL/ STB
Fig. 12.4.1
12.4.3 Keyboard Section
This section consists of return buffers, keyboard debounce and control,
FIFO/sensor RAM and FIFO/sensor RAM status. There functions depend on
selected keyboard mode out of three keyboard input modes: scanned keyboard,
sensor matrix and strobed input.
Return Buffers
The 8 return lines (RL7 - RLo) are buffered and latched by the return buffers
during each row scan in scanned keyboard or sensor matrix mode.
.In strobed input mode, the contents of the return lines are transferred to the FIFO
RAM on the rising edge of the CNTL/STB line pulse.
FIFO/Sensor RAM:
This is a dual function 8x8 RAM. In scanned keyboard and strobed input modes,
it is a FIFO. Each new entry is written into successive RAM positions and then
read in order of entry.
I n sensor matrix mode, the memory is referred to as sensor RAM. Each row of the
sensor RAM is loaded with the status of the corresponding row of sensor in the
sensor matrix.
12.4.4 Display Section
The display section consists of display RAM, display address registers and display
registers.
Display RAM:
I t is 16x8 RAM, which stores the display codes for 16 digits. It can be accessed
directly by CPU.
I n decoded mode, 8279 uses only first four locations of display RAM.
I n encoded mode, 8279 uses first eight locations for 8 digit display and all
16 locations for 16
digits display.
Display Address Registers
The display address registers hold the address of the byte currently being written
or read by the CPU and scan count value.
T h e read/write addresses are programmed by CPU command. If set in autoincrement
mode, address in the address register is incremented for each read or write.
Display Registers Display registers are two 4-bit registers A and B. They hold the bit
pattern of character to be displayed. The contents of display registers A and B can be
blanked and inhibited individually.