This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28379D: ePMW setting for ADC timing

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

For ADC, I have a code as follow in 'examples_setup.h'

=========================================================

#define CPU_FRQ_200MHZ 1

#define ADC_SAMPLING_FREQ 25000.0L

#define EPWM_HSPCLKDIV 1

#define EPWM1_PERIOD 2000

#define EPWM1_DUTY_CYCLE 1000

#define EPWM2_PERIOD 200000

#define EPWM2_DUTY_CYCLE 100000

=========================================================

Does ADC use EPWM1 and EPWM2 both? or just use EPWM1?

 

Also, In case of using sampling frequency as 26kHz,

I calculated EPWM DUTY CYCLE and PERIOD values and they are not exact integer.(ex:1290.1229)

In that case, should I use just '1290' instead of '1290.1229'?