8.2 Two-Wire Interface

The following steps are required to check the device status using the Two-Wire interface:
  1. SetMode (6’b011111) to force the Chip TAP controller into Run Test/Idle state.
  2. SendCommand (MTAP_SW_MTAP).
  3. SetMode (6’b011111) to force the Chip TAP controller into Run Test/Idle state.
  4. SendCommand (MTAP_COMMAND).
  5. statusVal = XferData (MCHP_STATUS).
  6. If CFGRDY (statusVal[3]) is not ‘1’ and FCBUSY (statusVal[2]) is not ‘0’, go to step 4.
Note: If the CFGRDY and FCBUSY bits do not come to the proper state within 10 ms, the sequence may have been executed incorrectly or the device is damaged.