Real Time Clock

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
K.J.

Real Time Clock

Post by K.J. »

Okay, I have the real time clock working in Bochs, but not on a real comp. I have an ISR for the interrupt that it triggers that increments a value. In Bochs, the ISR is called, but not on a real comp. Here is my code for enabling the rtc:

[tt]
[bits 32]

[global _enable_rtc]
_enable_rtc:
   mov al, 0x0B
   out 0x70, al
   mov ah, 0x0   ; delay(not sure if a delay is needed... but it can't hurt)
   inc ah      ; delay
   inc ah      ; delay
   in al, 0x71
   or al, 0x40
   out 0x71, al
   ret
[/tt]

This is correct as far as I know, the rest of my code may be found at http://users.demented.org/~osmaker/code/

Thanks in advance,
K.J.
Chris Giese

Re:Real Time Clock

Post by Chris Giese »

I can only imagine what this board is going to do to the following URL, but here goes:

http://groups.google.com/groups?q=rtc+g ... com&rnum=1
sonneveld

Re:Real Time Clock

Post by sonneveld »

The board actually lets you post proper urls.

Try this:

Code: Select all

[url = "address"] title [/url]
- Nick
K.J.

Re:Real Time Clock

Post by K.J. »

Thanks a million Chris, that was just what I needed.

K.J.
Post Reply