1
/* Copyright (c) 2007 Atmel Corporation
4
Redistribution and use in source and binary forms, with or without
5
modification, are permitted provided that the following conditions are met:
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
10
* Redistributions in binary form must reproduce the above copyright
11
notice, this list of conditions and the following disclaimer in
12
the documentation and/or other materials provided with the
15
* Neither the name of the copyright holders nor the names of
16
contributors may be used to endorse or promote products derived
17
from this software without specific prior written permission.
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
POSSIBILITY OF SUCH DAMAGE.
32
/* $Id: iom1284p.h,v 1.2.2.13 2009/02/11 18:05:25 arcanum Exp $ */
34
/* avr/iom1284p.h - definitions for ATmega1284P. */
36
/* This file should only be included from <avr/io.h>, never directly. */
39
# error "Include <avr/io.h> instead of this file."
43
# define _AVR_IOXXX_H_ "iom1284p.h"
45
# error "Attempt to include more than one <avr/ioXXX.h> file."
49
#ifndef _AVR_IOM1284P_H_
50
#define _AVR_IOM1284P_H_ 1
53
/* Registers and associated bit numbers */
55
#define PINA _SFR_IO8(0x00)
65
#define DDRA _SFR_IO8(0x01)
75
#define PORTA _SFR_IO8(0x02)
85
#define PINB _SFR_IO8(0x03)
95
#define DDRB _SFR_IO8(0x04)
105
#define PORTB _SFR_IO8(0x05)
115
#define PINC _SFR_IO8(0x06)
125
#define DDRC _SFR_IO8(0x07)
135
#define PORTC _SFR_IO8(0x08)
145
#define PIND _SFR_IO8(0x09)
155
#define DDRD _SFR_IO8(0x0A)
165
#define PORTD _SFR_IO8(0x0B)
175
#define TIFR0 _SFR_IO8(0x15)
180
#define TIFR1 _SFR_IO8(0x16)
186
#define TIFR2 _SFR_IO8(0x17)
191
#define TIFR3 _SFR_IO8(0x18)
197
#define PCIFR _SFR_IO8(0x1B)
203
#define EIFR _SFR_IO8(0x1C)
208
#define EIMSK _SFR_IO8(0x1D)
213
#define GPIOR0 _SFR_IO8(0x1E)
223
#define EECR _SFR_IO8(0x1F)
231
#define EEDR _SFR_IO8(0x20)
241
#define EEAR _SFR_IO16(0x21)
243
#define EEARL _SFR_IO8(0x21)
253
#define EEARH _SFR_IO8(0x22)
259
#define GTCCR _SFR_IO8(0x23)
264
#define TCCR0A _SFR_IO8(0x24)
272
#define TCCR0B _SFR_IO8(0x25)
280
#define TCNT0 _SFR_IO8(0x26)
290
#define OCR0A _SFR_IO8(0x27)
300
#define OCR0B _SFR_IO8(0x28)
310
#define GPIOR1 _SFR_IO8(0x2A)
320
#define GPIOR2 _SFR_IO8(0x2B)
330
#define SPCR _SFR_IO8(0x2C)
340
#define SPSR _SFR_IO8(0x2D)
345
#define SPDR _SFR_IO8(0x2E)
355
#define ACSR _SFR_IO8(0x30)
365
#define OCDR _SFR_IO8(0x31)
375
#define SMCR _SFR_IO8(0x33)
381
#define MCUSR _SFR_IO8(0x34)
388
#define MCUCR _SFR_IO8(0x35)
396
#define SPMCSR _SFR_IO8(0x37)
406
#define RAMPZ _SFR_IO8(0x3B)
409
#define WDTCSR _SFR_MEM8(0x60)
419
#define CLKPR _SFR_MEM8(0x61)
426
#define PRR0 _SFR_MEM8(0x64)
436
#define PRR1 _SFR_MEM8(0x65)
439
#define OSCCAL _SFR_MEM8(0x66)
449
#define PCICR _SFR_MEM8(0x68)
455
#define EICRA _SFR_MEM8(0x69)
463
#define PCMSK0 _SFR_MEM8(0x6B)
473
#define PCMSK1 _SFR_MEM8(0x6C)
483
#define PCMSK2 _SFR_MEM8(0x6D)
493
#define TIMSK0 _SFR_MEM8(0x6E)
498
#define TIMSK1 _SFR_MEM8(0x6F)
504
#define TIMSK2 _SFR_MEM8(0x70)
509
#define TIMSK3 _SFR_MEM8(0x71)
515
#define PCMSK3 _SFR_MEM8(0x73)
525
#ifndef __ASSEMBLER__
526
#define ADC _SFR_MEM16(0x78)
528
#define ADCW _SFR_MEM16(0x78)
530
#define ADCL _SFR_MEM8(0x78)
540
#define ADCH _SFR_MEM8(0x79)
550
#define ADCSRA _SFR_MEM8(0x7A)
560
#define ADCSRB _SFR_MEM8(0x7B)
566
#define ADMUX _SFR_MEM8(0x7C)
576
#define DIDR0 _SFR_MEM8(0x7E)
586
#define DIDR1 _SFR_MEM8(0x7F)
590
#define TCCR1A _SFR_MEM8(0x80)
598
#define TCCR1B _SFR_MEM8(0x81)
607
#define TCCR1C _SFR_MEM8(0x82)
611
#define TCNT1 _SFR_MEM16(0x84)
613
#define TCNT1L _SFR_MEM8(0x84)
623
#define TCNT1H _SFR_MEM8(0x85)
633
#define ICR1 _SFR_MEM16(0x86)
635
#define ICR1L _SFR_MEM8(0x86)
645
#define ICR1H _SFR_MEM8(0x87)
655
#define OCR1A _SFR_MEM16(0x88)
657
#define OCR1AL _SFR_MEM8(0x88)
667
#define OCR1AH _SFR_MEM8(0x89)
677
#define OCR1B _SFR_MEM16(0x8A)
679
#define OCR1BL _SFR_MEM8(0x8A)
689
#define OCR1BH _SFR_MEM8(0x8B)
699
#define TCCR3A _SFR_MEM8(0x90)
707
#define TCCR3B _SFR_MEM8(0x91)
716
#define TCCR3C _SFR_MEM8(0x92)
720
#define TCNT3 _SFR_MEM16(0x94)
722
#define TCNT3L _SFR_MEM8(0x94)
732
#define TCNT3H _SFR_MEM8(0x95)
742
#define ICR3 _SFR_MEM16(0x96)
744
#define ICR3L _SFR_MEM8(0x96)
754
#define ICR3H _SFR_MEM8(0x97)
764
#define OCR3A _SFR_MEM16(0x98)
766
#define OCR3AL _SFR_MEM8(0x98)
776
#define OCR3AH _SFR_MEM8(0x99)
786
#define OCR3B _SFR_MEM16(0x9A)
788
#define OCR3BL _SFR_MEM8(0x9A)
798
#define OCR3BH _SFR_MEM8(0x9B)
808
#define TCCR2A _SFR_MEM8(0xB0)
816
#define TCCR2B _SFR_MEM8(0xB1)
824
#define TCNT2 _SFR_MEM8(0xB2)
834
#define OCR2A _SFR_MEM8(0xB3)
844
#define OCR2B _SFR_MEM8(0xB4)
854
#define ASSR _SFR_MEM8(0xB6)
863
#define TWBR _SFR_MEM8(0xB8)
873
#define TWSR _SFR_MEM8(0xB9)
882
#define TWAR _SFR_MEM8(0xBA)
892
#define TWDR _SFR_MEM8(0xBB)
902
#define TWCR _SFR_MEM8(0xBC)
911
#define TWAMR _SFR_MEM8(0xBD)
920
#define UCSR0A _SFR_MEM8(0xC0)
930
#define UCSR0B _SFR_MEM8(0xC1)
940
#define UCSR0C _SFR_MEM8(0xC2)
950
#define UBRR0 _SFR_MEM16(0xC4)
952
#define UBRR0L _SFR_MEM8(0xC4)
962
#define UBRR0H _SFR_MEM8(0xC5)
968
#define UDR0 _SFR_MEM8(0xC6)
978
#define UCSR1A _SFR_MEM8(0xC8)
988
#define UCSR1B _SFR_MEM8(0xC9)
998
#define UCSR1C _SFR_MEM8(0xCA)
1008
#define UBRR1 _SFR_MEM16(0xCC)
1010
#define UBRR1L _SFR_MEM8(0xCC)
1020
#define UBRR1H _SFR_MEM8(0xCD)
1026
#define UDR1 _SFR_MEM8(0xCE)
1037
/* Interrupt Vectors */
1038
/* Interrupt Vector 0 is the reset vector. */
1040
#define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
1041
#define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
1042
#define INT2_vect _VECTOR(3) /* External Interrupt Request 2 */
1043
#define PCINT0_vect _VECTOR(4) /* Pin Change Interrupt Request 0 */
1044
#define PCINT1_vect _VECTOR(5) /* Pin Change Interrupt Request 1 */
1045
#define PCINT2_vect _VECTOR(6) /* Pin Change Interrupt Request 2 */
1046
#define PCINT3_vect _VECTOR(7) /* Pin Change Interrupt Request 3 */
1047
#define WDT_vect _VECTOR(8) /* Watchdog Time-out Interrupt */
1048
#define TIMER2_COMPA_vect _VECTOR(9) /* Timer/Counter2 Compare Match A */
1049
#define TIMER2_COMPB_vect _VECTOR(10) /* Timer/Counter2 Compare Match B */
1050
#define TIMER2_OVF_vect _VECTOR(11) /* Timer/Counter2 Overflow */
1051
#define TIMER1_CAPT_vect _VECTOR(12) /* Timer/Counter1 Capture Event */
1052
#define TIMER1_COMPA_vect _VECTOR(13) /* Timer/Counter1 Compare Match A */
1053
#define TIMER1_COMPB_vect _VECTOR(14) /* Timer/Counter1 Compare Match B */
1054
#define TIMER1_OVF_vect _VECTOR(15) /* Timer/Counter1 Overflow */
1055
#define TIMER0_COMPA_vect _VECTOR(16) /* Timer/Counter0 Compare Match A */
1056
#define TIMER0_COMPB_vect _VECTOR(17) /* Timer/Counter0 Compare Match B */
1057
#define TIMER0_OVF_vect _VECTOR(18) /* Timer/Counter0 Overflow */
1058
#define SPI_STC_vect _VECTOR(19) /* SPI Serial Transfer Complete */
1059
#define USART0_RX_vect _VECTOR(20) /* USART0, Rx Complete */
1060
#define USART0_UDRE_vect _VECTOR(21) /* USART0 Data register Empty */
1061
#define USART0_TX_vect _VECTOR(22) /* USART0, Tx Complete */
1062
#define ANALOG_COMP_vect _VECTOR(23) /* Analog Comparator */
1063
#define ADC_vect _VECTOR(24) /* ADC Conversion Complete */
1064
#define EE_READY_vect _VECTOR(25) /* EEPROM Ready */
1065
#define TWI_vect _VECTOR(26) /* 2-wire Serial Interface */
1066
#define SPM_READY_vect _VECTOR(27) /* Store Program Memory Read */
1067
#define USART1_RX_vect _VECTOR(28) /* USART1 RX complete */
1068
#define USART1_UDRE_vect _VECTOR(29) /* USART1 Data Register Empty */
1069
#define USART1_TX_vect _VECTOR(30) /* USART1 TX complete */
1070
#define TIMER3_CAPT_vect _VECTOR(31) /* Timer/Counter3 Capture Event */
1071
#define TIMER3_COMPA_vect _VECTOR(32) /* Timer/Counter3 Compare Match A */
1072
#define TIMER3_COMPB_vect _VECTOR(33) /* Timer/Counter3 Compare Match B */
1073
#define TIMER3_OVF_vect _VECTOR(34) /* Timer/Counter3 Overflow */
1075
#define _VECTORS_SIZE (35 * 4)
1079
#define SPM_PAGESIZE 256
1080
#define RAMEND 0x40FF /* Last On-Chip SRAM Location */
1082
#define XRAMEND RAMEND
1084
#define E2PAGESIZE 8
1085
#define FLASHEND 0x1FFFF
1089
#define FUSE_MEMORY_SIZE 3
1092
#define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
1093
#define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
1094
#define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
1095
#define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
1096
#define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
1097
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
1098
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock output */
1099
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
1100
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_SUT1 & FUSE_CKDIV8)
1102
/* High Fuse Byte */
1103
#define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
1104
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
1105
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
1106
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
1107
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
1108
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
1109
#define FUSE_JTAGEN (unsigned char)~_BV(6) /* Enable JTAG */
1110
#define FUSE_OCDEN (unsigned char)~_BV(7) /* Enable OCD */
1111
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_SPIEN & FUSE_JTAGEN)
1113
/* Extended Fuse Byte */
1114
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
1115
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
1116
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
1117
#define EFUSE_DEFAULT (0xFF)
1121
#define __LOCK_BITS_EXIST
1122
#define __BOOT_LOCK_BITS_0_EXIST
1123
#define __BOOT_LOCK_BITS_1_EXIST
1127
#define SIGNATURE_0 0x1E
1128
#define SIGNATURE_1 0x97
1129
#define SIGNATURE_2 0x05
1132
#endif /* _AVR_IOM1284P_H_ */
1
/* Copyright (c) 2007 Atmel Corporation
4
Redistribution and use in source and binary forms, with or without
5
modification, are permitted provided that the following conditions are met:
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
10
* Redistributions in binary form must reproduce the above copyright
11
notice, this list of conditions and the following disclaimer in
12
the documentation and/or other materials provided with the
15
* Neither the name of the copyright holders nor the names of
16
contributors may be used to endorse or promote products derived
17
from this software without specific prior written permission.
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
POSSIBILITY OF SUCH DAMAGE.
32
/* $Id: iom1284p.h 2115 2010-04-05 23:19:53Z arcanum $ */
34
/* avr/iom1284p.h - definitions for ATmega1284P. */
36
/* This file should only be included from <avr/io.h>, never directly. */
39
# error "Include <avr/io.h> instead of this file."
43
# define _AVR_IOXXX_H_ "iom1284p.h"
45
# error "Attempt to include more than one <avr/ioXXX.h> file."
49
#ifndef _AVR_IOM1284P_H_
50
#define _AVR_IOM1284P_H_ 1
53
/* Registers and associated bit numbers */
55
#define PINA _SFR_IO8(0x00)
65
#define DDRA _SFR_IO8(0x01)
75
#define PORTA _SFR_IO8(0x02)
85
#define PINB _SFR_IO8(0x03)
95
#define DDRB _SFR_IO8(0x04)
105
#define PORTB _SFR_IO8(0x05)
115
#define PINC _SFR_IO8(0x06)
125
#define DDRC _SFR_IO8(0x07)
135
#define PORTC _SFR_IO8(0x08)
145
#define PIND _SFR_IO8(0x09)
155
#define DDRD _SFR_IO8(0x0A)
165
#define PORTD _SFR_IO8(0x0B)
175
#define TIFR0 _SFR_IO8(0x15)
180
#define TIFR1 _SFR_IO8(0x16)
186
#define TIFR2 _SFR_IO8(0x17)
191
#define TIFR3 _SFR_IO8(0x18)
197
#define PCIFR _SFR_IO8(0x1B)
203
#define EIFR _SFR_IO8(0x1C)
208
#define EIMSK _SFR_IO8(0x1D)
213
#define GPIOR0 _SFR_IO8(0x1E)
223
#define EECR _SFR_IO8(0x1F)
231
#define EEDR _SFR_IO8(0x20)
241
#define EEAR _SFR_IO16(0x21)
243
#define EEARL _SFR_IO8(0x21)
253
#define EEARH _SFR_IO8(0x22)
259
#define GTCCR _SFR_IO8(0x23)
264
#define TCCR0A _SFR_IO8(0x24)
272
#define TCCR0B _SFR_IO8(0x25)
280
#define TCNT0 _SFR_IO8(0x26)
290
#define OCR0A _SFR_IO8(0x27)
300
#define OCR0B _SFR_IO8(0x28)
310
#define GPIOR1 _SFR_IO8(0x2A)
320
#define GPIOR2 _SFR_IO8(0x2B)
330
#define SPCR _SFR_IO8(0x2C)
340
#define SPSR _SFR_IO8(0x2D)
345
#define SPDR _SFR_IO8(0x2E)
355
#define ACSR _SFR_IO8(0x30)
365
#define OCDR _SFR_IO8(0x31)
375
#define SMCR _SFR_IO8(0x33)
381
#define MCUSR _SFR_IO8(0x34)
388
#define MCUCR _SFR_IO8(0x35)
396
#define SPMCSR _SFR_IO8(0x37)
406
#define RAMPZ _SFR_IO8(0x3B)
409
#define WDTCSR _SFR_MEM8(0x60)
419
#define CLKPR _SFR_MEM8(0x61)
426
#define PRR0 _SFR_MEM8(0x64)
436
#define PRR1 _SFR_MEM8(0x65)
439
#define OSCCAL _SFR_MEM8(0x66)
449
#define PCICR _SFR_MEM8(0x68)
455
#define EICRA _SFR_MEM8(0x69)
463
#define PCMSK0 _SFR_MEM8(0x6B)
473
#define PCMSK1 _SFR_MEM8(0x6C)
483
#define PCMSK2 _SFR_MEM8(0x6D)
493
#define TIMSK0 _SFR_MEM8(0x6E)
498
#define TIMSK1 _SFR_MEM8(0x6F)
504
#define TIMSK2 _SFR_MEM8(0x70)
509
#define TIMSK3 _SFR_MEM8(0x71)
515
#define PCMSK3 _SFR_MEM8(0x73)
525
#ifndef __ASSEMBLER__
526
#define ADC _SFR_MEM16(0x78)
528
#define ADCW _SFR_MEM16(0x78)
530
#define ADCL _SFR_MEM8(0x78)
540
#define ADCH _SFR_MEM8(0x79)
550
#define ADCSRA _SFR_MEM8(0x7A)
560
#define ADCSRB _SFR_MEM8(0x7B)
566
#define ADMUX _SFR_MEM8(0x7C)
576
#define DIDR0 _SFR_MEM8(0x7E)
586
#define DIDR1 _SFR_MEM8(0x7F)
590
#define TCCR1A _SFR_MEM8(0x80)
598
#define TCCR1B _SFR_MEM8(0x81)
607
#define TCCR1C _SFR_MEM8(0x82)
611
#define TCNT1 _SFR_MEM16(0x84)
613
#define TCNT1L _SFR_MEM8(0x84)
623
#define TCNT1H _SFR_MEM8(0x85)
633
#define ICR1 _SFR_MEM16(0x86)
635
#define ICR1L _SFR_MEM8(0x86)
645
#define ICR1H _SFR_MEM8(0x87)
655
#define OCR1A _SFR_MEM16(0x88)
657
#define OCR1AL _SFR_MEM8(0x88)
667
#define OCR1AH _SFR_MEM8(0x89)
677
#define OCR1B _SFR_MEM16(0x8A)
679
#define OCR1BL _SFR_MEM8(0x8A)
689
#define OCR1BH _SFR_MEM8(0x8B)
699
#define TCCR3A _SFR_MEM8(0x90)
707
#define TCCR3B _SFR_MEM8(0x91)
716
#define TCCR3C _SFR_MEM8(0x92)
720
#define TCNT3 _SFR_MEM16(0x94)
722
#define TCNT3L _SFR_MEM8(0x94)
732
#define TCNT3H _SFR_MEM8(0x95)
742
#define ICR3 _SFR_MEM16(0x96)
744
#define ICR3L _SFR_MEM8(0x96)
754
#define ICR3H _SFR_MEM8(0x97)
764
#define OCR3A _SFR_MEM16(0x98)
766
#define OCR3AL _SFR_MEM8(0x98)
776
#define OCR3AH _SFR_MEM8(0x99)
786
#define OCR3B _SFR_MEM16(0x9A)
788
#define OCR3BL _SFR_MEM8(0x9A)
798
#define OCR3BH _SFR_MEM8(0x9B)
808
#define TCCR2A _SFR_MEM8(0xB0)
816
#define TCCR2B _SFR_MEM8(0xB1)
824
#define TCNT2 _SFR_MEM8(0xB2)
834
#define OCR2A _SFR_MEM8(0xB3)
844
#define OCR2B _SFR_MEM8(0xB4)
854
#define ASSR _SFR_MEM8(0xB6)
863
#define TWBR _SFR_MEM8(0xB8)
873
#define TWSR _SFR_MEM8(0xB9)
882
#define TWAR _SFR_MEM8(0xBA)
892
#define TWDR _SFR_MEM8(0xBB)
902
#define TWCR _SFR_MEM8(0xBC)
911
#define TWAMR _SFR_MEM8(0xBD)
920
#define UCSR0A _SFR_MEM8(0xC0)
930
#define UCSR0B _SFR_MEM8(0xC1)
940
#define UCSR0C _SFR_MEM8(0xC2)
950
#define UBRR0 _SFR_MEM16(0xC4)
952
#define UBRR0L _SFR_MEM8(0xC4)
962
#define UBRR0H _SFR_MEM8(0xC5)
968
#define UDR0 _SFR_MEM8(0xC6)
978
#define UCSR1A _SFR_MEM8(0xC8)
988
#define UCSR1B _SFR_MEM8(0xC9)
998
#define UCSR1C _SFR_MEM8(0xCA)
1008
#define UBRR1 _SFR_MEM16(0xCC)
1010
#define UBRR1L _SFR_MEM8(0xCC)
1020
#define UBRR1H _SFR_MEM8(0xCD)
1026
#define UDR1 _SFR_MEM8(0xCE)
1037
/* Interrupt Vectors */
1038
/* Interrupt Vector 0 is the reset vector. */
1040
#define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
1041
#define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
1042
#define INT2_vect _VECTOR(3) /* External Interrupt Request 2 */
1043
#define PCINT0_vect _VECTOR(4) /* Pin Change Interrupt Request 0 */
1044
#define PCINT1_vect _VECTOR(5) /* Pin Change Interrupt Request 1 */
1045
#define PCINT2_vect _VECTOR(6) /* Pin Change Interrupt Request 2 */
1046
#define PCINT3_vect _VECTOR(7) /* Pin Change Interrupt Request 3 */
1047
#define WDT_vect _VECTOR(8) /* Watchdog Time-out Interrupt */
1048
#define TIMER2_COMPA_vect _VECTOR(9) /* Timer/Counter2 Compare Match A */
1049
#define TIMER2_COMPB_vect _VECTOR(10) /* Timer/Counter2 Compare Match B */
1050
#define TIMER2_OVF_vect _VECTOR(11) /* Timer/Counter2 Overflow */
1051
#define TIMER1_CAPT_vect _VECTOR(12) /* Timer/Counter1 Capture Event */
1052
#define TIMER1_COMPA_vect _VECTOR(13) /* Timer/Counter1 Compare Match A */
1053
#define TIMER1_COMPB_vect _VECTOR(14) /* Timer/Counter1 Compare Match B */
1054
#define TIMER1_OVF_vect _VECTOR(15) /* Timer/Counter1 Overflow */
1055
#define TIMER0_COMPA_vect _VECTOR(16) /* Timer/Counter0 Compare Match A */
1056
#define TIMER0_COMPB_vect _VECTOR(17) /* Timer/Counter0 Compare Match B */
1057
#define TIMER0_OVF_vect _VECTOR(18) /* Timer/Counter0 Overflow */
1058
#define SPI_STC_vect _VECTOR(19) /* SPI Serial Transfer Complete */
1059
#define USART0_RX_vect _VECTOR(20) /* USART0, Rx Complete */
1060
#define USART0_UDRE_vect _VECTOR(21) /* USART0 Data register Empty */
1061
#define USART0_TX_vect _VECTOR(22) /* USART0, Tx Complete */
1062
#define ANALOG_COMP_vect _VECTOR(23) /* Analog Comparator */
1063
#define ADC_vect _VECTOR(24) /* ADC Conversion Complete */
1064
#define EE_READY_vect _VECTOR(25) /* EEPROM Ready */
1065
#define TWI_vect _VECTOR(26) /* 2-wire Serial Interface */
1066
#define SPM_READY_vect _VECTOR(27) /* Store Program Memory Read */
1067
#define USART1_RX_vect _VECTOR(28) /* USART1 RX complete */
1068
#define USART1_UDRE_vect _VECTOR(29) /* USART1 Data Register Empty */
1069
#define USART1_TX_vect _VECTOR(30) /* USART1 TX complete */
1070
#define TIMER3_CAPT_vect _VECTOR(31) /* Timer/Counter3 Capture Event */
1071
#define TIMER3_COMPA_vect _VECTOR(32) /* Timer/Counter3 Compare Match A */
1072
#define TIMER3_COMPB_vect _VECTOR(33) /* Timer/Counter3 Compare Match B */
1073
#define TIMER3_OVF_vect _VECTOR(34) /* Timer/Counter3 Overflow */
1075
#define _VECTORS_SIZE (35 * 4)
1079
#define SPM_PAGESIZE 256
1080
#define RAMSTART (0x100)
1081
#define RAMEND 0x40FF /* Last On-Chip SRAM Location */
1083
#define XRAMEND RAMEND
1085
#define E2PAGESIZE 8
1086
#define FLASHEND 0x1FFFF
1090
#define FUSE_MEMORY_SIZE 3
1093
#define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
1094
#define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
1095
#define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
1096
#define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
1097
#define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
1098
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
1099
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock output */
1100
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
1101
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_SUT1 & FUSE_CKDIV8)
1103
/* High Fuse Byte */
1104
#define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
1105
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
1106
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
1107
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
1108
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
1109
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
1110
#define FUSE_JTAGEN (unsigned char)~_BV(6) /* Enable JTAG */
1111
#define FUSE_OCDEN (unsigned char)~_BV(7) /* Enable OCD */
1112
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_SPIEN & FUSE_JTAGEN)
1114
/* Extended Fuse Byte */
1115
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
1116
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
1117
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
1118
#define EFUSE_DEFAULT (0xFF)
1122
#define __LOCK_BITS_EXIST
1123
#define __BOOT_LOCK_BITS_0_EXIST
1124
#define __BOOT_LOCK_BITS_1_EXIST
1128
#define SIGNATURE_0 0x1E
1129
#define SIGNATURE_1 0x97
1130
#define SIGNATURE_2 0x05
1133
#endif /* _AVR_IOM1284P_H_ */