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.

C6455 CCS V5.4 simulator 模拟 Timer 0 遇到 问题

1、Timer 0 64位 计数器模式
Timer Global Control Register (TGCR0) = 0x00000003;
设置为 64-bit general-purpose timer mode,
TIMHIRS =1,TIMLORS=1,使计时器脱离复位

2、 把 Timer 0 中断 关联到 INT12
Interrupt Mux Register 3 (INTMUX3) = 0x0F0E0D43;
其中 0F0E0D 是默认值 ,INTSEL12 = 0x43
0x43 = 67,是 Timer 0 lower counter interrupt Event

3、设置周期
PRDLO0 = 0x00100000
PRDHI0 = 0

4、使能中断 INTE_INT12

IER = 0x00001003
IE12 和 NMIE 置1

5、打开全局中断开关
CSR |= 0x01; //GIE

6、打开 Timer 0

PERLOCK = 0x0F0A0B00 ;解锁
PERCFG0 |= 0x00000040 ; TIMER0CTL=1


问题:
1、寄存器 CNTHI0:CNTLO0(0x02940010处) 一直是0不变,为什么?

2、当然也就没有进入中断了(所以中断代码的安排暂时没有写出来),等1问题解决再调试