Skip to main content
Visitor II
April 8, 2003
Question

timer for 1ms

  • April 8, 2003
  • 16 replies
  • 2500 views
Posted on April 08, 2003 at 05:29

timer for 1ms

    This topic has been closed for replies.

    16 replies

    csamelingAuthor
    Visitor II
    April 4, 2003
    Posted on April 04, 2003 at 09:37

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6X7&d=%2Fa%2F0X0000000bq6%2FmX5IIdj5gvqdqUJ1xzEgmrcwz0T6Pa4V9BYmgxeh.4w&asPdf=false
    Visitor II
    April 4, 2003
    Posted on April 04, 2003 at 10:06

    Allo Ampel...

    Send me by EMail your complete workspace (zip file!) and I'll return you the corrected version.

    Rgds

    Florent
    Visitor II
    April 7, 2003
    Posted on April 07, 2003 at 12:08

    Hello Ampel,

    There is no single bit which will enable all the interrupts. So, if you have a main() with only a ''rim'' instruction, no interrupt will be enabled. The interrupt correspoding to each peripheral is enabled by a bit in one of the control registers of the peripheral(like OCIE bit in case of timer output compare).

    In case you were checking for the timer interrupt on the output compare pin, you need to enable the pin output function by setting the OC1E/OC2E bit in CR2.

    Hope this helps!

    [ This message was edited by: dasg on 07-04-2003 15:39 ]
    Visitor II
    April 8, 2003
    Posted on April 08, 2003 at 03:35

    Hello Ampel,

    There is no single bit which will enable all the interrupts. So, if you have a main() with only a ''rim'' instruction, no interrupt will be enabled. The interrupt correspoding to each peripheral is enabled by a bit in one of the control registers of the peripheral(like OCIE bit in case of timer output compare).

    In case you were checking for the timer interrupt on the output compare pin, you need to enable the pin output function by setting the OC1E/OC2E bit in CR2.

    Hope this helps!

    csamelingAuthor
    Visitor II
    April 8, 2003
    Posted on April 08, 2003 at 05:20

    Hello dasg.

    Thanks.

    The TimerB is responsible for the timing of the OS. So I do not need an output pin for timerB (timerA, too).

    regards,

    Ampel

    PS: Hello Florent.

    I tried to send an email to you, but without success.
    Visitor II
    April 8, 2003
    Posted on April 08, 2003 at 05:29

    Hi Ampel,

    To contact me, click on my name in the members section, and then click on 'sent a private message'....That should work; if not, and if needed, I'll give you my EMAil adress...

    Cheers!

    Florent