Sorry for the interrupt guys, but.... the last two solutions provided for this problem look alike eachother veeeerry much...
Is someone in need for points?
Hi all
I notice that no one has asked - what the required timing tolerance on the 1 Second interval?
Does the micro have to action a port pin within ±1µs of 'real time' then this is a will place various constraints on the method used.
If tolerance is ±50ms constraints are more relaxed. If it is a display update this will be different again.
Clarification of the timing requirement might help in the solution.