BAT32G1x9 user manual | Chapter 22 CAN control
921 / 1149
Rev.1.02
22.7.25
Serial communication pin select register 1 (PIOR3).
The PIOR3 register is used to switch the input source to the timer array unit and the CAN0
communication pin. This register can be read or written in 8-bit form.
The PIOR3 registers can be used to select the CTxD0 and CRxD 0 pins on two different ports.
Figure 22-50. Serial communication pin select register
1
format
(PIOR3
).
Address: 0x4004087C
reset value: 00H
R/W
7
6
5
4
3
2
1
0
PIOR3
PIOR33
CAN0
communication pin selection
CTxD0
CRxD0
0
P02
P03
1
P51
P50
22.7.26
Port mode registers 0/4/5/6 (PM0/4/5/6).
The PMx register is used to set port x as input or output.
When using the P02/CTxD0 or P51/CTxD0 or P64/CTxD1 or P46/CTxD2 pins for serial data output, clear the
PM02 or PM51 or PM64 or PM46 bits to "0" and set the output latch of the P02 or P51 or P64 or P46 to "1".
When using the P03/CRxD0 or P50/CRxD0 or P65/CRxD1 or P47/CRxD2 pins for serial data input, the
PM03 or PM50 will be used or PM65 or PM47 bits set to "1". At this point, the output latch of the P03 or P50 or
P65 or P47 may be "0" or "1"
The PMx register can be set using the 8-bit memory manipulation instructions. Setting these registers to FFH
produces a reset signal.
0
0
0
0
WORST33 WORST32
WORST31 WORST30