xiao_wh 发表于 2011-10-5 08:25:18

我用定时器1输出pwm 但想remap后用e12脚输出确没有

我用定时器1输出pwm 但想remap后用e口GPIO_Pin_12脚输出确没有
 remap 代码AFIO->MAPR |= 0x000000C0;
请问除remap代码,还需加什么设置

发表于 2011-10-6 09:38:45

RE:我用定时器1输出pwm 但想remap后用e12脚输出确没有

不需要别的代码,你可以先测试未映射以前的引脚是不是能够输出。然后再映射,使用GPIO_FullRemap_TIM1。

xiao_wh 发表于 2011-10-6 11:13:32

RE:我用定时器1输出pwm 但想remap后用e12脚输出确没有

未映射前是有输出的
是不是用AFIO->MAPR=GPIO_FullRemap_TIM1

xiao_wh 发表于 2011-10-6 12:50:35

RE:我用定时器1输出pwm 但想remap后用e12脚输出确没有

已经设置好了,谢谢2#
页: [1]
查看完整版本: 我用定时器1输出pwm 但想remap后用e12脚输出确没有