数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PIC24FJ64GA 数据表(PDF) 13 Page - Microchip Technology

部件名 PIC24FJ64GA
功能描述  PIC24FJXXXGA0XX Flash Programming Specification
PDF  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  MICROCHIP [Microchip Technology]
网页  http://www.microchip.com
标志 MICROCHIP - Microchip Technology

PIC24FJ64GA 数据表(HTML) 13 Page - Microchip Technology

Back Button PIC24FJ64GA Datasheet HTML 9Page - Microchip Technology PIC24FJ64GA Datasheet HTML 10Page - Microchip Technology PIC24FJ64GA Datasheet HTML 11Page - Microchip Technology PIC24FJ64GA Datasheet HTML 12Page - Microchip Technology PIC24FJ64GA Datasheet HTML 13Page - Microchip Technology PIC24FJ64GA Datasheet HTML 14Page - Microchip Technology PIC24FJ64GA Datasheet HTML 15Page - Microchip Technology PIC24FJ64GA Datasheet HTML 16Page - Microchip Technology PIC24FJ64GA Datasheet HTML 17Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 52 page
background image
© 2008 Microchip Technology Inc.
DS39768D-page 13
PIC24FJXXXGA0XX
3.2.1
SIX SERIAL INSTRUCTION
EXECUTION
The SIX
control
code allows
execution of
the
PIC24FJXXXGA0XX
family
assembly
instructions.
When the SIX code is received, the CPU is suspended
for 24 clock cycles, as the instruction is then clocked into
the internal buffer. Once the instruction is shifted in, the
state machine allows it to be executed over the next four
PGC clock cycles. While the received instruction is
executed, the state machine simultaneously shifts in the
next 4-bit command (see Figure 3-2).
Coming out of Reset, the first 4-bit control code is
always forced to SIX and a forced NOP instruction is
executed by the CPU. Five additional PGCx clocks are
needed on start-up, resulting in a 9-bit SIX command
instead of the normal 4-bit SIX command.
After the forced SIX is clocked in, ICSP operation
resumes as normal. That is, the next 24 clock cycles
load the first instruction word to the CPU.
FIGURE 3-2:
SIX SERIAL EXECUTION
3.2.1.1
Differences Between Execution of
SIX and Normal Instructions
There are some differences between executing instruc-
tions normally and using the SIX ICSP command. As a
result, the code examples in this specification may not
match those for performing the same functions during
normal device operation.
The important differences are:
• Two-word instructions require two SIX operations
to clock in all the necessary data.
Examples of two-word instructions are GOTO and
CALL
.
• Two-cycle instructions require two SIX operations.
The first SIX operation shifts in the instruction and
begins to execute it. A second SIX operation – which
should shift in a NOP to avoid losing data – provides
the CPU clocks required to finish executing the
instruction.
Examples of two-cycle instructions are table read
and table write instructions.
• The CPU does not automatically stall to account
for pipeline changes.
A CPU stall occurs when an instruction modifies a
register that is used for Indirect Addressing by the
following instruction.
During normal operation, the CPU automatically
will force a NOP while the new data is read. When
using ICSP, there is no automatic stall, so any
indirect
references
to
a
recently
modified
register should be preceded by a NOP.
For example, the instructions, mov #0x0,W0 and
mov [W0],W1
,
must
have
a
NOP
inserted
between them.
If a two-cycle instruction modifies a register that is
used indirectly, it will require two following NOPs: one
to execute the second half of the instruction and a
second to stall the CPU to correct the pipeline.
Instructions
such
as
tblwtl [W0++],[W1]
should be followed by two NOPs.
• The device Program Counter (PC) continues to
automatically increment during ICSP instruction
execution, even though the Flash memory is not
being used.
As a result, the PC may be incremented to point to
invalid memory locations. Invalid memory spaces
include unimplemented Flash addresses and the
vector space (locations 0x0 to 0x1FF).
If the PC points to these locations, the device will
reset, possibly interrupting the ICSP operation. To
prevent this, instructions should be periodically
executed to reset the PC to a safe space. The
optimal method to accomplish this is to perform a
GOTO 0x200
.
Note:
To account for this forced NOP, all example
code in this specification begin with a NOP
to ensure that no data is lost.
P4
23
1
2
3
23
24
1
2
3
4
P1
PGCx
P4A
PGDx
24-Bit Instruction Fetch
Execute PC – 1,
16
00
0
0
Fetch SIX
45
6
7
8
18
19
20
21
22
17
LSB X
X
X
X
X
X
X
X
X
X
X
X
X
X MSB
PGDx = Input
P2
P3
P1B
P1A
78
9
00
0
0
00
0
Only for
Program
Memory Entry
Control Code
4
5
Execute 24-Bit
Instruction, Fetch
Next Control Code
00



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com