Design Considerations; Hardware Reset; Software Initialization; Bus-Off State - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

12.9 DESIGN CONSIDERATIONS

This section outlines design considerations for the CAN controller.

12.9.1 Hardware Reset

A hardware reset clears the error management counters and the bus-off state and leaves the reg-
isters with the values listed in Table 12-14.
Register
Control
Status
Standard Global Mask
Extended Global Mask
Message 15 Mask
Bit Timing 0
Bit Timing 1
Interrupt
Message Object x

12.9.2 Software Initialization

The software initialization state allows software to configure the CAN controller's RAM without
risk of messages being received or transmitted during this time. Setting the INIT bit in the control
register causes the CAN controller to enter the software initialization state. Either a hardware re-
set or a software write can set the INIT bit. While INIT is set, all message transfers to and from
the CAN controller are stopped and the error counters and bit timing registers are unchanged.
Your software should clear the INIT bit to cause the CAN controller to exit the software initial-
ization state. At this time, the CAN controller synchronizes itself to the CAN bus by waiting for
a bus idle state (11 consecutive recessive bits) before participating in bus activities.

12.9.3 Bus-off State

If an error counter reaches 256, the CAN controller isolates itself from the CAN bus, sets the
BUSOFF bit in the status register, and sets the INIT bit in the control register. While INIT is set,
all message transfers to and from the CAN controller are stopped; the error counters and bit tim-
ing registers are unchanged. Software must clear the INIT bit to initiate the bus-off recovery se-
quence.
CAN SERIAL COMMUNICATIONS CONTROLLER
Table 12-14. Register Values Following Reset
Hex Address
1E00
1E01
1E06–1E07
1E08–1E0B
1E0C–1E0F
1E3F
1E4F
1E5F
1E x 0–1E x E
Reset Value
01H
undefined
unchanged (undefined at power-up)
unchanged (undefined at power-up)
unchanged (undefined at power-up)
unchanged (undefined at power-up)
unchanged (undefined at power-up)
00H
unchanged (undefined at power-up)
12-41

Advertisement

Table of Contents
loading

Table of Contents