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.

[请教]MSP430新手,请教关于定时器Timer_A定时器的用法

刚上手430,现需要通过定时器使一个IO口输出5s的低电平,再输出25ms的高电平。这样是否需要用到PWM输出?能给个例子参考一下吗?

  • 因为周期比较长,建议使用定时器定时来操作IO.

    定时周期25ms,并设置一个变量来计数,当够5s了改变IO电平状态。然后一个定时器周期后,再改回来