RTC: Difference between revisions

Jump to navigation Jump to search
No change in size ,  15 years ago
m
no edit summary
[unchecked revision][unchecked revision]
No edit summary
mNo edit summary
Line 23:
 
====Turning on IRQ 8====
To turn on the periodic interuptinterrupt, all you have to do is:
<pre>
disable_ints(); //disable interrupts include NMI
Line 36:
 
====Changing Interrupt Rate====
Changing the output divider changes the interrupt rate, *without* interferringinterfering with the RTC's ability to keep proper time. The lower 4 bits of register A are the interrupt divider. The default is 0110b, or 6. The frequency must be a value from 1 to 15. A value of 0 disables the interrupt. To calculate a new frequency, you would do
<pre>
frequency = 32768 >> (rate-1);
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu