| ??? 08/11/99 13:20 Read: times |
#635 - RE: How to init ports(P1,P2...) as Input or Output |
8051 port schematics is very simple. There is an open drain output transistor that pulls output to the ground. Pullup resistor sets hi level when writing 1 to the output. If you want to use it as an input, you must write 1 to the output so external device will pull input to the gnd.
Of course there is some logic behind but you don't have to take care of it. |
| Topic | Author | Date |
| How to init ports(P1,P2...) as Input or Output? | 01/01/70 00:00 | |
| RE: How to init ports(P1,P2...) as Input or Output | 01/01/70 00:00 | |
RE: How to init ports(P1,P2...) as Input or Output | 01/01/70 00:00 |



