4.3.3 SFO Library Version Software Differences
There are two different versions of the SFO library - SFO_TI_Build_V6.lib, and SFO_TI_Build_V6b.lib.
SFO_TI_Build_V6.lib does not update the HRMSTEP register with the value in MEP_ScaleFactor, while
SFO_TI_Build_V6b.lib updates the register. Therefore, if using SFO_TI_Build_V6.lib and auto-conversion is
enabled, the application should write MEP_Scalefactor in the HRMSTEP register as shown in
.
Example 4-10. Manually Updating the HRMSTEP Register if Using SFO_TI_Build_V6b.lib
main ()
{
int status;
status = SFO_INCOMPLETE;
while (status==SFO_INCOMPLETE) {
status = SFO();
}
if(status!=SFO_ERROR) { // IF SFO() is complete with no errors
EALLOW;
EPwm1Regs.HRMSTEP=MEP_ScaleFactor;
EDIS;
}
High-Resolution Pulse Width Modulator (HRPWM)
400
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......