Part Number: CC3200MOD
Is there anything special that needs to be done to use PWM3 (TCK)?
I have 4 PWM's in my design all using the same function calls ( PWM 5 (GPIO9), PWM0 (TDO/GPIO24), PWM 2 (SOP2/GPIO25), and PWM 3(TCK). I have double checked and confirmed my code for PWM3 is using TMR1B as it should, and has the same function calls as the other channels. But the output is always low.
In my hardware, note that I understand 3 of my 4 PWM's will not work with debugger. I am sure to test without debugger. The only connections on my hardware to TCK pin is the suggested 100k pulldown resistor and the gate of a FET.
I do notice TCK does not have a 'GPIO' available. Is there anything I need to do to ensure TCK is setup as output?
FYI, here are code snippets:
In pinconfig.c:
PRCMPeripheralClkEnable(PRCM_TIMERA1, PRCM_RUN_MODE_CLK);
PinTypeTimer(PIN_19, PIN_MODE_8));
During init:
TimerConfigure(TIMERA1_BASE,(TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_PWM));
TimerPrescaleSet(TIMERA1_BASE,TIMER_B,0);
TimerLoadSet(TIMERA1_BASE,TIMER_B,TIMER_INTERVAL_RELOAD); //Set frequency
TimerEnable(TIMERA1_BASE,TIMER_B);
During update:
TimerMatchSet(TIMERA1_BASE,TIMER_B, (DUTYCYCLE_FULL - nvmFlashVars.chamberLightG) * DUTYCYCLE_GRANULARITY);
I look forward to any advice you may have.