477
Chapter 30 I/O Ports
3.Port Register Settings
■ P18: The functions of Port 18 are controlled by PFR18 and EPFR18
P18[7:0] is input/output for LIN-UART serial communication signals SCK, SOT, SIN of channels 6 and 7, Up-/
Down-Counter inputs ZIN, BIN, AIN of channels 2 and 3, and Free Run Timer FRT inputs CK of channels 6 and
7. Otherwise, the port can be used as general purpose port.
PFR18.6 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
EPFR18.6 0 - Resource function is SCK7 input/output
1 - Resource function is ZIN3 and CK7 input
PFR18.5 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
EPFR18.5 0 - Resource function is SOT7 output
1 - Resource function is BIN3 input
PFR18.4 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
Resource function is SIN7 and AIN3 input
PFR18.2 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
EPFR18.2 0 - Resource function is SCK6 input/output
1 - Resource function is ZIN2 and CK6 input
PFR18.1 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
EPFR18.1 0 - Resource function is SOT6 output
1 - Resource function is BIN2 input
PFR18.0 0 - Port is in general purpose port mode.
1 - Port is in resource function mode:
Resource function is SIN6 and AIN2 input
Addr 7 6 5 4 3 2 1 0 initial
PFR18 0D92h - PFR18.6 PFR18.5 PFR18.4 - PFR18.2 PFR18.1 PFR18.0 -000 -000
EPFR18 0DD2h - EPFR18.6 EPFR18.5 - - EPFR18.2 EPFR18.1 - -00- -00-
R/W R/W R/W R/W R/W R/W R/W R/W