Other Parts Discussed in Thread: UCD3138064A, UCD3138128A, UCD3138A64A, UCD3138A, UCD3138
Tool/software: Code Composer Studio
In the following codes,
does "3" mean 2^3? (SAMPLE_TRIG1_OVERSAMPLE = 3)
If ‘3’ replaced by ‘1’ or ‘2’ ,there would be a 2X oversampling or 4X oversampling?
the line in green could make UCD3138PFCEVM_026 achieve 8X oversampling?
#endif //((UCD3138A==1)||(UCD3138064A==1)||(UCD3138A64A==1)||(UCD3138128A==1))
Dpwm1Regs.DPWMCTRL0.bit.PWM_MODE = 2; //multi mode
// Dpwm1Regs.DPWMCTRL2.bit.SAMPLE_TRIG1_OVERSAMPLE = 3; //8X oversampling.
Dpwm1Regs.DPWMCTRL1.bit.EVENT_UP_SEL = 1; //update at end of period
#endif
hope for your help,thanks.