Roman Black email (remove spam text)
David VanHorn wrote:
> >I always do tristating like this:
> >clrf PORTB
> >movlw b'00100011'
> >(comment the bits here)
> >movwf TRISB
> This is VERY bad.
> That would make it impossible to work with any single bit, without
> glitching the entire port. I'm astounded if it's really true that you MUST
> glitch the port.
Actually I've never needed to change a pin from input
to output on the fly. I try and avoid that in my hardware
designs. I do drive some unusual loads from the PIC pins
so I get sensitive re pin states. I know a lot of guys
here do it so it is probably ok. I'll just shut up now.
http://www.piclist.com hint: To leave the PICList
See also: www.piclist.com/techref/microchip/ios.htm?key=i%2Fo
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the