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.

[参考译文] CCS/TMS320F28069:看门狗 ISR 与计时器 ISR 冲突

Guru**** 2039090 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/679294/ccs-tms320f28069-watchdog-isr-conflict-with-timer-isr

器件型号:TMS320F28069
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

我正在中断 模式下初始化看门狗、但程序未按 其 ISR、正如我在调试模式下看到的那样。 该程序还使用存在于同一 PIE 组(正常工作)中的 Timer0 ISR。 我可以只使用 PIE 组或任何剩余的初始化寄存器的一个中断吗?   此外,我应该输入什么 WAKEINT ISR 来再次启动 int main()。

#define WDINTS_STATUS (1 << 2)
#define WDINT_SET (1 << 1)


//WDCR:看门狗控制寄存
器#define WDFLAG_ENABLE (1 << 7)
#define WDDIS_ENABLE (0 << 6)
#define WDCHK_WRITE 0x28

#define prescaler_111 0x07 //0x7:(1/10MHz)*512*64*256=838毫秒
#define prescaler_110 0x06 //0x6:(1/10MHz)*512*32*256= 419 msec
#define prescaler_101 0x05 //0x5:(1/10MHz)*512*16*256= 209毫秒

void Watchdog_config (void)
{
EALLOW;
SysCtrlRegs.SCSR= WDINT_SET;//无需//////启用看门狗中断

SysCtrlRegs.WDCR = WDFLAG_ENABLE |WDCHK_WRITE |预分频器_101; //设置最高预分频器

SysCtrlRegs.WDKEY = 0x0055; //服务犬
SysCtrlRegs.WDKEY = 0x00AA;
PieCtrlRegs.PIEIER1.bit.INTx8 = CPT_SET_FLAG;
EDIS;
}

__interrupt void WAKEINT_ISR (void)
{
国际牧场2;
ran2=4;//此处为断点
//What to put to reset the program again
}(重新重置程序的方法是什么)