请教大神一个问题:
问题描述:
我目前用的MCU: MC9S12G64
使用外部晶振: 8MHz
用定时器溢出中断,定时器时钟8分频(1MHz);在溢出中断写 TCNT = 65536-1000, 定时1MS,
在溢出中断中置IO, 用仿真器调试1MS 波形OK; 但取掉仿真器后,波形出现问题;也就是TCNT寄存器好象没有写成 功;
是否可以在溢出中断中对TCNT进行写操作;
程序代码如下:
Hi,
To work on your problem, please send your processor expert project here.
we need reproduce and test first
Thanks.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------