??? 03/03/05 14:14 Read: times |
#88972 - It's depending on chip Responding to: ???'s previous message |
As Andy and Neil said on "classic" 8051 (or 8052) if you write the 1 to bit in register that match pin on microcontroller, it is setted as an input pin. But not all microcontrollers working same. For example Analog Devices ADuC832. In this case if you want to read from port P1, you have to set bit to 0, however, in the datasheet this is mentioned. The output works normal as Neil wrote. |
Topic | Author | Date |
on 8051 settings pins as input or output | 01/01/70 00:00 | |
re: setting pins as input or output | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
Do you not | 01/01/70 00:00 | |
It's depending on chip | 01/01/70 00:00 | |
depending on chip | 01/01/70 00:00 | |
No reason for negative Karma point | 01/01/70 00:00 | |
fine | 01/01/70 00:00 | |
not first post, not first time asked | 01/01/70 00:00 | |
Picky, picky, but no such thing! | 01/01/70 00:00 | |
oh, I did just that | 01/01/70 00:00 | |
Don't try this at home... | 01/01/70 00:00 | |
Maybe it still works... | 01/01/70 00:00 | |
Eh??? | 01/01/70 00:00 | |
It's a joke, don't take it too literaly | 01/01/70 00:00 | |
Sorry | 01/01/70 00:00 | |
My english is still so poor...![]() | 01/01/70 00:00 |