RM0008
14.4.4
Status register (TIMx_SR)
Address offset: 0x10
Reset value: 0x0000
15
14
13
Bits 15:1 Reserved, always read as 0.
Bit 0 UIF: Update interrupt flag.
This bit is set by hardware on an update event. It is cleared by software.
0: No update occurred.
1: Update interrupt pending. This bit is set by hardware when the registers are updated:
– At overflow or underflow regarding the repetition counter value and if UDIS = 0 in the TIMx_CR1
register.
– When CNT is reinitialized by software using the UG bit in the TIMx_EGR register, if URS = 0 and
UDIS = 0 in the TIMx_CR1 register.
14.4.5
Event generation register (TIMx_EGR)
Address offset: 0x14
Reset value: 0x0000
15
14
13
Bits 15:1 Reserved, always read as 0.
Bit 0 UG: Update generation.
This bit can be set by software, it is automatically cleared by hardware.
0: No action.
1: Re-initializes the timer counter and generates an update of the registers. Note that the prescaler
counter is cleared too (but the prescaler ratio is not affected).
12
11
10
9
12
11
10
9
Reserved
Res.
8
7
6
Reserved
Res.
8
7
6
Basic timer (TIM6&7)
5
4
3
2
5
4
3
2
Reserved.
Res.
1
0
UIF
rc_w0
1
0
UG
w
339/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers