MPC555
/
MPC556
CAN 2.0B CONTROLLER MODULE
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
16-11
that buffer. For a message being transmitted, the time stamp entry is written into the
transmit message buffer once the transmission has completed successfully.
The free-running timer can optionally be reset upon the reception of a frame into mes-
sage buffer 0. This feature allows network time synchronization to be performed.
16.4 TouCAN Operation
The basic operation of the TouCAN can be divided into three areas:
• Reset and initialization of the module
• Transmit message handling
• Receive message handling
Example sequences for performing each of these processes is given in the following
paragraphs.
16.4.1 TouCAN Reset
The TouCAN can be reset in two ways:
• Hard reset, using one of the IMB3 reset lines
• Soft reset, using the SOFTRST bit in the module configuration register
Following the negation of reset, the TouCAN is not synchronized with the CAN bus,
and the HALT, FRZ, and FRZACK bits in the module configuration register are set. In
this state, the TouCAN does not initiate frame transmissions or receive any frames
from the CAN bus. The contents of the message buffers are not changed following re-
set.
Any configuration change or initialization requires that the TouCAN be frozen by either
the assertion of the HALT bit in the module configuration register or by reset.
16.4.2 TouCAN Initialization
Initialization of the TouCAN includes the initial configuration of the message buffers
and configuration of the CAN communication parameters following a reset, as well as
any reconfiguration which may be required during operation. The following is a general
initialization sequence for the TouCAN:
1. Initialize all operation modes
a. Initialize the transmit and receive pin modes in control register 0
(CANCTRL0)
b. Initialize the bit timing parameters PROPSEG, PSEGS1, PSEG2, and
RJW in control registers 1 and 2 (CANCTRL[1:2])
c. Select the S-clock rate by programming the PRESDIV register
d. Select the internal arbitration mode (LBUF bit in CANCTRL1)
2. Initialize message buffers
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..