URL
https://opencores.org/ocsvn/pavr/pavr/trunk
Subversion Repositories pavr
Compare Revisions
- This comparison shows the changes necessary to convert path
/pavr/trunk/test/gentest
- from Rev 4 to Rev 6
- ↔ Reverse comparison
Rev 4 → Rev 6
/2323def.inc
0,0 → 1,123
;*************************************************************************** |
;* 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 |
;* |
;* Number :AVR000 |
;* File Name :"2323def.inc" |
;* Title :Register/Bit Definitions for the AT90S2323 |
;* Date :99.01.28 |
;* Version :1.30 |
;* Support telephone :+47 72 88 87 20 (ATMEL Norway) |
;* Support fax :+47 72 88 87 18 (ATMEL Norway) |
;* Support E-Mail :avr@atmel.com |
;* Target MCU :AT90S2323 |
;* |
;* DESCRIPTION |
;* When including this file in the assembly program file, all I/O register |
;* names and I/O register bit names appearing in the data book can be used. |
;* |
;* The Register names are represented by their hexadecimal addresses. |
;* |
;* The Register Bit names are represented by their bit number (0-7). |
;* |
;* Please observe the difference in using the bit names with instructions |
;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc" |
;* (skip if bit in register set/cleared). The following example illustrates |
;* this: |
;* |
;* in r16,PORTB ;read PORTB latch |
;* sbr r16,(1<<PB6)+(1<<PB5) ;set PB6 and PB5 (use masks, not bit#) |
;* out PORTB,r16 ;output to PORTB |
;* |
;* in r16,TIFR ;read the Timer Interrupt Flag Register |
;* sbrc r16,TOV0 ;test the overflow flag (use bit#) |
;* rjmp TOV0_is_set ;jump if set |
;* ... ;otherwise do something else |
;*************************************************************************** |
|
;***** Specify Device |
.device AT90S2323 |
|
;***** I/O Register Definitions |
.equ SREG =$3f |
.equ SPL =$3d |
.equ GIMSK =$3b |
.equ GIFR =$3a |
.equ TIMSK =$39 |
.equ TIFR =$38 |
.equ MCUCR =$35 |
.equ MCUSR =$34 |
.equ TCCR0 =$33 |
.equ TCNT0 =$32 |
.equ WDTCR =$21 |
.equ EEAR =$1e |
.equ EEARL =$1e |
.equ EEDR =$1d |
.equ EECR =$1c |
.equ PORTB =$18 |
.equ DDRB =$17 |
.equ PINB =$16 |
|
;***** Bit Definitions |
|
.equ EXTRF =1 |
.equ PORF =0 |
|
.equ INT0 =6 |
.equ INTF0 =6 |
|
.equ TOIE0 =1 |
.equ TOV0 =1 |
|
.equ SE =5 |
.equ SM =4 |
.equ ISC01 =1 |
.equ ISC00 =0 |
|
.equ CS02 =2 |
.equ CS01 =1 |
.equ CS00 =0 |
|
.equ WDTOE =4 |
.equ WDE =3 |
.equ WDP2 =2 |
.equ WDP1 =1 |
.equ WDP0 =0 |
|
.equ EEMWE =2 |
.equ EEWE =1 |
.equ EERE =0 |
|
.equ PB4 =4 |
.equ PB3 =3 |
.equ PB2 =2 |
.equ PB1 =1 |
.equ PB0 =0 |
|
.equ DDB4 =4 |
.equ DDB3 =3 |
.equ DDB2 =2 |
.equ DDB1 =1 |
.equ DDB0 =0 |
|
.equ PINB4 =4 |
.equ PINB3 =3 |
.equ PINB2 =2 |
.equ PINB1 =1 |
.equ PINB0 =0 |
|
.def XL =r26 |
.def XH =r27 |
.def YL =r28 |
.def YH =r29 |
.def ZL =r30 |
.def ZH =r31 |
|
.equ RAMEND =$DF ;Last On-Chip SRAM Location |
.equ XRAMEND =$DF |
.equ E2END =$7F |
.equ FLASHEND=$3FF |
|
|
.equ INT0addr=$001 ;External Interrupt0 Vector Address |
.equ OVF0addr=$002 ;Overflow0 Interrupt Vector Address |
|
/clean.bat
0,0 → 1,5
del *.obj |
del *.lst |
del *.map |
del *.hex |
del *.bin |
clean.bat
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: m103def.inc
===================================================================
--- m103def.inc (nonexistent)
+++ m103def.inc (revision 6)
@@ -0,0 +1,429 @@
+;***************************************************************************
+;* 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
+;*
+;* Number :AVR000
+;* File Name :"m103def.inc"
+;* Title :Register/Bit Definitions for the ATmega103
+;* Date :99.01.28
+;* Version :1.30
+;* Support telephone :+47 72 88 43 88 (ATMEL Norway)
+;* Support fax :+47 72 88 43 99 (ATMEL Norway)
+;* Support E-mail :avr@atmel.com
+;* Target MCU :ATmega103
+;*
+;* DESCRIPTION
+;* When including this file in the assembly program file, all I/O register
+;* names and I/O register bit names appearing in the data book can be used.
+;* In addition, the six registers forming the three data pointers X, Y and
+;* Z have been assigned names XL - ZH. Highest RAM address for Internal
+;* SRAM is also defined
+;*
+;* The Register names are represented by their hexadecimal address.
+;*
+;* The Register Bit names are represented by their bit number (0-7).
+;*
+;* Please observe the difference in using the bit names with instructions
+;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc"
+;* (skip if bit in register set/cleared). The following example illustrates
+;* this:
+;*
+;* in r16,PORTB ;read PORTB latch
+;* sbr r16,(1<gentest 26-Jul-2002 13:25:22 31-Jul-2002 22:36:25 AVRAssembler.bmp 0 26-Jul-2002 13:25:22 4 166 Atmel AVR Assembler D:\Doru\projects\pAVR\test\gentest\gentest.obj D:\Doru\projects\pAVR\test\gentest\gentest.asm D:\Doru\projects\pAVR\test\gentest\ AVR Simulator ATmega103.xml - 134
- 43
- 134
R00 R01 R02 R03 R04 R05 R06 R07 R08 R09 R10 R11 R12 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29 R30 R31 Auto 0 Assembler File (*.asm)|*.asm;|AllFiles(*.*)|*.*| 00000 D:\Doru\projects\pAVR\test\gentest\ gentest.asm 263 00001 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00002 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00003 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00004 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00005 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00006 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 00007 D:\Doru\projects\pAVR\test\gentest\ gentest.lst 96 1053 108 1588 787 Maximized 230 230
Index: avrBuild.bat
===================================================================
--- avrBuild.bat (nonexistent)
+++ avrBuild.bat (revision 6)
@@ -0,0 +1,5 @@
+cd "D:\Doru\projects\pAVR\test\gentest\"
+D:
+del gentest.map
+del gentest.lst
+"C:\Program Files\Atmel\AVR Tools\AvrAssembler\avrasm32.exe" -fI "D:\Doru\projects\pAVR\test\gentest\gentest.asm" -o "gentest.hex" -d "gentest.obj" -e "gentest.eep" -I "D:\Doru\projects\pAVR\test\gentest" -I "C:\Program Files\Atmel\AVR Tools\AvrAssembler\AppNotes" -w -l "gentest.lst"
avrBuild.bat
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: compile.bat
===================================================================
--- compile.bat (nonexistent)
+++ compile.bat (revision 6)
@@ -0,0 +1,7 @@
+echo Compiling sources...
+avrasm32.exe -fI gentest.asm -o test.hex -l test.lst
+hexbin test.hex test.bin I
+
+echo Copying binary file to VHDL test directory...
+del ..\..\tools\build_vhdl_test\test.bin
+copy test.bin ..\..\tools\build_vhdl_test
compile.bat
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property