iram.ini
来自「在AT91sam7SE上」· INI 代码 · 共 86 行
INI
86 行
/******************************************************************************/
/* RAM.INI: RAM Initialization File */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>> //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/* development tools. Nothing else gives you the right to use this software. */
/******************************************************************************/
FUNC void Setup (void) {
// <o> Program Entry Point
PC = 0x00200000;
}
_WDWORD(0xFFFFFD44, 0x00008000); // WDT_WDMR: Disable Watchdog
Reset;
_sleep_(200);
/*===========================================================================================
; Disable All Interrupt
; AIC Base Address
AT91C_BASE_AIC EQU 0xFFFFF000
0x124 Interrupt Disable Command Register(2) AIC_IDCR
0x128 Interrupt Clear Command Register(2) AIC_ICCR
*/
_WDWORD(0xFFFFF000 + 0x124, 0xFFFFFFFF);
_WDWORD(0xFFFFF000 + 0x128, 0xFFFFFFFF);
/*===========================================================================================
Setup Main Oscillator.
PMC base address is 0xFFFFFC00.
0x0020 Main Oscillator Register CKGR_MOR.
*/
_sleep_(200);
_WDWORD(0xFFFFFC00 + 0x0020, 0x00004001); // CKGR_MOR: Enable Main Oscillator
_sleep_(200); // Wait for stable Main Oscillator
/*===========================================================================================
Setup Pll.
PMC base address is 0xFFFFFC00.
0x002C PLL Register CKGR_PLLR
PMC_PLLR_Val EQU 0x00191C05
*/
_WDWORD(0xFFFFFC00 + 0x002C, 0x10191C05);
/*===========================================================================================
Select Master Clock and set prescale.
PLL & 1/2
0x0030 Master Clock Register PMC_MCKR
PMC_MCKR_Val EQU 0x00000007
*/
_WDWORD(0xFFFFFC30, 0x00000007); // PMC_MCKR: Switch to Main Oscillator
_sleep_(200);
LOAD .\IRAM\FreqGen.axf INCREMENTAL // Download
Setup(); // Setup for Running
//g, main
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?