GD32F20x User Manual
157
31:17
Reserved
Must be kept at reset value
16
LKK
Lock sequence key
It can only be setted using the Lock Key Writing Sequence. And can always be read.
0: GPIO_LOCK register is not locked and the port configuration is not locked.
1: GPIO_LOCK register is locked until an MCU reset..
LOCK key configuration sequence
Write 1→Write 0→Write 1→ Read 0→ Read 1
Note:
The value of LK[15:0] must hold during the LOCK Key Writing sequence.
15:0
LKy
Port Lock bit y(y=0..15)
These bits are set and cleared by software
0: The corresponding bit port configuration is not locked
1:
The corresponding bit port configuration is locked when LKK bit is “1”
7.5.8.
Event control register (AFIO_EC)
Address offset: 0x00
Reset value: 0x0000 0000
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
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
EOE
PORT[2:0]
PIN[3:0]
rw
rw
rw
Bits
Fields
Descriptions
31:8
Reserved
Must be kept at reset value
7
EOE
Event output enable
Set and cleared by software.When set the EVENTOUT Cortex output is connected
to the I/O selected by the PORT[2:0] and PIN[3:0] bits
6:4
PORT[2:0]
Event output port selection
Set and cleared by software.Select the port used to output the Cortex EVENTOUT
signal.
000: Select PORT A
001: Select PORT B
010: Select PORT C
011: Select PORT D
100: Select PORT E
3:0
PIN[3:0]
Event output pin selection
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...