BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
596 / 1149
Rev.1.02
19.3.17
Registers that control serial input/output pin port functions
When using a universal serial communication unit, control registers for port functions that are multiplexed
with the object channel (port mode registers (PMxx), port registers (Pxx), and port mode control registers
(PMCxx)) must be set. For details, please refer to "2.3.1 Port Mode Register (PMxx)", "2.3.2 Port Register
(Pxx.) for details and "2.3.6 Port Mode Control Registers (PMCxx)".
The set port mode registers (PMxx), port registers (Pxx), and port mode control registers (PMCxx) vary by
product. For details, please refer to "Register Settings when Using the Multiplexing Function in 2.5".
When using the multiplex port of the serial data output pin or serial clock output pin as the serial data output
or serial clock output, the position of the port mode control register (PMCxx) and the position of the port
mode register (PMxx) must be "0" and the position of the port register (Pxx) "1" must be used for each port.
In addition, when used for N-channel open-drain output mode, the position of the port output mode register
(POMxx) corresponding to each port must be "1".
(Example) P02 is used as a serial data output in case the port mode
controls register 0 at PMC02 position "0". Place the PM02
position "0" of port mode register 0. Place the P02 position of
port register 0 "1".
When using the multiplexing port of the serial data input pin or serial clock input pin as a serial data input
or serial clock input, the position of the corresponding port mode register (PMxx) for each port must be "1" and
the position of the port mode control register (PMCxx) "0". At this point, the bit of the port register (Pxx) can be
"0" or "1".
In addition, when used as a TTL input buffer, the position of the port input mode register (PIMxx)
corresponding to each port must be "1".
(Example) P03 is used as a serial data input in case the port mode
controls the PMC03 position "0" of register 0. Place the PORT
mode register 0 at PM03 position "1". Place the P03 position of
port register 0 at "0" or "1".