Gayan Soyza
Active Member
Hi guys after a long time.this time i'm building a single digit clock,the original is from nixie.the original code works well.but i had to make some changes in the codings for my satisfaction.
To increment the digits TMR0's prescaler is assigned to 1:32.TOIF polling method has used in this.some TICKS have used in "Real-time clock algorithm" to get a correct count.
My problem is i need to make a sound for every hour (RB6 is a spare pin in the cct so i connected a piezo to it).
I have added a small coding in the "Real-time clock algorithm" section to get a BEEP in every hour.the BEEP's duraion is one second.like this below & the edited file is in the attachment.
will this BEEP delay can effect to the time????
I mean for every hour will it reduce by one second???
If so how can I add a Beep without disturbing the time.where is the best place to put that BEEP?
To increment the digits TMR0's prescaler is assigned to 1:32.TOIF polling method has used in this.some TICKS have used in "Real-time clock algorithm" to get a correct count.
My problem is i need to make a sound for every hour (RB6 is a spare pin in the cct so i connected a piezo to it).
I have added a small coding in the "Real-time clock algorithm" section to get a BEEP in every hour.the BEEP's duraion is one second.like this below & the edited file is in the attachment.
Code:
;*********MAKE A SMALL BEEP IN EVERY HOUR*********************
CALL BEEP
CALL DEL1SEC ;DURATION OF THE BEEP 1SECOND
;*************************************************************
I mean for every hour will it reduce by one second???
If so how can I add a Beep without disturbing the time.where is the best place to put that BEEP?