I am designing a microcontroller based delay circuit to implement delays of 2 hours, 1 hour, 45 minutes, and 30 minutes. The circuit will automatically turn on off a relay after this time period has elapsed.
I am stuck with a narrow selection of microcontrollers available locally in market:
- 89C51
- 89C52
- 89S51
- 89S52
- 89C2051
- PIC 16C71
- PIC 16F84
I have checked the datasheets of these microcontrollers but there is no information about the maximum delay they can produce.
What is the maximum delay that can be produced with these microcontrollers?
Best Answer
The delay can be as long as you want. If a timer won't give you the delay you need, simply increment a register, or several registers, each time it overflows. Here is a simple program using Timer0 that illustrates the technique: