Ok friends, first of all, sorry for my bad english, it's not my primary language.
I have an average knowledge of analogic eletronic, but just a little of digital, and need some help on a project. I have to READ and WRITE data from a Real Time Clock (in case, a DS1307) using a PC. I've tryed to do it without a uC, but can't make it work so I decided to use one.
I want run an application (that part - send and receive data from the RS232 on the PC side isn't a problem) on my PC that will send via RS232 a command to the PIC saying:"Write the date/Time XXXXXXXX on the RTC", and the PIC will WRITE it via I²C to the RTC.
Or I will say "Read the Date/Time of the RTC" and the PIC will read it and send it to my application via RS232.
From my researches i found out that a PIC16F628 would be the right choice. Am I right?
It is possible to do that? HOW?
If someone can help me with the code and connections, send me some links, tips, anything would help.
I have seen som examples on how to read/write on I²C EPROMS, and was thiking if I can use a similar schematic, but the main problem than it's the uC code.... please, if some of you have the time to help, i'll apreciate a lot.
i have just found this link:
CODE:
**broken link removed**
SCHEMATICS:
**broken link removed**
looks like what i need, but not sure about the RS232 part... looks like it is not implemented on the CODE...any idea?
thanks
I have an average knowledge of analogic eletronic, but just a little of digital, and need some help on a project. I have to READ and WRITE data from a Real Time Clock (in case, a DS1307) using a PC. I've tryed to do it without a uC, but can't make it work so I decided to use one.
I want run an application (that part - send and receive data from the RS232 on the PC side isn't a problem) on my PC that will send via RS232 a command to the PIC saying:"Write the date/Time XXXXXXXX on the RTC", and the PIC will WRITE it via I²C to the RTC.
Or I will say "Read the Date/Time of the RTC" and the PIC will read it and send it to my application via RS232.
From my researches i found out that a PIC16F628 would be the right choice. Am I right?
It is possible to do that? HOW?
If someone can help me with the code and connections, send me some links, tips, anything would help.
I have seen som examples on how to read/write on I²C EPROMS, and was thiking if I can use a similar schematic, but the main problem than it's the uC code.... please, if some of you have the time to help, i'll apreciate a lot.
i have just found this link:
CODE:
**broken link removed**
SCHEMATICS:
**broken link removed**
looks like what i need, but not sure about the RS232 part... looks like it is not implemented on the CODE...any idea?
thanks