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.
I suggest you read the uVision Getting Started guide, and work through the examples in there - they include port IO.