aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/devices/atmega16hva2/device.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/devices/atmega16hva2/device.asm')
-rw-r--r--amforth-6.5/avr8/devices/atmega16hva2/device.asm116
1 files changed, 116 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/devices/atmega16hva2/device.asm b/amforth-6.5/avr8/devices/atmega16hva2/device.asm
new file mode 100644
index 0000000..7ce9455
--- /dev/null
+++ b/amforth-6.5/avr8/devices/atmega16hva2/device.asm
@@ -0,0 +1,116 @@
+; Partname: ATmega16HVA2
+; Built using part description XML file version 1
+; generated automatically, do not edit
+
+.nolist
+ .include "m16HVA2def.inc"
+.list
+
+.equ ramstart = $100
+.equ CELLSIZE = 2
+.macro readflashcell
+ lsl zl
+ rol zh
+ lpm @0, Z+
+ lpm @1, Z+
+.endmacro
+.macro writeflashcell
+ lsl zl
+ rol zh
+.endmacro
+
+; the following definitions are shortcuts for the respective forth source segments if set to 1
+.set WANT_AD_CONVERTER = 0
+.set WANT_BANDGAP = 0
+.set WANT_BATTERY_PROTECTION = 0
+.set WANT_BOOT_LOAD = 0
+.set WANT_COULOMB_COUNTER = 0
+.set WANT_CPU = 0
+.set WANT_EEPROM = 0
+.set WANT_EXTERNAL_INTERRUPT = 0
+.set WANT_FET = 0
+.set WANT_PORTA = 0
+.set WANT_PORTB = 0
+.set WANT_PORTC = 0
+.set WANT_SPI = 0
+.set WANT_TIMER_COUNTER_0 = 0
+.set WANT_TIMER_COUNTER_1 = 0
+.set WANT_VOLTAGE_REGULATOR = 0
+.set WANT_WATCHDOG = 0
+
+
+.ifndef SPMEN
+ .equ SPMEN = SELFPRGEN
+.endif
+
+.ifndef SPMCSR
+ .equ SPMCSR = SPMCR
+.endif
+
+.ifndef EEPE
+ .equ EEPE = EEWE
+.endif
+
+.ifndef EEMPE
+ .equ EEMPE = EEMWE
+.endif
+.equ intvecsize = 2 ; please verify; flash size: 16384 bytes
+.equ pclen = 2 ; please verify
+.overlap
+.equ INTVECTORS = 22
+.org $0002
+ rcall isr ; Battery Protection Interrupt
+.org $0004
+ rcall isr ; Voltage regulator monitor interrupt
+.org $0006
+ rcall isr ; External Interrupt Request 0
+.org $0008
+ rcall isr ; External Interrupt Request 1
+.org $000A
+ rcall isr ; External Interrupt Request 2
+.org $000C
+ rcall isr ; Pin Change Interrupt Request 0
+.org $000E
+ rcall isr ; Watchdog Timeout Interrupt
+.org $0010
+ rcall isr ; Timer 1 Input capture
+.org $0012
+ rcall isr ; Timer 1 Compare Match A
+.org $0014
+ rcall isr ; Timer 1 Compare Match B
+.org $0016
+ rcall isr ; Timer 1 overflow
+.org $0018
+ rcall isr ; Timer 0 Input Capture
+.org $001A
+ rcall isr ; Timer 0 Comapre Match A
+.org $001C
+ rcall isr ; Timer 0 Compare Match B
+.org $001E
+ rcall isr ; Timer 0 Overflow
+.org $0020
+ rcall isr ; SPI Serial transfer complete
+.org $0022
+ rcall isr ; Voltage ADC Conversion Complete
+.org $0024
+ rcall isr ; Coulomb Counter ADC Conversion Complete
+.org $0026
+ rcall isr ; Coloumb Counter ADC Regular Current
+.org $0028
+ rcall isr ; Coloumb Counter ADC Accumulator
+.org $02A
+ rcall isr ; EEPROM Ready
+.nooverlap
+mcu_info:
+mcu_ramsize:
+ .dw 1024
+mcu_eepromsize:
+ .dw 256
+mcu_maxdp:
+ .dw 0 ; minimum of 0 (from XML) and 0xffff
+mcu_numints:
+ .dw 22
+mcu_name:
+ .dw 12
+ .db "ATmega16HVA2"
+.set codestart=pc