Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:general_information:tutorial:pwm [2015/12/08 11:32] – liedmann | en:general_information:tutorial:pwm [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| PWM devices are listed under **/ | PWM devices are listed under **/ | ||
| - | ==== enable | + | ==== export |
| + | <WRAP round important 50%> | ||
| + | You must export the PWM at first, otherwise the other commands in this tutorial will not work | ||
| + | </ | ||
| < | < | ||
| root@MBaXXX: | root@MBaXXX: | ||
| Line 18: | Line 20: | ||
| root@MBaXXX:/ | root@MBaXXX:/ | ||
| </ | </ | ||
| + | |||
| ++++ example | | ++++ example | | ||
| < | < | ||
| Line 24: | Line 27: | ||
| root@MBaXXX:/ | root@MBaXXX:/ | ||
| root@MBaXXX:/ | root@MBaXXX:/ | ||
| - | root@MBaXXX: | ||
| </ | </ | ||
| ++++ | ++++ | ||
| - | ==== set PWM period | + | ==== set PWM period ==== |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ example | | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ | ||
| + | ==== set PWM duty cycle ==== | ||
| + | <WRAP round important 50%> | ||
| + | The value of duty cycle must be less than the value of pwm period | ||
| + | </ | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ example | | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ | ||
| ==== change polarity of the PWM signal ==== | ==== change polarity of the PWM signal ==== | ||
| Line 54: | Line 70: | ||
| root@MBaXXX: | root@MBaXXX: | ||
| </ | </ | ||
| + | ++++ | ||
| + | ==== enable PWM ==== | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ example | | ||
| + | |||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | ==== disable PWM ==== | ||
| + | |||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | |||
| + | ++++ example | | ||
| + | |||
| + | < | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | ++++ | ||