9 years, 9 months ago.

Are RGB led pins capable of PWM or AnalogOut?

Hello, I recently got a Freescale FRDM-K64F board and wanted to try some simple examples. In https://mbed.org/handbook/SerialPC I found an example to change the brightness of red LED by using serial commands but when I run that program the terminal says "pinmap not found for peripheral". I tried to change PwmOut to DigitalOut and turn the LED on/off. This time it worked. So I think that LED pins are not capable of PWM. Am I right?

Also, where could I find what are the pins of the board capable of (like DigitalIn/Out, AnalogIn, etc.)?

Thanks in advance for help.

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

1 Answer

9 years, 9 months ago.

Hello,

the pins connected to RGB LED are not PWM capable, therefore it did not work.

Use K64F Reference manual available on Freescale website, or it's defined in the sources https://github.com/mbedmicro/mbed/tree/master/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F

Regards,
0xc170

Accepted Answer