Skip to main content
Visitor II
September 30, 2003
Question

Timer - from 75ms delay to 5s delay

  • September 30, 2003
  • 1 reply
  • 644 views
Posted on September 30, 2003 at 05:33

Timer - from 75ms delay to 5s delay

    This topic has been closed for replies.

    1 reply

    mrbitAuthor
    Visitor II
    September 30, 2003
    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.