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 - 27th May 2010 03:01
Number of Views: 10215
This is an effort to help users understand how the I2C command works by comparing it with SHIFTIN/SHIFTOUT. A serial EEPROM, 24FC1025 will be used in the example.
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.