English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (586/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
PIC32MX3XX/4XX
28.2.4.3 Instruction Shift Register and
Instruction Register
The Instruction Shift register is a 5-bit shift register
used for selecting the actions to be performed and/or
what data registers to be accessed. Instructions are
shifted in, Least Significant bit first, and then decoded.
A list and description of implemented instructions is
given in Section 28.2.4.6 “JTAG Instructions”.
28.2.4.4 Data Registers
Once an instruction is shifted in and updated into the
Instruction Register, the TAP controller places certain
data registers between the TDI and TDO pins. Addi-
tional data values can then be shifted into these data
registers as needed.
The PIC32MX3XX/4XX device supports three data
registers:
• BYPASS Register: A single bit register which
allows the boundary scan test data to pass
through the selected device to adjacent devices.
The BYPASS register is placed between the TDI
and TDO pins when the BYPASS instruction is
active.
• DEVID Register: A 32-bit part identifier. It consists
of an 11-bit manufacturer ID assigned by the IEEE
(29h for Microchip Technology), device part num-
ber and device revision identifier. When the
IDCODE instruction is active, the device ID regis-
ter is placed between the TDI and TDO pins. The
device data ID is then shifted out on to the TDO
pin, on the next 32 falling edges of TCK, after the
TAP controller is in the Shift_DR.
• MCHP Command Shift Register: An 8-bit Shift
register that is placed between the TDI and TDO
pins when the MCHP_CMD instruction is active.
This Shift register is used to shift in Microchip
commands.
28.2.4.5 Boundary Scan Register (BSR)
The BSR is a large Shift register that is comprised of all
the I/O Boundary Scan Cells (BSCs), daisy-chained
together. Each I/O pin has one BSC, each containing 3
BSC registers, an input cell, an output cell and a control
cell. When the SAMPLE/PRELOAD or EXTEST instruc-
tions are active, the BSR is placed between the TDI
and TDO pins, with the TDI pin as the input and the
TDO pin as the output.
The size of the BSR depends on the number of I/O pins
on the device. For example, the 100-pin PIC32MX gen-
eral purpose parts have 82 I/O pins. With 3 BSC regis-
ters for each of the 82 I/Os, this yields a Boundary Scan
register length of 244 bits. This is due to the MCLR pin
being an input only BSR cell. Information on the I/O
port pin count of other PIC32MX3XX/4XX devices can
be found in their specific device data sheets.
28.2.4.6 JTAG Instructions
PIC32MX3XX/4XX devices support the mandatory
instruction set specified by IEEE 1149.1, as well as sev-
eral optional public instructions defined in the specifica-
tion. These devices also implement instructions that
are specific to Microchip devices.
The mandatory JTAG instructions are:
• BYPASS (0x1F): Used for bypassing a device in a
test chain; this allows the testing of off-chip
circuitry and board level interconnections.
• SAMPLE/PRELOAD (0x02): Captures the I/O
states of the component, providing a snapshot of
its operation.
• EXTEST (0x06): Allows the external circuitry and
interconnections to be tested, by either forcing
various test patterns on the output pins, or
capturing test results from the input pins.
Microchip has implemented optional JTAG instructions
and manufacturer-specific JTAG commands in
PIC32MX3XX/4XX devices. Please refer to Table 28-4,
Table 28-5, Table 28-6 and Table 28-7.
TABLE 28-4: JTAG COMMANDS
Opcode
Name
Device Integration
0x1F
0x00
0x01
0x02
0x06
Bypass
HIGHZ
ID Code
Sample/Preload
EXTEST
Bypasses device in test chain
Places device in a high-impedance state, all pins are forced to inputs
Shifts out the device’s ID code
Samples all pins or loads a specific value into output latch
Boundary scan
DS61143E-page 584
Preliminary
© 2008 Microchip Technology Inc.