Hi, need someone to discuss this problem with: I have a board based on a 2138 where I have P0.20 connected as an input to read a button. When I was debugging this app. I noticed that I sometimes get false triggers of the button. I hooked up the scope but it did not check any activity on the pin. Deduced that this must be a configuration problem and checked that the pin was set as an input ( It was ) and that the PINSEL1 had P0.20 as a GPIO (and it was). I then just set up a loop that read the pin and write out a '1' or a '0' on one of the serial channels showing its state and what I see is a perfect 50% duty cycle waveform is present on the pin. The scope on the same pin does not show anything. How can this be possible. Suggestions welcome. Regards /Ake -- --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergavägen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 Company home: http://www.eurosource.se Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.eurosource.se/akhe Automated home: http://www.vscp.org
Message
Strnge problem with input
2005-11-28 by Ake Hedman, eurosource
Attachments
- No local attachments were found for this message.