??? 07/03/07 21:01 Read: times |
#141459 - it doesn't Responding to: ???'s previous message | ||||||||||||||
Lucian Gherca said:
My question is how can I set one pin of the microcontroller to be input or output?
In one exmples I found the following line (in C language): P2_0 = 1; /* Configure P2.0 as an input */ But how does the compiler make the difference between setting P2.0 as input and putting a high level on pin P2.0? Simple answer: it doesn't. For the real reason, RTFDS and Topic | Author | Date | Input or output ? | | 01/01/70 00:00 | http://www.8052.com/faqs.phtml?FAQ=120176 | | 01/01/70 00:00 | it doesn't | | 01/01/70 00:00 | it doesn't | ![]() | 01/01/70 00:00 | |