Other Parts Discussed in Thread: CONTROLSUITE
hi ,
I was looking at an example code / code snippet that could help me configure the ePWM in F28069.
i am looking at providing an input period that is greater than 16 bits .
This makes it difficult to directly write the whole period to the TBPRD register as it would truncate it to 16 bits .
i believe that i would need to use the TBPRDM register if i have to configure for 24 bits period ? is that correct ?
i have used the code below . Am i missing something ?
EPWM_REGS is as defined in the F2806x_Epwm.h (C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include)
volatile struct EPWM_REGS *pepwm;
pepwm->TBPRDM.half.TBPRDHR = temp && 0x000000FF;
pepwm->TBPRDM.half.TBPRD = (temp >> 8) & 0x0000FFFF;
Are there any other registers that need to be configured ?
The LSB 8 bits are in the TBPRDHR and the bits 24 to 8 are in TBPRD . is this the right way to do it ??
Need these details to configure some upper level details for a customer ...
Thanks .
Regards .