The Software Frequency Response Analyzer (SFRA) is a software library that enables developers to quickly measure the frequency response of their digital power converter. The SFRA library contains software functions that inject a frequency into the control loop and measure the response of the system using the Sitara MCUs’ on-chip analog to digital converter (ADC). This process provides the plant frequency response characteristics, the open loop gain frequency response and the closed loop frequency response of the closed loop system.
This library contains header file (sfra_f32.h) and ".lib" file based on release/debug configuration.
SFRA module includes calculation and storage of following:
GUI is not supported
A benchmark on R5F core has been conducted to observe the following results when running the following functions:
SFRA Function | Cpu Cycles |
---|---|
SFRA_F32_reset | 15 |
SFRA_F32_config | 15 |
SFRA_F32_inject | 66 |
SFRA_F32_collect | 37 |
SFRA_F32_runBackgroundTask | 89 |
SFRA Obj files | Code Size(Bytes/8bits) |
---|---|
SFRA_F32_reset + SFRA_F32_config | 424 |
SFRA_F32_inject + SFRA_F32_collect + SFRA_F32_runBackgroundTask | 1522 |
The following examples has been provided to demonstrate sfra module:
N/A