|
AN2628 Datasheet, PDF (20/27 Pages) STMicroelectronics – Programming ST10F27x CAN interrupt drivers | |||
|
◁ |
Register description
AN2628
A.2 CAN control register
CAN1CR (EF00h),
CAN2CR (EE00h)
15 14 13 12 11 10 9
-
-
-
-
-
-
-
XBUS
Reset Value: 0001h
876543210
-
Test CCE DAR -
EIE SIE IE
Init
RW RW RW
RW RW RW RW
Table 4.
Bit
CAN1CR and CAN2CR registers
Function
Init
IE
SIE
EIE
DAR
CCE
Test
Initialization
â0â: Normal operation.
â1â: Initialization is started.
Module interrupt enable
â0â: Disabled - Module interrupt IRQ_B is always high.
â1â: Enabled - Interrupts will set IRQ_B to LOW. IRQ_B remains low until all pending
interrupts are processed.
Status change interrupt enable
â0â: Disabled - No Status Change Interrupt will be generated.
â1â: Enabled - An interrupt will be generated when a message transfer is successfully
completed or a CAN bus error is detected.
Error interrupt enable
â0â: Disabled - No error status interrupt will be generated.
â1â: Enabled - A change in the bits BOff or EWarn in the status register will generate
an interrupt.
Disable automatic retransmission
â0â: Automatic retransmission of disturbed messages enabled.
â1â: Automatic retransmission disabled.
Configuration change enable
â0â: The CPU has no write access to the bit timing register.
â1â: The CPU has write access to the Bit Timing register (while Init = one).
Test mode enable
â0â: Normal operation.
â1â: Test mode.
20/27
|
▷ |