Precision Delay Timer for PIC16F628A

Description

This project is a crystal controlled precision timer providing accurate delays from 1 second to 15 hours 45 minutes.Β  The timer delay is set using a 10-way DIP switch.Β  The timer is started by pressing a switch on the main PCB or from an external switch connected via the terminal block connection.Β  A second switch and terminal block connection allow the timer delay to be cancelled.

There are two LEDs on board, one provides indication of the timer delay active, and the other is a blinking β€˜heartbeat’ LED to show the timer is running.

The circuit provides a logic level timer output via a terminal block connection as well as the on-board relay for switching external loads.

Operation

The timer delay period is set using the 10-way DIP switch.Β  The DIP switch is used to select a time interval and multiplier to give the actual delay time.Β  As the length of the delay time increases the adjustment interval gets courser.

Precision Delay Timer

The timed delay is started by a falling edge at the Start input and can be cancelled at any time by taking the Clr input low.Β  In re-trigger mode, the time delay can be restarted while the timer is active.

Timed delay is started by a falling edge on the β€˜Start’ input. This can be done in several ways:

  • Press the S1 β€˜start’ switch on the board.
  • By external switch connected between the β€˜Start’ and β€˜Gnd’ connection of the terminal block
  • Logic level input at the terminal block

The Timed delay can be cancelled at any time by taking the β€˜Clr’ input low.Β  This can be done in several ways:

  • Press the S2 β€˜clr’ switch on the board.
  • By external switch connected between the β€˜Clrt’ and β€˜Gnd’ connection of the terminal block
  • Low logic level input at the terminal block

Examples below illustrate Precision Timer operation (examples use 5 second timer period)

Timer delay triggered by falling edge at Start input
While timer delay active, heartbeat LED blinks at 1Hz

Time Delay Restart mode

When the timer is running it can be set to re-trigger (restart) using DIP Switch 10.

When re-trigger is enabled, a falling edge (Start button pressed) while the timer is running will reset the timer back to the start of the delay period.Β  For example, if the delay period is 45 minutes and the timer is re-triggered after 20 minutes, the time period will be 20 minutes + 45 minutes giving a total timed delay of 65 minutes.Β  The timer can be re-triggered at any time while it is active and it can be re-triggered multiple times.

If the timer is set to Non-retriggerable, once the timed delay is active it cannot be retriggered and will time out when the preset delay period has elapsed.

 

For more detail: Precision Delay Timer for PIC16F628A


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.