Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introducing 8254
Architecture
Of 8254
D7-D0
RD
W
R
A0
A1
CS
DATA
BUS
BUFFE
R
READ/
WRITE
LOGIC
CONTROL
WORD
REGISTER
COUNTE
R
0
COUNTER
1
CLK 0
GATE 0
OUT 0
CLK 1
GATE 1
OUT 1
COUNTER
2
CLK 2
GATE 2
OUT 2
4
Control Logic:
CS A1
0
0
0
0
0
1
0
1
A0 Select
0
Counter 0
1
Counter 1
0
Counter 2
1
Control Reg.
MODES OF 8254
MODE 0: Interrupt on terminal count.
MODE 1: Programmable 1 shot.
MODE 2: Rate generator.
MODE 3: Square wave generator.
MODE 4: Software triggered strobe.
MODE 5: Hardware triggered strobe.
8
Modes of Operation
of 8254
10
8259 PIC
Programming 8259A
Initialization Command
Words
ICW Format
ICW 1:
A0
0
D7
D6
D5
D4
D3
A7
A6
A5
D2
LTIM
D1
ADI
D0
SNGL IC 4
ICW 2:
A0
D7
D6
D5
D4
D3
D2
D1
D0
1
A8
A10
A9
A8 A15
(VECTOR ADDRESSES in case of MCS 80/85 system)
T3-T7
(five most significant bits of interrupt typeof MCS 8086/8088
system)
D7
S6
D6
S5
D5
D4
S4
D3
D2
S3
S2
D1
S1
D0
S0
D7
D6
D5
D4
D3
D2
D1
D0
ID2
ID1
ICW 4:
A0
1
D7
0
D6
0
D5
0
D4
D3
D2
D1
D0
SFNM BUF M/S AEOI mPM
D7 D6 D5 D4 D3 D2 D1 D0
M7 M6 M5 M4 M3 M2 M1 M0
OCW 2:
A0
D7
D6
1
L0
D5
R
0
0
1
D4
SL
0
1
0
D3
EOI
D2
0
D1
0
D0
L2
1
1
1
Command
1
0
mode (Set)
0
0
0
(Clear)
1
1
command
1
1
L1
OCW 3 :
A0
D7
0
RIS
D6
D5
0
D4
D3
ESMM SMM
D2
0
D1
D0
P
No Action 0
0
No Action 0
1
Read interrupt request Reg. reg. on next RD pulse 1
Read interrupt service reg. on next RD pulse 1
1
P =1 Poll Command
=0 No Poll Command
ESMM SMM
0
0
1
1
0
1
0
1
No Action
No Action
Reset Special Mask
Set Special Mask
RR
OCW Description
OCW 3 : ESMM (Enable Special Mask Mode) - When this
bit is set to 1 it enables the SMM bit to set or
reset the Special Mask Mode. When ESMM is 0 the
SMM bit becomes a ``don't care''.
SMM (Special Mask Mode) - If ESMM = 1 and SMM
= 1 the 8259A will enter Special Mask Mode. If
ESMM = 1 and SMM = 0 the 8259A will revert to
normal mask mode. When ESMM = 0, SMM has
no effect.
Cascader Mode
References
http://www.circuitstoday.com/
http://www.ti.com/lit/an/slyt145/slyt145.pdf
http://
8085projects.info/page/free-programs-for-8085-microproc
essor.html
http://www.learnabout-electronics.org/index.php
https://www.youtube.com/watch?v=nxAQ1PFEd5U
34
THANK YOU!