Hello,
I am new to the TI ARM and stellarisware family. I am playing with a LM4F232 dev kit. My question is regarding PWM using a timer, rather than the dedicated PWM generator block. Basic PWM needed, nothing fancy. I am trying to use the wide timer on pin 19-PH3. I haven't had any luck.
10kHz - 50%
SysCtlPeripheralEnable(SYSCTL_PERIPH_WTIMER5);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOH);
GPIOPinConfigure(GPIO_PH3_WT5CCP1);
GPIOPinTypeTimer(GPIO_PORTH_BASE, GPIO_PIN_3);
TimerConfigure(WTIMER5_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_PWM);
TimerLoadSet(WTIMER5_BASE, TIMER_B, 1600);
TimerMatchSet(WTIMER5_BASE, TIMER_B, TimerLoadGet(WTIMER5_BASE, TIMER_B)/2);
TimerEnable(WTIMER5_BASE, TIMER_B);
while(1){
}
What am I missing?
Also, when debugging. I get a No source available for "_c_int00() at 0x764" when I pause. I realize that it is some kind of reset handler in the startup_ccs.c file, but why am I getting this error?
Thanks