EasyManua.ls Logo

Elprotronic MSP430 - F_Copy_Buffer_To_Ram; F_Copy_Ram_To_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...
F_Copy_Buffer_to_RAM
F_Copy_Buffer_to_RAM - Write “size” number of bytes from Write Data Buffer (see figure 4.2)
to RAM. Starting address is specified in the “start address”.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Note: When the BSL or Fast BSL is used then an access to RAM location 0x200 to 0x2FF is
blocked. This RAM area is used by stack and firmware for the BSL or Fast BSL.
Syntax:
MSPPRG_API INT_X F_Copy_Buffer_to_RAM( LONG_X start_address,
LONG_X size );
Parameters:
start address - Even address
size - Even number
Return value:
1 - TRUE if data has been saved successfully
0 - FALSE.
-2 - FPA_INVALID_NO.
NOTE: Specified address in the Write Data Buffer is the same as a physical RAM
address.
Example:
....................
....................
for( addr = 0x220; addr<0x300; addr++ )
st = F_Put_Byte_To_Buffer( addr, data[addr] );
st = F_Copy_Buffer_to_RAM( 0x220, 0xE0 );
....................
F_Copy_RAM_to_Buffer
F_Copy_RAM_to_Buffer - Read specified in “size” number of bytes from the RAM and save it
in the Read Data Buffer (see Figure 4.2). Starting address is specified
in the “start address”.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Syntax:
MSPPRG_API INT_X F_Copy_RAM_to_Buffer( LONG_X start_address,
LONG_X size );
101

Table of Contents