dsPIC33FJ128MC706 Datasheet

  • dsPIC33FJ128MC706

  • High-Performance,16-Bit Digital Signal Controllers

  • 2439.47KB

  • 340页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
FIGURE 3-3:
ENTERING ENHANCED ICSP鈩?MODE
P6
P14
MCLR
V
IH
V
IH
P19
P7
V
DD
PGD
PGC
P18
0
b31
Program/Verify Entry Code = 0x4D434850
1
b30
0
b29
0
b28
1
b27
...
0
b3
0
b2
0
b1
0
b0
P1A
P1B
3.4
Blank Check
3.5
3.5.1
Code Memory Programming
PROGRAMMING METHODOLOGY
The term 鈥淏lank Check鈥?implies verifying that the
device has been successfully erased and has no
programmed memory locations. A blank or erased
memory location is always read as a 鈥?鈥?
The Device ID registers (0xFF0000:0xFF0002) can be
ignored by the Blank Check since this region stores
device information that cannot be erased. The device
Configuration registers are also ignored by the Blank
Check. Additionally, all unimplemented memory space
should be ignored from the Blank Check.
The
QBLANK
command is used for the Blank Check. It
determines if the code memory is erased by testing
these memory regions. A 鈥楤LANK鈥?or 鈥楴OT BLANK鈥?/div>
response is returned. If it is determined that the device
is not blank, it must be erased before attempting to
program the chip.
Code memory is programmed with the
PROGP
command.
PROGP
programs one row of code memory
starting from the memory address specified in the
command. The number of
PROGP
commands required
to program a device depends on the number of write
blocks that must be programmed in the device.
A flowchart for programming code memory is shown in
Figure 3-4. In this example, all 88K instruction words of
a dsPIC33F/PIC24H device are programmed. First, the
number of commands to send (called 鈥楻emainingC-
mds鈥?in the flowchart) is set to 1368 and the destination
address (called 鈥楤aseAddress鈥? is set to 鈥?鈥? Next, one
write block in the device is programmed with a
PROGP
command. Each
PROGP
command contains data for
one row of code memory of the dsPIC33F/PIC24H.
After the first command is processed successfully,
鈥楻emainingCmds鈥?is decremented by 鈥?鈥?and compared
with 鈥?鈥? Since there are more
PROGP
commands to
send, 鈥楤aseAddress鈥?is incremented by 0x80 to point to
the next row of memory.
On the second
PROGP
command, the second row is
programmed. This process is repeated until the entire
device is programmed..
Note:
If a bootloader needs to be programmed,
the bootloader code must not be pro-
grammed into the first page of code mem-
ory. For example, if a bootloader located at
address 0x200 attempts to erase the first
page, it would inadvertently erase itself.
Instead, program the bootloader into the
second page, e.g. 0x400.
2007 Microchip Technology Inc.
Preliminary
DS70152D-page 35

dsPIC33FJ128MC706相关型号PDF文件下载

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!