Subscribe
 


Night Light Saver V6



Night Light Saver V6
built with AT89C2051. Nice firmware using c coding developed with SDCC.

The source program is beautiful coding with c language. After timer initialization then idle mode is entered by setting bit0 in PCON register. The timer0 overflows 10 times per second. Tasks for update clock, check SW2, blink LED and update output bit will be executed every 1/10s. The task that controls output instead, will be executed every one second. For different preset time, time on, time off, you can edit the source code and recompile with sdcc easily. I provide sample scheduler scanning function, scan_pgm( ).
Authored by Wichit Sirichote at Build Your Own Microcontroller Projects Homepage, Added: Dec 21, 2005



http://chaokhun.kmitl.ac.th/~kswichit/saver6/saver6.htm

Unsorted Pool