Docsity

8254 Controller the timing control problems in a microprocessor, Slides of Microprocessor and Assembly Language Programming

Partial preview of the text

Download 8254 Controller the timing control problems in a microprocessor and more Slides Microprocessor and Assembly Language Programming in PDF only on Docsity!

8254 PROGRAMMABLE

TIMER/COUNTER

NAME: DRISTE MARIA PALMA

ID: 181120008

  • INTRODUCTION
  • 8254 is a device design to solve the timing control problems in a microprocessor.
  • It has 3 independent counters, each capable of handling clock inputs up to 10 MHz and size of each counter is 16 bit.
  • It operates in +5V regulated power supply and has 24 pin signals.
  • All modes are software programmable. The 8254 is an advanced version of 8253 which did not

offered the feature of read back command.

PIN DESCRIPTIONS

Pin Descriptions

Block diagram Descriptions

  • Block descriptions # READ/WRITE LOGIC:
The control section has five signals
1)RD (Read signal)
2)WR (Write signal)
3)4)CS (Chip Select signal)
5)Address line A
6)Address line A0Out - Writes Data To
Peripheral

Block diagram Descriptions DATA BUS B U F F E R : 8 Bit Bidirectional D0-D7 Connected To Data Bus Of Microprocessor Data is transmitted or received by two instruction : In - Reads Data From Peripheral Out - Writes Data To Peripheral

Operating Modes of 8254

  • Mode 0 (Interrupt on Terminal Count) – Mode 0 is typically used for event counting. After the Control Word is written, OUT is initially low, and will remain low until the counter reaches zero it is decremented by 1 after every clock cycle. OUT then goes high and remains high until a new count or a new Mode 0 Control Word is written into the counter. GATE = 1 enables counting, GATE = 0 disables counting.
  • Mode 1 (Hardware Retriggreable One Shot) – OUT will be initially high. OUT will go low on the CLK pulse following a trigger to begin the one-shot pulse, and will remain low until the counter reaches zero.
  • Mode 2 (Rate Generator) – Initially value of OUT is low. When counting is enabled, it becomes high and this process repeats periodically. Value of count = Input Frequency / Output Frequency. This mode works as a frequency divider.
  • Mode 3 (Square Wave Generator) – Counting is enabled when GATE = 1 and disabled when GATE = 0. This mode is used to generate square waveform and time period (equal to count) is generated. If N is count and is even then ontime of wave = N/2 and offtime = N/ If N is odd the ontime = (N + 1) / 2 and offtime = (N – 1) / 2
  • Mode 4 (Software Triggered Strobe) – In this mode counting is enabled by using GATE = 1 and disabled by GATE = 0. Initially value of OUT is high and becomes low when value of count is at last stage. Count is reloaded again for subsequent clock pulse.
  • Mode 5 (Hardware Triggered Strobe) – OUT will initially be high. Counting is triggered by a rising edge of GATE. When the initial count has expired, OUT will go low for one clock pulse and then go high again. After writing the Control Word and initial count, the counter will not be loaded until the clock pulse after a trigger

INTERFACING WITH 8286 MICROPROCESSOR

1)READ 2) WRITE 3)DATA
LINES
4) Selecting (Counter 0
Counter 1 Counter 2 CWR)
5)Generating Chip Select

THANK YOU ALL