Hi,
I need to output some signals with varying pulse-pause-ratio. Setting up EHRPWM2B to output some frequency (and change this frequency) was no problem using the evmAM335x-example "ehrpwm_haptics". Some initialisation routines had to be copied to the BeagleBone Black Starterware code since they did not exist there, but the whole thing is working well now.
Now following questions come up:
- What has to be done to modify the pulse-pause-ratio? Currently the example is running at 50% duty cycle only.
- Which call is enabling the frequency output? I'm thinking about preparing the subsystem during initialisation phase and having only a few, fast calls left to start frequency output as soon as it is needed.
- And independent from the question regarding duty cycle: is it possible to output just one shot, means send exactly one pulse of defined length?
Thanks!