LPC804(QFN33) PWM problem

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

LPC804(QFN33) PWM problem

447 Views
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 Kudos
1 Reply

434 Views
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 Kudos