斯普朗特 发表于 2015-1-31 14:09:16

斯普朗特 发表于 2015-1-31 14:06
我找到了个引脚与   有的GPIO口后面写了TIN4_CH3 /TIM10_ch1    是不是这两个通道都在这个脚上呢? ...

http://i2.tietuku.com/0b80b32895ed69c4.png
例如这个图里面的
<img src="http://i2.tietuku.com/0b80b32895ed69c4.png">

cxtarm 发表于 2015-1-31 16:03:36

斯普朗特 发表于 2015-1-31 14:06
我找到了个引脚与   有的GPIO口后面写了TIN4_CH3 /TIM10_ch1    是不是这两个通道都在这个脚上呢? ...

是的,现在很多MCU的单个引脚都有多个功能,但是同时只能使用其中的一个。使用时需要配置该功能。
https://www.stmcu.org.cn/module/forum/data/attachment/forum/201501/31/123007lmpip39339gau91s.jpg

wambob 发表于 2015-1-31 16:09:39

GPIO_PinAFConfig(GPIOC, GPIO_PinSource6, GPIO_AF_TIM3);

这个是GPIO引脚复用配置函数,参考手册里很详细

liudashuang 发表于 2015-2-5 11:46:42

:L:L:L:L:L:L:L:L:L
页: 1 [2]
查看完整版本: 求问关于STM32F4的一些函数的意思