On Tue, Jan 23, 2007 at 04:31:33PM -0500, Jim Wagner wrote: > Several of the data sheets have comments about changing port > direction. If you don't do it "right", you can get an unwanted > single-instruction transient on the port pin. > > At the moment, I don't recall the details but it might be worth > checking one of the newer data sheets (such as Mega48). Thought after posting to mention changing from output to input shouldn't be of much trauma. No need to change the output values ahead of time. However when changing from input to output one ought to preload the register with the values one desires to see on the output. And once again make sure the control lines to whatever are in appropriate state to ignore changes data direction. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Message
Re: [AVR-Chat] Changing ports from output to input
2007-01-23 by David Kelly
Attachments
- No local attachments were found for this message.