English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (15/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
6.0 PSEUDO OPERATIONS
To simplify the description of programming details, all
operations will be described using pseudo operations.
There are several functions used in the pseudocode
descriptions. These are used either to make the
pseudocode more readable, to abstract
implementation-specific behavior, or both. When
passing parameters with pseudo operation, the
following syntax will be used:
• 5’h0x03 – send 5-bit hexadecimal value of 3
• 6’b011111 – send 6-bit binary value of 31
These functions are defined in this section, and include
the following operations:
• SetMode (mode)
• SendCommand (command)
• oData = XferData (iData)
• oData = XferFastData (iData)
• oData = XferInstruction (instruction)
6.1 SetMode Pseudo Operation
Format:
SetMode (mode)
Purpose:
To set the EJTAG state machine to a specific state.
Description:
The value of mode is clocked into the device on
signal TMS. TDI is set to a ‘0’ and TDO is ignored.
Restrictions:
None.
Example:
SetMode (6’b011111)
FIGURE 6-1:
SetMode 4-WIRE
Mode = 6’b011111
TCK
TMS
‘1’
‘1’
‘1’
‘1’
‘1’
‘0’
TDI
TDO
FIGURE 6-2:
SetMode 2-WIRE
Mode = 6’b011111
PGECx
PGEDx
TDI = 0 TMS = 1
TDO = 1
TDI = 0
TMS = 0
TDO = x
 2007-2013 Microchip Technology Inc.
DS61145L-page 15