Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi TI experts,
I am working on the TI example of comparators asynchronously tripping PWM from the following directory.
C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2803x\examples\c28\epwm_dcevent_trip_comp
I used the use DAC instead of pin COMP1B.
//
// Connect the inverting input to pin COMP1B
//
// Comp1Regs.COMPCTL.bit.COMPSOURCE = 1;
//
// Uncomment following 2 lines to use DAC instead of pin COMP1B
//
// Connect the inverting input to the internal DAC
//
Comp1Regs.COMPCTL.bit.COMPSOURCE = 0;
Comp1Regs.DACVAL.bit.DACVAL = 512; // Set DAC output to midpoint
I tested the delay is around 150 to 200ns between shorting ADC A2 to the ground and the response of the PWM signal with an oscilloscope. I tested several times and the results were consistent. I did not change any code of the example, except the ones shown above to choose DAC instead of pin COMP1B. I believe it is implemented asynchronously, and the delay should be minimal.
Could you please comment on why I get 150 to 200ns delay? Am I missing something? Could you point to some data showing the expected delay of asynchronously shutting down PWM?
Thank you in advance.