⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 ADI 公司的DSP ADSP21262 EZ-KIT LITE开发板的全部源代码
💻 TXT
字号:
-------------------------------------------------------------------------------
Example: EE-231 SPI Flash Programmer
Target: ADSP-21262
Hardware: ADSP-21262
-------------------------------------------------------------------------------
This project provides assembly code capable of programming the entire ST M25P80
SPI-Flash using the ADSP-21262.

The code illustrates the method used to access the on-board SPI Flash which is
connected to the SPI port using flag 0 as the chip select. This code uses SPI Mode 3.
Callable subroutines are provided for all of the following functions as provided by
the Flash:
Write Enable
Write Disable
Read Status Register
Write Status Register
Read
Program
Sector Erase
Bulk Erase
Deep Powerdown
Return from Deep Powerdown/Read Device ID

The included main routine will program a buffer to the flash, and read it back for
verification. Set breakpoints at main.end, and error_detected.end, and the DSP will
halt when it reaches the end of the code, indicating whether any errors were
encountered.

-------------------------------------------------------------------------------
Instructions:
1. Open the project and set a breakpoint at main.end: If the test was 
successful in loading the code into SPI FLash, the control goes to main.end.
Otherwise it goes to error_detected.end.
2. Now close the VisualDsp++ session . It because emulator over-rides the boot mode.
3. Set the Boot configuration for SPI Master  ( BCFG1-BCFG0 => 0-1)
4. The clk configuration settings for ADSP-21262 can be (CCFG1-CCFG0 =>
0-0 or 1-0)
5. Press the reset button.
6. you should see the blinking leds code that was loaded.

The file to be loaded into the flash is defined in SPIflash.h. Currently it is 
spiovlyascii.ldr(blinking leds). A different code can be programmed into flash by 
changing the ldr file in SPIflash.h

This project expects the input file(ldr) to be generated by the Loader
Utility provided by VisualDSP++.To generate the loader file, 
1. Open the project of the code that you want to program and go to 
Project-> Project Options.Under Project-> Target, choose the type to be
Loader File from scroll down menu.
2. Under Load make sure the setting is SPI Flash, ASCII, 32 bit.This SPI setting
corresponds to the format of the data stream, rather than the boot method the will
load it into the DSP upon bootup.
3. Once you run the code the ldr file is generated in the Debug folder.

Use this file to program into flash.

-------------------------------------------------------------------------------
Source Files contained in this directory:
spiflash.dpj    VisualDSP project file
SPIflash.asm    ADSP-21262 source - SPI Flash Subroutines
buffers.asm     ADSP-21262 source - Buffer declarations
main.asm        ADSP-21262 source - SPI Flash Subroutines
21262_IVT.asm   Interrupt Vector Table
SPIflash.h      Header File - Macro Definitions
ADSP-21262-EZKIT.ldf  Linker description file
spiovlyascii.ldr     Loader file to burn into the Flash
-------------------------------------------------------------------------------
Dependencies contained in VisualDSP++ default include path:
def21262.h               Header file with generic definitions
*******************************************************************************
Analog Devices, Inc.
DSP Division
One Technology Way
Norwood, MA 02062

(c) 2003 Analog Devices, Inc.  All rights reserved.
*******************************************************************************

⌨️ 快捷键说明

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