Jump to content
  • 0

DigitalOut_Duty.py


Ostin Flores

Question

Hi,

I want to generate a PWM signal that changes frequency, Amplitude and Duty Cycle. I am using the "DigitalOut_Duty.py" Provided inside the SDK folder which seems to work fine until I increase the frequency then my signal shrinks as shown in the attachment. There is a comment in the code saying "# for low frequencies use divider as pre-scaler to satisfy counter limitation of 32k". I tried messing with this number and I still get bad results. Can someone please guide me in the right direction?

 

Capture.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...