Freescale Semiconductor S08 manual Demo 2 Preset Colors Display, Demo 3 Auto White Balance Control

Page 32

Demo Setup

4.3.2 Demo 2 - Preset Colors Display

1.Press the tab key in the PC keyboard.

2.The output is switched to another preset color after the tab key has been pressed each time.

NOTE

You can adjust the output color any time through the control menu.

4.3.3 Demo 3 - Auto White Balance Control

1.Press F until PWM frequency is set to 120 Hz.

2.Press W to toggle to AUTO white balance control.

3.Type 2000 at line of input green. The green PWM output value should then show 2000.

4.The red and blue PWM values are adjusted automatically to keep the output at the existing color temperature.

Note:

Pressing T can change the output to another preset color temperature.

Pressing the + or − key can gradually increase or decrease the output intensity. Use the + or − keys from the main keyboard area instead of those near the NUM lock key pad.

Max PWM input range is decreased if setting to a higher PWM frequency.

4.3.4 Demo 4 - PWM Output Frequency Control

1.Press W to toggle the output to AUTO mode.

2.Pressing F can switch the PWM output among different preset frequencies.

3.The flicking phenomenon is more significant at the lower frequency such as at 30 Hz. The flicking can be removed by setting PWM to higher frequencies.

NOTE

The output brightness is changed after changing the frequency. As the PWM output values remain the same, a change in PWM frequency modifies the PWM duty as well.

As the frequency increases, the max allowable PWM input range decreases because the PWM value for 100% on-duty becomes smaller.

4.3.5 Demo 5 - Full Manual Control

1.Press F until PWM frequency change to 120Hz

2.Press W to toggle the output to MANUAL mode.

3.Press R to switch to manual red channel input.

4.Type 2000 at the Input red line.

5.Press G to switch to manual green channel input.

6.Type 0000 at the Input green line.

7.Press B to switch to manual blue channel input.

8.Type 2000 at the input blue line.

9.The output color is purple. You can repeat the steps with different PWM values for different output colors and intensities.

LED Lighting Control using the MC9S08AW60, Rev. 1

32

Freescale Semiconductor

Image 32
Contents LED Lighting Control Using the MC9S08AW60 Page Designer Reference Manual LED Lighting Control using the MC9S08AW60Revision History Freescale Semiconductor Table of Contents Appendix a Schematics Appendix B Bill of Materials Introduction FeaturesChapter Introduction Devices in the MC9S08AW60/48/32/16 Series System OverviewMC9S08AW60 Peripherals Available per Package Type Introduction LED Lighting Control using the MC9S08AW60, Rev Chapter Hardware Description AW60 Control BoardDEMO9S08AW60LED Features DEMO9S08AW60LED LayoutPower Reset SwitchDevelopment Support Clock SourcePushbutton Switches LED IndicatorsUser Options ADC InterfaceOther I/O Connectors IIC PortSCI Port SPI Port10. Sensor Interface Type a PWM PortLED Light Box Interface 13. User Assignable Input 12. Temperature Sensor Input11. Sensor Interface Type H LED Driving Board LED Driver Design Procedures RGB LED ChipCurrent Sense Resistor Boost ConverterEquations for Boost Converter Freescale Semiconductor Chapter Firmware Description Firmware Flow Main ProgramPC Control Mode Firmware Flow PWM AdjustmentUser Interface Menu Standalone Mode Firmware Files Freescale Semiconductor Chapter Demo Setup Hardware and Software SetupHardware Setup PC Software SetupEcho Typed Characters Setting Demo Examples Demo 1 Demonstration DisplayDemo 2 Preset Colors Display Demo 3 Auto White Balance ControlDemo 4 PWM Output Frequency Control Demo 5 Full Manual ControlTroubleshooting Program the MCU FlashDemo Setup Appendix a Schematics LED Lighting Control using the MC9S08AW60, Rev LED Lighting Control using the MC9S08AW60, Rev LED Lighting Control using the MC9S08AW60, Rev LED Lighting Control using the MC9S08AW60, Rev LED Lighting Control using the MC9S08AW60, Rev Appendix B Bill of Materials BOM for AW60 Control Board Part Description Quantity Value DesignatorsBOM for LED Driving Board Value DesignatorsLED Lighting Control using the MC9S08AW60, Rev Page How to Reach Us