16-13
INPUT/OUTPUT PORTS
{
/* Select pin values */
_SetEXRegByte(P1LTC, PortLtc1);
_SetEXRegByte(P2LTC, PortLtc2);
_SetEXRegByte(P3LTC, PortLtc3);
/* Select pin directions */
_SetEXRegByte(P1DIR, PortDir1);
_SetEXRegByte(P2DIR, PortDir2);
_SetEXRegByte(P3DIR, PortDir3);
/* Turn off weak resistors and select either I/O or peripheral mode */
_SetEXRegByte(P1CFG, Port1);
_SetEXRegByte(P2CFG, Port2);
_SetEXRegByte(P3CFG, Port3);
} /* Init_IOPorts */