i want help to write a delay code which don't interrupt the current process so it it will be accurate in it's timing and as an example i wrote a program to show the time LCD and every character i write on LCD i wait for a delay 5msec till it not busy and after writing all characters i wait for the 1 sec and recalculate or increment the time and i found that the 5msec and the time taken by increment code make delay in the whole process and the time showed on the LCD is delayed by 5mins every 4 or 5 hours
i want a 1 sec delay code which works stand alone of the main code and when it reaches the 1 sec it makes interrupt and recalculate the time
what is the best way to do that ?
i write for microchip assembly for pic16f876
i want a 1 sec delay code which works stand alone of the main code and when it reaches the 1 sec it makes interrupt and recalculate the time
what is the best way to do that ?
i write for microchip assembly for pic16f876