Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

DSPIC33F Datasheet(PDF) 35 Page - Microchip Technology

Part # DSPIC33F
Description  Flash Programming Specification
PDF  80 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC33F Datasheet(HTML) 35 Page - Microchip Technology

Back Button DSPIC33F Datasheet HTML 31Page - Microchip Technology DSPIC33F Datasheet HTML 32Page - Microchip Technology DSPIC33F Datasheet HTML 33Page - Microchip Technology DSPIC33F Datasheet HTML 34Page - Microchip Technology DSPIC33F Datasheet HTML 35Page - Microchip Technology DSPIC33F Datasheet HTML 36Page - Microchip Technology DSPIC33F Datasheet HTML 37Page - Microchip Technology DSPIC33F Datasheet HTML 38Page - Microchip Technology DSPIC33F Datasheet HTML 39Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 80 page
background image
© 2007 Microchip Technology Inc.
Preliminary
DS70152D-page 35
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
FIGURE 3-3:
ENTERING ENHANCED ICSP™ MODE
3.4
Blank Check
The term “Blank 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 ‘1’.
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 ‘BLANK’ or ‘NOT BLANK’
response is returned. If it is determined that the device
is not blank, it must be erased before attempting to
program the chip.
3.5
Code Memory Programming
3.5.1
PROGRAMMING METHODOLOGY
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 ‘RemainingC-
mds’ in the flowchart) is set to 1368 and the destination
address (called ‘BaseAddress’) is set to ‘0’. 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,
‘RemainingCmds’ is decremented by ‘1’ and compared
with ‘0’. Since there are more PROGP commands to
send, ‘BaseAddress’ 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..
MCLR
PGD
PGC
VDD
P6
P14
b31
b30
b29
b28
b27
b2
b1
b0
b3
...
Program/Verify Entry Code = 0x4D434850
P1A
P1B
P18
P19
0
1
001
000
0
P7
VIH
VIH
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.



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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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