This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F2800137: PWM setup issue

Part Number: LAUNCHXL-F2800137

Hello team,

Here i try to setup PWM for GPIO 227 in Launchpad f2800137, and set following registors only

GpioCtrlRegs.GPHPUD.bit.GPIO227 = 1;
GpioCtrlRegs.GPHGMUX1.bit.GPIO227=1;
GpioCtrlRegs.GPHMUX1.bit.GPIO227=2;

but its not working, please help me out to resolve this problem

your guidance highly appreciated for this side.

  • HI Yash,

    GPIO227 is an AGPIO. Meaning it can have either digital or analog functionality. When using an AGPIO pin  you must set the analog mode as disabled using the following function:

    GPIO_setAnalogMode(227, GPIO_ANALOG_DISABLED)

    Or writing to the corresponding AGPIOCTRLH register.

    You also need to configure your GPIO as an output using the GPHDIR register.

    Thank you,

    Luke