X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=beginners%2Fs90_to_tiny.inc;fp=beginners%2Fs90_to_tiny.inc;h=7900ada9a825d56b5ae3cf687fdb2806c1380a37;hb=d038b235b986e6a7e5016d6a65064aaca5c90639;hp=0000000000000000000000000000000000000000;hpb=b966394e758f0b6c51c5a41bfc1177d8c4fc2529;p=my-code%2Fatmel.git 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 +;------------------- + + + + +