Chapter 32 USART (LIN / FIFO)
3.USART Pins
3. USART Pins
■ USART Pins
The USART pins also serve as general ports. Table
required to use USART.
Table 3-1 USART04 Pins
Pin name
Pin function
Port I/O or serial
SIN04
data input
Port I/O or serial
SOT04
data output
Port I/O or serial
SCK04
clock input/output
Port Bus
PDR
PFR
DDR
620
I/O format
CMOS output and
CMOS hystere-
sis, CMOS Auto-
motive hysteresis,
TTL input
Figure 3-1 Block Diagram of USART pins
PDR read
Peripheral output
3-1
lists the pin functions, I/O formats, and settings
Pull-up
Standby
Pull-down
control
Program-
Provided
mable
Peripheral input
Setting required to use
pin
Set port function mode:
PFR: bit0 = 1,
EPFR: bit0 = 0
Set to output enable mode:
SMR04: SOE = 1,
Set port function mode:
PFR: bit1 = 1
EPFR: bit1 = 0
Set port function mode:
PFR: bit2 = 1
EPFR: bit2 = 0
Set to output enable mode
when a clock is output
SMR04: SCKE = 1
Pin