Professional Documents
Culture Documents
Microprocessors
Microprocessors
1. MICROPROCESSOR
2. MEMORY
3. I/O DEVICES
Memory
Micro processor
I/O
* Programmable systems
* Embedded systems
A ALU
L
U
Memory
Reg.. Select
Instruction Reg.. Reg.. Register
Decoder H (8) L (8) Array
Arithmetic Reg.. Reg..
and
Logic Stack Pointer (16)
Unit Machine
(ALU) Cycle (16)
(8) Program Counter
Encoding
Incrementer/Decrementer
Power Supply +5V Address Latch (16)
GND
S Z AC P CY
• The 8255 has 24 I/O pins that can be grouped in two 8-bit
Parallel ports (A&B) and remaining 8-bits act as port C.
Group
Bidirectional Data Bus A I/O
Port C PC7-PC4
Data Upper
D7-D0 Bus (4)
Buffer
8-Bit
Internal Group
Data B
Bus Port C I/O
Lower PC3-PC0
(4)
RD
Read Group Group
WR Write B I/O
B
A1 Control Control PB7-PB0
Port
A0 Logic B
RESET (8)
CS
CS A1 A0 Selected
0 0 0 Port A
0 0 1 Port B
0 1 0 Port C
0 1 1 Control Register
1 X X 8255A is not selected
1 = I/O Mode
0 = BSR Mode
Processor Data bus is connected to data bus of the 8255. And port
A of 8255 is connected to the data out of A/D converter. PC0 is
connected to B/C of the A/D converter. PC7 is connected to
DR of the A/D converter.
NC 1 18 NC
27
D7 D7 37
PA7 2 D7 13
38 Analog Impute
Data Bus PA6 3
39
PA5 4
34 40 16
D0 D0 PA4 5 AD570 Digital Common (+ 5 V Common
1 15
PA3 6 Shorted to Common
2
PA2 7 For Unipolar ( 0 to 10 V)
3
PA1 8 D0
4 14
PA0 9
DR B/C
6 17 11 Analog
A15 CS PC7 Common
A1 8 (- 15 V Common)
A1
A0 9 PC0
A0 14 START Plus
5
MEMR RD At least
36
MEMW WR Port B Not Used 2µs
RESET
35
RESET
OUT (8085)
• The 8254 includes three identical 16-bit counter that can operate
independently in any one of the six modes.
RD (read)
WR (write)
CS (chip select)
Address Lines (A0,A1)
RD CLK 1
Read/
WR Counter
Write = 1 GATE 1
AO Logic
A1 OUT 1
CS
CLK 2
Control
Counter GATE 2
Word
= 2
Register
OUT 2
Internal Bus
A1 A0 Selection
0 0 Counter 0
0 1 Counter 1
1 0 Counter 2
1 1 Control Register