SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
System Frequency is the clock rate of the MCU. It is recommended to run at the highest frequency possible so that the code is executed as fast as possible. There are two sections where user must configure the system frequency to the maximum.
Configure MCU to fastest CPU clock for best real-time performance.
The first section is in user.h file. This #define will make sure the calculations for all the timing blocks are calculated accordingly.
The second section is in the file hal.c using the function HAL_setParams, see the code example shown in Table 6-1 configuring the PLL to run at a maximum frequency of 90 MHz for the 2806x device, and 60 MHz for the 2805x and 2802x devices.
Device | Fastest System Frequency | user.h | hal.c |
---|---|---|---|
2806x | 90 MHz |
|
|
2805x | 60 MHz |
|
|
2802x | 60 MHz |
|
|