TC1796
Peripheral Units (Vol. 2 of 2)
Controller Area Network (MultiCAN) Controller
User’s Manual
22-205
V2.0, 2007-07
MultiCAN, V2.0
22.9.4
Port and I/O Line Control
The interconnections between the MultiCAN module and the port I/O lines are controlled
in the port logic. Additionally to the port input selection, the following port control
operations must be executed:
•
Input/output function selection (IOCR registers)
•
Pad driver characteristics selection for the outputs (PDR registers)
22.9.4.1 Input/Output Function Selection in Ports
The port input/output control registers contain the bit fields that select the digital output
and input driver characteristics such as pull-up/down devices, port direction
(input/output), open-drain, and alternate output selections. The I/O lines for the MultiCAN
module are controlled by the port input/output control registers P6_IOCR8 and
P6_OCR12.
shows how bits and bit fields must be programmed for the required I/O
functionality of the CAN I/O lines.
Table 22-16 MultiCAN I/O Control Selection and Setup
Module Port Lines
Input/Output Control Register
Bits
1)
1) Possible PCx bit field combinations see
I/O
CAN
P6.8 / RXDCAN0
P6_IOCR8.PC8 = 0XXX
B
Input
P6.9 / TXDCAN0
P6_IOCR8.PC9 = 1X01
B
Output
P6.10 / RXDCAN1
P6_IOCR8.PC10 = 0XXX
B
Input
P6.11 / TXDCAN1
P6_IOCR8.PC11 = 1X01
B
Output
P6.12 / RXDCAN2
P6_IOCR12.PC12 = 0XXX
B
Input
P6.13 / TXDCAN2
P6_IOCR12.PC13 = 1X01
B
Output
P6.14 / RXDCAN3
P6_IOCR12.PC14 = 0XXX
B
Input
P6.15 / TXDCAN3
P6_IOCR12.PC15 = 1X01
B
Output