aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/KINETIS/MCHCK/PWM/README.md
diff options
context:
space:
mode:
authorflabbergast <s3+flabbergast@sdfeu.org>2016-03-22 17:56:38 +0000
committerflabbergast <s3+flabbergast@sdfeu.org>2016-03-22 18:43:20 +0000
commit9f5d7fd40b63d3d55bff540a5d5e03ecd8257276 (patch)
treecfd6ef1a3c55bdb235b247acd92b85cd3f0ee5d9 /testhal/KINETIS/MCHCK/PWM/README.md
parentd5a880807b47188aa5d721f4aff491bc46c6f186 (diff)
downloadChibiOS-Contrib-9f5d7fd40b63d3d55bff540a5d5e03ecd8257276.tar.gz
ChibiOS-Contrib-9f5d7fd40b63d3d55bff540a5d5e03ecd8257276.tar.bz2
ChibiOS-Contrib-9f5d7fd40b63d3d55bff540a5d5e03ecd8257276.zip
[KINETIS] Add new testhal demos (KL27Z,Teensies,MCHCK).
Diffstat (limited to 'testhal/KINETIS/MCHCK/PWM/README.md')
-rw-r--r--testhal/KINETIS/MCHCK/PWM/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/testhal/KINETIS/MCHCK/PWM/README.md b/testhal/KINETIS/MCHCK/PWM/README.md
new file mode 100644
index 0000000..6367722
--- /dev/null
+++ b/testhal/KINETIS/MCHCK/PWM/README.md
@@ -0,0 +1,7 @@
+# "Soft" PWM demo
+
+The PWM in this demo is "soft", meaning that it does use a hardware timer to run, but the output is not directly routed to a pin; a callback functions which turn a LED on and off are used instead.
+
+## Notes
+
+The brightness percentages it goes only up to 9900 (99%) instead of 10000 (100%); otherwise there is a noticeable blink in the top of the cycle. The reason is that the on/off callback functions take too long to execute for this kind of (relatively fast) timer. Likewise, '0' (0%) in the cycle actually means that the LED doesn't get turned off, because the channel notification function that turns the LED off doesn't get called. So in a setup like this one, '1' should be the minimum; although it does mean that the LED is never fully off.