MC9S12XEP100MAL 定时器中断程序异常

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S12XEP100MAL 定时器中断程序异常

918 次查看
act668act668
Contributor I

一个简单的MC9S12XEP100MAL 定时器中断程序,在BDM仿真调试时,程序运行有中断,但拿开BDM后,程序运行就没有进入中断了,是什么原因?

Original Attachment has been moved to: demoXEP100timer.rar

标签 (1)
0 项奖励
回复
1 回复

619 次查看
iggi
NXP Employee
NXP Employee

Hi,

in your code you write the timer counter (TCNT) register which is writable in special modes. So, in Normal mode (without BDM connection) this register is not writable and so it does not work.

We have many SW examples demonstrating timer functionality. See following documents:

S12X Examples Pack 

LAMA's S12XE unofficial examples 

Look for ECT and TIM keywords.

Have a great day,

iggi

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复