Anglia Lighting LED Solid State Lighting
 

Adding Intelligence to Lighting Applications

Generating PWM for LED Dimming and Colour Control

PWM signals can be generated using simple software techniques and I/O pins. This option is most effective when PWM frequency and duty cycle resolution requirements are not too high.

For more demanding applications there are multiple ways to generate PWM control signals to control power circuits:

    • Use devices with the Capture-Compare-PWM (CCP) module can generate PWM signals to control power circuits using an on-chip digital timebase. The signal pulse width is controlled by the MCU clock and a duty cycle register.

    • The Enhanced CCP (ECCP) module allows one PWM signal to control 2 or 4 output pins for half-bridge or H-bridge control, respectively.

    • Devices that have a comparator and the ECCP module can use the comparator signal to control the turn-off time of the PWM signal.

    • Devices with comparators and a PWM SR latch can use comparator signals and/or clock pulses to turn the latch output on and off.

    • An external PWM peripheral IC may be used. This option is useful when multiple high speed PWM channels are required.

A PIC® microcontroller with an on-chip comparator such as the PIC12F615 can be used to implement a simple LED driver. The PIC12HV615 adds an internal regulator, allowing operation from a DC bus higher than 5 volts.

Mixed Signal Controllers in 8/14/16-pin package

 

RGB Colour LED Application Using PIC12HV615

 

Recommended Part:

    PIC12HV615 High Voltage 8-pin microcontroller with comparator and SR latch

    PIC16HV616 High Voltage 8-pin microcontroller with comparator and SR latch

    PIC16HV785 High Voltage 20-pin microcontroller with two comparators, SR latch and two operational amplifiers,

    PIC16F690 20-pin microcontorller with ECCP and serial communication interfaces

    PIC16F884 40 pin microcontroller with ECCP + CCP and serial comm. interface

    PIC16F737 28 pin microcontroller with three CCP modules and serial comm. interface

    PIC18F1330 20 pin microcontroller with three 14-bit PWM modules and serial comm. int.

 

Available Literature:

    AN1074 – Software PWM Generation for LED Dimming and RGB Color Applications

    AN874 – Buck Configuration High-Power LED Driver

    AN1035 – Designing with HV Microcontrollers

    AN538 – Using PWM to Generate Analog Output

    AN539 – Frequency and Resolution Options for PWM Outputs

    AN594 – Using the CCP Module(s)

    AN654 – PWM, A Software Solution using the 16CXXX Devices

    AN786 – Considerations for Driving Power MOSFETs in High-Current, Switch Mode Regulators

 

Development Tools

    PICKit 2 Low Cost Development Programmer and Debugger

 

 

 
T: +44 (0)1945 47 36 22
F: +44 (0)1945 47 48 49
www.anglia-lighting.com
info@anglia-lighting.com
knowMore
Support
Other websites