How to get PIC32MZ device ID with MTAP_IDCODE
in PIC32 Flash Programming Specification(DS60001145W)
MTAP_IDCODE = Select Chip Identification Data register
only follow information about MTAP_IDCODE : no Examples.
20.1.4 MTAP_IDCODE INSTRUCTION
MTAP_IDCODE returns the value stored in the DEVID
Such as MCHP_STATUS, read with statusVal = XferData (MCHP_STATUS).
Can anyone tell me how to read DEVID with MTAP_IDCODE command.
//Select Chip Identification Data register
// Receive ID
devid = XferData(0);
post edited by Wangxin - 2019/11/08 20:35:13