Unit IV 8051 Microcontroller Interfacing ReadOnly - PPSX
Unit IV 8051 Microcontroller Interfacing ReadOnly - PPSX
INTERFACING
R.HARIHARAN AP/ EEE
R.HARIHARAN AP/ EEE
8255
Programmable
Peripheral Interface
16 BIT
COUNTER
16 BIT
COUNTER
Reset Status 1
Output Terminal 6 CLK
0 Input
Device Terminal
waits for writing
of0“Input
MODE Terminal
Instruction”
Input Terminal
0 Input Terminal
R.HARIHARAN AP/ EEE
TX Empty: Indicate all data
Transmitting
is been transmitted.Data :
Serial Converted
“SYNC MODE” TXEMPTY =1
sent out
If CPU writes TXEMPTY = 0
Device “Markedge
by leading Status”
of WRafter
resetting,
signal. Transmit is
disabled.
IfTransmitting Ready:
CTS = 1, written data will
Output
Ready
Terminal
to sent
transmit
not been out. data
ItIfwill
CTS =1 “out
sent TXonly
Disabled
after TX
is Output Terminal
status”
enabled.
Output Terminal
R.HARIHARAN AP/ EEE
TXC : Clock Input Signal
RXC : Clock Input Signal
data transfer speed of transmitted data.
data transfer speed of received data.
SYN MODE Input Terminal
: baud rate same as frequency
of TXC. Input Terminal
ASYNC MODE : select baud rate same as
frequency of TXC. 1, 1/16, 1/64.
Input Terminal
Contains character to ready to READ.
2 A0 RD WR Interpretation
2
0 1 0 Data from CPU to 8279
0 0 1 Data from 8279 to CPU
1 1 0 Command word from
CPU to 8279
1 0 1 Status word from 8279 to
CPU
R.HARIHARAN AP/ EEE
Scan Section
It has two modes, 1.Encoded mode 2.Decoded
mode.
ENCODED MODE:
It provide binary count from 0000 to 1111 by four
scan lines(SL3-SL0)by active high inputs.
It is externally decoded to provide 16 scan lines
Display use all 16 lines to interface 16 digit 7 segment
display.
But keyboard use only 8 scan lines out of 16 lines.