Hi,
I'd like to generatea PWM waveform within UBoot.
To do so, I:
1) Set my pin as output
2) I configure my pin in eCAP0_in_PWM0_out mode
3) I enable PWMSS block (CM_PER_EPWMSS0_CLKCTRL)
4) I enable ePWM0 tbclk (pwmss_ctrl)
5) Check if clock is enable
6) I configure the period (TBPRD)
7) I reset phase and counter register (TBPHS and TBCNT)
8) I configure control register (TBCTL = 0x30)
9) I set CMPA to half TBPRD for 50% duty cycle
10) I set CMPCTL to 0x00
11) I set AQCTL to 0x21
Is there something more I should do in order to see my signal on my output pin?
While use as GPIO, I can toggle it without problem.