Other Parts Discussed in Thread: EK-TM4C123GXL
Looking for help. I'm working toward building a DC/AC inverter, using the EK-TM4C123GXL to control 4 gate signals being sent to FET's in an H-bridge, also using Code Composer Studio v6.
Right now I am just trying to get one gate signal to switch between two duty cycles, which are defined in an array.
The variations in PWM outputs are inconsistent. Duty cycles are set to HIGH (~90%) and LOW (~10%), count-down timer and should alternate one at a time, but sometimes each will occur twice in a row. See the oscilloscope screencap below.
Looking further at the PWM outputs, it appears as though there is a pattern to when the HIGH and LOW duty cycles double up (HHL HHLL HLL and so on, where H=HIGH and L=LOW), so the issue might be some sort of timing error involving the interrupts. Interrupts are set to trigger at the end of each PWM period, at which the duty cycle is changed to the next value in an array.
The microprocessor is set to the default CPU speed of 8 MHz, PWM signals are set to run at 2.16 kHz.
Does anyone know what might be causing this and how to fix it? Let me know if you need more info.
Thanks!
