CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to set real time and get the current time reading

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

how to set real time and get the current time reading
PostPosted: Fri Mar 18, 2005 8:45 am     Reply with quote

I am think a project that people setup time year, month day, hour, minute and second and then run the program the program will save this data as well as other measuring data to a storage. I am wondering how to build the system. any help please
Ttelmah
Guest







PostPosted: Fri Mar 18, 2005 10:30 am     Reply with quote

It will depend massively on how much data is involved. Obvious solution is a battery backed RTC chip like the DS1302. You can set this, and it will keep time for you, sending an interrupt to the main processor at intervals. You then take the other measurements, and put the lot into another storage device (EEPROM for small amounts, up to CF, for large amounts of data).

Best Wishes
Guest
Guest







Time and data
PostPosted: Fri Mar 18, 2005 10:45 am     Reply with quote

Did exactly what Ttelmah mentioned and use a DS1302 for the clock with a super cap for backup power when the board wasn't plugged in. Stored time-stamped temperature data on EEPROM - several days of data can be stored even if you take samples every several seconds. I calculated that using 4 big EEPROMS (512K bytes each), you could store data (two bytes) every minute for weeks. I really didn't need the exact time, but used the DS1302 so the user could select the sampling interval - every minute, hour, 15 seconds, etc...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group