Frequently Asked Questions

How can I load a new calibration constant?

See this FAQ on information about the INTRC calibration constant.

Assuming that 0x7FF is the last program address of the PIC® MCU in question, use the following code:

#rom 0x7FF={0xYYYY}

Where YYYY is the 14bit RETLW opcode. Please refer to Microchip's documentation on the format of the RETLW opcode.

Be aware that #rom does not place any information in the .LST file about what opcode is placed at the specified ROM/Program Memory address. If you want to verify that the right opcode is placed at the right ROM address you must check either the .COD file or the .HEX file.


C-Aware IDE Demo
Embedded C Learners Kit
EZ App Lynx