![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLM6-KNXTZXHuA8lvIgWFSQxAqjUfkxV7cceZ_DCd37wfTOKjEs_z-nBSKzPVnBeEST6goAJNal5Pus4gaxaxiGnlMSbe0SzCAhvTfi_GsJRGEF0iP34fVLtx5DWP-3E6wpmUxTlyPzqw/s400/AlarmTimer12C508.bmp)
ALARM TIMER 12c508.BAS
'****************************************************************
a var byte
n var byte
trisio=%011111
gpio.5=1
a=gpio-32
if a=0 then a=60
for n=1 to a
pause 1000
next n
gpio.5=0
end
This a small timer of "couple of seconds" duration which can be used as an alarm, but also for other purposes.
Program is developed in Basic, while the circuit is developed in Eagle.
No comments:
Post a Comment