cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f407vgtx Timer Funtionality

Ash1
Associate III

Hi 

I am facing one issue I am trying to run Timer2 and as soon I have enable the by setting CR1 register bit CEN, My all flags in SR is getting set even I have enabled only(UIE) so my UIF flag bit in SR register must set but it is setting all (CC4IF CC3IF CC2IF CC1IF) .

Can you help me to understand is it normal or why it was happened?

B.R

Ashish

1 REPLY 1
TDK
Super User

The flags get set regardless of whether or not the interrupt for that flag is enabled.

CCxIF flags will be set if CCRx = 0 and the counter is started with the channel in output mode (default). If the interrupt is not enabled, it will not fire as a result of these flags. This is the expected behavior and no action is required.

If you feel a post has answered your question, please click "Accept as Solution".