Texas Instruments TMS320F20x/F24x DSP Computer Drive User Manual


 
Contents
ix
Contents
1 Introduction 1Ć1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Discusses basic flash memory technology; summarizes the features and benefits of the
TMS320F20x/F24x flash module
1.1 Basic Concepts of Flash Memory Technology 1Ć2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 TMS320F20x/F24x Flash Module 1Ć3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3 Benefits of Embedded Flash Memory in a DSP System 1Ć5. . . . . . . . . . . . . . . . . . . . . . . . . .
2 Flash Operations and Control Registers 2Ć1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Describes the operations that modify the content of the flash module; explains the role of the
control registers
2.1 Operations that Modify the Contents of the ’F20x/F24x Flash Array 2Ć2. . . . . . . . . . . . . . .
2.2 Accessing the Flash Module 2Ć5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 TMS320F206 Flash Access-Control Register 2Ć6. . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.2 TMS320F24x Flash Access-Control Register 2Ć7. . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Flash Module Control Registers 2Ć8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.1 Segment Control Register (SEG_CTR) 2Ć8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.2 Flash Test Register (TST) 2Ć10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.3 Write Address Register (WADRS) 2Ć10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.4 Write Data Register (WDATA) 2Ć11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 Read Modes 2Ć12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5 Program Operation 2Ć13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.6 Erase Operation 2Ć14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.7 Recovering From Over-Erasure (Flash-Write Operation) 2Ć15. . . . . . . . . . . . . . . . . . . . . . . .
2.8 Reading From the Flash Array 2Ć16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.9 Protecting the Array 2Ć16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Algorithm Implementations and Software Considerations 3
Ć1. . . . . . . . . . . . . . . . . . . . . . . . . .
Describes the algorithms used for the programming, erase, and flash-write operations; dis-
cusses considerations necessary for developing your software
3.1 How the Algorithms Fit Into the Program-Erase-Reprogram Flow 3Ć2. . . . . . . . . . . . . . . . .
3.2 Programming (or Clear) Algorithm 3Ć4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Erase Algorithm 3Ć10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 Flash-Write Algorithm 3Ć14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A Assembly Source Listings and Program Examples AĆ1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Assembly Source for Algorithms AĆ2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .