SETHU INSTITUTE OF TECHNOLOGY
DEPARTMENT OF ECE
Year/Sem: III/V Subject: 01UEC505 - Microprocessors,Microcontrollers and Applications
Tutorial – 7
1. Interface 8255 with 8085 .Write a program to read the DIP switches and display the reading
from Port B at port A and from port CL at port CU.
2. Interface a temperature sensor using ADC and port A of 8255.Interface a fan and heater
using optocoupler and triacs to drive the I/O devices.Write a program to read the
temperature.If temperature is less than 100 C,turn on the heater and if temperature is
higher than 350C,turn on the fan.
Prepared by Approved by
SETHU INSTITUTE OF TECHNOLOGY
DEPARTMENT OF ECE
Year/Sem: III/V Subject: 01UEC505 - Microprocessors,Microcontrollers and Applications
Tutorial – 8
1. Write a subroutine to initialize counter 0 in 8254 in mode 0 with a count of 50,00010.The
subroutine should also include reading counts on the fly.When the count reaches zero,it
should return to the main program.Write a main program to display seconds by calling the
subroutine as many times as necessary.
2. Write instructions to generate 1 KHz square wave from counter 1.Assume the gate of
counter 1 is tied to +5V through a 10k resistor.Explain the significance of connecting the gate
to +5V.
Prepared by Approved by
SETHU INSTITUTE OF TECHNOLOGY
DEPARTMENT OF ECE
Year/Sem: III/V Subject: 01UEC505 - Microprocessors,Microcontrollers and Applications
Tutorial – 9
1.Display the word “HELLO HELLO” using 8279.
2.Write instructions to implement a traffic light controller using 8255.
The signal lights and signs should be turned on/off by the data bits of an output port as
LIGHTS Data bits ON Time
1. Green D0 15 sec
2. Yellow D2 5 sec
3. Red D4 20 sec
4. WALK D6 15 sec
5. DONT’T WALK D7 25 sec
Prepared by Approved by