I am working on a certain project and do not have any knowledge in RTC, nor how to program them. In fact, i just learned PicBasic Pro...

I have Pic16F876A and i am trying to manage to make my DS1307 work.

I Have read all the examples but as i am new to this thing, i didn't understand them...

i do not need alarms...etc etc i do not need it sophisticated at all. i am to calculate Energie which is given by: Energy = Power * time.

i already got power in a certain variable and now, i need to get the time elapsed in order to multiply by power...

any help?