igeorge
Member level 5
Hello,
I have a big issue and i do not know where to find the solution.
I have a PIC18F87K90. It has a real time clock. The time and date are out on BCD.
I setup on the EEprom 10 sets of hours and minutes when i want the pic to put some outputs ON
The data stored on EEprom is minutes
Example :
For 06:30 i have
6*60=360 minutes + 30 minutes = 390 minutes.
On my eeprom i have at address $205 data 01 and at address $206 data 86.
In total for 6:30 converted to minutes = 390 minutes i have a Word = $0186
At 6:30, the pic give me
06 BCD and 30 BCD
I do not know how to convert them to a word so i can compare with the value from eeprom.
Please help.
Thank you very much.
I have a big issue and i do not know where to find the solution.
I have a PIC18F87K90. It has a real time clock. The time and date are out on BCD.
I setup on the EEprom 10 sets of hours and minutes when i want the pic to put some outputs ON
The data stored on EEprom is minutes
Example :
For 06:30 i have
6*60=360 minutes + 30 minutes = 390 minutes.
On my eeprom i have at address $205 data 01 and at address $206 data 86.
In total for 6:30 converted to minutes = 390 minutes i have a Word = $0186
At 6:30, the pic give me
06 BCD and 30 BCD
I do not know how to convert them to a word so i can compare with the value from eeprom.
Please help.
Thank you very much.