Datasheet

Table Of Contents
reading a High Priority Message from one of the two Rx FIFOs. In this case the FIFO’s Acknowledge
Index should not be written because this would set the Get Index to a wrong position and also alters the
FIFO’s Fill Level. In this case some of the older FIFO elements would be lost.
Note:  The application has to ensure that a valid value is written to the FIFO Acknowledge Index. The
CAN does not check for erroneous values.
39.6.8 Interrupts
The CAN has the following interrupt sources:
Access to Reserved Address
Protocol Errors (Data Phase / Arbitration Phase)
Watchdog Interrupt
Bus_Off Status
Error Warning & Passive
Error Logging Overflow
Message RAM Bit Errors (Uncorrected / Corrected)
Message stored to Dedicated Rx Buffer
Timeout Occurred
Message RAM Access Failure
Timestamp Wraparound
Tx Event FIFO statuses (Element Lost / Full / Watermark Reached / New Entry)
Tx FIFO Empty
Transmission Cancellation Finished
Timestamp Completed
High Priority Message
Rx FIFO 1 Statuses (Message Lost / Full / Watermark Reached / New Message)
Rx FIFO 0 Statuses (Message Lost / Full / Watermark Reached / New Message)
Each interrupt source has an interrupt flag associated with it. The interrupt flag register (IR) is set when
the interrupt condition occurs. Each interrupt can be individually enabled by writing ‘1’ or disabled by
writing ‘0’ to the corresponding bit in the interrupt enable register (IE). Each interrupt flag can be assigned
to one of two interrupt service lines.
An interrupt request is generated when an interrupt flag is set, the corresponding interrupt enable is set,
and the corresponding service line enable assigned to the interrupt is set. The interrupt request remains
active until the interrupt flag is cleared, the interrupt is disabled, the service line is disabled, or the CAN is
reset. Refer to 39.8.16 IR for details on how to clear interrupt flags. All interrupt requests from the
peripheral are sent to the NVIC. The user must read the IR register to determine which interrupt condition
is present.
Note that interrupts must be globally enabled for interrupt requests to be generated.
39.6.9 Sleep Mode Operation
The CAN can be configured to operate in any idle sleep mode. Tha CAN cannot operate in Standby sleep
mode.
The CAN has its own low power mode that may be used at any time without disabling the CAN. It is also
mandatory to allow the CAN to complete all pending transactions before entering standby by activating
this low power mode. This is performed by writing one to the Clock Stop Request bit in the CC Control
SAM D5x/E5x Family Data Sheet
CAN - Control Area Network
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1226