SC-TimerLPC55S16

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

SC-TimerLPC55S16

165 Views
AATHISKUMAR
Contributor I

In SC-Timer/PWM I am working with addressable LEDs to control LED colour by generating on and off pulses. In the handler function, initializing the variable count1 which increases its value. For example, if  count1 is 18 the pulse should be 18  but  I am getting one extra pulse as 19 which recognises with single long pulse generated from one duty cycle to another duty cycle. Kindly suggest some solution for the issue.

I have attached below the txt file of the code and the image of the pulse for your reference.

0 Kudos
Reply
1 Reply

143 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @AATHISKUMAR 

I have checked your code, while I can't find the code about update duty cycle.

I recommend you firstly running the SDK demo sctimer_pwm_with_dutycyle_change on your board. Then development your project based on it.

This SCTIMer project is a demonstration program of the SDK SCTimer driver's PWM generation. It sets up a PWM signal and periodically updates the PWM signals dutycycle.

 

 

BR

Alice