Hi,I'm using 8051 microcontroller and am new to c51 coding.Somebody pls help me how to write to 8255 using c. Thanks, lina
Take a look at the XBYTE macro in absacc.h
Are you doing the same class as Reny Luther? (S)He seems to be asking about exactly the same thing - but does at least seem to have managed to make a start on writing something: http://www.keil.com/forum/docs/thread6175.asp http://www.keil.com/forum/docs/thread6176.asp
"Take a look at the XBYTE macro in absacc.h" Or look-up the _at_ keyword in the Manual
Are you doing the same class as Reny Luther? If this is in school RUN AS FAST AS YOU CAN. You are being taught stuff that will get you fired if you apply it in real life. Erik
"You are being taught stuff that will get you fired if you apply it in real life." Not entirely. The 8255 is obsolete, but the general principles behind memory-mapped IO are still good. So, understand how XDATA access works - but don't waste too much time learning the intricacies of the 8255!