8. ‘dectime’ function is the same as ‘inctime’ but it decreases reversible time by one second.
Delay. It uses the following functions:
1. ‘keydly’ function generates a fix delay of around 50 ms for key debouncing.
2. ‘delay’ function generates a variable delay by timer 0. The basic delay is of 100 μs. It is rotated in loop from five to 15 times to generate minimum 500μs and maximum 1500μs delay.
3. ‘time’ function again generates a variable delay by timer 1. The basic delay is of 50 ms. It is rotated in multiples of 20 from 20 to 180 to generate minimum 1-second and maximum 9-second delay.
Download source code: click here
Download PCB and component layout PDFs: click here