Hello all,
I assume I am doing something foolish, but I haven't been able to figure it out. I am looking at using a wide timer on the LM230H5QR as a PWM output on a custom board. I have used the stellaris/tiva function calls before on a standard timer with success. Unfortunately I haven't been able to use the wide timer as a PWM output. Here is what I have.
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_6);
GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_6,0);
SysCtlPeripheralEnable(SYSCTL_PERIPH_WTIMER5);
GPIOPadConfigSet(WTIMER5_BASE, GPIO_PIN_6, GPIO_STRENGTH_8MA_SC, GPIO_PIN_TYPE_STD);
GPIOPinConfigure(GPIO_PD6_WT5CCP0);
GPIOPinTypeTimer(GPIO_PORTD_BASE, GPIO_PIN_6);
TimerConfigure(WTIMER5_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PWM);
TimerLoadSet(WTIMER5_BASE, TIMER_A, 2000);
TimerMatchSet(WTIMER5_BASE, TIMER_A, 1000);
TimerEnable(WTIMER5_BASE, TIMER_A);
WT5CCP0 is muxed with PD6. I believe I have it set up correctly. I am not concerned with the load or match values. I can alter those later. Right now I just want to get a PWM signal out. Currently I set up the PWM signal and enter a forever loop just to see if it works. The output on the pin goes high with some noise. The same function call series works with on a standard timer PWM. In the future I would like to use the ROM function calls, but right now I am desperate to get anything working.
Any help would be greatly appreciated.
Jeff