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