📄 eb40008ram.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 "r40008.inc"
#---------------------------------------
#- AT91EB40 External Memories Definition
#---------------------------------------
#- Flash Memory : AT49BV1614
.EQU FLASH_BASE, 0x01000000
.EQU FLASH_SIZE, 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
.EQU EXT_SRAM_BASE, 0x100 @RAM_LIMIT @ 8K (8*1024)
.EQU EXT_SRAM_SIZE, (RAM_SIZE-RAM_LIMIT) @ 256K (256*1024) - 8K (8*1024)
.EQU EXT_SRAM_LIMIT, (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 | 0x2525) ; 0x02000000, 16MB, 2 TDF, 16 bits, 2 WS
# -----------------------------------------------------------------------------------------------------------------
.EQU EBI_CSR_0, (FLASH_BASE | 0x2539) @ 0x01000000, 16MB, 2 tdf, 16 bits, 7 WS
.EQU EBI_CSR_1, 0x02002122 @ unused
.EQU EBI_CSR_2, 0x20000000 @ unused
.EQU EBI_CSR_3, 0x30000000 @ unused
.EQU EBI_CSR_4, 0x40000000 @ unused
.EQU EBI_CSR_5, 0x50000000 @ unused
.EQU EBI_CSR_6, 0x60000000 @ unused
.EQU EBI_CSR_7, 0x70000000 @ unused
#--------------------------------
#- AT91EB40A Interfaces Definition
#--------------------------------
# - LED DEFINITION
.EQU LED1, P16 @- D1
.EQU LED2, P17 @- D2
.EQU LED3, P18 @- D3
.EQU LED4, P19 @- D4
.EQU LED5, P3 @- D5
.EQU LED6, P4 @- D6
.EQU LED7, P5 @- D7
.EQU LED8, P6 @- D8
#- Push Button Definition
.EQU BP_SW1, P12
.EQU BP_SW2, P9
.EQU BP_SW3, P1
.EQU BP_SW4, P2
#- Serial EEPROM Definition
.EQU SCL, (1<<8)
.EQU SDA, (1<<7)
.EQU PIO_SCL, (1<<8)
.EQU PIO_SDA, (1<<7)
#Master Clock
.EQU MCK, 66000000
# .END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -