Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28062
I am having trouble with gliching on the comparator and DAC. I am trying to generate a ramp for use in a peak mode current controller.
I am using a F28069 Control card in an experimenters kit.
I started with the 'TripComp' sample software from the 28069 Control stick examples.
I am comparing an analog input on A2 with the internal DAC. My analog input is created by using a potentiometer supplied by the experimenter kit 3V3 and GND.
I have added a ramp generator to the DAC configuration, and tweaked the event/TZ logic to turn EPWM1A off when the ramp cross the input ADC value.
I start the ramp with :-
Comp1Regs.RAMPDECVAL_SHDW = 64;
Comp1Regs.RAMPMAXREF_SHDW = 44800
And vary the potentiometer.
It works, but when it hits a glitch, the glitches are large - upto 40% DC @ 800KHz.
Has anybody else had trouble with this chip or other Piccolo chips ?
Any ideas on what to try ?
PS The problem also appears when using the CLA to update the DAC - so not a ramp generator problem, I think.
PPS Although there is nothing in the errata about this problem, the control card has a TMX chip on it.
