Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 08:36:18 08:36


Login with username, password and session length


Pages: [1]
Print
Author Topic: Digital Clock  (Read 5333 times)
0 Members and 1 Guest are viewing this topic.
junaid_766
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 10
-Receive: 1


« on: December 08, 2008, 07:23:56 07:23 »

i want to make a digital clock with 8051.
 i searched on internet and found two type of clocks, one which only use 8051 and other  which use RTC(e.g.DS1307) with 8051
i want to ask that which one is more accurate 
Logged
pjve64
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 4
-Receive: 2


« Reply #1 on: December 08, 2008, 07:43:09 07:43 »

RTC's are always more accurate. The DS1307 you mentioned is an i2c device which is more difficult to program.
The DS12885 for example connects directly to the AD0..7 bus of the 8051, and programming is much easier.
Have a look at the MAXIM website, there are lots of RTC's you can choose from.
Logged
ficho
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 6


« Reply #2 on: December 08, 2008, 09:08:32 09:08 »

http://www.kmitl.ac.th/~kswichit%20/Ajay2/clock.html
Logged
brijbhoomi
Newbie
*
Offline Offline

Posts: 25

Thank You
-Given: 6
-Receive: 0


« Reply #3 on: December 08, 2008, 05:47:06 17:47 »


i have tested the mentioned schematic in protues but it is not working in isis
Logged
FriskyFerret
Hero Member
*****
Offline Offline

Posts: 560

Thank You
-Given: 513
-Receive: 360


Put it in, take it out.


WWW
« Reply #4 on: December 08, 2008, 07:42:16 19:42 »

Quote
RTC's are always more accurate.

It all depends on the crystal or clock source used. If you drive the clock input of an 8051 with a surplus +/- 5 ppb ovenized oscillator it will be a lot more accurate than a RTC using a +/- 50 ppm 32,768 Hz watch crystal. Of course, no one drives an 8051 with a $30 high precision oscillator.

In general, 32,768 Hz watch crystals have a much better accuracy and precision than the crystals usually used to form the oscillator circuit of a microcontroller.


Posted on: December 08, 2008, 08:38:54 20:38 - Automerged

brijbhoomi, I took a brief look at the circuit. The crystal oscillator in the RTC may not be completely modeled. Consult the data sheet and try driving one of the inputs with a logic-level square wave input. Did you look at the online help for the model to determine the limitations?
Logged

Dancing pants and leotards, that's what I'm talkin' about!
brijbhoomi
Newbie
*
Offline Offline

Posts: 25

Thank You
-Given: 6
-Receive: 0


« Reply #5 on: December 16, 2008, 02:27:41 14:27 »

Actually nothing displayed on LCD screen may be something wrong with 4 bit initialization of LCD routine
Logged
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #6 on: December 16, 2008, 04:43:26 16:43 »

i want to make a digital clock with 8051.
 i searched on internet and found two type of clocks, one which only use 8051 and other  which use RTC(e.g.DS1307) with 8051
i want to ask that which one is more accurate 

can u give me some time i will build one for u with 7 segment  calender. i am busy with "c" now. by the way which topology u want, multiplex or shift register and also cpu.
« Last Edit: December 16, 2008, 04:53:50 16:53 by sohel » Logged
junaid_766
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 10
-Receive: 1


« Reply #7 on: January 20, 2009, 07:47:49 19:47 »

can u give me some time i will build one for u with 7 segment  calender. i am busy with "c" now. by the way which topology u want, multiplex or shift register and also cpu.

i will b very thankful to u if u made i for me
Logged
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #8 on: January 21, 2009, 09:07:32 09:07 »

please answer my request. Huh
Logged
ali_asadzadeh
Junior Member
**
Offline Offline

Posts: 82

Thank You
-Given: 5
-Receive: 12


« Reply #9 on: January 23, 2009, 07:49:33 19:49 »

you can build an accurate and easy rtc with the help of MT48t86 external ram and rct along internal cap and battery. just hock the rtc chip to the extranal ram bus and read and write time like general external ram.
Logged
junaid_766
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 10
-Receive: 1


« Reply #10 on: January 24, 2009, 11:51:46 11:51 »

can u give me some time i will build one for u with 7 segment  calender. i am busy with "c" now. by the way which topology u want, multiplex or shift register and also cpu.

 multiplex
Logged
Mega32
Active Member
***
Offline Offline

Posts: 179

Thank You
-Given: 183
-Receive: 37


« Reply #11 on: February 14, 2009, 08:33:55 20:33 »

If you use mains power (trafo) for the power to the clock/project , then derive the "RTC clock tick" from the 50/60 Hz line frequency on mains.
That is extremely accurate over a 24/hr period.

Connect a MCU interrupt to : an opto w. a resistor to the low voltage AC , and remember to protect the opto led from the negative period of the AC with a diode.


Mega32
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC