mc9s12ne64 定时器溢出中断实现一秒延时不准确
- UID
- 823859
|
mc9s12ne64 定时器溢出中断实现一秒延时不准确
本帖最后由 gongzuo2003 于 2010-11-9 07:51 编辑
想用mc9s12ne64 定时器实现一秒的定时,
定时器初始化:
TSCR2 = 0x03;
TSCR1 = 0x80;
busclk=25mhz
实现0.02s的定时,计数50次,实现1秒定时,可是实际实现的定时应该有三四秒的样子,怎么会这样呢?
烦请各位大侠给解答一下。 |
|
|
|
|
|
- UID
- 104380
- 性别
- 男
|
|
|
|
|
|
- UID
- 825833
|
|
|
|
|
|