rtc_isr_tmr0

Real Time Clock running from ISR on TMR0

Author Eur van Andel, Copyright (c) 2003..2008, all rights reserved.
Adapted-by
Compiler >=2.4h

Description

This Interrupt Service Routine updates the variable seconds about once per second.
The precision is 0.2 ppm, the accuracy depends on the Xtal used. 


Sources

http://www.romanblack.com/one_sec.htm, http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm


Notes

This is the Bresenham Line Algorithm, invented at IBM in 1962, which gets an accurate end result
by summing the small errors resulting of taking discrete steps and correcting when the error gets too large.
This means that individual second lengths may show some jitter, but that long-term timekeeping is accurate.
Original assembler by Roman Black. 


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

  • RTC()

    No documentation found

Functions


Related samples

Here are the list of samples which use this library:

16f876a16f876a_rtc_lcd.jal
16f877a16f877a_rtc_lcd.jal