MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
16-Bit C <strong>Compiler</strong> User’s Guide<br />
__builtin_tbloffset<br />
Assembler Operator<br />
/ Machine<br />
Instruction:<br />
tbloffset<br />
Error Messages The following error message is produced when this function is used<br />
incorrectly:<br />
“Argument to __builtin_tbloffset() is not the address of an<br />
object in code, psv, or eedata section”.<br />
The argument must be an explicit object address.<br />
For example, if obj is object in an executable or read-only section, the<br />
following syntax is valid:<br />
unsigned page = __builtin_tbloffset(&obj);<br />
__builtin_tblrdh<br />
Description: Issues the tblrdh.w instruction to read a word from Flash or EEDATA<br />
memory. You must set up the TBLPAG to point to the appropriate page.<br />
To do this, you may make use of __builtin_tbloffset() <strong>and</strong><br />
__builtin_tblpage().<br />
Please refer to the data sheet or <strong>dsPIC</strong> Family Reference Manual <strong>for</strong><br />
complete details regarding reading <strong>and</strong> writing program Flash.<br />
Prototype: unsigned int __builtin_tblrdh(unsigned int offset);<br />
Argument: offset desired memory offset<br />
Return Value: None.<br />
Assembler Operator<br />
/ Machine<br />
Instruction:<br />
tblrdh<br />
Error Messages None.<br />
__builtin_tblrdl<br />
Description: Issues the tblrdl.w instruction to read a word from Flash or EEDATA<br />
memory. You must set up the TBLPAG to point to the appropriate page.<br />
To do this, you may make use of __builtin_tbloffset()<br />
<strong>and</strong>__builtin_tblpage().<br />
Please refer to the data sheet or “<strong>dsPIC</strong>30F Family Reference Manual”<br />
(DS70046) <strong>for</strong> complete details regarding reading <strong>and</strong> writing program<br />
Flash.<br />
Prototype: unsigned int __builtin_tblrdl(unsigned int offset);<br />
Argument: offset desired memory offset<br />
Return Value: None.<br />
Assembler Operator<br />
/ Machine<br />
Instruction:<br />
tblrdl<br />
Error Messages None.<br />
DS51284G-page 160 © 2008 <strong>Microchip</strong> Technology Inc.