9 years, 8 months ago.

LPC1114FN28 Support?

I am a user of LPC1114FN28. I really want to use this library for it. But, I don't know how to apply the library. I'm happy if anyone helps me.

Question relating to:

Erik - / FastPWM Featured
Library that allows for higher resolution and speed than standard mbed PWM library using same syntax (drop-in replacement). pwm, resolution, Speed

FYI it should now work for the LPC1114. Right click update on your lib and you get the latest version. Of course they just had to rename all timers, even though they are identical to those in the LPC11u24, so a bit more required #ifdefs than I hoped on, but that should be sorted now.

posted by Erik - 19 Apr 2015

Thank you very much! It seems fine for me:)

posted by takeshi tanaka 27 Apr 2015

1 Answer

9 years, 8 months ago.

Currently I am working first on fixing a bug with the STM implementation. However if you want to try it yourself, go to the LPC11u24 file in the FastPWM library, change the TARGET_LPC11UXX into TARGET_LPC11XX_11CXX. The timer map and Timers values are different and can be found here: http://developer.mbed.org/users/mbed_official/code/mbed-src/file/5e2f3330d475/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pwmout_api.c.

Possibly they also changes some names, but for that I need to look further into it. In principle it uses same timers as the LPC11u24, so code will just be added there when I get around to it. I have an LPC1114 myself so it will be done, just can't promise you when :).

Of course if you get it to work in such a way that it also still supports the LPC11u24 (so it requires a few #ifdefs) you are welcome to make a pull request.