cancel
Showing results for 
Search instead for 
Did you mean: 

Timer - from 75ms delay to 5s delay

mrbit
Associate II
Posted on September 30, 2003 at 05:33

Timer - from 75ms delay to 5s delay

1 REPLY 1
mrbit
Associate II
Posted on September 30, 2003 at 05:33

The st10 works on 16M oscillator

At first, I use RTC:

RTCPL = 0x00ff;

That's RTCL will increase 1 after 64 * 256 *1 / 16M = 1ms;

But when it comes to hardware, the timer is wrong. The 5 second delay becomes nearly 16 seconds. I don't know why.

We have several timers, from 50ms, 75ms to 5s. Shall I have to use the capcom and rtc both?

If there's someone could give me a hand u advice would be appreciated.