PWM configuration not working!
I need to configure MR3 as period and MR0 as duty cycle
(50 % on time 50 % off time continuous pulse)
Is there any correction in my configuration below
Hello @Arularasan,
Could you please try out using the following arrangement to your code?
.
CTIMER->PR = 0X00;
CTIMER->PWMC |= 1<<3;
CTIMER->MCR |= 1 << 9 | 1 << 10 | 1 << 27 | 1 << 0 | 1 << 1;
CTIMER->MR[0] =5000;
CTIMER->MR[3] =10000;
CTIMER->TCR |= 1<<0 ;
.
Also, there is a similar question on this post: LPC804 - PWM pulse generation - NXP Community, could you please take a look at it?
Best regards, Raul.