• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Digital Clock using micro controller & RTC IC

Status
Not open for further replies.

HiteshDR

New Member
Nigel Goodwin said:
Aren't you using the DS1307?, this has internal EEPROM (also called NVRAM) for doing just what you want.
yes sir...

i was saying for External EEPROM...

by the way sir, i am trying to save the data in that memory but if i remove the power from MCU then data from memory of DS1307 if lost..

why it happens can you please tell me..???
 

ericgibbs

Well-Known Member
Most Helpful Member
HiteshDR said:
yes sir...

i was saying for External EEPROM...

by the way sir, i am trying to save the data in that memory but if i remove the power from MCU then data from memory of DS1307 if lost..
BUT its still in the DS1307 NVRAM 56byte memory.

why it happens can you please tell me..???
hi,
Its usual to have a battery backed real time clock module, to cover the periods when the external power fails, so that the RTC will keep time...
 

Nigel Goodwin

Super Moderator
Most Helpful Member
Like Eric says, the NVRAM in the DS1307 might be battery backed RAM rather than EEPROM?, so you need a backup battery to maintain it, and keep the clock running when there's no power. Again, the datasheet will explain it all.
 
Well...

HiteshDR said:
by the way sir, i am trying to save the data in that memory but if i remove the power from MCU then data from memory of DS1307 if lost..

why it happens can you please tell me..???

This is the reason we always add a battery + power supply to DS1307...

Moreover,

EEPROM is a memory that retains data even when power is off...

Regards,

Simran..:)
 

HiteshDR

New Member
ericgibbs said:
hi,
Its usual to have a battery backed real time clock module, to cover the periods when the external power fails, so that the RTC will keep time...

yes sir. i have connected battery too..
altough if i am trying to save data in EEPROM of RTC its lost if i am removing power from MCU...

its the command where i have try to use the NVROM of RTC.
ALM_STORE EQU 08H ; DS1307 RAM, ALARM STORAGE, BEGINNING.
please tell me whether its write or wrong...???
 

ericgibbs

Well-Known Member
Most Helpful Member
HiteshDR said:
yes sir. i have connected battery too..
altough if i am trying to save data in EEPROM of RTC its lost if i am removing power from MCU...

its the command where i have try to use the NVROM of RTC.


please tell me whether its write or wrong...???
hi hitesh,
This pdf is for a 8051 and DS1307, includes an application program.
 
Last edited:
Well..

Hi Sir Hitesh..

The pdf version of application note given by sir eric gibbs is very fine...

You take one more day extra to understand the interface...

This is very good pdf what i can suggest to you...

Regards,

Simran..:)
 

HiteshDR

New Member
simrantogether said:
Hi Sir Hitesh..

The pdf version of application note given by sir eric gibbs is very fine...

You take one more day extra to understand the interface...

This is very good pdf what i can suggest to you...

Regards,

Simran..:)
thank you simranji,...

let me check it then i'll reply if i'll have any doubt or problem with output..
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top