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 support@ccsinfo.com

Control Intelligent of Medicines

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



Joined: 08 Jun 2008
Posts: 2

View user's profile Send private message

Control Intelligent of Medicines
PostPosted: Sun Jun 08, 2008 2:38 pm     Reply with quote

Hello everyone,

My name is Leonardo I'm developing a project of a machine to control of medicines. My equipment is composed of six pipes where the medicines are kept, the user, through the keyboard, programs which a dosage of medicines of the pipe everything is indicated in a module LCD, the medicines are removed of the pipe through small solenoids. We are working with the PIC 16F877A. Somebody Have You already gotten to generate alarms for different hours? I'm with problems to create the software using the RTC. What is the best PCF or Dallas? Someone has some software to help me?

Regards,

Leonardo Crociati
FEI University
Brazil
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 08, 2008 4:37 pm     Reply with quote

Quote:

I'm with problems to create the software using the RTC. What is the best
PCF or Dallas? Someone has some software to help me?

Look in the Code Library forum. It has drivers for DS1307 and PCF8583.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Jun 09, 2008 8:00 am     Reply with quote

I've had very good luck with an access control board using a M41T80 and a super cap 1F 5V backup of the rtc. $1.50
http://search.digikey.com/scripts/DkSearch/dksus.dll?lang=en&site=US&keywords=m41t80&x=0&y=0
supercap info
http://www.maxim-ic.com/appnotes.cfm/appnote_number/3517/ln/en
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

PostPosted: Mon Jun 09, 2008 1:31 pm     Reply with quote

I've used the Maxim/Dallas range of RTC's and they work OK, you can get free samples which is always nice, ST also gives samples, but i had problems getting them in my country.

I am currently using the DS1305 which has two programmable alarms. I have written some basic functions for setting the alarms and a function to set the next alarm time when it goes off to effectively create a "programmable interrupt" function to be used in a data logger application. The code uses a function to convert date to seconds elapsed and vice versa.

The code for setting the alarm has been tested but not extensively for public release. The functions for converting date to seconds elapsed is unfortunately copyrighted by another member of the forum so you will have to write/get your own. Not sure what your needs are exactly but the DS1305 fits my needs given the extra functions written.

Also look for a similar project by elizabeth_ann, might be usefull.
leonardo.crociati



Joined: 08 Jun 2008
Posts: 2

View user's profile Send private message

Clock and alarm whith Dallas
PostPosted: Wed Jun 11, 2008 3:27 pm     Reply with quote

Crystall, Do you have some program to acess the memory of Dallas or the interface circuit with PIC 16F877A? I've used the PCF8583, but it not working yet.
What your e-mail? I´ll send my project with more details.
Do you know how I can to contact elizabeth_ann?

Best Regards,

Leonardo
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

PostPosted: Sun Jun 15, 2008 11:04 am     Reply with quote

Do a search on the forum for ds1305 or ds1307 or even ds1302 and you will find some drivers for it, or consult you ccs installation dir, under drivers.

Do a search for users you should be able to find her.
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