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 :"2323def.inc"
\r
6 ;* Title :Register/Bit Definitions for the AT90S2323
\r
9 ;* Support telephone :+47 72 88 87 20 (ATMEL Norway)
\r
10 ;* Support fax :+47 72 88 87 18 (ATMEL Norway)
\r
11 ;* Support E-Mail :avr@atmel.com
\r
12 ;* Target MCU :AT90S2323
\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
60 ;***** Bit Definitions
\r
115 .equ RAMEND =$DF ;Last On-Chip SRAM Location
\r
121 .equ INT0addr=$001 ;External Interrupt0 Vector Address
\r
122 .equ OVF0addr=$002 ;Overflow0 Interrupt Vector Address
\r