Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:c2_hardware_pwm [2016/05/03 15:16] ck.kim [Usage] |
en:c2_hardware_pwm [2016/12/09 14:39] ck.kim [Examples of usage] |
||
---|---|---|---|
Line 20: | Line 20: | ||
- | === Option 2: Two PWM === | + | === Option 2: Two PWMs === |
//**PWM PINS:**// | //**PWM PINS:**// | ||
Line 32: | Line 32: | ||
</code> | </code> | ||
+ | <WRAP left round important 100%> | ||
+ | If you are using TWO pwm setup, PWM1 & SPI can not be used simultaneously.\\ | ||
+ | Because GPIOX_7(pin19) has two function spi_mosi & pwm. | ||
+ | </WRAP> | ||
==== Examples of usage ==== | ==== Examples of usage ==== | ||
You can control this pwm via simple sysfs entries. | You can control this pwm via simple sysfs entries. | ||
- | On **/sys/devices/pwm-ctrl.xx/** You'll find the following files: | + | On **/sys/devices/pwm-ctrl/** You'll find the following files: |
==== duty0 ==== | ==== duty0 ==== |