From: hackbard Date: Fri, 23 Jun 2006 18:05:33 +0000 (+0000) Subject: initial checkin of compatibility inc file (s90 -> tiny) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d038b235b986e6a7e5016d6a65064aaca5c90639;p=my-code%2Fatmel.git initial checkin of compatibility inc file (s90 -> tiny) --- diff --git a/beginners/s90_to_tiny.inc b/beginners/s90_to_tiny.inc new file mode 100644 index 0000000..7900ada --- /dev/null +++ b/beginners/s90_to_tiny.inc @@ -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 +;------------------- + + + + +