Skip to main content
efeixas
Associate III
Aug 10, 2004 8:14 AM UTC
Question

st72254

Posted on August 10, 2004 at 10:14

st72254

This topic has been closed for replies.

2 replies

efeixas
efeixasAuthor
Associate III
Aug 10, 2004 7:26 AM UTC
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
anshul
Associate II
Aug 10, 2004 8:14 AM UTC
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.