00001
00039 #ifndef CHIP_MEMORY_MAP_H_INCLUDED
00040 #define CHIP_MEMORY_MAP_H_INCLUDED
00041
00042
00043 #define CPU_SRAM_BASE 0x2000
00044 #define CPU_SRAM_SIZE 0x2000
00045 #define FLASH_BASE 0x0000
00046 #define FLASH_SIZE 0x20000
00047 #define FLASH_PAGE_SIZE 512 // Bytes
00048 #define EEPROM_BASE 0x0000
00049 #define EEPROM_MAPPED_BASE 0x1000
00050 #define EEPROM_SIZE 0x800
00051 #define EEPROM_PAGE_SIZE 32 // Bytes
00052 #define USER_SIGNATURE_SIZE 0x200
00053 #define FUSES_LENGTH 6 // Bytes
00054
00055
00056 #define DEVICE_ID_BASE 0x90
00057
00058
00059 #define DATA_SRAM_BASE CPU_SRAM_BASE
00060
00061 #define CLK_BASE 0x0040 // Clock control
00062 #define OSC_BASE 0x0050 // Oscillator control
00063
00064 #define PR_BASE 0x0070 //!< Power Reduction
00065 #define PMIC_BASE 0x00a0
00066 #define USART0_BASE 0x08a0 // USART 0 on port C
00067 #define USART1_BASE 0x08b0 // USART 1 on port C
00068 #define USART2_BASE 0x09a0 // USART 0 on port D
00069 #define USART3_BASE 0x09b0 // USART 1 on port D
00070 #define USART4_BASE 0x0aa0 // USART 0 on port E
00071 #define USART5_BASE 0x0ab0 // USART 1 on port E
00072 #define USART6_BASE 0x0ba0 // USART 0 on port F
00073 #define USART7_BASE 0x0bb0 // USART 1 on port F
00074
00075 #define DMA_BASE 0x0100 // DMA controller
00076 #define NVM_BASE 0x01c0 // NVM controller
00077 #define EBI_BASE 0x0440 // External bus interface
00078
00079 #ifdef CONFIG_XMEGA_USB
00080 # define USB_BASE 0x04c0 // XMEGA USB controller
00081 #endif
00082
00083 #define SPI0_BASE 0x08c0 // SPI 0 on port C
00084 #define SPI1_BASE 0x09c0 // SPI 1 on port D
00085 #define SPI2_BASE 0x0ac0 // SPI 2 on port E
00086 #define SPI3_BASE 0x0bc0 // SPI 3 on port F
00087
00088 #define TC0_BASE 0x0800 // TC0 on port C
00089 #define TC1_BASE 0x0840 // TC1 on port C
00090 #define TC2_BASE 0x0900 // TC0 on port D
00091 #define TC3_BASE 0x0940 // TC1 on port D
00092 #define TC4_BASE 0x0a00 // TC0 on port E
00093 #define TC5_BASE 0x0a40 // TC1 on port E
00094 #define TC6_BASE 0x0b00 // TC0 on port F
00095 #define TC7_BASE 0x0b40 // TC1 on port F
00096 #define NVM_CONTROLLER_BASE 0x01C0 // NVM Controller
00097
00098 #define PORTCFG_BASE 0x00B0 // Port Configuration
00099 #define VPORT0_BASE 0x0010 // Virtual Port 0
00100 #define VPORT1_BASE 0x0014 // Virtual Port 1
00101 #define VPORT2_BASE 0x0018 // Virtual Port 2
00102 #define VPORT3_BASE 0x001C // Virtual Port 3
00103 #define PORTA_BASE 0x0600 // Port A
00104 #define PORTB_BASE 0x0620 // Port B
00105 #define PORTC_BASE 0x0640 // Port C
00106 #define PORTD_BASE 0x0660 // Port D
00107 #define PORTE_BASE 0x0680 // Port E
00108 #define PORTF_BASE 0x06A0 // Port F
00109 #define PORTH_BASE 0x06E0 // Port H
00110 #define PORTJ_BASE 0x0700 // Port J
00111 #define PORTK_BASE 0x0720 // Port K
00112 #define PORTQ_BASE 0x07C0 // Port Q
00113 #define PORTR_BASE 0x07E0 // Port R
00114
00115 #define ADCA_BASE 0x0200 // ADC on port A
00116 #define ADCB_BASE 0x0240 // ADC on port B
00117 #define DACA_BASE 0x0300 // DAC on port A
00118 #define DACB_BASE 0x0320 // DAC on port B
00119 #define ACA_BASE 0x0380 // AC on port A
00120 #define ACB_BASE 0x0390 // AC on port B
00121
00122 #endif
00123