Read Out Program from Encrypted Microcontroller PIC18F4620 and download the firmware into blank MCU PIC18F4620 which will provide the same functions:
Enabling the PIC18 extended instruction set changes the behavior of indirect addressing using the FSR2 register pair within Access RAM. Under the proper conditions, instructions that use the Access Bank – that is, most bit-oriented and byte-oriented instructions – can invoke a form of indexed addressing using an offset specified in the instruction. This special addressing mode is known as Indexed Addressing with Literal Offset, or Indexed Literal Offset mode when reading microprocessor pic16c642 bin.
When using the extended instruction set, this addressing mode requires the following:
- The use of the Access Bank is forced (‘a’ = 0) and
- The file address argument is less than or equal to 5Fh.
Under these conditions, the file address of the instruction is not interpreted as the lower byte of an address (used with the BSR in direct addressing), or as an 8-bit address in the Access Bank. Instead, the value is interpreted as an offset value to an address pointer, specified by FSR2. The offset and the contents of FSR2 are added to obtain the target address of the operation if copying microcontroller pic16f526 eeprom.
Any of the core PIC18 instructions that can use direct addressing are potentially affected by the Indexed Literal Offset Addressing mode. This includes all byte-oriented and bit-oriented instructions, or almost one-half of the standard PIC18 instruction set. Instructions that only use Inherent or Literal Addressing modes are unaffected.Additionally, byte-oriented and bit-oriented instructionsare not affected if they do not use the Access Bank (Access RAM bit is ‘1’), or include a file address of 60h or above. Instructions meeting these criteria will continue to execute as before.
A comparison of the different possible addressing modes when the extended instruction set is enabled after read code of chip.
Those who desire to use byte-oriented or bit-oriented instructions in the Indexed Literal Offset mode should note the changes to assembler syntax for this mode for the sake of MCU Cracking. This is described in more detail in Section 24.2.1 “Extended Instruction Syntax”.