TI中文支持网
TI专业的中文技术问题搜集分享网站

msp430f 5 6驱动库

在使用驱动时发现,找不到可以关闭复用功能的寄存器,发现有打开的 没有关闭的   貌似只有GPIO_setAsPeripheralModuleFunctionOutputPin和GPIO_setAsPeripheralModuleFunctionInputPin,比如我想关闭某个管脚的PWM,是否可以用驱动库设置    @TI  FAE

Susan Yang:

void Timer A outputPWM (uint16 t baseAddress, Timer A outputPWMParam ∗param)

Generate a PWM with timer running in up mode.

您可以使用上面的API来生成pwm。若是想重新设置输出的话,我认为可以使用

void Timer A setOutputMode ( uint16 t baseAddress, uint16 t compareRegister, uint16 t compareOutputMode )

Sets the output mode. Sets the output mode for the timer even the timer is already running.

user3854913 说:比如我想关闭某个管脚的PWM,是否可以用驱动库设置

能否详细说一下?是直接禁止该引脚输出pwm吗?

 

,

user3854913:

谢谢上面已解决,有没有更改计数器 ta0r的值 函数

,

Susan Yang:

您可以在下面的网站内直接查找

dev.ti.com/…/node

但是好像没有这样功能的函数

赞(0)
未经允许不得转载:TI中文支持网 » msp430f 5 6驱动库
分享到: 更多 (0)