Topic: PWM signals on P200 header not working
Hello,
I am trying to get the PWM2, 3, and 4 signals working with no success. I went through every post I could find and the datasheet for the processor. I even checked the HW_CLKCTRL_XTAL register to make sure the clock was turned on to the PWM hardware. I am trying to control PWM2. This is the sequence I attempted.
HW_PINCTRL_MUXSEL3_CLR = 0x03000000
HW_PWM_CTRL = 0 // doing this makes the registers accessible.
HW_PWM_ACTIVE2 = 0x01770000
HW_PWM_PERIOD2=0x005b1d4c
HW_PWM_CTRL=4
Am I missing something? Did I do the wrong sequence? Is PWM2 really available?
Ivan