MC9S08AW, RTI-Timer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9S08AW, RTI-Timer

2,609件の閲覧回数
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 返答(返信)

572件の閲覧回数
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 件の賞賛
返信

572件の閲覧回数
RockyRoad
Contributor III
Checked it out on the part (with different assembly software). It works there also.
 
- Rocky
0 件の賞賛
返信