]> hackdaworld.org Git - my-code/atmel.git/commitdiff
initial checkin of compatibility inc file (s90 -> tiny)
authorhackbard <hackbard>
Fri, 23 Jun 2006 18:05:33 +0000 (18:05 +0000)
committerhackbard <hackbard>
Fri, 23 Jun 2006 18:05:33 +0000 (18:05 +0000)
beginners/s90_to_tiny.inc [new file with mode: 0644]

diff --git a/beginners/s90_to_tiny.inc b/beginners/s90_to_tiny.inc
new file mode 100644 (file)
index 0000000..7900ada
--- /dev/null
@@ -0,0 +1,48 @@
+;
+; compatibility (s902313 -> tiny2313)
+;
+; - certainly incomplete
+; - gets updated everytime i need more incompatible defs in my apps ;)
+;
+; author: hackbard@hackdaworld.org
+;
+
+;
+; register and bit definitions
+;
+
+; uart
+;#####
+.equ   UCSRA   =USR    ; 0b
+.equ   UCSRB   =UCR    ; 0a
+
+; 8 bit timer counter register
+;#############################
+.equ   TCCR0A  =$30
+;-------------------
+.equ   WGM00   =$00
+.equ   WGM01   =$01
+.equ   COM0B0  =$04
+.equ   COM0B1  =$04
+.equ   COM0A0  =$06
+.equ   COM0A1  =$07
+
+.equ   TCCR0B  =$33
+;-------------------
+;.equ  CS00    =$00
+;.equ  CS01    =$01
+;.equ  CS02    =$02
+.equ   WGM02   =$03
+.equ   FOC0B   =$06
+.equ   FOC0A   =$07
+
+.equ   OCR0A   =$36
+;-------------------
+
+.equ   OCR0B   =$3c
+;-------------------
+
+
+
+
+