The wave of PWM output

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

The wave of PWM output

1,837 Views
lpheni
Contributor I

Greetings,

 

I use gpio1_11 as PWM2 output.

 

After I set the PWM output, if the frequency is set to 8KHZ, period = 125000, duty_cycle = 62000, then the output is a square wave. If set to 8MHZ then the output is sine wave,period = 125, duty_cycle = 62.

 

Can you help me find out what the reason is? Thank you!

Labels (1)
0 Kudos
Reply
3 Replies

1,762 Views
lpheni
Contributor I

Hello, this problem is caused by the oscilloscope. After replacing the oscilloscope, the output is square wave.

 

Thanks!

0 Kudos
Reply

1,796 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Please refer https://bbs.21ic.com/icview-3304758-1-1.html

Best Regards
Zhiming

0 Kudos
Reply

1,828 Views
lpheni
Contributor I
 
0 Kudos
Reply