![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 635](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800635.webp)
GD32F10x User Manual
635
𝑡
𝑆𝑌𝑁𝐶_𝑆𝐸𝐺
= 1 × 𝑡
𝑞
(21-3)
𝑡
𝐵𝑆1
= (1 + 𝐵𝑇. 𝐵𝑆1) × 𝑡
𝑞
(21-4)
𝑡
𝐵𝑆2
= (1 + 𝐵𝑇. 𝐵𝑆2) × 𝑡
𝑞
(21-5)
𝑡
𝑞
= (1 + 𝐵𝑇. 𝐵𝐴𝑈𝐷𝑃𝑆𝐶) × 𝑡
𝑃𝐶𝐿𝐾1
(21-6)
21.3.8.
Error flags
The state of CAN bus can be reflected by Transmit Error Counter (TECNT) and Receive Error
Counter (RECNT) of CAN_ERR register. The value can be increased or decreased by the
hardware according to the error, and the software can judge the stability of the CAN network
by these values. For details on incorrect counting, refer to the CAN protocol section. By using
the CAN_INTEN register (ERRIE bit, etc.), the software can control the interrupt generation
when error is detected.
Bus-Off recovery
The CAN controller is in Bus-Off state when TECNT is over than 255. In This state, BOERR
bit is set in CAN_ERR register, and no longer able to transmit and receive messages.
According to the ABOR configuration in register CAN_CTL, there are two ways to
recover
from Bus-Off (to an error active state). Both of these methods require the CAN bus controller
in the
Bus-Offstate to detect the Bus-Off recovery sequence defined by CAN protocol (when
CAN_RX detects 128 consecutive 11-bit recessive bits) before automatic recovery.
If ABOR is set, it will be automatically
recovered when a offline recovery sequence is detected.
If ABOR is cleared, CAN controller must be configured to enter initialization mode by setting
IWMOD bit in CAN_CTL register, then exit and enter nomal mode. After this operation, it will
recover when the recovering sequence is detected.
21.3.9.
CAN interrupts
The CAN bus controller occupies 4 interrupt vectors, which are controlled by the register CAN
_INTEN.
The interrupt sources can be classified as:
transmit interrupt
FIFO0 interrupt
FIFO1 interrupt
Error and status change interrupt
Transmit interrupt
The transmit interrupt can be generated by any of the following conditions and TMEIE bit in
Содержание 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 ...