LPC 2129 PWM

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by abhavi on Sun May 11 11:47:17 MST 2014
Hi all

I am working on single edge PWM generation on LPC 2129 .The summary o my work is as below

1)I am able to see PWM output on Pin 33(PWM 4).it is as per my clock settings.No problem still here.

2)In the PWM ISR,I am setting 2 flags and in the main loop of the code ,and based on these flag values I am dynamically changing PWM4 rate by changing PWMMR0 ;PWMMR4  PWMLER  registers.

3)These above mentioned changes are not reflected in the scope output.I dont see my modified rate settings on the scope.

Attached is the code.Please help me.


Original Attachment has been moved to: PWM_0.c.zip

Original Attachment has been moved to: blinky_0.c.zip