Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
190 views

STM32 Timer Calcs

The document discusses calculating the reload value and period for timers on the STM32F429i microcontroller. It provides formulas and examples for setting the reload value based on the clock frequency, prescaler value, and desired period. Tables show example configurations for different timers including the reload value, prescaler, and resulting period.

Uploaded by

MusicLover1995
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
190 views

STM32 Timer Calcs

The document discusses calculating the reload value and period for timers on the STM32F429i microcontroller. It provides formulas and examples for setting the reload value based on the clock frequency, prescaler value, and desired period. Tables show example configurations for different timers including the reload value, prescaler, and resulting period.

Uploaded by

MusicLover1995
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 12

STM32F429i - Discovery Timer Ca

Calculate Reload Value Calculate Perio

Clock frquency 168.0E+6 Hz Clock frquency


Pre-scaler 1,680 Hz Pre-scaler
Desired Period 700.0E-3 s Reload Value
1.68E+02
Reload Value 69999.00 Period

50kHz 20.0E-6
40kHz 25.0E-6 ARR/8 8750

30,000 33.3E-6 1.00


20,000 50.0E-6 1.00
13,333 75.0E-6 2.00
8,889 112.5E-6 3.00
5,926 168.7E-6 4.00
3,951 253.1E-6 6.00
2,634 379.7E-6 9.00
1,756 569.5E-6 14.00
1,171 854.0E-6 21.00
781 1.3E-3 32.00
521 1.9E-3 48.00
347 2.9E-3 72.00
231 4.3E-3 108.00
154 6.5E-3 162.00
103 9.7E-3 242.00
69 14.5E-3 362.00
46 21.7E-3 543.00
31 32.3E-3 806.00
ery Timer Calculator
alculate Period

ock frquency 168.0E+6 Hz APB1


e-scaler 8 Hz
eload Value 80 Timer
Timer 3
eriod 3.9E-6 s Timer 2
Timer 4
ARR/4 259.3E+3
17500
10us
2625 500.2E-6 1,999 100ms
2386 454.7E-6 2,199 100ms
2169 413.3E-6 2,419
1972 375.8E-6 2,661
1793 341.7E-6 2,926
1630 310.7E-6 3,219
1482 282.5E-6 3,540
1347 256.8E-6 3,895
1225 233.5E-6 4,282
1114 212.4E-6 4,709
1013 193.1E-6 5,178
921 175.6E-6 5,694
837 159.6E-6 6,265
761 145.1E-6 6,890
692 132.0E-6 7,576
629 120.0E-6 8,333
572 109.1E-6 9,162
520 99.2E-6 10,077
/4 T2, T3, T4 50
55
X slower Used for? 60
4Switching 65
4Dead Time 70
4Measurements 75
80
Presc ARR Timer 85
Dead Time 8 52 2 90
Switching 1680 2500 3 95
Measurements 1680 2500 4 100
105
110
115
120
125
130
135
140
145
150
155
160
165
170
175
180
185
190
195
20.0E-3 250.00 1 500.00 84
18.2E-3 227.00 2 454.00 79.8
16.7E-3 208.00 3 416.00 75.81
15.4E-3 192.00 4 384.00 72
14.3E-3 178.00 5 357.00 68.42
13.3E-3 167.00 6 333.00 65
12.5E-3 156.00 7 312.00 61.75
11.8E-3 147.00 8 294.00 58.66
11.1E-3 139.00 9 278.00 55.73
10.5E-3 131.00 10 263.00 52.94
10.0E-3 125.00 11 250.00 50.29
9.5E-3 119.00 12 238.00 47.78
9.1E-3 114.00 13 227.00 45.39
8.7E-3 109.00 14 217.00 43.12
8.3E-3 104.00 15 208.00 41
8.0E-3 100.00 16 200.00 38.92
7.7E-3 96.00 17 192.00 37
7.4E-3 92.00 18 185.00 35.12
7.1E-3 89.00 19 178.00 33.37
6.9E-3 86.00 20 172.00 31.7
6.7E-3 83.00 21 166.00 30.11
6.5E-3 81.00 22 161.00 28.61
6.3E-3 78.00 23 156.00 27.18
6.1E-3 76.00 24 151.00 25.82
5.9E-3 73.00 25 147.00 24.53
5.7E-3 71.00 26 143.00 23.3
5.6E-3 69.00 27 139.00 22.14
5.4E-3 67.00 28 135.00 21
5.3E-3 66.00 29 131.00 20
5.1E-3 64.00 30 128.00 19
18
17.13
16.27
15.46
14.69
STM32F429i - Discovery Timer Calculato
Calculate Reload Value Calculate Period

Clock frquency 168.0E+6 Hz Clock frquency


Pre-scaler 1,680 Hz Pre-scaler
Desired Period 2.0E+0 s Reload Value

Reload Value 199999.00 Period


Timer Calculator
alculate Period

lock frquency 168.0E+6 Hz


re-scaler 1,680 Hz
eload Value 320,000

eriod 3.2E+0 s
CL CH BL BH AL AH 0 0 0 0 0 0 0 0 0 0 CL CH BL BH AL AH 0 0 0 0 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5
1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0
2 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0
3 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0
4 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0
5 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0
6 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
OFF 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
4 3 2 1 0
0 0 0 0 0 D8002400
0 0 0 0 0 78008400
0 0 0 0 0 6C009000
0 0 0 0 0 E4001800
0 0 0 0 0 B4004800
0 0 0 0 0 9C006000
0 0 0 0 0 FC000000

You might also like