OpenCores
URL https://opencores.org/ocsvn/pavr/pavr/trunk

Subversion Repositories pavr

[/] [pavr/] [trunk/] [test/] [gentest/] [2323def.inc] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 doru
;***************************************************************************
2
;* A P P L I C A T I O N   N O T E   F O R   T H E   A V R   F A M I L Y
3
;*
4
;* Number               :AVR000
5
;* File Name            :"2323def.inc"
6
;* Title                :Register/Bit Definitions for the AT90S2323
7
;* Date                 :99.01.28
8
;* Version              :1.30
9
;* Support telephone    :+47 72 88 87 20 (ATMEL Norway)
10
;* Support fax          :+47 72 88 87 18 (ATMEL Norway)
11
;* Support E-Mail       :avr@atmel.com
12
;* Target MCU           :AT90S2323
13
;*
14
;* DESCRIPTION
15
;* When including this file in the assembly program file, all I/O register
16
;* names and I/O register bit names appearing in the data book can be used.
17
;*
18
;* The Register names are represented by their hexadecimal addresses.
19
;*
20
;* The Register Bit names are represented by their bit number (0-7).
21
;*
22
;* Please observe the difference in using the bit names with instructions
23
;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc"
24
;* (skip if bit in register set/cleared). The following example illustrates
25
;* this:
26
;*
27
;* in   r16,PORTB               ;read PORTB latch
28
;* sbr  r16,(1<
29
;* out  PORTB,r16               ;output to PORTB
30
;*
31
;* in   r16,TIFR                ;read the Timer Interrupt Flag Register
32
;* sbrc r16,TOV0                ;test the overflow flag (use bit#)
33
;* rjmp TOV0_is_set             ;jump if set
34
;* ...                          ;otherwise do something else
35
;***************************************************************************
36
 
37
;***** Specify Device
38
.device AT90S2323
39
 
40
;***** I/O Register Definitions
41
.equ    SREG    =$3f
42
.equ    SPL     =$3d
43
.equ    GIMSK   =$3b
44
.equ    GIFR    =$3a
45
.equ    TIMSK   =$39
46
.equ    TIFR    =$38
47
.equ    MCUCR   =$35
48
.equ    MCUSR   =$34
49
.equ    TCCR0   =$33
50
.equ    TCNT0   =$32
51
.equ    WDTCR   =$21
52
.equ    EEAR    =$1e
53
.equ    EEARL   =$1e
54
.equ    EEDR    =$1d
55
.equ    EECR    =$1c
56
.equ    PORTB   =$18
57
.equ    DDRB    =$17
58
.equ    PINB    =$16
59
 
60
;***** Bit Definitions
61
 
62
.equ    EXTRF   =1
63
.equ    PORF    =0
64
 
65
.equ    INT0    =6
66
.equ    INTF0   =6
67
 
68
.equ    TOIE0   =1
69
.equ    TOV0    =1
70
 
71
.equ    SE      =5
72
.equ    SM      =4
73
.equ    ISC01   =1
74
.equ    ISC00   =0
75
 
76
.equ    CS02    =2
77
.equ    CS01    =1
78
.equ    CS00    =0
79
 
80
.equ    WDTOE   =4
81
.equ    WDE     =3
82
.equ    WDP2    =2
83
.equ    WDP1    =1
84
.equ    WDP0    =0
85
 
86
.equ    EEMWE   =2
87
.equ    EEWE    =1
88
.equ    EERE    =0
89
 
90
.equ    PB4     =4
91
.equ    PB3     =3
92
.equ    PB2     =2
93
.equ    PB1     =1
94
.equ    PB0     =0
95
 
96
.equ    DDB4    =4
97
.equ    DDB3    =3
98
.equ    DDB2    =2
99
.equ    DDB1    =1
100
.equ    DDB0    =0
101
 
102
.equ    PINB4   =4
103
.equ    PINB3   =3
104
.equ    PINB2   =2
105
.equ    PINB1   =1
106
.equ    PINB0   =0
107
 
108
.def    XL      =r26
109
.def    XH      =r27
110
.def    YL      =r28
111
.def    YH      =r29
112
.def    ZL      =r30
113
.def    ZH      =r31
114
 
115
.equ    RAMEND  =$DF    ;Last On-Chip SRAM Location
116
.equ    XRAMEND =$DF
117
.equ    E2END   =$7F
118
.equ    FLASHEND=$3FF
119
 
120
 
121
.equ    INT0addr=$001   ;External Interrupt0 Vector Address
122
.equ    OVF0addr=$002   ;Overflow0 Interrupt Vector Address
123
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.