cancel
Showing results for 
Search instead for 
Did you mean: 

st72254

efeixas
Associate II
Posted on August 10, 2004 at 10:14

st72254

2 REPLIES 2
efeixas
Associate II
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
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.