Other Parts Discussed in Thread: C2000WARE
Hi Team,
In the C:\ti\c2000\C2000Ware_4_03_00_00\libraries\calibration\hrpwm\f2837xd\lib\readme.txt, is it specified that SFO() would use an array
volatile uint32_t ePWM[(PWM_CH + 1)] = {0, EPWM1_BASE, EPWM2_BASE};
and a status variable:
uint16_t status = SFO_INCOMPLETE;
This looks weird. Why are global variables defined? How can the `SFO` check the size of the array? Why status should be global as well?
Moreover, should I prefer 5 or 6? What is the difference between these two libraries?
5. SFO lib Driverlib implementation in EABI format - SFO_v8_fpu_lib_build_c28_driverlib_eabi.lib
6. Index lib for Driverlib based SFO lib - SFO_v8_fpu_lib_build_c28_driverlib.lib
Apart from readme.txt, I don't find any documentation related to this SFO library.
What I would like to understand:
- Is this global `ePWM` variable required, is it possible to change its name, or better, send it to SFO(ePWM)?
- How long does SFO takes in average?
- How frequently should I call SFO? Is it reasonable to call it on every 40kHz PWM cycle?
Thanks in advance!
Kind Regards,
Jejomar