You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
PWM should be able to be inverted without the need for tricks.
Describe alternatives you've considered
inverting the output when compiling the firmware. Easiest to implement, however not very flexible
inverting the output using a HAL parameter, similar to GPIO which can also be inverted from the HAL. One can choose to:
either invert the duty-cycle (thus a duty-cycle of 5% will be send out as 95%, which is effectively the same as inversing the signal, however the start of the signal shifts) NOTE: this is the trick to 'invert' the signal in the current situation, by choosing scale and offset smart;
send an extra WORD to the FPGA with the config of the PWM. This case, the start of the PWM (and thus the frequency) is always fixed.
Describe the solution you'd like
Use the most flexible option, by adding an extra WORD to the communication stream.
NOTE: by adding an extra WORD, it is required to re-compile any existing drivers after updating the driver
The text was updated successfully, but these errors were encountered:
This feature is now ready to be tested (note: recompilation of the firmware required)
I tried to quickly test as you asked - I don’t see any problems...
I checked 6 channels from 5Hz to 100kHz, duty from 0.001 to 0.999. (+4 stepgen while moving)
The only thing I had to deal with was that yosys did too many routing iterations (more than an hour), although there were no problems before this patch.
I didn’t wait for it to finish and ran build on the new version of yosys (0.38) - this got rid of the problem, although there is a warning “Max frequency..”
The install_toolchain.py script still installs v0.24...(this line) From users of a similar project (litehm2) I heard that yosys has made a lot of improvements over the past year.
Is your feature request related to a problem? Please describe.
PWM should be able to be inverted without the need for tricks.
Describe alternatives you've considered
Describe the solution you'd like
Use the most flexible option, by adding an extra WORD to the communication stream.
NOTE: by adding an extra WORD, it is required to re-compile any existing drivers after updating the driver
The text was updated successfully, but these errors were encountered: