EasyManua.ls Logo

Elprotronic MSP430 - F_Put_Byte_To_Code_Buffer

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function fill the full Code buffer with data 0xFF and clear all flags to empty value.
Syntax:
MSPPRG_API INT_X F_Clr_Code_Buffer( void );
Return value:
0 - FALSE
1 - TRUE
-2 - FPA_INVALID_NO
Example:
.....................
F_Clr_Code_Buffer();
.....................
F_Put_Byte_to_Code_Buffer
F_Put_Byte_to_Code_Buffer - Write code data to Code buffer.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Instruction allows to write contents of the code to code buffer instead using the F_ReadCodeFile
instruction. Contents of the downloaded code data can be modified or filled with the new data, if code
buffer has been cleared first (using F_Clr_Code_Buffer function).
Instruction write the data to Code buffer in specified address location and set the used flag in that
location.
Note: Writing the 0xFF to the specified location where the other then the 0xFF data was located do
not remove the contents from the buffer in fully. The new data (0xFF) will be written to Code
buffer location, but flag still will be set to used. Use the F_Clr_Code_Buffer() instruction
to fully clear the Code buffer before writing the new data block.
Syntax:
MSPPRG_API INT_X F_Put_Byte_to_Code_Buffer( LONG_X address,
BYTE data );
Parameters value:
code address - 0x1000 to 0x1FFFF
data - 0x00 to 0xFF
Return value:
0 - FALSE
1 - TRUE
79

Table of Contents