Hi
I am trying to implement an algorithm which will store the number of hours run of a product using a timer, I have this so far
set timer to time 1000 x 1ms
|
load timer
|
count
|
when count == 0
|
Interrupt
The ISR would do:
increment var_1s
|
if var_1s == 3600
|
increment var_1h
This would need to continue up to var_10000h, so how do I keep track of all the variables and know when I need to roll each one over and ensure that the var_1s keeps getting incremented whatever?
Any suggestions gratefully received
--dave