20.1.4 MTAP IDCODE (MTAP_IDCODE) Instruction

MTAP_IDCODE returns the value stored in the DEVID register.
Table 20-2. MTAP_COMMAND DR Commands
CommandValueDescription
MCHP_STATUS8’h0x00NOP and return status.
MCHP_ASSERT_RST8’h0xD1Requests the Reset controller to assert device Reset.
MCHP_DE_ASSERT_RST8’h0xD0Removes the request for device Reset, which causes the reset controller to deassert device Reset if there is no other source requesting Reset (MCLR).
MCHP_ERASE8’h0xFCCause the Flash controller to perform a chip erase.
MCHP_FLASH_ENABLE(1)8’h0xFEEnables fetches and loads to the Flash (from the processor).
MCHP_FLASH_DISABLE(1)8’h0xFDDisables fetches and loads to the Flash (from the processor).
Note:
  1. This command is not required for PIC32MK and PIC32MZ family of devices.
Table 20-3. EJTAG Tap Instructions
CommandValueDescription
ETAP_ADDRESS5’h0x08Select Address register
ETAP_DATA5’h0x09Select Data register
ETAP_CONTROL5’h0x0ASelect EJTAG Control register
ETAP_EJTAGBOOT5’h0x0CSet EjtagBrk, ProbEn and ProbTrap to ‘1’as the Reset value
ETAP_FASTDATA5’h0x0ESelects the Data and Fast data registers