English
Language : 

PIC24FJ64GA004-IPT Datasheet, PDF (14/52 Pages) Microchip Technology – PIC24FJXXXGA0XX Flash Programming Specification
PIC24FJXXXGA0XX
3.2.2
REGOUT SERIAL INSTRUCTION
EXECUTION
The REGOUT control code allows for data to be
extracted from the device in ICSP mode. It is used to
clock the contents of the VISI register, out of the device,
over the PGDx pin. After the REGOUT control code is
received, the CPU is held Idle for 8 cycles. After these
8 cycles, an additional 16 cycles are required to clock the
data out (see Figure 3-3).
The REGOUT code is unique because the PGDx pin is
an input when the control code is transmitted to the
device. However, after the control code is processed,
the PGDx pin becomes an output as the VISI register is
shifted out.
Note 1: After the contents of VISI are shifted out,
the PIC24FJXXXGA0XX device
maintains PGDx as an output until the
first rising edge of the next clock is
received.
2: Data changes on the falling edge and
latches on the rising edge of PGCx. For
all data transmissions, the Least
Significant bit (LSb) is transmitted first.
FIGURE 3-3:
REGOUT SERIAL EXECUTION
PGCx
12 34
1 2 78
1 2 3 4 5 6 11 12 13 14 15 16
1 2 34
P4
P4A
P5
PGDx 1 0 0 0
LSb 1 2 3 4 ... 10 11 12 13 14 MSb
0000
Execute Previous Instruction, CPU Held in Idle
Fetch REGOUT Control Code
PGDx = Input
Shift Out VISI Register<15:0>
PGDx = Output
No Execution Takes Place,
Fetch Next Control Code
PGDx = Input
DS39768D-page 14
© 2008 Microchip Technology Inc.