![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 638](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782638.webp)
GD32A50x User Manual
638
23.5.
CAN registers
CAN0 base address: 0x4001 A000
CAN1 base address: 0x4001 B000
23.5.1.
Control register 0 (CAN_CTL0)
Address offset: 0x00
Reset value: 0x5900 000F
All bits except bit 30, 28, 25, 19 of this register should be configured in Inactive mode only,
because they are blocked by hardware in other modes.
All bits except bit 31, 27, 24, 20 of this register will be reset by software reset bit SWRST in
CAN_CTL0 register.
This register has to be accessed by word(32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
CANDIS INAMOD
RFEN
HALT
NRDY
Reserved SWRST
INAS
Reserved
WERREN
LPS
PNEN
PNS
SRDIS
RPFQEN
rw
rw
rw
rw
r
rw
r
rw
r
rw
r
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DMAEN
PNMOD
LAPRIOE
N
MST
FDEN
Reserved
FS[1:0]
Reserved
MSZ[4:0]
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31
CANDIS
CAN disable
0: Enable CAN module
1: Disable CAN module
30
INAMOD
Inactive mode enable
0: Disable Inactive mode
1: Enable Inactive mode
29
RFEN
Rx FIFO enable
0: Disable Rx FIFO
1: Enable Rx FIFO
28
HALT
Halt CAN
0: No enter Inactive mode request
1: Enter Inactive mode if the INAMOD bit in CAN_CTL0 register is set
27
NRDY
Not ready
This bit indicates the state of whether the Protocol controller clock is disabled or
not. When in Inactive mode, or in CAN_Disable mode, the Protocol controller clock
is disabled, and CAN is not ready.