ESP8266 Developer Zone The Official ESP8266 Forum 2016-02-15T03:44:10+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1749 2016-02-15T03:44:10+08:00 2016-02-15T03:44:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1749&p=5742#p5742 <![CDATA[Re: PWM Duty Cycle values in RTOS SDK]]>
This is with the RTOS SDK v. 1.3.0.

Statistics: Posted by skandalfo — Mon Feb 15, 2016 3:44 am


]]>
2016-02-09T20:09:59+08:00 2016-02-09T20:09:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1749&p=5722#p5722 <![CDATA[Re: PWM Duty Cycle values in RTOS SDK]]>
Did more testing and I have better results.

My impression now is that duty cycle parameter is from 0-1023, valid for all period values i've tested.

Additional question is whether the PWM_DEPTH can be changed, either programmatically or otherwise ?

Statistics: Posted by hreintke — Tue Feb 09, 2016 8:09 pm


]]>
2016-02-08T04:16:45+08:00 2016-02-08T04:16:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1749&p=5707#p5707 <![CDATA[PWM Duty Cycle values in RTOS SDK]]>
Have trouble with the duty cycle settings.
Trial and error gave me for 20msec period, the duty cycle should vary from 0-1024 to get working pwm between 0 and 100%.
For other period lengths, these min/max values seem to be different, as pwm doesn't work as expected when i use the 0-1024 for other period values.

There is a define PWM_DEPTH 1023 in the document, which is not used within the document itself.

- Is there a difference between NONOS SDK and RTOS SDK with regards to duty cycle values ?
- Are there other differences between both SDK's regarding PWM API's ?
- Is there a working RTOS example using PWM ?

Statistics: Posted by hreintke — Mon Feb 08, 2016 4:16 am


]]>