1 ;***************************************************************************
\r
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
\r
5 ;* File Name :"2313def.inc"
\r
6 ;* Title :Register/Bit Definitions for the AT90S2313
\r
9 ;* Support telephone :+47 72 88 43 88 (ATMEL Norway)
\r
10 ;* Support fax :+47 72 88 43 99 (ATMEL Norway)
\r
11 ;* Support E-Mail :avr@atmel.com
\r
12 ;* Target MCU :AT90S2313
\r
15 ;* When including this file in the assembly program file, all I/O register
\r
16 ;* names and I/O register bit names appearing in the data book can be used.
\r
18 ;* The Register names are represented by their hexadecimal addresses.
\r
20 ;* The Register Bit names are represented by their bit number (0-7).
\r
22 ;* Please observe the difference in using the bit names with instructions
\r
23 ;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc"
\r
24 ;* (skip if bit in register set/cleared). The following example illustrates
\r
27 ;* in r16,PORTB ;read PORTB latch
\r
28 ;* sbr r16,(1<<PB6)+(1<<PB5) ;set PB6 and PB5 (use masks, not bit#)
\r
29 ;* out PORTB,r16 ;output to PORTB
\r
31 ;* in r16,TIFR ;read the Timer Interrupt Flag Register
\r
32 ;* sbrc r16,TOV0 ;test the overflow flag (use bit#)
\r
33 ;* rjmp TOV0_is_set ;jump if set
\r
34 ;* ... ;otherwise do something else
\r
35 ;***************************************************************************
\r
37 ;***** Specify Device
\r
40 ;***** I/O Register Definitions
\r
76 ;***** Bit Definitions
\r
216 .equ RAMEND =$DF ;Last On-Chip SRAM Location
\r
222 .equ INT0addr=$001 ;External Interrupt0 Vector Address
\r
223 .equ INT1addr=$002 ;External Interrupt1 Vector Address
\r
224 .equ ICP1addr=$003 ;Input Capture1 Interrupt Vector Address
\r
225 .equ OC1addr =$004 ;Output Compare1 Interrupt Vector Address
\r
226 .equ OVF1addr=$005 ;Overflow1 Interrupt Vector Address
\r
227 .equ OVF0addr=$006 ;Overflow0 Interrupt Vector Address
\r
228 .equ URXCaddr=$007 ;UART Receive Complete Interrupt Vector Address
\r
229 .equ UDREaddr=$008 ;UART Data Register Empty Interrupt Vector Address
\r
230 .equ UTXCaddr=$009 ;UART Transmit Complete Interrupt Vector Address
\r
231 .equ ACIaddr =$00a ;Analog Comparator Interrupt Vector Address
\r