SPRUIK4A September 2018 – June 2019 TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The SFRA library comes with a software test bench (STB) example that runs the SFRA around a fictitious loop that consists of a proportional integral controller, inherently due to the sampled nature of SFRA the digital update delay, as shown in Figure 17.
To import the STB project:
NOTE
The STB example can run the single precision floating point lib and the single precision floating point lib with tmu. A selection can be made while importing the project
There are some errors that are caused by floating-point operations and how they are handled on the MCU, and how matlab handles them. Overall, this verifies the SFRA algorithm function as the errors are within reasonable error limits. Closed loop transfer function plot can also be verified in a similar manner.