X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=beginners%2Fs90_to_tiny.inc;h=f08715f75a2a8925199b05a1f779889791a12342;hb=435321341893d026b0b2b194df52d79891c4528a;hp=7900ada9a825d56b5ae3cf687fdb2806c1380a37;hpb=d038b235b986e6a7e5016d6a65064aaca5c90639;p=my-code%2Fatmel.git diff --git a/beginners/s90_to_tiny.inc b/beginners/s90_to_tiny.inc index 7900ada..f08715f 100644 --- a/beginners/s90_to_tiny.inc +++ b/beginners/s90_to_tiny.inc @@ -13,11 +13,13 @@ ; uart ;##### +.equ UBRRL =UBRR ; 09 +.equ UBRRH =$02 .equ UCSRA =USR ; 0b .equ UCSRB =UCR ; 0a -; 8 bit timer counter register -;############################# +; 8/16 bit timer counter registers +;################################# .equ TCCR0A =$30 ;------------------- .equ WGM00 =$00 @@ -42,7 +44,9 @@ .equ OCR0B =$3c ;------------------- - - - +; TIMSK +;------ +.equ OCIE0A =$00 +.equ OCIE0B =$02 +.equ OCIE1B =$05