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
你(们)好
使用软件优先级中断级别、如何管理 timer0中断过程的起始代码和结束代码? 因为没有连接到 PIE?
此致
你(们)好
很抱歉、我将 Timer0与 Timer1进行了比较、我想知道、对于 Timer0、我可以写入:
//设置中断优先级:
IER |= M_INT1;
IER &= MINT1; //设置"全局"优先级 */
PieCtrlRegs.PIEIER1.ALL &= MG1_7; //设置“组” 优先级 */
PieCtrlRegs.PIEACK.ALL = 0xFFFF; //启用 PIE 中断 */
_asm (" NOP");
EINT;
timer_proc ();
//恢复保存的寄存器:
Dint;
PieCtrlRegs.PIEIER1.all = TempPIEIER;
我可以对软件优先级环境中的 Timer1中断例程执行什么操作?
此致
卢卡
如果不使用 PIE、则只需要管理外设级状态逻辑。 在这种情况下、您需要在定时器设置 TIF 字段后将其清除。
Tommy