BasicMicro - Forums

www.basicmicro.com
It is currently Sun May 20, 2012 10:45 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ATOM 40 AND RTC
PostPosted: Wed Apr 15, 2009 12:59 pm 
Offline
Citizen

Joined: Mon Jun 23, 2008 8:39 am
Posts: 18
Dear all,
I want to interface my module ATOM 40 with a RTC, like the DS1307.
The question is:
I want to use an external interrupt from the ds1307 every second.
I know that a pin of the RTC is an output of square signal. Is it alright? Is this pin useful as an interrupt every second?


Top
 Profile  
 
 Post subject: Re: ATOM 40 AND RTC
PostPosted: Wed Apr 15, 2009 6:47 pm 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
Hi, denyan. :)
Seems simple enough. Get the DS1307 data sheet. Use the Atom's I2C commands to set the 1307's registers to produce the 1Hz output. Connect that to one of the interrupt-on-change pins and use the EXTINT command to work with it.
There is an app note under the Atom's Download section about using the DS1302. This is a SPI part with no squarewave output, but it will get you started.
Remember, keep the clock crystal real close to the part or expect trouble.
Also, do a search on the web. This should be a common project.

Basic Micro is now ready to update and upgrade their examples and app notes. In the future, ask for code examples of interest to you in the "Wish List" forum. Be sure to state which product you're using and what, if anything, you want to interface to. Give a time frame (immediate, in 30 days, 60 days). The answers may be anything from generic to specific. As always, my job is to advise and guide, not provide complete and bulletproof solutions. I am supposed to receive (literally) one of every product so I can answer questions intelligently here, with real world test and experience, and start producing code examples. Mind you, I don't have these items yet, and may not have them all for a month or so.

Take care,
kenjj

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO