On the FRDM-KL25Z, when I declare pins PTA5 and PTD2 as PwmOut pins, they are locked together and can not be independently controlled. It doesn't matter if I change the PWM of PTA5 or PTD2. Whichever one is changed, the other one follows it. The simple code below should keep pin PTD2 at 0% pwm while pin PTA5 should switch between 50% and 0% every 0.5 seconds. Pin PTA5 does alternate between 50% and 0% pwm, but instead of staying at 0% pwm, pin PTD2 follows pin PTA5.
Fork of frdm_rgbled by
History
Test PwmOut of pins PTA5 and PTD2
2016-07-08, by skanderian [Fri, 08 Jul 2016 23:10:16 +0000] rev 9
Test PwmOut of pins PTA5 and PTD2
Digital equivalent of an RC filter where the inputs are three random numbers and the output is the intensity of the built in RGB LEDs.
2016-05-13, by skanderian [Fri, 13 May 2016 19:04:14 +0000] rev 8
Digital equivalent of an RC filter where the inputs are three random numbers and the output is the intensity of the built in RGB LEDs.
update formatting and mbed library
2014-07-16, by sam_grove [Wed, 16 Jul 2014 10:20:45 +0000] rev 7
update formatting and mbed library
update mbed lib
2014-02-21, by sam_grove [Fri, 21 Feb 2014 16:14:34 +0000] rev 6
update mbed lib
frdm_rgb_led - initial version
2014-02-20, by Kojto [Thu, 20 Feb 2014 17:42:26 +0000] rev 5
frdm_rgb_led - initial version
Updated to public library
2013-02-19, by mbed_official [Tue, 19 Feb 2013 23:47:40 +0000] rev 4
Updated to public library
First revision
2012-11-13, by mbed_official [Tue, 13 Nov 2012 10:52:45 +0000] rev 3
First revision
Update mbed library
2012-10-23, by emilmont [Tue, 23 Oct 2012 09:33:36 +0000] rev 2
Update mbed library
Made thisi an HSV example
2012-10-12, by chris [Fri, 12 Oct 2012 13:49:40 +0000] rev 1
Made thisi an HSV example
First revision
2012-10-11, by chris [Thu, 11 Oct 2012 14:08:32 +0000] rev 0
First revision