Download digital clock with bcd counters
Author: s | 2025-04-24
Download Digital clock with BCD counters - Digital clock simulation created in Java . Digital clock with BCD counters DOWNLOAD NOW 857 downloads so far.
Digital clock with BCD counters
RS Components provides a versatile range of counters to suit a variety of devices and functions. With digital, electromechanical, and purely mechanical counters available, RS provides a solution to industrial, commercial and project applications wherever precise counting and tallying is required. You'll find counters available from trusted brands such as Baumer, Omron, Red Lion, Kubler, Hengstler, Trumeter and our own RS PRO selection.Functions of CountersDigital Counters, also known as Mechanical Counters, Electronic Counters or Hour Meters, store and display the frequency of an occurring process, normally synchronized with a clock. For example, Electronic Counters in particular follow a sequential logic circuit which has a clock input signal. Industrial applications of counting devices are used to measure:LengthImpulsesTime elapsedPosition IndicationSwitching and controlTypes of CounterDigital counters Digital Counters - are electronic in design and will often have a digital display. These counters work off a latching circuit or "flip-flop" when the time gets to the set value the relay will switch from 1 position to the next (flip), then the next pre-set value it will switch back (flop). It latches in each position and holds it so that current can flow.Asynchronous or ripple counters - consisting of a number of flip-flops these count a stream of pulses applied to the counter's input. The output is a binary value whose value is equal to the number of pulses received.Synchronous counters - provide a more reliable circuit for counting purposes, and for high-speed operation, as the clock pulses in this circuit are fed to every flip-flop in the chain at exactly the same time.Decade counters - used to count decimal digits rather than binary.Ring counters - have a cascade layout of flip-flops in a ring so that the output of the last is fed into the input of the first.Mechanical countersMechanical Counters - are built 31MayMay 31, 2012 A Digital Clock can be made easily by using PIC Microcontroller, DS1307 and a 16×2 LCD. I have already posted about Interfacing DS1307 RTC with PIC Microcontroller. The DS1307 RTC can work either in 24-hour mode or 12-hour mode with AM/PM indicator. It automatically adjusts for months fewer than 31 days including leap year compensation up to year 2100. DS1307 comes with built-in power sensing circuit which senses power failures and automatically switches to back up supply. We can provide a 3V CMOS Battery for that. Communication between PIC Microcontroller and DS1307 takes place through I²C Bus.Components RequiredPIC 16F877A MicrocontrollerDS1307 RTC16×2 LCD8MHz Crystal32.768KHz Crystal for RTC3V Battery2x 22pF Capacitors0.1μF Capacitor4x 10KΩ Resistors10KΩ Preset2x 2.2KΩ Resistors4.7KΩ Resistor3x Micro Switches (Push Button)5V Power SupplyPrerequisitesI recommend reading following articles before going further.LCD Interfacing with PIC MicrocontrollerInterfacing DS1307 with PIC Microcontroller Circuit Diagram – Digital ClockDigital Clock using PIC Microcontroller and DS1307 RTC – Circuit DiagramI hope that you can easily understand the circuit diagram. The circuit is powered using a 5V power supply. 8MHz crystal is connected to PIC Microcontroller to provide necessary clock for the operation. An RCR (Resistor-Capacitor-Resistor) made using 10KΩ, 0.1µF, 4.7KΩ is connected to MCLR pin of PIC Microcontroller as recommended by Microchip. It will work fine even if you tie MCLR pin directly to VDD but Microchip doesn’t recommends it. DS1307 RTC is connected to PIC microcontroller via I2C bus. Pull up resistors connected to I2C bus is very important, please make sure that you are using correct values for it. An additional power supply (usually a battery or button cell) is connected to DS1307 RTC for running the clock during power failures. This circuit will function even without that battery also but the clock will stop and reset during power failure.MikroC Code// LCD module connectionssbit LCD_RS at RB2_bit;sbit LCD_EN at RB3_bit;sbit LCD_D4 at RB4_bit;sbit LCD_D5 at RB5_bit;sbit LCD_D6 at RB6_bit;sbit LCD_D7 at RB7_bit;sbit LCD_RS_Direction at TRISB2_bit;sbit LCD_EN_Direction at TRISB3_bit;sbit LCD_D4_Direction at TRISB4_bit;sbit LCD_D5_Direction at TRISB5_bit;sbit LCD_D6_Direction at TRISB6_bit;sbit LCD_D7_Direction at TRISB7_bit;// End LCD module connections unsigned short read_ds1307(unsigned short address){ unsigned short r_data; I2C1_Start(); I2C1_Wr(0xD0); //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 followed by 0 --> 0xD0 I2C1_Wr(address); I2C1_Repeated_Start(); I2C1_Wr(0xD1); //0x68 followed by 1 --> 0xD1 r_data=I2C1_Rd(0); I2C1_Stop(); return(r_data);}void write_ds1307(unsigned short address,unsigned short w_data){ I2C1_Start(); // issue I2C start signal //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 followed by 0 --> 0xD0 I2C1_Wr(0xD0); // send byte via I2C (device address + W) I2C1_Wr(address); // send byte (address of DS1307 location) I2C1_Wr(w_data); // send data (data to be written) I2C1_Stop(); // issue I2C stop signal}unsigned char BCD2UpperCh(unsigned char bcd){ return ((bcd >> 4) + '0');}unsigned char BCD2LowerCh(unsigned char bcd){ return ((bcd & 0x0F) + '0');}int Binary2BCD(int a){ int t1, t2; t1 = a%10; t1 = t1 & 0x0F; a = a/10; t2 = a%10; t2 = 0x0F & t2; t2 = t2 > 4; t = 0x0F & t; r = t*10 +Digital clock with BCD counters - Download
Time they had set the timer … Counsel Chambers Timers and Board Room Timers keeping the counsel chamber members of the Town of Parker Colorado on time and in sync is an easy task for DC-Digital and the DC-25T-DN-W timers. They went with RF-wireless controls to keep it simple and flush mount to make them cosmetically appealing. The timers are set up as master … US Army – 216 Calvary, Totally portable PT Digital Outdoor Timer Physical training is at the top of the US Army’s training schedule. To measure this performance the Army looked to DC-Digital and the line of totally portable battery operated outdoor rated timers. The trainees need to meet strict criteria and without knowing that would be well… not good. Do to … B-WAY CORPORATION PURCHASES A DC-DIGITAL DC-256T-UP TIMER B-Way corporation recently purchased DC-Digital DC-256T-UP timer to be a visual reminder to the production worker of the amount of downtime that has taken place on a particular shift. The DC-Digital DC-256T-UP timer has 2.3 inch digits which has a viewing distance of 120 feet. Bway Corporation chose pig tail … BCD Countdown Timer with Foot Switch We put together a foot switch operated timer for Boston Scientific. Not Quite sure what they are using it for but they will be able to set it to any MM:SS value using the supplied rotary 10 Position BCD coded switches mounted in the top of the enclosure for easy … 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW Amateur Athletic Union recently bought a DC-40UTW model for their events and practices. This unit is great for many sports activities, events, or meetings. This unit is a universal timer that can count up, countdown, … 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW-DF 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW Amateur Athletic Union recently bought a DC-40UTW model for their events and practices. This unit is great for many sports activities, events, or meetings. This unit is a universal timer that can count up, countdown, … Columbus Blue Jackets Timer The Columbus blue Jackets find it easier to let DC-Digital handle the game time and they do the winning! They purchased a DC-40T-DN-W, 4.0 inch high. Download Digital clock with BCD counters - Digital clock simulation created in Java . Digital clock with BCD counters DOWNLOAD NOW 857 downloads so far.DIGITAL CLOCK WITH BCD COUNTERS - YouTube
R; return r;}int second;int minute;int hour;int hr;int day;int dday;int month;int year;int ap;unsigned short set_count = 0;short set; char time[] = "00:00:00 PM";char date[] = "00-00-00";void main(){ I2C1_Init(100000); //DS1307 I2C is running at 100KHz CMCON = 0x07; // To turn off comparators ADCON1 = 0x06; // To turn off analog to digital converters TRISA = 0x07; PORTA = 0x00; Lcd_Init(); // Initialize LCD Lcd_Cmd(_LCD_CLEAR); // Clear display // Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Cmd(_LCD_BLINK_CURSOR_ON); Lcd_out(1,1,"Time:"); Lcd_out(2,1,"Date:"); do { set = 0; if(PORTA.F0 == 0) { Delay_ms(100); if(PORTA.F0 == 0) { set_count++; if(set_count >= 7) { set_count = 0; } } } if(set_count) { if(PORTA.F1 == 0) { Delay_ms(100); if(PORTA.F1 == 0) set = 1; } if(PORTA.F2 == 0) { Delay_ms(100); if(PORTA.F2 == 0) set = -1; } if(set_count && set) { switch(set_count) { case 1: hour = BCD2Binary(hour); hour = hour + set; hour = Binary2BCD(hour); if((hour & 0x1F) >= 0x13) { hour = hour & 0b11100001; hour = hour ^ 0x20; } else if((hour & 0x1F) = 60) minute = 0; if(minute = 0x32) day = 1; if(day 0x12) month = 1; if(month = 0x50) year = 0; write_ds1307(6, year); // write year break; } } } second = read_ds1307(0); minute = read_ds1307(1); hour = read_ds1307(2); hr = hour & 0b00011111; ap = hour & 0b00100000; dday = read_ds1307(3); day = read_ds1307(4); month = read_ds1307(5); year = read_ds1307(6); time[0] = BCD2UpperCh(hr); time[1] = BCD2LowerCh(hr); time[3] = BCD2UpperCh(minute); time[4] = BCD2LowerCh(minute); time[6] = BCD2UpperCh(second); time[7] = BCD2LowerCh(second); date[0] = BCD2UpperCh(day); date[1] = BCD2LowerCh(day); date[3] = BCD2UpperCh(month); date[4] = BCD2LowerCh(month); date[6] = BCD2UpperCh(year); date[7] = BCD2LowerCh(year); if(ap) { time[9] = 'P'; time[10] = 'M'; } else { time[9] = 'A'; time[10] = 'M'; } Lcd_out(1, 6, time); Lcd_out(2, 6, date); Delay_ms(100); }while(1);}You can download the MikroC Source Code and Proteus Files etc at the end of this article. Here I explains the Source Code and different functions used in it.The Three points to be noted while editing or creating program for this project:DS1307 RTC is fully Binary Coded Decimal (BCD) clock/calender. So the data read from DS1307 should be converted to required format according to our needs and data to be written to DS1307 should be in BCD format.Library for Interfacing LCD With PIC Microcontroller of MikroC needs Character or String Data. So data to be displayed in the LCD Screen should be converted to Character.Addition and Subtraction cannot be directly applied on BCD. Here I first convert BCD to Binary. Then addition and subtraction can be simply applied on Binary. Then the Binary is converted back to BCD.Functions that are used for reading and writing data from DS1307 are explained in the article Interfacing DS1307 with PIC Microcontroller please refer it. BCD2UpperCh() and BCD2LowerCh() are the two functions used to convert BCD to Character. Hour, Minute, Second, Date, Month and Year data are stored in DS1307 in separate 8-bit registers in BCD format. We read the data of these registers to access time/date. BCD2UpperCh() converts most significant 4 bits to corresponding character Pharmaceutical, Cleanroom Sterilization Master-Secondary Countdown Timers DC-Digital has been working with Mechanical Systems Inc. to create a countdown timer that manages how long a door can remain closed for their cleanrooms. This unit is an master-secondary countdown timer specifically designed for pharmaceutical cleanroom environments. Users can easily set the desired countdown time using BCD rotary switches, … Newsroom Timer with Footswitch for Anchor to control Spectrum News and Broadcasting hired DC-Digital to manufacture their news broadcasting timer and add controls for the news anchor to control it. See our complete operation Youtube video. In the fast-paced world of news broadcasting and studio management, precision timing is absolutely critical. To keep the show running seamlessly and … Single Input Timer with ANDON Light for Production Lines We’ve been working with Rotopax in developing a Single Input Timer to manage their production time. Hands free, fully automatic factory process countdown timer with ANDON end of period, overage time indicator LED light. One input action (in this case machine switch closure) resets and starts the timer from the … City Council Meeting Wireless Synchronous Timer Systems w/Large LED Displays City of West Haven, UT, and City of Sedona, AZ, both contracted DC-Digital to help them keep their city council chamber meetings on time. RF-Wirelessly controlled and also RF wireless synchronization, multi-function timers, count up (elapsed time), countdown (time remaining) and time of day clocks (can be shown when timers … Rock Climbing LED Timer Our digital clocks, timers, and counters are often used in a wide array of settings anywhere from school clock systems to surgery timers. One of our recent customers requested that we make them a timer for a rock climbing wall. For the rock climbing wall, we used the DC-406T-UP-TERM. This … Fire Station Turn Out Goal Timer is Network Driven The Honolulu Fire Department wanted a computer controlled Turn Out Timer display with an end of period buzzer and Andon light for additional visual and audible output. This will allow the fire fighters to see how much time has elapsed since receiving the dispatch call for help. Every second counts … Wellness check countdown timer for jails The perfect jail inmate wellness check reminder timer. Once it reaches 00:00 it sounds a 3 second buzzer, resets itself to the last preset time and then starts the countdown time interval to the next cell check again. Systematically eliminating the room for error on being reminded. See video: Jail … Synchronized digital LED countdown timers with footswitch activation Synchronized digital LED countdown timers maintain the countdown time right where you need it (100 locations for wired systems and infinite locations for wireless systems). The countdown time is activated off of a hands free foot-switch which causes the timers to reset to the set value and start. To set … Custom Synchronized LED Digital Timer system Countdown master with count up secondaries. Common start and individual stops. When the master gets to zero the secondaries continue to count up on there ownDigital clock with BCD counters (settable)
13 November 2024The ClockWorld clock, meeting planner, calendar.$4.9915 August 2024InerziaTimerSimple countdown timer/chronometer.Free14 August 2024deepClockDecorate your desktop with this analog clock.Free01 August 2024AS TimerSimple timer with audible and visible alarm.Free23 January 2024Second ClockSecond clock for a different time zone in your menu bar.Free01 June 2023AwakenDigital alarm clock uses iTunes to wake you.$6.9918 March 2022JAC DigitalOne or more resizable digital clocks showing the time in different locations.$1.9904 January 2022BigBenDisplays date/time of cities around the world.$7.9905 October 2021iClockCustomizable menu bar clock, calendar, alarms, timezones and chimes.$18.0014 May 2021Universal TimeScan cities around the world for current time.$1.9923 November 2020ClockeyWorld clock in the menu bar.$2.9919 November 2020DClockDock-clock with many features and options.$2.9930 October 2020AlarmeyConvenient alarm manager.$2.9927 June 2020Dock ClockA big clock in the dock with desktop option.$1.9914 May 2020Day-OMenu bar clock replacement with built-in calendar.Free06 May 2020FliqloOld-style clock with flipping numbers.Free03 April 2020Big ClockA simple floating clock.Free03 April 2020Word ClockTypographic clock and interactive art work.$4.9930 January 2020Ticke-TackA typographic word clock that displays fuzzy time.$1.9930 December 2019FuzzyTimeRead the menu bar clock in natural language.Free25 October 2018TinyAlarmTiny alarm clock for your menubar.$9.0018 November 2017Time PaletteDetermine the local time in a distant city.$24.9914 August 2017NC World ClocksDisplay current time in Notification Center.$1.9916 May 2017MinutesSimple and colorful timer.$1.9919 April 2017Nice ClockA clock for your Dock.$2.9912 February 2017My World ClockMultiple world clocks in a single window.$1.9927 December 2016BCDClockBinary-coded decimal (BCD) menubar clock.Free21 December 2016Status ClockShow additional clocks in your menu bar.Free07 March 2016Time UpActivity timer with multiple alarms.$.9909 February 2016Alarm ClockTurn your Mac into an alarm clock.FreeDigital clock with BCD counters - Download, Screenshots
Countdown Timer Once the timer counts down to zero it sets the display to flash and then counts back up. It has all the functions of a countdown timer and a count up timer with the exception of the flashing of the display when counting back up. It is RF-Wireless controlled but … Kids Exhibit Basketball Shot Clock Countdown Timer Red Box Workshop exhibits use our hand crafted built to order 2 Digit countdown timer shot clock for a kids basketball competition exhibit. This specific timer has a hard-coded program for a countdown time of 24 seconds. The kids would press a switch and it will reset to the hard-coded … Church Sermon Countdown timer When you get to preaching time sort of slips away and then you hear about it later. The parishioners loved your sermon but they commented on the length? Do you need to keep the sermon within a certain amount of time? The DC-40UTW RF – Wireless remote controlled sermon timer … (DC-25T-DN-W) City of Eden NC, City meeting timer The City of Eden recently purchased a customized DC-25T-DN-W for their city meetings. The City of Eden had the DC-25T-DN-W customized with various notification times. The buzzer warns the speaker when they have 1 minute left to finish speaking. The timer sounds for 3 seconds when the timer reaches 0:00. … Computer Controlled Master Clock System to stagger production times and breaks Coordinating labor efforts on an assembly line can be very challenging. What do the end of line laborers do to be productive while the start of line laborers complete their first process cycles? How can manufacturers reduce cyclical work in process that exists between subsequent processes? When the product is … DC-40T-DN-W with negative count up timer This is a customized DC-40T-DN-W, wireless set, count down timer with four inch digits. Customized to count back up after reaching zero and then displaying a negative (dash) symbol in what would be the 5th digit. It is Settable to a maximum of 99 minutes, 59 seconds it will count … BCD, “Set n Forget” switches for DC-Digital Countdown Timers DC-Digital Countdown Timers and Clocks use BCD (Binary Coded Decimal switches) to allow the customer to set the preset countdown time and 1) Never have to worry about batteries. 2) Never have to worry about power loss. 3) Never have to worry about trying to remember what. Download Digital clock with BCD counters - Digital clock simulation created in Java . Digital clock with BCD counters DOWNLOAD NOW 857 downloads so far.Digital Clock With BCD Counters Free Download [32
… Double Sided RF Wireless Presentation Countdown Timer-Clock See on both sides just how much time is left for the speaker or presenter. Large 6 inch LED’s Heavy duty all aluminum enclosure, 120vac power, RF-wireless controller with 150+ feet range. Very wide viewing angle. See DC-60T-DN-W-IN (Single Sided). See video: DC-60T-DN-W-IN-Video Andon lights Give More Visual Awareness When counting down, bring more awareness… add an Andon light. DC-Digital can install a 12 or 24 VDC Light and for audible effects add a high intensity buzzer on to any one of our timers. Similar Product: DC-25T-DN-BCD ANDON light: DC-ANDON-12 High Output Buzzer: DC-EOP-High or Contact us Nema Enclosed Countdown Timer with remote switch set and foot-switch CTL Aerospace based out of Cincinnati Ohio will be using this NEMA enclosed countdown timer. It comes with remote rotary set switches that gives the flexibility to set it at a different location up to 1000 feet away. It also come with a heavy duty Foot Switch for hands free … Giant countdown timer with flashing count up feature Morgan foods from Austin Indiana wanted a large countdown timer that could be placed in a wet environment for measuring the change over time from one product to another on their assembly line. Morgan foods processes foods for Walmart, Samsclub and Aldi as well as other large grocery chains. The … Looping Countdown Digital Timer and NEMA Enclosure DC-25T-DN-BCD-NEMA 2.3 Inch LED Digit NEMA 4X Enclosed looping countdown timer with BCD rotary set and forget switches. 60 mm palm switches .5 sec relay closure output. Minutes and seconds. Remote controls for starting, stopping and resetting are 60 mm palm switches 1 Red and 1 Black SW-1-HD-60-RED. See video … Council Meetings Master-Secondary Synchronized Multi-Function Timers Council meetings or any situation where synchronized timers are needed. Wireless Master-Secondary means they show the same exact display but only one is to be controlled. You can have an infinite number of secondary displays wireless-ly linked to the master. Contact us See Video: DC-40UTW Master-Secondary Wireless Timing System Speaker Countdown Timer with Flashing and Negative Time Indicator The speaker has gone past the time of his speech, what do you do? You have got to give him some kind of indication. This countdown timer does just that. Once it reaches 00:00 the timer displays a minus sign, flashes and then counts back up (see Pic). A type … Looping DigitalComments
RS Components provides a versatile range of counters to suit a variety of devices and functions. With digital, electromechanical, and purely mechanical counters available, RS provides a solution to industrial, commercial and project applications wherever precise counting and tallying is required. You'll find counters available from trusted brands such as Baumer, Omron, Red Lion, Kubler, Hengstler, Trumeter and our own RS PRO selection.Functions of CountersDigital Counters, also known as Mechanical Counters, Electronic Counters or Hour Meters, store and display the frequency of an occurring process, normally synchronized with a clock. For example, Electronic Counters in particular follow a sequential logic circuit which has a clock input signal. Industrial applications of counting devices are used to measure:LengthImpulsesTime elapsedPosition IndicationSwitching and controlTypes of CounterDigital counters Digital Counters - are electronic in design and will often have a digital display. These counters work off a latching circuit or "flip-flop" when the time gets to the set value the relay will switch from 1 position to the next (flip), then the next pre-set value it will switch back (flop). It latches in each position and holds it so that current can flow.Asynchronous or ripple counters - consisting of a number of flip-flops these count a stream of pulses applied to the counter's input. The output is a binary value whose value is equal to the number of pulses received.Synchronous counters - provide a more reliable circuit for counting purposes, and for high-speed operation, as the clock pulses in this circuit are fed to every flip-flop in the chain at exactly the same time.Decade counters - used to count decimal digits rather than binary.Ring counters - have a cascade layout of flip-flops in a ring so that the output of the last is fed into the input of the first.Mechanical countersMechanical Counters - are built
2025-04-0931MayMay 31, 2012 A Digital Clock can be made easily by using PIC Microcontroller, DS1307 and a 16×2 LCD. I have already posted about Interfacing DS1307 RTC with PIC Microcontroller. The DS1307 RTC can work either in 24-hour mode or 12-hour mode with AM/PM indicator. It automatically adjusts for months fewer than 31 days including leap year compensation up to year 2100. DS1307 comes with built-in power sensing circuit which senses power failures and automatically switches to back up supply. We can provide a 3V CMOS Battery for that. Communication between PIC Microcontroller and DS1307 takes place through I²C Bus.Components RequiredPIC 16F877A MicrocontrollerDS1307 RTC16×2 LCD8MHz Crystal32.768KHz Crystal for RTC3V Battery2x 22pF Capacitors0.1μF Capacitor4x 10KΩ Resistors10KΩ Preset2x 2.2KΩ Resistors4.7KΩ Resistor3x Micro Switches (Push Button)5V Power SupplyPrerequisitesI recommend reading following articles before going further.LCD Interfacing with PIC MicrocontrollerInterfacing DS1307 with PIC Microcontroller Circuit Diagram – Digital ClockDigital Clock using PIC Microcontroller and DS1307 RTC – Circuit DiagramI hope that you can easily understand the circuit diagram. The circuit is powered using a 5V power supply. 8MHz crystal is connected to PIC Microcontroller to provide necessary clock for the operation. An RCR (Resistor-Capacitor-Resistor) made using 10KΩ, 0.1µF, 4.7KΩ is connected to MCLR pin of PIC Microcontroller as recommended by Microchip. It will work fine even if you tie MCLR pin directly to VDD but Microchip doesn’t recommends it. DS1307 RTC is connected to PIC microcontroller via I2C bus. Pull up resistors connected to I2C bus is very important, please make sure that you are using correct values for it. An additional power supply (usually a battery or button cell) is connected to DS1307 RTC for running the clock during power failures. This circuit will function even without that battery also but the clock will stop and reset during power failure.MikroC Code// LCD module connectionssbit LCD_RS at RB2_bit;sbit LCD_EN at RB3_bit;sbit LCD_D4 at RB4_bit;sbit LCD_D5 at RB5_bit;sbit LCD_D6 at RB6_bit;sbit LCD_D7 at RB7_bit;sbit LCD_RS_Direction at TRISB2_bit;sbit LCD_EN_Direction at TRISB3_bit;sbit LCD_D4_Direction at TRISB4_bit;sbit LCD_D5_Direction at TRISB5_bit;sbit LCD_D6_Direction at TRISB6_bit;sbit LCD_D7_Direction at TRISB7_bit;// End LCD module connections unsigned short read_ds1307(unsigned short address){ unsigned short r_data; I2C1_Start(); I2C1_Wr(0xD0); //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 followed by 0 --> 0xD0 I2C1_Wr(address); I2C1_Repeated_Start(); I2C1_Wr(0xD1); //0x68 followed by 1 --> 0xD1 r_data=I2C1_Rd(0); I2C1_Stop(); return(r_data);}void write_ds1307(unsigned short address,unsigned short w_data){ I2C1_Start(); // issue I2C start signal //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 followed by 0 --> 0xD0 I2C1_Wr(0xD0); // send byte via I2C (device address + W) I2C1_Wr(address); // send byte (address of DS1307 location) I2C1_Wr(w_data); // send data (data to be written) I2C1_Stop(); // issue I2C stop signal}unsigned char BCD2UpperCh(unsigned char bcd){ return ((bcd >> 4) + '0');}unsigned char BCD2LowerCh(unsigned char bcd){ return ((bcd & 0x0F) + '0');}int Binary2BCD(int a){ int t1, t2; t1 = a%10; t1 = t1 & 0x0F; a = a/10; t2 = a%10; t2 = 0x0F & t2; t2 = t2 > 4; t = 0x0F & t; r = t*10 +
2025-04-14Time they had set the timer … Counsel Chambers Timers and Board Room Timers keeping the counsel chamber members of the Town of Parker Colorado on time and in sync is an easy task for DC-Digital and the DC-25T-DN-W timers. They went with RF-wireless controls to keep it simple and flush mount to make them cosmetically appealing. The timers are set up as master … US Army – 216 Calvary, Totally portable PT Digital Outdoor Timer Physical training is at the top of the US Army’s training schedule. To measure this performance the Army looked to DC-Digital and the line of totally portable battery operated outdoor rated timers. The trainees need to meet strict criteria and without knowing that would be well… not good. Do to … B-WAY CORPORATION PURCHASES A DC-DIGITAL DC-256T-UP TIMER B-Way corporation recently purchased DC-Digital DC-256T-UP timer to be a visual reminder to the production worker of the amount of downtime that has taken place on a particular shift. The DC-Digital DC-256T-UP timer has 2.3 inch digits which has a viewing distance of 120 feet. Bway Corporation chose pig tail … BCD Countdown Timer with Foot Switch We put together a foot switch operated timer for Boston Scientific. Not Quite sure what they are using it for but they will be able to set it to any MM:SS value using the supplied rotary 10 Position BCD coded switches mounted in the top of the enclosure for easy … 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW Amateur Athletic Union recently bought a DC-40UTW model for their events and practices. This unit is great for many sports activities, events, or meetings. This unit is a universal timer that can count up, countdown, … 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW-DF 4.0 Inch LED Digital, Multifunction, Up or Down Timer and Time of day clock, DC-40UTW Amateur Athletic Union recently bought a DC-40UTW model for their events and practices. This unit is great for many sports activities, events, or meetings. This unit is a universal timer that can count up, countdown, … Columbus Blue Jackets Timer The Columbus blue Jackets find it easier to let DC-Digital handle the game time and they do the winning! They purchased a DC-40T-DN-W, 4.0 inch high
2025-04-05R; return r;}int second;int minute;int hour;int hr;int day;int dday;int month;int year;int ap;unsigned short set_count = 0;short set; char time[] = "00:00:00 PM";char date[] = "00-00-00";void main(){ I2C1_Init(100000); //DS1307 I2C is running at 100KHz CMCON = 0x07; // To turn off comparators ADCON1 = 0x06; // To turn off analog to digital converters TRISA = 0x07; PORTA = 0x00; Lcd_Init(); // Initialize LCD Lcd_Cmd(_LCD_CLEAR); // Clear display // Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Cmd(_LCD_BLINK_CURSOR_ON); Lcd_out(1,1,"Time:"); Lcd_out(2,1,"Date:"); do { set = 0; if(PORTA.F0 == 0) { Delay_ms(100); if(PORTA.F0 == 0) { set_count++; if(set_count >= 7) { set_count = 0; } } } if(set_count) { if(PORTA.F1 == 0) { Delay_ms(100); if(PORTA.F1 == 0) set = 1; } if(PORTA.F2 == 0) { Delay_ms(100); if(PORTA.F2 == 0) set = -1; } if(set_count && set) { switch(set_count) { case 1: hour = BCD2Binary(hour); hour = hour + set; hour = Binary2BCD(hour); if((hour & 0x1F) >= 0x13) { hour = hour & 0b11100001; hour = hour ^ 0x20; } else if((hour & 0x1F) = 60) minute = 0; if(minute = 0x32) day = 1; if(day 0x12) month = 1; if(month = 0x50) year = 0; write_ds1307(6, year); // write year break; } } } second = read_ds1307(0); minute = read_ds1307(1); hour = read_ds1307(2); hr = hour & 0b00011111; ap = hour & 0b00100000; dday = read_ds1307(3); day = read_ds1307(4); month = read_ds1307(5); year = read_ds1307(6); time[0] = BCD2UpperCh(hr); time[1] = BCD2LowerCh(hr); time[3] = BCD2UpperCh(minute); time[4] = BCD2LowerCh(minute); time[6] = BCD2UpperCh(second); time[7] = BCD2LowerCh(second); date[0] = BCD2UpperCh(day); date[1] = BCD2LowerCh(day); date[3] = BCD2UpperCh(month); date[4] = BCD2LowerCh(month); date[6] = BCD2UpperCh(year); date[7] = BCD2LowerCh(year); if(ap) { time[9] = 'P'; time[10] = 'M'; } else { time[9] = 'A'; time[10] = 'M'; } Lcd_out(1, 6, time); Lcd_out(2, 6, date); Delay_ms(100); }while(1);}You can download the MikroC Source Code and Proteus Files etc at the end of this article. Here I explains the Source Code and different functions used in it.The Three points to be noted while editing or creating program for this project:DS1307 RTC is fully Binary Coded Decimal (BCD) clock/calender. So the data read from DS1307 should be converted to required format according to our needs and data to be written to DS1307 should be in BCD format.Library for Interfacing LCD With PIC Microcontroller of MikroC needs Character or String Data. So data to be displayed in the LCD Screen should be converted to Character.Addition and Subtraction cannot be directly applied on BCD. Here I first convert BCD to Binary. Then addition and subtraction can be simply applied on Binary. Then the Binary is converted back to BCD.Functions that are used for reading and writing data from DS1307 are explained in the article Interfacing DS1307 with PIC Microcontroller please refer it. BCD2UpperCh() and BCD2LowerCh() are the two functions used to convert BCD to Character. Hour, Minute, Second, Date, Month and Year data are stored in DS1307 in separate 8-bit registers in BCD format. We read the data of these registers to access time/date. BCD2UpperCh() converts most significant 4 bits to corresponding character
2025-03-29Pharmaceutical, Cleanroom Sterilization Master-Secondary Countdown Timers DC-Digital has been working with Mechanical Systems Inc. to create a countdown timer that manages how long a door can remain closed for their cleanrooms. This unit is an master-secondary countdown timer specifically designed for pharmaceutical cleanroom environments. Users can easily set the desired countdown time using BCD rotary switches, … Newsroom Timer with Footswitch for Anchor to control Spectrum News and Broadcasting hired DC-Digital to manufacture their news broadcasting timer and add controls for the news anchor to control it. See our complete operation Youtube video. In the fast-paced world of news broadcasting and studio management, precision timing is absolutely critical. To keep the show running seamlessly and … Single Input Timer with ANDON Light for Production Lines We’ve been working with Rotopax in developing a Single Input Timer to manage their production time. Hands free, fully automatic factory process countdown timer with ANDON end of period, overage time indicator LED light. One input action (in this case machine switch closure) resets and starts the timer from the … City Council Meeting Wireless Synchronous Timer Systems w/Large LED Displays City of West Haven, UT, and City of Sedona, AZ, both contracted DC-Digital to help them keep their city council chamber meetings on time. RF-Wirelessly controlled and also RF wireless synchronization, multi-function timers, count up (elapsed time), countdown (time remaining) and time of day clocks (can be shown when timers … Rock Climbing LED Timer Our digital clocks, timers, and counters are often used in a wide array of settings anywhere from school clock systems to surgery timers. One of our recent customers requested that we make them a timer for a rock climbing wall. For the rock climbing wall, we used the DC-406T-UP-TERM. This … Fire Station Turn Out Goal Timer is Network Driven The Honolulu Fire Department wanted a computer controlled Turn Out Timer display with an end of period buzzer and Andon light for additional visual and audible output. This will allow the fire fighters to see how much time has elapsed since receiving the dispatch call for help. Every second counts … Wellness check countdown timer for jails The perfect jail inmate wellness check reminder timer. Once it reaches 00:00 it sounds a 3 second buzzer, resets itself to the last preset time and then starts the countdown time interval to the next cell check again. Systematically eliminating the room for error on being reminded. See video: Jail … Synchronized digital LED countdown timers with footswitch activation Synchronized digital LED countdown timers maintain the countdown time right where you need it (100 locations for wired systems and infinite locations for wireless systems). The countdown time is activated off of a hands free foot-switch which causes the timers to reset to the set value and start. To set … Custom Synchronized LED Digital Timer system Countdown master with count up secondaries. Common start and individual stops. When the master gets to zero the secondaries continue to count up on there own
2025-03-31