Operation Mode; Configuration Mode - Toshiba TXZ Series Reference Manual

32-bit risc microcontroller. can controller (can-a)
Hide thumbs Also See for TXZ Series:
Table of Contents

Advertisement

3.4. Operation Mode

Configuration Mode

The CAN controller needs initial setup before starting operation (setting of the bit configuration registers,
[CANBCR1] and [CANBCR2]). Writes to the [CANBCR1] and [CANBCR2] are possible only when the CAN
controller is in configuration mode.
After reset, the [CANMCR]<CCR> and the [CANGSR]<CCE> are set to "1" and the configuration mode is set. A
write of "0" to the [CANMCR]<CCR> bit sets the CAN controller to the normal operation mode. After leaving
configuration mode, the [CANGSR]<CCE> bit is cleared to "0" and the power-up sequence starts. The power-up
sequence detects 11 consecutive recessive bits on the CAN bus line. After detection, the CAN controller is a bus
on and ready for operation.
A write of "1" to the [CANMCR]<CCR> bit sets the CAN controller to enter configuration mode from normal
operation mode. After the CAN controller has entered configuration mode, the [CANGSR]<CCE> bit is set to "1".
Figure 3.6 shows the flowchart of the initial setup of the CAN controller.
When the CAN controller enters into configuration mode, the CAN error counter [CANCEC], the time stamp
counter [CANTSC], and the time stamp hold registers will be cleared.
2018-10-30
20 / 54
TXZ Family
CAN Controller
Rev. 1.1

Advertisement

Table of Contents
loading

Table of Contents