![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 629](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800629.webp)
GD32F10x User Manual
629
Figure 21-4. Reception register
Application
Receive FIFO0
Receive FIFO1
RFIFOMI0
RFIFOMP0
RFIFOMDATA00
RFIFOMDATA10
RFIFOMI1
RFIFOMP1
RFIFOMDATA01
RFIFOMDATA11
M
a
ilb
o
x
0
M
a
ilb
o
x
1
M
a
ilb
o
x
2
M
a
ilb
o
x
0
M
a
ilb
o
x
1
M
a
ilb
o
x
2
RFIFO0
RFIFO1
RX FIFO
Rx FIFO has three mailboxes. The reception frames are stored in the mailbox according to
the arriving sequence. First arrived frame can be accessed by application firstly.
The number of frames in the Rx FIFO and the status can be accessed by the register
CAN_RFIFO0 and CAN_RFIFO1.
If at least one frame has been stored in the Rx FIFO0, the frame data is stored in the
CAN_RFIFOMI0, CAN_RFIFOMP0, CAN_RFIFOMDATA00 and CAN_RFIFOMDATA10
registers. After reading the current frame, set RFD bit in CAN_RFIFO0 to release a frame in
the Rx FIFO and the software can read the next frame.
RX FIFO status
RFL (Rx FIFO length) bits in CAN_RFIFOx register is 0 when no frame is stored in the Rx
FIFO and it is 3 when FIFOx is full.
When RFF bit in CAN_RFIFOx register is set, it indicates FIFOx is full, at this time, RFL is 3.
When a new frame arrives after the FIFO has held three frames, the RFO bit in CAN_RFIFOx
register will be set, and it indicates FIFOx is overrun. If the RFOD bit in CAN_CTL register is
set, the new frame is discarded. If the RFOD bit in CAN_CTL register is reset, the new frame
is stored into the Rx FIFO and the last frame in the Rx FIFO is discarded.
Steps of receiving a message
Step 1: Check the number of frames in the receive FIFO.
Step 2: Read CAN_RFIFOMIx, CAN_RFIFOMPx, CAN_RFIFOMDATA0x and CAN_RFI
FOMDATA1x.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...