PRELIMINARY
Assembly Source for Algorithms
A.1.4 Flash-Write Algorithm, SFLW20.ASM
This code is an implementation of the
Memory section: fl_wrt
Entry point: FLWS
Parameters to be declared and initialized by the calling code are:
- PROTECT defines the values of bits 8±15 of SEG_CTR during the flash- write algorithm.
-SEG_ST defines the start address of the flash array to be recovered.
-SEG_END defines the end address of the flash array to be recovered.
Return value: ERROR (@BASE+15) 0=Pass, 1=Fail
**************************************************************
** | FLASH±WRITE subroutine | ** |
* |
| ** |
* | TMS320F2XX Flash Utilities. | ** |
* | Revision: 2.0, 9/10/97 | ** |
* | Revision: 2.1, 1/31/98 | ** |
* |
| ** |
* | Filename: sflw20.asm | ** |
* |
| ** |
*Called by : c2xx_bfx.asm or flash application programs. **
* | ** |
*!!CAUTION ± INITIALIZE DP BEFORE CALLING THIS ROUTINE!! **
* |
|
|
| ** |
* Function: Performs flash writes on flash array 0/1 as | ** | |||
* |
| specified by the following vars: | ** | |
* |
| SEG_ST | Array segment start address | ** |
* |
| PROTECT | Sector protect enable | ** |
* |
|
|
| * |
* The flash±write pulse duration used is 14 ms, and a | * | |||
* maximum of 10000 pulses is applied until the device | * | |||
* passes the depletion test. | * | |||
* |
|
|
| * |
* The following resources are used for temp storage: | * | |||
* | AR0 | Used for comparison | * | |
* | AR1 | Flash±Write Pulse Count | * | |
* | AR2 | Used for main BANZ loop | * | |
* | AR6 | Parameter passed to DELAY | * | |
* | BASE_0 | Parameter passed to SET_MODE | * | |
* | BASE_1 | Used for flash address | * | |
* | BASE_2 | Used for flash data | * |
PRELIMINARY | Assembly Source Listings and Program Examples |