2016年3月1日火曜日

One output pin drives 2 LEDs





Two LEDs (red and green) are controlled by only one output pin. The LED1 will be ON by 62.5kHz, 1/16 duty cycle pulse. The LED2 will be ON by  H-level output.
(The duty cycle must be 1/16. Note: 1/2 duty cycle pulse can't turn on LED1 at 3[V] Vcc.)


Vcc=3-6[V]




Output(pin 6)RED(LED1)GREEN(LED2)
LOFFOFF
62.5kHz, 1/16 duty cycle pulseONOFF
HOFFON
The pulse and H every 0.5[ms]ON(visually)ON(visually)



62.5kHz, 1/16 duty cycle pulse output


H level output