I am using Beaglebone not Beaglebone Black.
I just tried to output a PWM and I expected potential frequencies of some megaherz on such a fast device.
I found out that 100HZ is the exact maximum I can set through sysfs.
I started digging online for examples and they did not mention a limit but they also did not show an value faster than 100HZ.
Example:
root@beaglebone:/sys/class/pwm/ehrpwm.0:0# echo 10000000 > period_ns
root@beaglebone:/sys/class/pwm/ehrpwm.0:0# echo 1000000 > period_ns
-sh: echo: write error: Invalid argument
root@beaglebone:/sys/class/pwm/ehrpwm.0:0# echo 200 > period_freq
-sh: echo: write error: Invalid argument
root@beaglebone:/sys/class/pwm/ehrpwm.0:0# echo 101 > period_freq
-sh: echo: write error: Invalid argument
root@beaglebone:/sys/class/pwm/ehrpwm.0:0# echo 100 > period_freq
root@beaglebone:/sys/class/pwm/ehrpwm.0:0#
Any 10cent AVR can do a faster PWM than that.
Is there some trick I missed?
Do I really have to create a custom PWM by manuallz toggling GPIO if I want a faster frequency than 100 HZ ?!