EasyManua.ls Logo

Elprotronic MSP430 - F_Read_Byte; F_Memory_Write_Data

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...
F_Read_Byte
F_Read_Byte - Read one byte from RAM, registers, IO, Flash etc.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
NOTE: Instruction not supported in BSL and Fast BSL.
Read one byte from any location of the target device.
Parameters:
address - Any address from 0x0000 to 0x1FFFF,
Syntax:
MSPPRG_API BYTE F_Read_Byte( LONG_X addr );
Return value:
data - one byte
Example:
data = F_Read_Byte( 0x33 );
F_Memory_Write_Data
F_Memory_Write_Data - Write data block to Flash Memory.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Blank check before writing and verification after writing in not provided.
Parameters:
start address - Even number from 0x1000 to 0x1FFFE,
size - Even number - 2 or higher
block of data in bytes to be written.
Note: Function is useful for writing small data block, usually shorter then 200 bytes, like calibration
data, serial numbers etc. Function can also be used to writing longer data block, however for
this purpose it is recommended to use an encapsulated function F_Memory_Write() described
in this manual. The F_Memory_Write_Data() uses byte by byte flash write procedure. When
the JTAG or Spy-Bi-Wire interface is used, then the F_Memory_Write_Data() use the
JTAG/SBW protocol to directly program the Flash memory. The F_Memory_Write() function
97

Table of Contents