📄 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 ../../parts/r40008/r40008.inc
;---------------------------------------
;- AT91EB40 External Memories Definition
;---------------------------------------
;- Flash Memory : AT49BV1614
FLASH_BASE EQU 0x01000000
FLASH_SIZE EQU 0x200000
; **************
; * 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 (256*1024)
;- EXT_SRAM_LIMIT EQU (EXT_SRAM_BASE + EXT_SRAM_SIZE)
;- Redefinition of External SRAM to Internal SRAM
EXT_SRAM_BASE EQU RAM_LIMIT ; 8K (8*1024)
EXT_SRAM_SIZE EQU (RAM_SIZE-RAM_LIMIT) ; 256K (256*1024) - 8K (8*1024)
EXT_SRAM_LIMIT EQU (RAM_BASE + RAM_SIZE) ; = SRAM_LIMIT = 0x40000
; -------------------------------------------------------------------------------------------------------------------
; Internal Memory Mapping | Internal Memory Mapping | Internal Memory Mapping
; with ICE Debugger | with Angel Monitor | with ROMed Application
; -------------------------------------------------------------------------------------------------------------------
; | |
; 0x40000 --------------- | 0x40000 --------------- | 0x40000 ---------------
; | | | | | | | |
; | | | | | | | |
; | | | | | | | |
; | | | | | | | |
; | | | | | | | |
; | | | | USED | | | |
; | | | | BY | | | |
; | | | | ANGEL | | | |
; | | | | | | | |
; | | | | | | | |
; | 248K | | | | | | 248K |
; | for user | | | | | | for user |
; | application* | | | | | | application* |
; 0x20000 | | | 0x20000 --------------- | 0x20000 | |
; | | | | | | | |
; | | | | | | | |
; | | | | 120K | | | |
; | | | | for user | | | |
; | | | | application* | | | |
; | | | | | | | |
; | | | | | | | |
; | | | | | | | |
; | | | | | | | |
; 0x2000 --------------- | 0x2000 --------------- | 0x2000 ---------------
; | | | | | | | |
; | 8K | | | 8K | | | 8K |
; | | | | | | | |
; 0x0 --------------- | 0x0 --------------- | 0x0 ---------------
; | |
; | |
; -------------------------------------------------------------------------------------------------------------------
; | |
; 0x40000 = TOP_APPLICATION_STACK | 0x40000 = TOP_APPLICATION_STACK | 0x40000 = TOP_APPLICATION_STACK
; 0x02000 = TOP_EXCEPTION_STACK | 0x02000 = TOP_EXCEPTION_STACK | 0x02000 = TOP_EXCEPTION_STACK
; | |
; *248K - TOP_APPLICATION_STACK | *120K - TOP_APPLICATION_STACK | *248K - TOP_APPLICATION_STACK
; | |
; -------------------------------------------------------------------------------------------------------------------
; -----------------------------------------------------------------------------------------------------------------
;- 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: 0x2539) ; 0x01000000, 16MB, 2 tdf, 16 bits, 7 WS
EBI_CSR_1 EQU 0x10000000 ; unused
EBI_CSR_2 EQU 0x20000000 ; unused
EBI_CSR_3 EQU 0x30000000 ; unused
EBI_CSR_4 EQU 0x40000000 ; unused
EBI_CSR_5 EQU 0x50000000 ; unused
EBI_CSR_6 EQU 0x60000000 ; unused
EBI_CSR_7 EQU 0x70000000 ; unused
;--------------------------------
;- AT91EB40A Interfaces Definition
;--------------------------------
; - LED DEFINITION
LED1 EQU P16 ;- D1
LED2 EQU P17 ;- D2
LED3 EQU P18 ;- D3
LED4 EQU P19 ;- D4
LED5 EQU P3 ;- D5
LED6 EQU P4 ;- D6
LED7 EQU P5 ;- D7
LED8 EQU P6 ;- D8
;- Push Button Definition
BP_SW1 EQU P12
BP_SW2 EQU P9
BP_SW3 EQU P1
BP_SW4 EQU P2
;- Serial EEPROM Definition
SCL EQU (1:SHL:8)
SDA EQU (1:SHL:7)
PIO_SCL EQU (1:SHL:8)
PIO_SDA EQU (1:SHL:7)
;Master Clock
MCK EQU 66000000
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -