发布于 2004-07-13 12:11:05
0楼
初始化步骤:
1、Define the counter and mode.
定义模式
2、Set the control byte.
设置控制字
3、Set the current value (starting value).
置当前值(初始值)
4、Set the preset value (target value).
置目标值,也即中断发生时的值
5、Assign and enable the interrupt routine.
分配中断
5、Activate the high-speed counter.
激活
你自已对号入坐,就知道会发生什么了。