This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430f 5 6驱动库

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

  • 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吗?

     

  • 谢谢上面已解决,有没有更改计数器 ta0r的值 函数
  • 您可以在下面的网站内直接查找

    dev.ti.com/.../node

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