The important part is to set the PORT (or LAT) registers BEFORE setting the TRIS registers to outputs.
Otherwise the pins will be in output mode for a period of time but the outputs aren't specified.
Published on - 5th December 2010 17:58
Number of Views: 9761
Hi,
Here's a short list of Frequently Asked Questions that should be of interest for most beginners. Don't hesitate to read them... they're not going to bite you
...
Re: I/O Pin status during startup
The important part is to set the PORT (or LAT) registers BEFORE setting the TRIS registers to outputs.
tumbleweed Today, 20:01Otherwise the pins will be in output mode for a period of time but the outputs aren't specified.