SC-TimerLPC55S16

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SC-TimerLPC55S16

59 次查看
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 项奖励
回复
1 回复

37 次查看
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