Swaping DDR from output to input
Company  
ST Home | Microcontrollers

Index  »  ST7  »  Swaping DDR from output to input
     
   Swaping DDR from output to input
 Moderated by :   »  Jatin  -  laubey  -  Setler

Author
beginning argument    ( No reply )
d.hutchison1   Posted 12-06-2008 at 17:05   



Registered on :
06-12-2008

Messages : 1

 OFF-Line

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)



 Profile   Quote  
On Top

Search in the forums
 
Jump To