Intel 386 User Manual page 492

Embedded microprocessor
Table of Contents

Advertisement

{
/* 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 */
INPUT/OUTPUT PORTS
16-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents