LPC553x PWM submodule clocks should be enabled by tools

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC553x PWM submodule clocks should be enabled by tools

750件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

733件の閲覧回数
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 件の賞賛
返信