stm32f40x reference manual 找不到引脚重映射的介绍

来源:互联网 发布:对接软件的php会员源码 编辑:程序博客网 时间:2024/05/16 18:23

今天看stm32f40x 的参考手册,发现网上很多人说GPIO有一个remap的功能,但是在这个手册里面就是找不到,别人说stm32f10x里面7.3节里面,我找了一下果然有,但为什么stm32f40x就没有了,只有什么AF[0..... 15],就是没有说这是什么东西。于是找呀找

 

General-purpose I/Os (GPIO) RM0090
140/1316 Doc ID 018909 Rev 1
● Peripheral’s alternate function:
For the ADC and DAC, configure the desired I/O as analog in the GPIOx_MODER
register.
For other peripherals:
– Configure the desired I/O as an alternate function in the GPIOx_MODER register
– Select the type, pull-up/pull-down and output speed via the GPIOx_OTYPER,
GPIOx_PUPDR and GPIOx_OSPEEDER registers, respectively
– Connect the I/O to the desired AFx in the GPIOx_AFRL or GPIOx_AFRH register
● EVENTOUT: you can configure the I/O pin used to output the Cortex™-M4F
EVENTOUT signal by connecting it to AF15
Note: EVENTOUT is not mapped onto the following I/O pins: PC13, PC14, PC15, PH0, PH1 and
PI8.
Please refer to the “Alternate function mapping” table in the STM32F40x and STM32F41x
datasheets for the detailed mapping of the system and peripherals’ alternate function I/O
pins.

找到了这句话 Please refer to the “Alternate function mapping” table in the STM32F40x and STM32F41x
datasheets 吗得个鬼,居然放在了datasheet 里面,真是害人不浅啊!最终于确认在stm32f40x data sheet 里面的table 9里面

 

好好学英语,好好坚持,永不放弃,坚持学英语。加油
0 0
原创粉丝点击