FLASH_write_str

Description

Write unpacked string from RAM to 7 bit packed character string held in code memory

Characters can be packed two to a code memory word if they are limited to 7 bits each. This function writes a character to a packed array of 7 bit characters held in the code memory.

The address of the start of the array is given by addr and is specified in words. The address of the RAM array is given by str and is specified in characters.

The address of an array is very simple to obtain and no special computation is required to account for the mixed use of instruction words and characters.

e.g.

	const char data = "hello world"

	char	ram_buff[12]

	FLASH_write_str(&data, &ram_buff)

Definition

FLASH_write_str(uint addr, char *str)

Library

LIB/flash_lib.bas

Usage

On entry:
addr is the base address of the character array held in the code memory of the PIC
str is the address in RAM of the zero terminated string to be copied to the code memory starting at addr

see FLASH description for a more detailed description

On exit:
There is not return value