29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

Controller area network (bxCAN)<br />

Figure 206. Event flags <strong>and</strong> interrupt generation<br />

RQCP0<br />

CAN_TSR RQCP1 +<br />

RQCP2<br />

CAN_IER<br />

TMEIE<br />

&<br />

TRANSMIT<br />

INTERRUPT<br />

CAN_RF0R<br />

FMP0<br />

FULL0<br />

FMPIE0<br />

FFIE0<br />

&<br />

&<br />

+<br />

FIFO 0<br />

INTERRUPT<br />

FOVR0<br />

FOVIE0<br />

&<br />

CAN_RF1R<br />

FMP1<br />

FULL1<br />

FMPIE1<br />

FFIE1<br />

&<br />

&<br />

+<br />

FIFO 1<br />

INTERRUPT<br />

FOVR1<br />

FOVIE1<br />

&<br />

ERRIE<br />

EWGF<br />

EWGIE<br />

&<br />

CAN_ESR<br />

EPVF<br />

BOFF<br />

1LEC6<br />

EPVIE<br />

BOFIE<br />

LECIE<br />

&<br />

&<br />

&<br />

+<br />

ERRI<br />

CAN_MSR<br />

&<br />

+<br />

STATUS CHANGE<br />

ERROR<br />

INTERRUPT<br />

CAN_MSR<br />

WKUI<br />

SLAKI<br />

WKUIE<br />

SLKIE<br />

&<br />

&<br />

●<br />

●<br />

●<br />

The transmit interrupt can be generated by the following events:<br />

– Transmit mailbox 0 becomes empty, RQCP0 bit in the CAN_TSR register set.<br />

– Transmit mailbox 1 becomes empty, RQCP1 bit in the CAN_TSR register set.<br />

– Transmit mailbox 2 becomes empty, RQCP2 bit in the CAN_TSR register set.<br />

The FIFO 0 interrupt can be generated by the following events:<br />

– Reception of a new message, FMP0 bits in the CAN_RF0R register are not ‘00’.<br />

– FIFO0 full condition, FULL0 bit in the CAN_RF0R register set.<br />

– FIFO0 overrun condition, FOVR0 bit in the CAN_RF0R register set.<br />

The FIFO 1 interrupt can be generated by the following events:<br />

– Reception of a new message, FMP1 bits in the CAN_RF1R register are not ‘00’.<br />

– FIFO1 full condition, FULL1 bit in the CAN_RF1R register set.<br />

– FIFO1 overrun condition, FOVR1 bit in the CAN_RF1R register set.<br />

Doc ID 13902 Rev 9 561/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!