i am doing a program on timer in STM32L152 Discovery board.Actually i want to check UIF flag in TIMx_SR ,so i have eabled update interrupt.but while running the program capture flags in TIMx_SR is changing in particular intervals.can anyone give any suggetion.....?