Intel 87C196CB Design Considerations, Hardware Reset, Software Initialization, Bus-off State

Models: 8XC196NT 87C196CB

1 155
Download 155 pages 42.65 Kb
Page 102
Image 102
7.9DESIGN CONSIDERATIONS

CAN SERIAL COMMUNICATIONS CONTROLLER

7.9DESIGN CONSIDERATIONS

This section outlines design considerations for the CAN controller.

7.9.1Hardware 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 7-14.

Table 7-14. Register Values Following Reset

Register

Hex Address

Reset Value

 

 

 

Control

1E00

01H

 

 

 

Status

1E01

undefined

 

 

 

Standard Global Mask

1E06–1E07

unchanged (undefined at power-up)

 

 

 

Extended Global Mask

1E08–1E0B

unchanged (undefined at power-up)

 

 

 

Message 15 Mask

1E0C–1E0F

unchanged (undefined at power-up)

 

 

 

Bit Timing 0

1E3F

unchanged (undefined at power-up)

 

 

 

Bit Timing 1

1E4F

unchanged (undefined at power-up)

 

 

 

Interrupt

1E5F

00H

 

 

 

Message Object x

1Ex0–1ExE

unchanged (undefined at power-up)

 

 

 

7.9.2Software 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.

7.9.3Bus-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.

7-41

Page 102
Image 102
Intel 87C196CB, 8XC196NT user manual Design Considerations, Hardware Reset, Software Initialization, Bus-off State