Other Parts Discussed in Thread: CONTROLSUITE, BOOSTXL-C2KLED
Tool/software: Code Composer Studio
In most PWMdriver used in the Digital Power Library like PWM_DualUpDwnCnt_CNF(int16 n, int16 Period, int16 Mode, int16 Phase), what is that "n" referring to?
I am using BOOSTXL-C2KLED (C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_examples\LED_Boost_PC) and in the code, the PWM setup is (LED_Boost_PC_Main.c):
PWM_DualUpDwnCnt_CNF(1, prd, 1, 0);
PWM_DualUpDwnCnt_CNF(2, prd, 0, 400);
PWM_1ch_UpDwnCnt_CNF(3, prd, 0, 400);
while in the ISR (LED_Boost_PC_ISR.asm), it is:
PWMDRV_DualUpDwnCnt_INIT 1 ; EPWM1AB
PWMDRV_1ch_UpDwnCnt_INIT 2 ; EPWM2A
The docs in C:\ti\controlSUITE\libs\app_libs\digital_power\f2802x_v3.5\Doc\DPLib.pdf doesn't explain this in detail.
regards,
Victor