aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/devices/atmega16hva2/atmega16hva2.frt
blob: fe9f5039b30b6cc47afc2ee8fd4e916a08b3a5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
\ Partname: ATmega16HVA2
\ Built using part description XML file version 1
\ generated automatically

hex

\ AD_CONVERTER
79 constant VADCH	\ VADC Data Register High Byte
78 constant VADCL	\ VADC Data Register Low Byte
7A constant VADCSR	\ The VADC Control and Status register
7C constant VADMUX	\ The VADC multiplexer Selection Register

\ BANDGAP
D0 constant BGCCR	\ Bandgap Calibration Register
D1 constant BGCRR	\ Bandgap Calibration of Resistor Ladder

\ BATTERY_PROTECTION
F9 constant BPCHCD	\ Battery Protection Charge-High-current Detection Level Register
F7 constant BPCOCD	\ Battery Protection Charge-Over-current Detection Level Register
FD constant BPCR	\ Battery Protection Control Register
F8 constant BPDHCD	\ Battery Protection Discharge-High-current Detection Level Register
F6 constant BPDOCD	\ Battery Protection Discharge-Over-current Detection Level Register
FC constant BPHCTR	\ Battery Protection Short-current Timing Register
F3 constant BPIFR	\ Battery Protection Interrupt Flag Register
F2 constant BPIMSK	\ Battery Protection Interrupt Mask Register
FB constant BPOCTR	\ Battery Protection Over-current Timing Register
FE constant BPPLR	\ Battery Protection Parameter Lock Register
F5 constant BPSCD	\ Battery Protection Short-Circuit Detection Level Register
FA constant BPSCTR	\ Battery Protection Short-current Timing Register

\ BOOT_LOAD
57 constant SPMCSR	\ Store Program Memory Control and Status Register

\ COULOMB_COUNTER
E0 constant CADAC0	\ ADC Accumulate Current
E1 constant CADAC1	\ ADC Accumulate Current
E2 constant CADAC2	\ ADC Accumulate Current
E3 constant CADAC3	\ ADC Accumulate Current
E4 constant CADCSRA	\ CC-ADC Control and Status Register A
E5 constant CADCSRB	\ CC-ADC Control and Status Register B
E9 constant CADICH	\ CC-ADC Instantaneous Current
E8 constant CADICL	\ CC-ADC Instantaneous Current
E6 constant CADRC	\ CC-ADC Regular Current

\ CPU
61 constant CLKPR	\ Clock Prescale Register
7E constant DIDR0	\ Digital Input Disable Register
66 constant FOSCCAL	\ Fast Oscillator Calibration Value
3E constant GPIOR0	\ General Purpose IO Register 0
4A constant GPIOR1	\ General Purpose IO Register 1
4B constant GPIOR2	\ General Purpose IO Register 2
55 constant MCUCR	\ MCU Control Register
54 constant MCUSR	\ MCU Status Register
37 constant OSICSR	\ Oscillator Sampling Interface Control and Status Register
64 constant PRR0	\ Power Reduction Register 0
53 constant SMCR	\ Sleep Mode Control Register
5E constant SPH	\ Stack Pointer High
5D constant SPL	\ Stack Pointer Low
5F constant SREG	\ Status Register

\ EEPROM
41 constant EEAR	\ EEPROM Read/Write Access
3F constant EECR	\ EEPROM Control Register
40 constant EEDR	\ EEPROM Data Register

\ EXTERNAL_INTERRUPT
69 constant EICRA	\ External Interrupt Control Register 
3C constant EIFR	\ External Interrupt Flag Register
3D constant EIMSK	\ External Interrupt Mask Register
68 constant PCICR	\ Pin Change Interrupt Control Register
3B constant PCIFR	\ Pin Change Interrupt Flag Register
6B constant PCMSK0	\ Pin Change Mask Register 0

\ FET
F0 constant FCSR	\ FET Control and Status Register

\ PORTA
21 constant DDRA	\ Port A Data Direction Register
20 constant PINA	\ Port A Input Pins
22 constant PORTA	\ Port A Data Register

\ PORTB
24 constant DDRB	\ Data Direction Register, Port B
23 constant PINB	\ Input Pins, Port B
25 constant PORTB	\ Data Register, Port B

\ PORTC
26 constant PINC	\ Port C Input Pins
28 constant PORTC	\ Port C Data Register

\ SPI
4c constant SPCR	\ SPI Control Register
4e constant SPDR	\ SPI Data Register
4d constant SPSR	\ SPI Status Register

\ TIMER_COUNTER_0
48 constant OCR0A	\ Output compare Register A
49 constant OCR0B	\ Output compare Register B
44 constant TCCR0A	\ Timer/Counter0 Control Register
45 constant TCCR0B	\ Timer/Counter0 Control Register
47 constant TCNT0H	\ Timer Counter 0 High Byte
46 constant TCNT0L	\ Timer Counter 0 Low Byte
35 constant TIFR0	\ Timer/Counter Interrupt Flag register
6E constant TIMSK0	\ Timer/Counter Interrupt Mask Register

\ TIMER_COUNTER_1
43 constant GTCCR	\ General Timer/Counter Control Register
88 constant OCR1A	\ Output Compare Register 1A 
89 constant OCR1B	\ Output Compare Register B 
80 constant TCCR1A	\ Timer/Counter 1 Control Register A
81 constant TCCR1B	\ Timer/Counter1 Control Register B
85 constant TCNT1H	\ Timer Counter 1 High Byte
84 constant TCNT1L	\ Timer Counter 1 Low Byte
36 constant TIFR1	\ Timer/Counter Interrupt Flag register
6F constant TIMSK1	\ Timer/Counter Interrupt Mask Register

\ VOLTAGE_REGULATOR
C8 constant ROCR	\ Regulator Operating Condition Register

\ WATCHDOG
60 constant WDTCSR	\ Watchdog Timer Control Register

\ Interrupts
0002  constant BPINTAddr \ Battery Protection Interrupt
0004  constant VREGMONAddr \ Voltage regulator monitor interrupt
0006  constant INT0Addr \ External Interrupt Request 0
0008  constant INT1Addr \ External Interrupt Request 1
000A  constant INT2Addr \ External Interrupt Request 2
000C  constant PCINT0Addr \ Pin Change Interrupt Request 0
000E  constant WDTAddr \ Watchdog Timeout Interrupt
0010  constant TIMER1_ICAddr \ Timer 1 Input capture
0012  constant TIMER1_COMPAAddr \ Timer 1 Compare Match A
0014  constant TIMER1_COMPBAddr \ Timer 1 Compare Match B
0016  constant TIMER1_OVFAddr \ Timer 1 overflow
0018  constant TIMER0_ICAddr \ Timer 0 Input Capture
001A  constant TIMER0_COMPAAddr \ Timer 0 Comapre Match A
001C  constant TIMER0_COMPBAddr \ Timer 0 Compare Match B
001E  constant TIMER0_OVFAddr \ Timer 0 Overflow
0020  constant SPI;STCAddr \ SPI Serial transfer complete
0022  constant VADCAddr \ Voltage ADC Conversion Complete
0024  constant CCADC_CONVAddr \ Coulomb Counter ADC Conversion Complete
0026  constant CCADC_REG_CURAddr \ Coloumb Counter ADC Regular Current
0028  constant CCADC_ACCAddr \ Coloumb Counter ADC Accumulator
02A  constant EE_READYAddr \ EEPROM Ready