This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using C language

I am new to the field of electronics in general and 8051's in specific.

I understand from literature that 8051 some of the pin can be configured as input as well as out put. In general in assemlbly code to read an input 'Logic one' is written to read the pin staus subsequentely.

I wish to know how the same is achieved in using 'C'. When i attmepted to do similarly in c51 it didnot work. May be i am missing something somewhere.
Will somebody spare sometime to make things clear a bit for me.