611 views|6 replies

2

Posts

0

Resources
The OP
 

What does the AFEN bit of the APB register of GD32F103 mean? What does the IO port backup function mean? [Copy link]

The above picture is a screenshot of the AFEN bit of the APB register of GD32F103 in the user manual. The literal meaning should be to turn on this clock when the IO port needs to be multiplexed, and not to turn it on when it is not needed. However, when I use the routine 03_EXTI_Key_Interrupt_mode of GD32103E-EVAL, neither IO port is multiplexed. Why do I need to enable this clock? If this clock is turned off, the routine cannot run normally. I don't understand the function of this bit, and I look forward to enthusiastic experts to teach me.

Also, does the "Alternate Function (AF) Configuration" in the user manual mean reuse?

This post is from GD32 MCU

Latest reply

Support the author's statement.   Details Published on 2024-5-16 09:11
 

6841

Posts

11

Resources
2
 

Multiplexing should mean multiplexing this IO into peripherals other than GPIO. You can take a look at the GPIO diagram to understand it better.

This post is from GD32 MCU

Comments

Support the author's statement.  Details Published on 2024-5-16 09:11
 
 
 

25

Posts

0

Resources
3
 

I support domestic chips, and I hope everyone will support domestic chips

This post is from GD32 MCU
 
 
 

17

Posts

0

Resources
4
 
Look at the internal structure and register definition
This post is from GD32 MCU
 
 
 

2

Posts

0

Resources
5
 
lugl4313820 posted on 2024-5-14 18:00 Multiplexing should be to reuse this IO as a peripheral other than GPIO. If you look at the GPIO diagram, you may understand it better.

My understanding is that when the IO port is occupied by a peripheral, it is set to multiplexing mode. However, when I look at his routines, the multiplexing clock needs to be enabled when the IO port is used as an external interrupt, but the IO port is not in multiplexing mode. When the IO port is used as UART communication, the IO port is set to multiplexing mode, but the multiplexing clock is not started.

This post is from GD32 MCU

Comments

It seems that both the multiplexed clock and the GPIO clock need to be turned on. You'd better use a register to light a lamp, so that you will understand it more deeply and remember it.  Details Published on 2024-5-15 18:20
 
 
 

6841

Posts

11

Resources
6
 
Xuehs posted on 2024-5-15 17:43 My understanding is that when it is occupied by peripherals, it is set to multiplexing mode, but when I look at his routine, the IO port needs to enable multiplexing clock when it is used as an external interrupt, but the IO ...

It seems that both the multiplexed clock and the GPIO clock need to be turned on. You'd better use a register to light a lamp, so that you will understand it more deeply and remember it.

This post is from GD32 MCU
 
 
 

6069

Posts

4

Resources
7
 
lugl4313820 posted on 2024-5-14 18:00 Multiplexing should be to reuse this IO as a peripheral other than GPIO. If you look at the GPIO diagram, you may understand it better.

Support the author's statement.

This post is from GD32 MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list