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

X  

PIC18F2X 데이터시트(PDF) 100 Page - Microchip Technology

부품명 PIC18F2X
상세설명  28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
Download  496 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F2X 데이터시트(HTML) 100 Page - Microchip Technology

Back Button PIC18F2X Datasheet HTML 96Page - Microchip Technology PIC18F2X Datasheet HTML 97Page - Microchip Technology PIC18F2X Datasheet HTML 98Page - Microchip Technology PIC18F2X Datasheet HTML 99Page - Microchip Technology PIC18F2X Datasheet HTML 100Page - Microchip Technology PIC18F2X Datasheet HTML 101Page - Microchip Technology PIC18F2X Datasheet HTML 102Page - Microchip Technology PIC18F2X Datasheet HTML 103Page - Microchip Technology PIC18F2X Datasheet HTML 104Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 100 / 496 page
background image
PIC18(L)F2X/4XK22
DS41412C-page 100
Preliminary
 2010 Microchip Technology Inc.
6.4
Erasing Flash Program Memory
The minimum erase block is 32 words or 64 bytes. Only
through the use of an external programmer, or through
ICSP™ control, can larger blocks of program memory
be bulk erased. Word erase in the Flash array is not
supported.
When initiating an erase sequence from the
microcontroller itself, a block of 64 bytes of program
memory is erased. The Most Significant 16 bits of the
TBLPTR<21:6> point to the block being erased. The
TBLPTR<5:0> bits are ignored.
The EECON1 register commands the erase operation.
The EEPGD bit must be set to point to the Flash
program memory. The WREN bit must be set to enable
write operations. The FREE bit is set to select an erase
operation.
The write initiate sequence for EECON2, shown as
steps 4 through 6 in Section 6.4.1 “Flash Program
Memory Erase Sequence”, is used to guard against
accidental writes. This is sometimes referred to as a
long write.
A long write is necessary for erasing the internal Flash.
Instruction execution is halted during the long write
cycle. The long write is terminated by the internal
programming timer.
6.4.1
FLASH PROGRAM MEMORY
ERASE SEQUENCE
The sequence of events for erasing a block of internal
program memory is:
1.
Load Table Pointer register with address of
block being erased.
2.
Set the EECON1 register for the erase operation:
• set EEPGD bit to point to program memory;
• clear the CFGS bit to access program memory;
• set WREN bit to enable writes;
• set FREE bit to enable the erase.
3.
Disable interrupts.
4.
Write 55h to EECON2.
5.
Write 0AAh to EECON2.
6.
Set the WR bit. This will begin the block erase
cycle.
7.
The CPU will stall for duration of the erase
(about 2 ms using internal timer).
8.
Re-enable interrupts.
EXAMPLE 6-2:
ERASING A FLASH PROGRAM MEMORY BLOCK
MOVLW
CODE_ADDR_UPPER
; load TBLPTR with the base
MOVWF
TBLPTRU
; address of the memory block
MOVLW
CODE_ADDR_HIGH
MOVWF
TBLPTRH
MOVLW
CODE_ADDR_LOW
MOVWF
TBLPTRL
ERASE_BLOCK
BSF
EECON1, EEPGD
; point to Flash program memory
BCF
EECON1, CFGS
; access Flash program memory
BSF
EECON1, WREN
; enable write to memory
BSF
EECON1, FREE
; enable block Erase operation
BCF
INTCON, GIE
; disable interrupts
Required
MOVLW
55h
Sequence
MOVWF
EECON2
; write 55h
MOVLW
0AAh
MOVWF
EECON2
; write 0AAh
BSF
EECON1, WR
; start erase (CPU stall)
BSF
INTCON, GIE
; re-enable interrupts


유사한 부품 번호 - PIC18F2X

제조업체부품명데이터시트상세설명
logo
Microchip Technology
PIC18F2X1X MICROCHIP-PIC18F2X1X Datasheet
6Mb / 380P
   28/40/44-PIN FLASH MICROCONTROLLERS WITH 10-BIT A/D AND NANO WATT TECHNOLOGY
2004
PIC18F2X1X MICROCHIP-PIC18F2X1X Datasheet
6Mb / 376P
   28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2009
PIC18F2X1X MICROCHIP-PIC18F2X1X_07 Datasheet
6Mb / 378P
   28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2007
PIC18F2X1X MICROCHIP-PIC18F2X1X_09 Datasheet
6Mb / 376P
   28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2009
PIC18F2XK20 MICROCHIP-PIC18F2XK20 Datasheet
544Kb / 42P
   Flash Memory Programming Specification
03/26/09 2009
More results

유사한 설명 - PIC18F2X

제조업체부품명데이터시트상세설명
logo
Microchip Technology
PIC18F23K22 MICROCHIP-PIC18F23K22 Datasheet
5Mb / 492P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC16F1824 MICROCHIP-PIC16F1824_11 Datasheet
3Mb / 419P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18F46J11 MICROCHIP-PIC18F46J11 Datasheet
8Mb / 528P
   28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2009
PIC18F47J13 MICROCHIP-PIC18F47J13 Datasheet
4Mb / 558P
   28/44-Pin, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18F46J50-IPT MICROCHIP-PIC18F46J50-IPT Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
02/18/11
PIC18F47J53 MICROCHIP-PIC18F47J53 Datasheet
6Mb / 586P
   28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
2010
PIC12F1516 MICROCHIP-PIC12F1516 Datasheet
2Mb / 344P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2011
PIC16F72X MICROCHIP-PIC16F72X Datasheet
4Mb / 302P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2009
PIC16F1516 MICROCHIP-PIC16F1516 Datasheet
2Mb / 344P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2010
PIC16F722 MICROCHIP-PIC16F722 Datasheet
4Mb / 302P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
03/26/09
More results


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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

Go To PDF Page


링크 URL




개인정보취급방침
ALLDATASHEET.CO.KR
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