1 ; Last change: TF 8 Sep 99 8:18 pm
\r
2 ;***************************************************************************
\r
3 ;* 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
6 ;* File Name : "T15def.inc"
\r
7 ;* Title : Register/Bit Definitions for the ATtiny15
\r
10 ;* Support telephone : +47 72 88 43 88 (ATMEL Norway)
\r
11 ;* Support fax : +47 72 88 43 99 (ATMEL Norway)
\r
12 ;* Support E-Mail : avr@atmel.com
\r
13 ;* Target MCU : ATtiny15
\r
16 ;* When including this file in the assembly program file, all I/O register
\r
17 ;* names and I/O register bit names appearing in the data book can be used.
\r
19 ;* The Register names are represented by their hexadecimal addresses.
\r
21 ;* The Register Bit names are represented by their bit number (0-7).
\r
23 ;* Please observe the difference in using the bit names with instructions
\r
24 ;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc"
\r
25 ;* (skip if bit in register set/cleared). The following example illustrates
\r
28 ;* in r16,PORTB ;read PORTB latch
\r
29 ;* sbr r16,(1<<PB6)+(1<<PB5) ;set PB6 and PB5 (use masks, not bit#)
\r
30 ;* out PORTB,r16 ;output to PORTB
\r
32 ;* in r16,TIFR ;read the Timer Interrupt Flag Register
\r
33 ;* sbrc r16,TOV0 ;test the overflow flag (use bit#)
\r
34 ;* rjmp TOV0_is_set ;jump if set
\r
35 ;* ... ;otherwise do something else
\r
36 ;***************************************************************************
\r
38 ;***** Specify Device
\r
41 ;***** I/O Register Definitions
\r
43 .equ SPL =$3D ; ICE only !!!!!!
\r
72 ;***** Bit Definitions
\r
191 .equ RAMEND =0 ; Last On-Chip SRAM Location
\r
192 .equ XRAMEND =0 ; Last External RAM Location
\r
193 .equ E2END =3F ; Last EEPROM Location
\r
194 .equ FLASHEND=1FF ; Last FLASH Location
\r
196 .equ INT0addr=$001 ; External Interrupt0 Vector Address
\r
197 .equ PCaddr =$002 ; Pin Change Interrupt Vector Address
\r
198 .equ T1CPaddr=$003 ; Timer1 Compare Interrupt Vector Address
\r
199 .equ T1OVaddr=$004 ; Timer1 Overflow Interrupt Vector Address
\r
200 .equ T0OVaddr=$005 ; Timer0 Overflow Interrupt Vector Address
\r
201 .equ ERDYaddr=$006 ; EEPROM Ready Interrupt Vector Address
\r
202 .equ ACaddr =$007 ; Analog Comparator Interrupt Vector Address
\r
203 .equ ADCaddr =$008 ; AD Converter Interrupt Vector Address
\r