initial checkin of compatibility inc file (s90 -> tiny)
[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    UCSRA   =USR    ; 0b
17 .equ    UCSRB   =UCR    ; 0a
18
19 ; 8 bit timer counter register
20 ;#############################
21 .equ    TCCR0A  =$30
22 ;-------------------
23 .equ    WGM00   =$00
24 .equ    WGM01   =$01
25 .equ    COM0B0  =$04
26 .equ    COM0B1  =$04
27 .equ    COM0A0  =$06
28 .equ    COM0A1  =$07
29
30 .equ    TCCR0B  =$33
31 ;-------------------
32 ;.equ   CS00    =$00
33 ;.equ   CS01    =$01
34 ;.equ   CS02    =$02
35 .equ    WGM02   =$03
36 .equ    FOC0B   =$06
37 .equ    FOC0A   =$07
38
39 .equ    OCR0A   =$36
40 ;-------------------
41
42 .equ    OCR0B   =$3c
43 ;-------------------
44
45
46
47
48