MC68336/376
CAN 2.0B CONTROLLER MODULE (TouCAN)
MOTOROLA
USER’S MANUAL
Rev. 15 Oct 2000
13-11
into that buffer. For a message being transmitted, the time stamp entry will be 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.
13.5 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.
13.5.1 TouCAN Reset
The TouCAN can be reset in two ways:
Hard reset, using one of the IMB 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
reset.
Any configuration change/initialization requires that the TouCAN be frozen by either
asserting the HALT bit in the module configuration register or by reset.
13.5.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 generic
initialization sequence for the TouCAN:
A. Initialize all operation modes
1. Initialize the transmit and receive pin modes in control register 0
(CANCTRL0).
2. Initialize the bit timing parameters PROPSEG, PSEGS1, PSEG2, and RJW
in control registers 1 and 2 (CANCTRL[1:2]).
3. Select the S-clock rate by programming the PRESDIV register.
4. Select the internal arbitration mode (LBUF bit in CANCTRL1).
B. Initialize message buffers
1. The control/status word of all message buffers must be written either as an
active or inactive message buffer.
2. All other entries in each message buffer should be initialized as required.
C. Initialize mask registers for acceptance mask as needed