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.
使用定时器的例程
TIMER_Config timCfg0 = {
TIMER_CTRL, /* TCR0 */
0x0400u, /* PRD0 */
0x0000 /* PRSC */
};
系统时钟200Mhz
在中断中加一个断点,每次查看运行的cpu时间。
profile中的clock观察没中断一次是1080个cpu cycles ,为什么不是0x400+1然后,1080-1025=55,这55个cpu cycles是中断开销吗?