100% found this document useful (1 vote)
821 views

Interfacing 8253 Timer With 8085

The document discusses interfacing an 8253 Programmable Interval Timer with an 8085 microprocessor. It describes using the timer in Mode 3 to generate a square wave signal of 150 kHz at channel 0 by writing a count of 0A00 to the timer registers. The program divides the 1.5 MHz clock input to produce the 150 kHz output signal. Varying the count written to the registers allows changing the output frequency. Connecting channel 0 output to channel 2 clock stretches the period of the square wave by using the output as a new clock source.

Uploaded by

mohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
821 views

Interfacing 8253 Timer With 8085

The document discusses interfacing an 8253 Programmable Interval Timer with an 8085 microprocessor. It describes using the timer in Mode 3 to generate a square wave signal of 150 kHz at channel 0 by writing a count of 0A00 to the timer registers. The program divides the 1.5 MHz clock input to produce the 150 kHz output signal. Varying the count written to the registers allows changing the output frequency. Connecting channel 0 output to channel 2 clock stretches the period of the square wave by using the output as a new clock source.

Uploaded by

mohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

INTERFACING 8253 TIMER WITH 8085

Interfacing 8253 Programmable Interval Timer with 8085 p


AIM:
To interface 8253 Interface board to 8085 p and verify the operation of
8253in six different modes.

APPARATUS REQUIRED:
8085 p kit, 8253 Interface board, DC regulated power supply, VXT
parallel bus, CRO.
Mode 3 Square wave generator:
It is similar to Mode 2 except that the output will remain high until one half
of count and go low for the other half for even number count. If the count is
odd, the output will be high for (count + 1)/2 counts. This mode is used of
generating Baud rate for 8251A (USART).

Example:
We utilize Mode 0 to generate a square wave of frequency 150 KHz
at channel 0.
Address Opcodes Label Mnemonic Operands Comments
4100 3E 36 START: MVI A, 36 Channel 0 in mode 3
4102 D3 CE OUT CE Send Mode Control
word
4104 3E 0A MVI A, 0A LSB of count
4106 D3 C8 OUT C8 Write count to register
4108 3E 00 MVI A, 00 MSB of count
410A D3 C8 OUT C8 Write count to register
410C 76 HLT

71
Set the jumper, so that the clock 0 of 8253 is given a square wave of
frequency 1.5 MHz. This program divides this PCLK by 10 and thus the
output at channel 0 is 150 KHz.
Vary the frequency by varying the count. Here the maximum
count is
FFFF H. So, the square wave will remain high for 7FFF H counts and
remain low for 7FFF H counts. Thus with the input clock frequency of 1.5
MHz, which corresponds to a period of 0.067 microseconds, the
resulting square wave has an ON time of 0.02184 microseconds and an
OFF time of 0.02184 microseconds.
To increase the time period of square wave, set the jumpers such
that CLK2 of 8253 is connected to OUT 0. Using the above-mentioned
program, output a square wave of frequency 150 KHz at channel 0. Now
this is the clock to channel 2.

Result: Thus the 8253 has been interfaced to 8085 p and


Mode 3 of 8253 have been studied.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy