📄 readme.txt
字号:
-------------------------------------------------------------------------------
Example: SPI Flash Programmer
Target: ADSP-21262
Date: September 19, 2003
Tools: VisualDSP++ 3.0 SP1
Hardware: ADSP-21262 EZ-KIT LITE
-------------------------------------------------------------------------------
This project provides assembly code capable of programming the entire Atmel AT25F512
SPI-Flash that is included with the ADSP-21262 Ez-kit Lite.
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
Chip Erase
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: To change the file to be programmed to the flash, simply add your file
to the project directory and change the name of the file to be included in the
SPIflash.h file. By default, this project expects the input file to be generated
by the Loader Utility provided by VisualDSP. The format that is expected is 32-bit
ASCII generated using the SPI Slave setting of the loader. This SPI Slave setting
corresponds to the format of the data stream, rather than the boot method the will
load it into the DSP upon bootup.
-------------------------------------------------------------------------------
Source Files contained in this directory:
Atmel SPI Flash Programmer.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
input.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 + -