piclist 2001\01\02\111547a >
Thread: Picky I/O
picon face BY : Drew Vassallo email (remove spam text)

> > Well, yes it is.  The only thing you really have to watch out for is the
> > state of the pin when you switch from input to output.  If the pin is
> > high as an input, then switched to an output, the port latch will be
> > loaded
> > with the input value (high) and remain until it is reloaded with a new
> > value.
> >
>Umm..I don't think that statement is entirely accurate.  When the pin is
>switched to an output (by modifying the TRIS register), whatever is in the
>the port latch is output on the pin.  The critical point is that you cannot
>guarantee what is in the output latch if you have performed ANY Read Modify
>Write operations on the port latch since that pin was configured as an
>input.  The only safe ways this can be done is to either set the output

Of course you're right.  I think I omitted that critical piece of
information in my haste to make it brief.  I believe, though, that I
included this information later on in my message.  Sorry for the confusion.

Get your FREE download of MSN Explorer at http://explorer.msn.com

http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


See also: www.piclist.com/techref/microchip/ios.htm?key=i%2Fo
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Picky I/O

month overview.

new search...