- This topic has 3 replies, 3 voices, and was last updated 12 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Electronics › Electronics › Building digital clock thak have alarm and fire alarm
Hi. Can anyone give me idea on this topic.
I’m planning to use seven segment display to show time
and lcd display to show the alarm time.
If you are going for a digital clock you should use RTC like DS1307, and you should learn I2C to interface it with the controller. Also there are seven segment driver ic’s available.
Which is the microcontroller you are planning to use, or are you going to do it without using any microcontroller ?
1)how synchronisation takes place we are using different crystal frqncy in ds1307 and 8051??
2)how programming we should start when we are using sca and sda pins ??
3)how we use registers in order to set date time. i actually dont know how to do a programming in assembly or inc . i read datasheet bt can anyone help me where i can learn programming so that at lcd we can show date and time and set an alaram after that??
project is over collge bell
Answers to your questions inline
1) There won’t be synchronisation issues due to different crystal frequencies. 32khz crystal is used for
the internal clock of ds1307 only, means only to update the registers of rtc. While we try to read, the
data is copied to a register from where we read it, while the actual data keep on updated without any
disturbance
2) You should get I2C code running in your MCU, which will enable a pair of pins as sda and scl. The
code will be complex, but you can download it from internet
3) You can set the time and date by setting the registers of rtc. It can be done in both 12 hour or 24 hour
mode. Those details are available in the datasheet.