PWM interrupt issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi all,

   

          I'm using PWM to generate 1 sec delay.In the configure of PWM i made interrupt on terminal count.I know that API will give interrupt on period match.But for some condition i want to go for software polling.For this reason i want to know the status flag register,so that i disable the hardware interrupt and go for software poling using status register flag .Can you give me details on which flag correspond to PWM interrupt.And at the same time give me link which provide the details on PSoc3.

   

With regards

   

san2884

0 Likes
1 Reply
Anonymous
Not applicable

Hi Santosh,

   

The Status register bits corresponding to the PWM, can be monitored using the API ,  PWM_ReadStatusRegister(void).

   

The terminal count bit in the status register is set when PWM modile reaches the terminal count. Please not that these bits are sticky- meaning these bits are cleared upon reading.

   

-Udayan

   
        
0 Likes