简体   繁体   English

MSP430在UP模式下终止timer_A

[英]MSP430 Terminate timer_A in UP mode

Using embedded programming via CCS, MSP430F6736A 通过CCS,MSP430F6736A使用嵌入式编程

Need to know, if there is any way to stop Timer in UP mode(ie Timer_A). 需要知道,是否有任何方法可以在UP模式下停止Timer(即Timer_A)。

In my app I´m using Timer_A in UP mode and register TA1CCR0 is toggling LED on/ off for a specific time. 在我的应用程序中,我在UP模式下使用Timer_A,并且寄存器TA1CCR0在特定时间内切换LED的开/关状态。 0.5s LED- ON, 1 sec LED- OFF. 0.5s LED-亮,1秒LED-灭。 After few minutes(for example 2 minutes==120 sec) i need to terminate the application. 几分钟后(例如2分钟== 120秒),我需要终止该应用程序。 I need to stop timer and interrupt. 我需要停止计时器并中断。 Is there any way how to break counting timer after these 120 seconds and get out of interrupt?? 有什么方法可以在这120秒后中断计数计时器并摆脱中断吗?

One way may be forbid the interrupts but timer will still be counting. 一种方法是禁止中断,但计时器仍在计数。 I need to stop it. 我要停下来

TACTL = MC_0;

将停止计时器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM