Actions

PWM

From Trammell Hudson's Projects

SLOTS=/sys/devices/bone_capemgr.8
P8_36=/sys/devices/ocp.2/pwm_test_P8_36.11

echo am33xx_pwm > $SLOTS
echo bone_pwm_P8_36 > $SLOTS
echo 200000 > $P8_36/duty
echo 500000 > $P8_36/period
echo 0 > $P8_36/polarity
echo 1 > $P8_36/run
  • default polarity 1 is idle high, 0 is idle low
  • duty and period are in nanoseconds (500000 == 500 usec)
  • once the second channel is enabled, period can not be changed? "write error"