Part Number: TMS320F280049C
Hello,
I just tried out your example in the driverlib: adc_ex3_temp_sensor to see how to configure the EPWM to trigger my adc with the right frequency.
If I understood the documentation right, I need to configure the period TB:
// periode count
EPWM_setTimeBasePeriod(EPWM1_BASE, 0x0800);
And the counter:
//
// Set counter compare value
EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, 0xFFFF);
So I would generate every t = periode * compare_value and event. Where periode depends on the epwm clock frequency, where the divider is initially set to 2? Now no matter what i put into :
EPWM_setTimeBasePeriod(EPWM1_BASE, ANY_VALUE);
The interrupt is always about every 130.000 system clock cycles (freq. 100 MHz).
So where is my lag of understanding the documentation.
I already watched: (https://training.ti.com/getting-started-c2000-epwm-module)and read the documentation.