MC9S08AW, RTI-Timer

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

MC9S08AW, RTI-Timer

2,611 次查看
Truk
Contributor I
Is this timer usable without interrupt as RTC in the main loop by testing RTIF and if = 1 WR to RTICK?
标签 (1)
0 项奖励
回复
2 回复数

574 次查看
rhinoceroshead
Contributor I
According to the simulator, yes.  I tried this, and it worked:
 
Code:
#include <hidef.h>#include "derivative.h"void main(void) {  SRTISC |= 0x01;  for(;;) {    if ((SRTISC & 0x80) == 0x80) {      SRTISC |= 0x40;    }  }}

 

0 项奖励
回复

574 次查看
RockyRoad
Contributor III
Checked it out on the part (with different assembly software). It works there also.
 
- Rocky
0 项奖励
回复