rdiserv_eb55.dbs

来自「ATMEL AT91RM9200开发板配套光盘上的全部示例程序」· DBS 代码 · 共 60 行

DBS
60
字号
#--------------------------------------------------------------------------------------
#      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           : mpserv_eb55.dbs
# Object              : Setup script for the Ateml AT91 board EB55 (Multi ICE probe) 
#			with specifc board initialisation
#				- PLL
#				- EBI
#
# 1.0 21/Oct/02 JPP    : Creation from ocd file 
#--------------------------------------------------------------------------------------

# Enable the main oscillator (16Mhz) / MOSCEN = 1, OSCOUNT = 47  (1.4ms/30祍)
m 0xffff4020=0x002F0002

# Wait for Main oscillator stabilization. Wait for APMC_MOSCS Bit in APMC_SR equals 1.
sleep 2

# Commuting from Slow Clock to Main Oscillator (32K to 16Mhz)
m 0xffff4020=0x002F4002

#Setup the PLL / MUL = 1, PLLCOUNT = 3, CSS = 1
m 0xffff4020=0x032F4102

# Wait for the PLL is stabilized. Wait for APMC_PLL_LOCK Bit in APMC_SR equals 1
sleep 2

# Commuting from 16Mhz to PLL @ 32MHz / CSS = 2, MUL = 1
m 0xffff4020=0x032F8102

# --------------------------------------------------------
# Now the Master clock is the output of PLL @ 32MHz -
# --------------------------------------------------------

# EBI_CSR0 connected to the flash memory.
# Settings : EBI_BA=0x01000000 / EBI_CSEN / EBI_BAT_BYTE_WRITE / EBI_TDF_2 / EBI_PAGES_16M / EBI_NWS_3 / EBI_DBW_16
m 0xffe00000=0x01002529

# EBI_CSR1 connected to the External SRAM memory.
# Settings : EBI_BA=0x02000000 / EBI_CSEN / EBI_BAT_BYTE_WRITE / EBI_TDF_0 / EBI_PAGES_16M / EBI_NWS_1 / EBI_DBW_16
m 0xffe00004=0x02002121

# REMAP Done
m 0xffe00020=0x00000001

#2M bytes per Chip Select
m 0xffe00024=0x00000006


#Get chip id
m 0xFFF00000 
echo off

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?