
PIC32MX
DS61145K-page 14
2007-2012 Microchip Technology Inc.
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
FIGURE 6-2:
SetMode 2-WIRE
TMS
TDI
TDO
‘1’
TCK
‘1’
‘0’
Mode = 6’b011111
PGEDx
PGECx
TDI = 0
TDO = 1
TMS = 1
TDI = 0
TMS = 0
TDO = x
Mode = 6’b011111