LED Flexi Strip

15/08/2013 09:02

 The microcontroller's internal oscillator as the clock source, simplifying the circuit, because the   LED Bulb  oscillator requires no external components, the 5% tolerance is sufficient for this application. Firmware settings for the external interrupt inputs built-in pull-up resistor.

 

Prescaler clock speed clock counter mode register values, and together determine the LED blink rate. Internal oscillator generates a 12.8 MHz clock, get 3.2 MHz bus frequency, each cycle is equal to 0.3125 μs. The prescaler value is chosen 64, the time counter modulo registers can be   LED Module calculated as 50 times a cycle timer period (in milliseconds). For example, to obtain 1s blink rate, time counter mode should be set to 50000, or hexadecimal $ C350.

 

Use the list without using the program polling method can greatly reduce the size of the firmware. Here you can download the firmware into assembly code. This method is applicable to any microcontroller. Or may use different blink rate, indicating an increase in the number of states.

  LED Flexi Strip

Abstract: The white LED as the primary light source, light orange light and blue light sources designed as complementary color backlight system. Obtained by linear fitting method brightness of the lamp case, three kinds of PWM waveform is the ratio between the high duration.