📄 eb40807.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 : eb40.inc
#- Object : Evaluation Board EB40 Definition File.
#-
#- 1.0 06/04/00 JPP : Creation
#- 1.1 30/10/00 JPP : Additing the EBI description
#------------------------------------------------------------------------------
.INCLUDE "../../parts/r40807/r40807.inc" /* - library definition */
#- Flash Memory : AT49BV1614
.EQU FLASH_BASE, 0x01000000
.EQU FLASH_SIZE, 0x200000
#---------------------------------------
#- EB40x Memories Definition
#---------------------------------------
.IFDEF AT91_EXT_RAM /* External RAM(0x02000000), 16MB, 0 hold, 16 bits, 1 WS */
.EQU EXT_SRAM_BASE, 0x02000000
.EQU EXT_SRAM_SIZE, (512*1024) /* 512 Kbytes */
.EQU EXT_SRAM_LIMIT, (EXT_SRAM_BASE+EXT_SRAM_SIZE)
.ELSE /* use Inner RAM */
#- Redefinition of External SRAM to Internal SRAM
.EQU EXT_SRAM_BASE, RAM_BASE @ 0x00000000
.EQU EXT_SRAM_SIZE, RAM_SIZE @ 8K (8*1024)
.EQU EXT_SRAM_LIMIT, (RAM_BASE + RAM_SIZE) @ = RAM_LIMIT = 0x2000
.ENDIF
#------------------------------------------------------------------------------
#- EBI Initialization Data
# -------------------------------------------------------------------------------------------------------------------
# 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 | 0x2529) /* 0x01000000, 16MB, 2 tdf, 16 bits, 2 WS */
.IFDEF AT91_EXT_RAM /* 0x02000000, 16MB, 0 hold, 16 bits, 1 WS */
.EQU EBI_CSR_1, (EXT_SRAM_BASE|0x2122) @ Extern RAM access address and configurations.
.ELSE
.EQU EBI_CSR_1, 0x10000000 /* unused */
.ENDIF
.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 */
#--------------------------------
#- EB40x 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, 32768000
# END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -