LPC553x PWM submodule clocks should be enabled by tools

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC553x PWM submodule clocks should be enabled by tools

307 Views
asund
Contributor II

On the LPC553x platform, the PWM peripheral SDK driver should enable the upstream clocks for the submodules in use, prior to configuring the peripheral.

SYSCON->PWM0SUBCTL and SYSCON->PWM1SUBCTL need to have the submodule clock bits set before the submodules are configured.

The EVK example project shows this being done, but the configuration tools / SDK drivers don't do this automatically.

Labels (1)
0 Kudos
1 Reply

290 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @asund,

ConfigTools Peripherals PWM's only lets you to configure the PWM peripheral, and due that do not set the SYSCON register PWM0SUBCTL or PWM1SUBCTL through it.

As you mention, the SYSCON->PWM1SUBCTL |= (SYSCON_PWM1SUBCTL_CLK0_EN_MASK | SYSCON_PWM1SUBCTL_CLK1_EN_MASK | SYSCON_PWM1SUBCTL_CLK2_EN_MASK); that is needed for set the submodules clocks have to be written separately by the user. Following the lpcxpresso55s36_pwm SDK's example might be good to set the submodule clock bits before calling BOARD_InitPeripherals();

The PWM peripheral SDK driver should enable the upstream clocks for the submodules in use, prior to configuring the peripheral.

Finally, regarding your comment we will let the people in charge to know the suggestion for future updates.

Best regards, Raul.

0 Kudos