Skip to main content
Visitor II
August 10, 2004
Question

st72254

  • August 10, 2004
  • 2 replies
  • 718 views
Posted on August 10, 2004 at 10:14

st72254

    This topic has been closed for replies.

    2 replies

    efeixasAuthor
    Visitor II
    August 10, 2004
    Posted on August 10, 2004 at 09:26

    I just want to know how you can execute some intructions every time the PWM interrupt put on. thanks.

    ________________

    Attachments :

    Demo.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I02t&d=%2Fa%2F0X0000000bUQ%2FE7MjDh0bYeRpR6SdcOJJeo_Z_oOYf9f1qrd4NPptdno&asPdf=false
    Visitor II
    August 10, 2004
    Posted on August 10, 2004 at 10:14

    When the counter is equal to OC2R the ICF flag is also set and if you have particular set of instructions which you want to execute then if can include them in the ISR of Timer.

    The PWM signal will not be affected because the counter is running and as per the equality with OC1R and OC2R register it will keep outputting the values for which you have programmed the device.