UM0306 Advanced control timer (TIM1)
161/519
Figure 40. Counter timing diagram, internal clock divided by 4, TIM1_ARR=0x36
Figure 41. Counter timing diagram, internal clock divided by N
Figure 42. Counter timing diagram, Update event with ARPE=1 (counter underflow)
CK_PSC
0036 0035
CNT_EN
TIMER CLOCK = CK_CNT
COUNTER REGISTER
UPDATE INTERRUPT FLAG (UIF)
0034
0035
COUNTER OVERFLOW
UPDATE EVENT (UEV)
Note: Here, center-aligned mode 2 or 3 is used with an UIF on overflow
TIMER CLOCK = CK_CNT
COUNTER REGISTER
00
20
1F
UPDATE INTERRUPT FLAG (UIF)
COUNTER UNDERFLOW
UPDATE EVENT (UEV)
CK_PSC
01
CK_PSC
00
CNT_EN
TIMER CLOCK = CK_CNT
COUNTER REGISTER
UPDATE INTERRUPT FLAG (UIF)
COUNTER UNDERFLOW
UPDATE EVENT (UEV)
01 02 03 04 05 06 0705 04 03 02 0106
AUTO-RELOAD PRELOAD REGISTER
FD 36
Write a new value in TIM1_ARR
AUTO-RELOAD ACTIVE REGISTER
FD 36