Other Parts Discussed in Thread: CONTROLSUITE
Hi Guys,
CCS v 6.2(compiler version = TI v15.12.3.LTS)
TMX320F28075 Control Card
control Suite v 3.4.1
Example program used: ..\controlSUITE\device_support\F2807x\v200\F2807x_examples_Cpu1\epwm_up_aq
I modified the EPWM3 configuration to EPWM11 (replaced Epwm3Regs with Epwm11Regs).
I have enabled the clock for epwm11. I have initialized the epwm11 GPIO as:
void InitEPwm11Gpio(void)
{
EALLOW;
//
// Disable internal pull-up for the selected output pins
// for reduced power consumption
// Pull-ups can be enabled or disabled by the user.
// This will enable the pullups for the specified pins.
// Comment out other unwanted lines.
//
GpioCtrlRegs.GPAPUD.bit.GPIO20 = 1; // Disable pull-up on GPIO20 (EPWM11A)
GpioCtrlRegs.GPAPUD.bit.GPIO21 = 1; // Disable pull-up on GPIO21 (EPWM11B)
//
// Configure EPWM-11 pins using GPIO regs
// This specifies which of the possible GPIO pins will be EPWM11 functional
// pins.
// Comment out other unwanted lines.
//
GpioCtrlRegs.GPAMUX2.bit.GPIO20 = 5; // Configure GPIO20 as EPWM11A
GpioCtrlRegs.GPAMUX2.bit.GPIO21 = 5; // Configure GPIO21 as EPWM11B
EDIS;
}
And the Counter and CMP values are working, as you can see below:
Now I do not get outputs at Pin 68 (GPIO20) and Pin 70 (GPIO21) in the experiment kit. But the other epwm 1 nad 2 gives pwm outputs as expected. Please let me know what am I doing wrong?