corrected careless mistake
[my-code/atmel.git] / beginners / s90_to_tiny.inc
1 ;
2 ; compatibility (s902313 -> tiny2313)
3 ;
4 ; - certainly incomplete
5 ; - gets updated everytime i need more incompatible defs in my apps ;)
6 ;
7 ; author: hackbard@hackdaworld.org
8 ;
9
10 ;
11 ; register and bit definitions
12 ;
13
14 ; uart
15 ;#####
16 .equ    UBRRL   =UBRR   ; 09
17 .equ    UBRRH   =$02
18 .equ    UCSRA   =USR    ; 0b
19 .equ    UCSRB   =UCR    ; 0a
20
21 ; 8/16 bit timer counter registers
22 ;#################################
23 .equ    TCCR0A  =$30
24 ;-------------------
25 .equ    WGM00   =$00
26 .equ    WGM01   =$01
27 .equ    COM0B0  =$04
28 .equ    COM0B1  =$04
29 .equ    COM0A0  =$06
30 .equ    COM0A1  =$07
31
32 .equ    TCCR0B  =$33
33 ;-------------------
34 ;.equ   CS00    =$00
35 ;.equ   CS01    =$01
36 ;.equ   CS02    =$02
37 .equ    WGM02   =$03
38 .equ    FOC0B   =$06
39 .equ    FOC0A   =$07
40
41 .equ    OCR0A   =$36
42 ;-------------------
43
44 .equ    OCR0B   =$3c
45 ;-------------------
46
47 ; TIMSK
48 ;------
49 .equ    OCIE0A  =$00
50 .equ    OCIE0B  =$02
51 .equ    OCIE1B  =$05
52