Last updated on June 13th, 2020 at 08:31 pm
Using the 82C55A, we can control LED lights. We can use the pins of one port to connect with one leg of the LEDs and pins of another port to connect rest of the legs. Then we can program the 82C55A to control the LEDs. It can be done with a program like the one given below,
Here first of all we are setting the command byte as A. Then we are sending 10101000 value to port A, in that way we are giving 1’s to LED0, LED2 and LED4. After that, sending 00000000 to port B. Now, those LED’s which has 1 at one leg and 0 at another will light up. So here, the LED0, LED1 and LED4 will light up.