Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

AM3358: pwm signal control

$
0
0

Part Number:AM3358

Beaglebone Black

SDK : ti-processor-sdk-linux-rt-am335x-evm-03.03.00.04-Linux-x86-Install.bin

Device Tree : am335x-boneblack.dts


pwm Control commands are as follows:
echo 0 > /sys/class/pwm/pwmchip0/export
echo 2000000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable

When the following command is executed, the PWM signal is always output.
echo 500000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle

How do I control the number of pulse output? For example, output 1 pulses at a time, or output 2 pulses at a time ??

I hope you can help me.

Thank you.


Viewing all articles
Browse latest Browse all 17527

Trending Articles