On Fri, Feb 16, 2018 at 1:39 PM, Co M <[email protected]> wrote:
> FIXED.
> PWM, Beagle Bone
>
> Meanwhile I got an answer at: github.com cdsteinkuehler
> beaglebone-universal-io
> Though, I used the SDcard, the u-boot @ 2016 from eMMC took over.  I dd-it
> and wipe it.
>
>
> For: EHRPWM1A   P9_14
> the sys file is: /sys/class/pwm/pwmchip3
> echo 0 > export
>
>
>
> EHRPWM1B    P9_16
> the sys file is: /sys/class/pwm/pwmchip3
> echo 1 > export
>
>
>
>      cd /sys/class/pwm/pwmchip3
>      echo 0 > export
>      echo 1 > export
>         echo 20000 > pwm0/period
>         echo 10000 > pwm0/duty_cycle #  P9_14
>         echo 1 > pwm0/enable
>
>         echo 20000 > pwm1/period
>         echo 10000 > pwm1/duty_cycle #  P9_16
>         echo 1 > pwm1/enable


Be careful, "pwmchip3" is not set in stone, and can move between
reboots/kernel/etc...

For P9_14/P9_16 go thru:

/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip*/

When you look at:

/sys/class/pwm/pwmchip3/ you see it symlinks back to above..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYg-tn-2GUbzoJ2P_vy6MSQ1Ur6a66kWQ4h_B2F3kgqi0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to