SC-TimerLPC55S16

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SC-TimerLPC55S16

166件の閲覧回数
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 返信

144件の閲覧回数
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