OpenCores
URL https://opencores.org/ocsvn/rtf68ksys/rtf68ksys/trunk

Subversion Repositories rtf68ksys

[/] [rtf68ksys/] [trunk/] [Software/] [ds1307.asm] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 robfinch
 
2
; clear out 64 byte memory block
3
;
4
move.l  d1,#64
5
move.l  a0,#0xFFd80300
6
j1:
7
clr.l   (a0)+
8
dbeq    d1,j1
9
 
10
; perform write to ds1307
11
 
12
move.l  a0,#0xFFD8_0300
13
move.b  d0,#0x08
14
move.b  d0,7(a0)                        ; set register #7, bits 3:2=10
15
 
16
; wait 10ms
17
;
18
; perform read of ds1307
19
;
20
move.l  a0,#0xFFD8_0300
21
move.b  d0,#0x08
22
move.b  d0,7(a0)                        ; set register #7, bits 3:2=10
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.