timer example clear interrupt bit

Sysprogs forums Forums VisualGDB timer example clear interrupt bit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #657
    atomic
    Participant

    In your timer example for the STM32, you clear the pending bit before doing the “work” (i.e. flashing the led). Is that normal to clear the bit before the work is started? Or should the bit not be cleared before exiting the interrupt function?

    #2679
    atomic
    Participant

    Just curious, is this forum moderated by the visualgdb company or volunteer community?

    When/if we purchase visual gdb, i’m wondering what the support will look like.

    #2680
    support
    Keymaster

    Hi,

    In the example the timer interrupt period is significantly longer than the time required to process the interrupt, so the order of those operations does not matter. In more complex designs where you want to prevent interrupts from re-firing while the old one is still processed, you may want to use various configuration registers of the interrupt controller (e.g. BASEPRI).

    Regarding support times, the forum is moderated by sysprogs, however unlike the email support, it’s mostly suited for general discussions rather than urgent/blocking issues. Requests that require external research sometimes take longer to answer. For email requests our policy is to provide an answer within 48 hours, however the average time is less than 12 hours (depending on the time zone).

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.