Professional Documents
Culture Documents
Advanced Microprocessor
Introduction
It generates accurate time delays under software control. Instead of setting up timing loops in system software, the programmer configures the 8253, initializes one of the counters, to count the delay and interrupt the CPU when it has completed its tasks. The software overhead is minimized Includes three identical 16-bit counters that can operate independently. Three counters are identical presettable, down counters and can be programmed for either hexadecimal count or BCD count.
Advanced Microprocessor 2
Contd..
At the end of the count, it generates a pulse that can be used to interrupt the CPU. The counter can count either in binary or BCD. It facilitates on-the -fly reading of counters. To operate a counter, a 16-bit count is loaded in its control word register and, on command, it begins to decrement the count until it reaches 0. Counter can be programmed in six different modes. Compatible with all Intel and most other microprocessors. 8253 has powerful command called READ BACK command which allows the user to check the count value, programmed mode and current mode and current status of the counter.
Contd..
Each counter has two input signals CLOCK and GATE and one output signal OUT.
CLK: The clock input is the timing source for each of the internal counters. It is often connected to the bus controller. GATE: The gate input controls the operation of the counter in some modes. OUT: A counter output where the wave-form generated by the timer is available.
Advanced Microprocessor
Pin Diagram
Advanced Microprocessor
Advanced Microprocessor
Advanced Microprocessor
Advanced Microprocessor
Modes of Operation
Mode 0: Interrupt on terminal count. Mode 1: One-shot mode/ Programmable monoshot Mode 2: Rate generator or divide by N counter Mode 3: Square-wave generator Mode 4: Software triggered one-shot Mode 5: Hardware triggered one-shot
Advanced Microprocessor
10
Advanced Microprocessor
11
Advanced Microprocessor
12
Advanced Microprocessor
13
Advanced Microprocessor
14
Advanced Microprocessor
15
Advanced Microprocessor
16
THANKS
Advanced Microprocessor
17