전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

DSPIC33F 데이터시트(PDF) 58 Page - Microchip Technology

부품명 DSPIC33F
상세설명  Flash Programming Specification
PDF  80 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC33F 데이터시트(HTML) 58 Page - Microchip Technology

Back Button DSPIC33F Datasheet HTML 54Page - Microchip Technology DSPIC33F Datasheet HTML 55Page - Microchip Technology DSPIC33F Datasheet HTML 56Page - Microchip Technology DSPIC33F Datasheet HTML 57Page - Microchip Technology DSPIC33F Datasheet HTML 58Page - Microchip Technology DSPIC33F Datasheet HTML 59Page - Microchip Technology DSPIC33F Datasheet HTML 60Page - Microchip Technology DSPIC33F Datasheet HTML 61Page - Microchip Technology DSPIC33F Datasheet HTML 62Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 58 / 80 page
background image
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
DS70152D-page 58
Preliminary
© 2007 Microchip Technology Inc.
TABLE 5-3:
NVMCON WRITE
OPERATIONS
5.4.2
STARTING AND STOPPING A
PROGRAMMING CYCLE
The WR bit (NVMCON<15>) is used to start an erase or
write cycle. Setting the WR bit initiates the programming
cycle.
All erase and write cycles are self-timed. The WR bit
should be polled to determine if the erase or write cycle
has been completed. Starting a programming cycle is
performed as follows:
BSET
NVMCON, #WR
5.5
Erasing Program Memory
The procedure for erasing program memory (all of code
memory, data memory, executive memory and code-
protect bits) consists of setting NVMCON to 0x404F
and then executing the programming cycle. For seg-
ment erase operations, the NVMCON value should be
modified suitably, according to Table 5-2.
Figure 5-5 shows the ICSP programming process for
Bulk Erasing program memory. This process includes
the ICSP command code, which must be transmitted
(for each instruction) Least Significant bit first, using the
PGC and PGD pins (see Figure 5-2).
FIGURE 5-5:
BULK ERASE FLOW
If a Segment Erase operation is required, Step 3 must
be modified with the appropriate NVMCON value as
per Table 5-2.
The ability to individually erase various segments is a
critical component of the CodeGuard™ Security fea-
tures on dsPIC33F/PIC24H devices. An individual
code segment may be erased without affecting other
segments. In addition, the Configuration register corre-
sponding to the erased code segment also gets
erased. For example, the user might want to erase the
code in the General Segment without erasing a Boot
Loader located in Boot Segment.
The Secure Segment Erase command is used to erase
the Secure Segment and the FSS Configuration regis-
ter. The General Segment Erase command is used to
erase the General Segment and the FGS Configuration
register. This command is only effective if a Boot
Segment or Secure Segment has been enabled.
Before performing any segment erase operation, the
programmer must first determine if the dsPIC33F/
PIC24H device has defined a Boot Segment or Secure
Segment, and ensure that a segment does not get
overwritten by operations on any other segment. Also,
a Bulk Erase should not be performed if a Boot
Segment or Secure Segment has been defined.
The BSS bit field in the FBS configuration register can
be read to determine whether a Boot Segment has
been defined. If a Boot Segment has already been
defined (and probably already been programmed), the
user must be warned about this fact. Similarly, the SSS
bit field in the FSS configuration register can be read to
determine whether a Secure Segment has been
defined. If a Secure Segment has already been defined
(and probably already been programmed), the user
must be warned about this fact.
A Bulk Erase operation is the recommended mecha-
nism to allow a user to overwrite the Boot Segment (if
one chooses to do so).
In general, the segments and CodeGuard Security-
related configuration registers should be programmed
in the following order:
• FBS and Boot Segment
• FSS and Secure Segment
• FGS and General Segment
NVMCON
Value
Write Operation
0x4001
Program 1 row (64 instruction words)
of code memory or executive memory.
0x4000
Write a Configuration register byte.
0x4003
Program a code memory word.
Note:
Program memory must be erased before
writing any data to program memory.
Start
Done
Set the WR bit to Initiate Erase
Write 0x404F to NVMCON SFR
Delay P11 + P10 Time
Note 1: The Boot Segment and FBS Configura-
tion register can only be erased using a
Bulk Erase.
2: A Secure Segment Erase operation also
erases the General Segment and FGS
Configuration register. This is true even if
Secure Segment is present on a device
but not enabled.



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


데이터시트 다운로드

Go To PDF Page


링크 URL



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