📄 eb40a.inc
字号:
;------------------------------------------------------------------------------
;- ATMEL Microcontroller Software Support - ROUSSET -
;------------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;------------------------------------------------------------------------------
;- File Name : eb40a.inc
;- Object : Evaluation Board EB40A Definition File.
;-
;- 1.0 06/09/01 PFi : Creation
;- 1.1 11/12/01 PFi : Clean up
;------------------------------------------------------------------------------
INCLUDE ../../INC/at91r40008.inc
INCLUDE ../../INC/arm7tdmi/arm.inc
;---------------------------------------
;- AT91EB40 External Memories Definition
;---------------------------------------
;- Flash Memory : AT49BV162 1M*16
FLASH_BASE EQU 0x01000000
FLASH_SIZE EQU 2*1024*1024
;--------------------------
;- Internal RAM Definition
;--------------------------
; The Internal SRAM is redefined in two blocks (248K + 8K) due to the EB40A has no External SRAM.
; The 8K (from 0x0 to 0x01FFF) are for Vector table and Exception stack defined by RAM_LIMIT.
; The 248K (from 0x2000 to 0x3FFFF) are for User Application code and Application stack defined by EXT_SRAM_LIMIT
RAM_BASE EQU 0x00000000 ; @- Address of the Internal SRAM after the remap command
RAM_SIZE EQU 8*1024 ;
; **************
; * WARNING !!!* The RAM_LIMIT definition does not correspond to ( RAM_BASE + RAM_SIZE )
; **************
; - This is for compatipility with the cstartup_xxx.ads (flash, ice or angel).
RAM_LIMIT EQU (RAM_BASE + (8*1024)) ; @ The size of the Application stack is 8K.
; The internal RAM is mapped at address 0x00300000 after reset until
; Remap command is performed on the EBI.
RAM_BASE_BOOT EQU 0x00300000
; **************
; * WARNING !!!*
; **************
;- WARNING !! No External SRAM memories are fitted on the board.
;- This definition is only if the user adds external SRAM devices.
; The following definition are put in comments
EXT_SRAM_BASE EQU 0x02000000
;EXT_SRAM_SIZE EQU (4*1024*1024)
;EXT_SRAM_LIMIT EQU (EXT_SRAM_BASE + EXT_SRAM_SIZE)
;- Redefinition of External SRAM to Internal SRAM
;EXT_SRAM_BASE EQU RAM_LIMIT
;EXT_SRAM_SIZE EQU (RAM_SIZE-RAM_LIMIT)
;EXT_SRAM_LIMIT EQU (RAM_BASE + RAM_SIZE)
NET_BASE EQU 0x3000000 ;RTL8019AS
CPLD_BASE EQU 0x4000000 ;ATF1504AS
USB_BASE EQU 0x5000000 ;CH375
; -----------------------------------------------------------------------------------------------------------------
;- EBI Initialization Data
;-------------------------
;- The EBI User Interface Image which is copied by the boot.
;- 66MHz master clock assumed.
;- That's hardware! Details in the Electrical Datasheet of the AT91 device.
;- EBI Base Address is added at the end for commodity in copy code.
;-
;- EBI_CSR_1 configuration is removed because no external SRAM is fitted on the board. If External SRAM is added,
; replace with the line below the EBI_CSR1 line.
;
; EBI_CSR_1 EQU (EXT_SRAM_BASE :OR: 0x2525) ; 0x02000000, 16MB, 2 TDF, 16 bits, 2 WS
; -----------------------------------------------------------------------------------------------------------------
EBI_CSR_0 EQU (FLASH_BASE :OR: 0x20a5) ; 0x01000000, 4MB, 0 TDF, 16 bits, 2 WS
EBI_CSR_1 EQU (EXT_SRAM_BASE :OR: 0x30a5) ; 0x02000000, 4MB, 0 TDF, 16 bits, 2 WS
EBI_CSR_2 EQU (NET_BASE :OR: 0x20a5) ; 0x03000000, 4MB, 0 TDF, 16 bits, 2 WS
EBI_CSR_3 EQU (CPLD_BASE :OR: 0x20ae) ; 0x04000000, 4MB, 0 TDF, 8 bits, 4 WS
EBI_CSR_4 EQU (USB_BASE :OR: 0x202a) ; 0x05000000, 4MB, 0 TDF, 8 bits, 3 WS
EBI_CSR_5 EQU 0x50000000 ; unused
EBI_CSR_6 EQU 0x60000000 ; unused
EBI_CSR_7 EQU 0x70000000 ; unused
;Master Clock
;MCK EQU 32768000
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -