请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:UCD3138 工具/软件:Code Composer Studio
如何实现从后台程序到标准中断的跳转
我找到"init_timer_interrupt",底层配置在哪里? 中断断点未显示在程序中?
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.
工具/软件:Code Composer Studio
如何实现从后台程序到标准中断的跳转
我找到"init_timer_interrupt",底层配置在哪里? 中断断点未显示在程序中?
大家好、您的问题不是很清楚。 但是、从下面的代码中、您可以更改计时器中断的时长、并且 不需要 断点。
TimerRegs.T16PWM2CMP0DAT.ALL = 1587;
//阈值将 PWM 发送为高电平
TimerRegs.T16PWM2CMP1DAT.ALL = 0xFFFF;
//启用比较0 (复位)中断
TimerRegs.T16PWM2CMPCTRL.ALL = 2;
///PWM 计数器正在运行、并通过比较0上的比较操作使能 PWM 计数器复位
TimerRegs.T16PWM2CNTCTRL.ALL = 0x00C;
此致、
肖恩