??? 09/22/07 05:44 Read: times |
#144909 - this sounds like a pulldown problem or similar Responding to: ???'s previous message |
You are not supposed to "wiggle" the pin to see it's input; it should be enough to simply *leave* it in its reset state, which is one.
This really sounds like if you have some sort of pulldown connected to the pin. If the pin is pulled low externally by a switch (practically zero impedance), then after the switch releases, further pulled low by some "weak" pulldown (in the order of few tens of kΩ), it remains low - the weak internal pullup can't source more than a couple tens of uA. However, if you then write to the port 0 then 1, for a brief moment after writing the 1, a strong internal pullup is switched on, sourcing several mA, overcoming the pulldown; and once the pin is in one, a medium internal pullup keeps the input in 1 (sourcing hundreds of uA). This is all "biblical" stuff, but can catch the unaware easily. See also Kai Klaas's excellent explanation here: http://www.8052.com/forum/read.phtml?id=121603 JW |
Topic | Author | Date |
upsd3354D GPIO input question | 01/01/70 00:00 | |
Pardon? | 01/01/70 00:00 | |
Clarifiaction | 01/01/70 00:00 | |
unless ... | 01/01/70 00:00 | |
this is easy to check... | 01/01/70 00:00 | |
Sorry | 01/01/70 00:00 | |
Problem fixed. | 01/01/70 00:00 | |
this sounds like a pulldown problem or similar | 01/01/70 00:00 | |
Thanks, but... | 01/01/70 00:00 | |
this is exactly what I am talking about | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
Welcome![]() | 01/01/70 00:00 |