??? 07/03/07 12:28 Read: times |
#141441 - Input or output ? |
Hello!
I'm new user of 8051 microcontrollers. Until now I used Microchip microcontrollers but for this project I have to use AT89S52 and KEIL C compiler. 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? Thank you! |
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 |