10.2 Two-Wire Interface

The following steps are required to enter Serial Execution mode:
  1. SendCommand (MTAP_SW_MTAP).
  2. SetMode (6’b011111).
  3. SendCommand (MTAP_COMMAND).
  4. statusVal = XferData (MCHP_STATUS).
  5. If CPS (statusVal[7]) is not ‘1’, first, erase the device.
  6. XferData (MCHP_ASSERT_RST).
  7. SendCommand (MTAP_SW_ETAP).
  8. SetMode (6’b011111).
  9. SendCommand (ETAP_EJTAGBOOT).
  10. SendCommand (MTAP_SW_MTAP).
  11. SetMode (6’b011111).
  12. SendCommand (MTAP_COMMAND).
  13. XferData (MCHP_DE_ASSERT_RST).
  14. XferData (MCHP_FLASH_ENABLE).
    Note: This step is required for the PIC32MX family devices.
  15. SendCommand (MTAP_SW_ETAP).
  16. SetMode (6’b011111).