Dave,
Here's a link to the RTC2: http://www.mikroe.com/en/tools/rtc2-proto/
Malc-c,
You can use this with pretty much any pin that I2CWrite/I2CRead work on, and
you can probably find several PBP examples here for working with the DS1307.
Dave,
Here's a link to the RTC2: http://www.mikroe.com/en/tools/rtc2-proto/
Malc-c,
You can use this with pretty much any pin that I2CWrite/I2CRead work on, and
you can probably find several PBP examples here for working with the DS1307.
Thanks Bruce,
I was going to suggest what you did but though maybe it was something special.
Just a regular RTC...
I use the 1337 on a 4550 with pins PORTD.0 and PORTD.1.
For whatever it is worth....
Dave
Always wear safety glasses while programming.
Hey Dave,
Yeah - it's just a plain-old DS1307.....)
Malc-C,
Here's one of the best examples I've ever seen for PBP using the DS1307 by Melanie;
http://www.melabs.com/resources/samp...ted/MN1307.txt
I suspect the reason they recommend specific pins was due to them using hardware I2C
in the sample code they provide for the RTC module.
Last edited by ScaleRobotics; - 10th February 2012 at 02:48.
Thanks once again for all the input.
I'll take a look at those examples. I've not used any I2C device before so forgive me for these noobie questions - and Reading TFM just confused things![]()
Quick question, I'm having problems reading the schematic of the board http://www.mikroe.com/pdf/rtc2_schematic_v100.pdf
The board doesn't have the 3 x 2 header shown, just the 5 x 2 which connects to the easypic5. As I need to breadboard these modules to connect to the spare pins I'll have and not take up a full port can some one tell me what pins on the 5 x 2 header I need to connect to the PIC (other than supply)
EDIT: - just looked at the code and previous replies... RC3 and RC3 are suggested, so that would be pins 4 and 5 on the header
Last edited by malc-c; - 5th February 2010 at 20:29.
One possibility to consider. If you do not need all the features of a full-blown RTCC (especially the calendar and alarm), you can implement a real time clock on a PIC18 with just a watch crystal and 2 capacitors - less than $0.30 in cost.
Using the Secondary Oscillator (RC0, RC1, and TIMER1), all it needs is just a few lines of code to implement an interrupt driven real time clock. Look at the data sheet section for TIMER1 for more details.
Bookmarks