Quote Originally Posted by crisxstyle View Post
Hi to all!!!

I'm just having some trouble with my program code!i'm making a simple project and i want to put on it a time clock!!easier!!!

BUT i cannot tell to the rtc ds1302 the starting time, if i do it with a constant like: rtchr=$00 it works but if i make a subroutine that with a button decide the value of hours and minutes than nothing work, it semms like the pic having some problems with hex and bcd!!

some one have a subroutine tha can help me!?!?!

thank you so much!!

bye bye Cris
Well, which one is it? the DS1307 or DS1302? DS1307 in the other thread...
And again...30 hits on the search...
And again...surely one of those has some good tips...