hi friends,
i wanted to increase the port pins with the help of 8255 for 89c51 mcu(atmel)
does any one have the c codes that can work with keil uvision (or c51 compiler). i simply require a sample program with which if i push a switch on any port pin of 89c51 and i can lit an LED DIODE connected on a single 8255 port pins.
your help can make a great fevour for me.
"i simply require a sample program with which if i push a switch on any port pin of 89c51 and i can lit an LED DIODE connected on a single 8255 port pins."
To provide that, we would at least need to know how your 8255 is connected to the 89c51: Is it memory mapped? Is it just connected to port pins - if so, how?
Have you read the Datasheet for the 8255?
See also: http://www.keil.com/forum/docs/thread11507.asp
A number of people have made questions about the 8255 as port expansion. Must be a school using it somewhere...