2004-08-10 01:14 AM
2004-08-10 12:26 AM
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=false2004-08-10 01:14 AM
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.