Datasheet

PRODUCING AN EXECUTABLE FILE
Once the text-based source file is typed in and saved using the text editor (PSPad), the source code window should look like the
one in Figure 7. To call the compiler routine, select File >> Compile. The PSPad LOG window shows the progress of compiling. If
the compiler generates error messages, LOG window is necessary for locating these errors.
A listing file, a hex file and a binary file is produced by the LASM.exe compiler. The name of the files are the same name that you
have given to the source code file, with the *.lst, *.hex or *.bin extension. *.hex and *.bin files contain the machine code.
30187010
FIGURE 7. Example of Compiling Source Code
LOADING A PROGRAM TO THE LP5523'S SRAM
To upload code into the LP5523 SRAM start the LP5523.exe evaluation software. Select the Program tab Figure 10. The Program
tab is divided into two parts: the right contains the program's source code and the compiled version of the code; the left part contains
program execution engine controls. Load the generated *.hex file into the evaluation software view: Click Open Source File button
(Figure 8), browse the file and click Open.
30187012
FIGURE 8. Open Source File Button In Program Tab
To download the machine code into the LP5523, click on download button Figure 9. Pressing this button sets all the engine modes
to Load.
30187016
FIGURE 9. Download Opened Source File Into LP5523
Program can be loaded also from the Code memory tab Figure 11. In this case one must set the operation mode to Load. In Code
memory tab one must first select the address where data is written. Once the address is active Data can be written in hexadecimal
AN-2227 - LP5523 Evaluation Kit
10 Copyright © 1999-2012, Texas Instruments Incorporated