📄 bf533_ez-kit_sdram_config.asm
字号:
/******************************************************************************/
//
// Name: BF533 EZ-KIT video ITU-656 receive mode
//
/******************************************************************************
(C) Copyright 2003 - Analog Devices, Inc. All rights reserved.
File Name: BF533_EZ-KIT_SDRAM_Config.asm
Date Modified: 3/27/03 TL Rev 1.2
Software: VisualDSP++3.1
Hardware: ADSP-BF533 EZ-KIT Board
Special Connections: None
Purpose: EZ-KIT SDRAM setup
Program Parameters:
********************************************************************************/
#include <defBF533.h>
.global BF533_EZ_KIT_SDRAM_Config;
.section L1_code;
/*******************************************************************************/
/* Initalize SDRAM registers. */
BF533_EZ_KIT_SDRAM_Config:
// Check if already enabled
P0.l = lo(EBIU_SDSTAT);
P0.h = hi(EBIU_SDSTAT);
R0 = w[p0](z);
CC = bittst(R0, bitpos(SDRS)); // SDRS
if !CC jump skip_sdram_enable;
//SDRAM Refresh Rate Control Register
P0.L = lo(EBIU_SDRRC);
P0.H = hi(EBIU_SDRRC);
R0 = 0x0817 (z);
w[P0] = R0;
//SDRAM Memory Bank Control Register
P0.L = lo(EBIU_SDBCTL);
P0.H = hi(EBIU_SDBCTL);
R0.L = 0x0013;
R0.H = 0x0000;
[P0] = R0;
//SDRAM Memory Global Control Register
P0.L = lo(EBIU_SDGCTL);
P0.H = hi(EBIU_SDGCTL);
R0.L = 0x998d;
R0.H = 0x0091;
[P0] = R0;
skip_sdram_enable: nop;
BF533_EZ_KIT_SDRAM_Config.END:
RTS;
/*******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -