Swaping DDR from output to input
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2008-06-12 4:35 AM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2008-06-12 4:35 AM
Posted on June 12, 2008 at 13:35
ST7FLITE2, it's in halt most of the time to save poer. Interrupts once a sec, but if I try and change PB3 from output to input and back the thing crashes big time. I go...
PBOR=0x00; // outputs to floating PBDDR=0x07; //PB3 to input PBOR=0xFF; // pullups /push pull I put a bit of delay between each to allow the ports to settle and reverse the process to get back...I thing the micro is timing out or getting a spurious interrupt.. Any ideas. Del (the cat)