Datasheet

MSCAN Controller
Technical Data MC68HC912D60A — Rev. 3.1
347 MSCAN Controller Freescale Semiconductor
17.13.16 msCAN12 Port CAN Data Register (PORTCAN)
PCAN7 – PCAN2 — Port CAN Data Bits (not available in 80QFP)
Writing to PCANx stores the bit value in an internal bit memory. This
value is driven to the respective pin only if DDCANx = 1.
Reading PCANx returns
the value of the internal bit memory driven to the pin, if DDCANx = 1
the value of the respective pin, if DDCANx = 0
Reading bits 1 and 0 returns the value of the TxCAN and RxCAN pins,
respectively.
17.13.17 msCAN12 Port CAN Data Direction Register (DDRCAN)
DDRCAN register determines the primary direction for the Port CAN pins
which are available as general purpose I/O. The value in the DDRCAN
also affects the source of data for reads of the corresponding Port CAN
register. When the DDCANx = 0 (input), the pin is read. When the
DDCANx =1 (output), the internal bit memory is read.
DDCAN7 – DDCAN2 — Data Direction Port CAN Bits
0 = Respective I/O pin is configured for input.
1 = Respective I/O pin is configured for output.
Bit 7654321Bit 0
PORTCAN R
PCAN7 PCAN6 PCAN5 PCAN4 PCAN3 PCAN2
TxCAN RxCAN
$013E W
RESET 0 0 0 0 0 0 0 0
Bit 7654321Bit 0
DDRCAN R
DDCAN7 DDCAN6 DDCAN5 DDCAN4 DDCAN3 DDCAN2
00
$013F W
RESET 0 0 0 0 0 0 0 0