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

X  

PIC24F04KA201 데이터시트(PDF) 9 Page - Microchip Technology

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

PIC24F04KA201 데이터시트(HTML) 9 Page - Microchip Technology

Back Button PIC24F04KA201 Datasheet HTML 5Page - Microchip Technology PIC24F04KA201 Datasheet HTML 6Page - Microchip Technology PIC24F04KA201 Datasheet HTML 7Page - Microchip Technology PIC24F04KA201 Datasheet HTML 8Page - Microchip Technology PIC24F04KA201 Datasheet HTML 9Page - Microchip Technology PIC24F04KA201 Datasheet HTML 10Page - Microchip Technology PIC24F04KA201 Datasheet HTML 11Page - Microchip Technology PIC24F04KA201 Datasheet HTML 12Page - Microchip Technology PIC24F04KA201 Datasheet HTML 13Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 26 page
background image
 2010 Microchip Technology Inc.
DS39991A-page 9
PIC24FXXKA2XX
3.5
Erasing Program Memory
To erase the program memory (all of code memory,
data memory and Configuration bits, including the
code-protect bits), set the NVMCON to 4064h and then
execute the programming cycle.
Figure 3-6 illustrates the ICSP programming process
for Bulk Erase. This process includes the ICSP
command code, which must be transmitted (for each
instruction), LSB first, using the PGCx and PGDx pins
(see Figure 3-2).
Table 3-4 provides the steps for executing serial
instruction for the Bulk Erase mode.
FIGURE 3-6:
BULK ERASE FLOW
TABLE 3-4:
SERIAL INSTRUCTION EXECUTION FOR CHIP ERASE
Note:
Program memory must be erased before
writing any data to program memory.
End
Set the WR bit to Initiate Erase
Write 4064h to NVMCON SFR
Delay P11 + P10 Time
Start
Command
(Binary)
Data
(Hex)
Description
Step 1: Exit the Reset vector.
0000
0000
0000
000000
040200
000000
NOP
GOTO
0x200
NOP
Step 2: Set the NVMCON to erase the entire program memory.
0000
0000
24064A
883B0A
MOV
#0x4064, W10
MOV
W10, NVMCON
Step 3: Set the TBLPAG and perform dummy table write to select the erased memory.
0000
0000
0000
0000
0000
0000
200000
880190
200000
BB0800
000000
000000
MOV
#<PAGEVAL>, W0
MOV
W0, TBLPAG
MOV
#0x0000, W0
TBLWTL W0, [W0]
NOP
NOP
Step 4: Initiate the erase cycle.
0000
0000
0000
A8E761
000000
000000
BSET
NVMCON, #WR
NOP
NOP
Step 5: Repeat this step to poll the WR bit (bit 15 of NVMCON) until it is cleared by the hardware.
0000
0000
0000
0000
0000
0000
0001
0000
000000
040200
000000
803B02
883C22
000000
<VISI>
000000
NOP
GOTO
0x200
NOP
MOV
NVMCON, W2
MOV
W2, VISI
NOP
Clock out the contents of the VISI register.
NOP



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


데이터시트 다운로드

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