]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - z180/config.inc
Enable X2 Clock Multiplier, disable Clock Divider
[z180-stamp.git] / z180 / config.inc
index b03761c444ec71574cb6967ece9cb5011d764373..b5df1cc28eca8af6f8bd9af711794bb43ee3fe60 100644 (file)
@@ -1,7 +1,7 @@
 \r
 \r
-FOSC           equ     18432           ;Oscillator frequency [KHz]\r
-PHI            equ     FOSC/2          ;CPU frequency \r
+FOSC           equ     9216            ;Oscillator frequency [KHz]\r
+PHI            equ     FOSC*2          ;CPU frequency\r
 \r
 ;-----------------------------------------------------\r
 ; Programmable Reload Timer (PRT)\r
@@ -54,7 +54,7 @@ s1.tx_len     equ     256             ;
 PMSG           equ     80h\r
 \r
 ;-----------------------------------------------------\r
-; Definition of (locical) top 2 memory pages \r
+; Definition of (locical) top 2 memory pages\r
 \r
 sysram_start   equ     0FE00h\r
 stacksize      equ     80\r
@@ -72,7 +72,7 @@ iv2tab                equ     ivtab + 2*9
 o.mask         equ     -3\r
 o.in_idx       equ     -2\r
 o.out_idx      equ     -1\r
-       \r
+\r
        .lall\r
 \r
 mkbuf  macro   name,size\r
@@ -80,7 +80,7 @@ mkbuf macro   name,size
     .printx Error: buffer ^size must be power of 2 and in range 0..256!\r
     name&.mask equ ;wrong size error\r
   else\r
-    ds 3       \r
+    ds 3\r
     name:: ds size\r
     name&.mask equ low (size-1)\r
     if size ne 0\r
@@ -92,9 +92,9 @@ endm
 \r
 ;-----------------------------------------------------\r
 \r
-inidat macro   \r
+inidat macro\r
        cseg\r
-??ps.a defl    $       \r
+??ps.a defl    $\r
        endm\r
 \r
 inidate        macro\r