28.2.138 __builtin_tblwthb

Architecture

dsPIC33C/E/F, dsPIC30

Description

Issues the tblwthb.w instruction to write a byte to Flash or EEData memory. You must set up the TBLPAG to point to the appropriate page. To do this, you may make use of __builtin_tbloffset() and __builtin_tblpage().

Please refer to your device data sheet or Family Reference Manual (FRM) for complete details regarding reading and writing program Flash.

Prototype

void __builtin_tblwthb(uint16_t offset,
 unsigned char data);

Arguments

offset – desired memory offset

data – data to be written

Return Value

None

Machine Instruction

tblwthb

Error Messages

None