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 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
if someone has kept code from ages ago, possibly. The days when the 8255 was used, the king of diamonds were still a jack.
Why do you want to use such an antique.
If this is a school assignment, ask for your monet back and RUN. Then find a place that teaches current technology.
Erik
"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
Actually, if it's a school assignment you should be doing it yourself and not cheating by asking for the answers here!
And if it is a school assignment, you should do it just for the experience, but realise that there are better ways to achieve it with modern devices...
A number of people have made questions about the 8255 as port expansion. Must be a school using it somewhere...