LPC832: Sample project for using MRT to generate more than 6 PWMs for LEDs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC832: Sample project for using MRT to generate more than 6 PWMs for LEDs

400 Views
aaronm
Contributor IV

Hi,

This is not a request for assistance; I'm sharing a project with the group.

I needed 3 RGB LEDs (9 pins total) for a small project I'm building, and was able to use the multiple channels of MRT on an LPC832 to drive those 9 pins with 512 bits of PWM.  I tried this approach with only 9 pins, but it might actually work with more.  Plus, with the LPC832's SCT, you can get 6 additional PWM channels, as well.

Anyway, it worked well enough for my needs and I thought someone else might be able to use it or learn from it, so I'm sharing it with the community.  I take no responsibility for how it works in your situation, and it comes with no warranty.

Un-tar the code, and import it into a project; connect the pins to 3 RGB LEDs - or hook the pins up to an oscilloscope - and they should light in a pseudo-random pattern.  Main source file is in Project_v05_LPC832_mrt_multi_LEDs/source/Project_v05_LPC832_mrt_multi_LEDs.c.

0 Kudos
Reply
0 Replies