Other Parts Discussed in Thread: MSP430FR4133
主题中讨论的其他器件: MSP430WARE
您好!
你好。
您是否可以帮助我找到 MSP430FR4133微控制器的汇编中的计时器中断例程示例?
这是一个定时器比较函数、用于在定时器值经过后生成一个中断。
请提供建议。 非常感谢。
此致、
Ray Vincent
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.
Other Parts Discussed in Thread: MSP430FR4133
您好!
你好。
您是否可以帮助我找到 MSP430FR4133微控制器的汇编中的计时器中断例程示例?
这是一个定时器比较函数、用于在定时器值经过后生成一个中断。
请提供建议。 非常感谢。
此致、
Ray Vincent
您好 Ray、
所有 MSP430FR4133代码示例均可在以下位置找到: https://dev.ti.com/tirex/explore/node?node=A__AHE8WiChEC1qyd5.ZYkM8Q__msp430ware__IOGqZri__LATEST
您还可以通过 Code Composer 直接访问它们、方法是转到 View->Resource Explorer、然后导航到 MSP430ware 中的同一文件夹。
对于计时器中断示例、我建议查看 ta0_01.c 或 ta0_02.c
谢谢、
JD
中断服务例程可以是您需要的简单或复杂。 下面是一个非常简单的例程、它会递增计数器并唤醒主例程(如果处于低功耗模式):
timer_A_CCR0_isr:
inc &_tick ; increment the tick counter
bic #SCG1+SCG0+OSCOFF+CPUOFF,0(r1) ; wake up
reti
.section __interrupt_vector_timer0_a0,"ax",@progbits
.word timer_A_CCR0_isr