MC9S08AW, RTI-Timer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08AW, RTI-Timer

2,252 Views
Truk
Contributor I
Is this timer usable without interrupt as RTC in the main loop by testing RTIF and if = 1 WR to RTICK?
Labels (1)
0 Kudos
2 Replies

215 Views
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 Kudos

215 Views
RockyRoad
Contributor III
Checked it out on the part (with different assembly software). It works there also.
 
- Rocky
0 Kudos