We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_hardware_pwm [2016/02/29 14:34]
ck.kim [Usage]
en:c2_hardware_pwm [2017/01/31 19:10] (current)
odroid [freq0]
Line 20: Line 20:
  
  
-=== Option 2: Two PWM ===+=== Option 2: Two PWMs ===
 //**PWM PINS:**// //**PWM PINS:**//
  
 //**PWM0: 33**// //**PWM0: 33**//
  
-//​**PWM1: ​11**//+//​**PWM1: ​19**//
  
 <​code>​ <​code>​
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/platform/​pwm-ctrl/​** You'll find the following files:
  
 ==== duty0 ==== ==== duty0 ====
Line 59: Line 63:
 enable1, freq1, duty1 enable1, freq1, duty1
 </​WRAP>​ </​WRAP>​
 +
 +==== How to access the PWM port in C language ====
 +
 +[[http://​forum.odroid.com/​viewtopic.php?​f=141&​t=25563#​p177696|Example code by paulcrawford ]]
 +
 +
en/c2_hardware_pwm.1456725867.txt.gz ยท Last modified: 2016/02/29 14:34 by ck.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0