Contents
A.1.1 Header File for Constants and Variables, SVAR20.H . . . . . . . . . . . . . . . . . . . . . A2 A.1.2 Clear Algorithm, SCLR20.ASM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5 A.1.3 Erase Algorithm, SERA20.ASM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A10 A.1.4
A.2
A.4 Sample C Code to Erase and Reprogram the TMS320F206 . . . . . . . . . . . . . . . . . . . . . A37 A.4.1 C Code That Calls the Interface to Flash Algorithms for TMS320F206 . . . . . A37 A.4.2 Linker Command File for TMS320F206 Sample C Code . . . . . . . . . . . . . . . . . A38
A.5 Sample Assembly Code to Erase and Reprogram the TMS320F240 . . . . . . . . . . . . . . A40 A.5.1 Assembly Code for TMS320F240 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A40 A.5.2 Linker Command File for TMS320F240 Sample Assembly Code . . . . . . . . . . A45
A.6 Using the Algorithms With C Code to Erase and Reprogram the 'F240 . . . . . . . . . . . . A47 A.6.1 C Code That Calls the Interface to Flash Algorithms for TMS320F240 . . . . . A47 A.6.2 Linker Command File for TMS320F240 Sample C Code . . . . . . . . . . . . . . . . . A48 A.6.3 C Function for Disabling TMS320F240 Watchdog Timer . . . . . . . . . . . . . . . . . A50 A.6.4 C Functions for Initializing the TMS320F240 . . . . . . . . . . . . . . . . . . . . . . . . . . . A51
x