Pulse Width Modulation (PWM) is extremely handy for multiple purposes, one in particular is controlling high current devices such as DC motors and large LED arrays. PIC's have their limitations, namely 25mA per output, so if you want to drive something a lot larger, using PWM and a high power switching device such as a logic MOSFET will do the job perfectly.
Although there are many other uses (such as Inferred modulation and Ultrasonic), this example focuses purely on a PWM program designed to control the brightness of a large LED array.
A PWM signal consists of both frequency and duty cycle. Both are important to understand
For more information, please visit http://digital-diy.com/micro/site/swordfish/69-swordfish-tutorial-large-led-a...
I hear you, there's not much they have over the 18F architecturally though
That, and the 24F's have got nothing when it comes to library rich compilers, huge supportive community and a plethora of online tutorials/examples.
DigitalDIY 2 years ago