Jump to content
  • 0

Zynq PWM output issue.


CEEJ38

Question

I am using a Zedboard to output a PWM signal through a Pmod port. I am using the example C code in Vitis to create the PWM. There are functions to set the period and duty cycle, but there is no function to set the Vmax or Vmin. The current output Vmax is 1.16V, and the current Vmin is -2.32V. I need the Vmax to be 5V and the Vmin to be 1.3V. 

Is this something I need to write my own function for? If so, any ideas on where I should start? I read online that this could be controlled by manipulating clock frequencies, but I don't believe this is true. 

Could changing the I/O standard of the pin change the output? Any advice would be greatly appreciated. Thanks 

Edited by CEEJ38
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hey CEEJ38,

This sounds like an electrical concern. The Zedboard's Pmod ports use 3.3V logic and the bank voltage cannot be changed (section 2.9.2 of the user guide covers it in brief, and DS187 covers it in extreme detail). You might look into using a level shifter circuit.

Thanks,

Arthur

Link to comment
Share on other sites

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...