LPC804(QFN33) PWM problem

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

LPC804(QFN33) PWM problem

451件の閲覧回数
thinkking1985
Contributor III

Hi sir

I use LPC804's P0.18 to be PWM output. and use the SDK in the test, it is found that when the program is executed( base->PWMC |= (1UL << (uint32_t)matchChannel);), it will output high level.

Very strange phenomenon, this high level is not acceptable.

tks a lot for your support.

Remark:

1:SDK Version:SDK_2.9.0_LPCXpresso804

2:Project:SDK_2.9.0_LPCXpresso804\boards\lpcxpresso804\driver_examples\ctimer\simple_pwm

3:base->PWMC |= (1UL << (uint32_t)matchChannel)      in status_t CTIMER_SetupPwmPeriod(CTIMER_Type *base,
const ctimer_match_t pwmPeriodChannel,
ctimer_match_t matchChannel,
uint32_t pwmPeriod,
uint32_t pulsePeriod,
bool enableInt).

0 件の賞賛
1 返信

438件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

Hope you´re well. Unfortunately, this is expected behavior as the User Manual suggests:

Omar_Anguiano_0-1623968599615.png


I apologize for the inconvenience this may cause you, if you have further questions do not hesitate to ask me.
Best regards,
Omar
 

0 件の賞賛