Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16F15213 Datasheet(PDF) 113 Page - Microchip Technology

Part # PIC16F15213
Description  PIC16F15213/14/23/24/43/44 Full-Featured 8/14/20-Pin Microcontrollers
PDF  420 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F15213 Datasheet(HTML) 113 Page - Microchip Technology

Back Button PIC16F15213 Datasheet HTML 109Page - Microchip Technology PIC16F15213 Datasheet HTML 110Page - Microchip Technology PIC16F15213 Datasheet HTML 111Page - Microchip Technology PIC16F15213 Datasheet HTML 112Page - Microchip Technology PIC16F15213 Datasheet HTML 113Page - Microchip Technology PIC16F15213 Datasheet HTML 114Page - Microchip Technology PIC16F15213 Datasheet HTML 115Page - Microchip Technology PIC16F15213 Datasheet HTML 116Page - Microchip Technology PIC16F15213 Datasheet HTML 117Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 113 / 420 page
background image
Example 15-3. Erasing One Row of Program Flash Memory
; This sample row erase routine assumes the following:
; 1.A valid address within the erase row is loaded in variables ADDRH:ADDRL
; 2.ADDRH and ADDRL are located in common RAM (locations 0x70 - 0x7F)
BANKSEL
NVMADRL
MOVF
ADDRL,W
MOVWF
NVMADRL
; Load lower 8 bits of erase address boundary
MOVF
ADDRH,W
MOVWF
NVMADRH
; Load upper 6 bits of erase address boundary
BCF
NVMCON1,NVMREGS
; Choose PFM memory area
BSF
NVMCON1,FREE
; Specify an erase operation
BSF
NVMCON1,WREN
; Enable writes
BCF
INTCON,GIE
; Disable interrupts during unlock sequence
; ---------------------REQUIRED UNLOCK SEQUENCE:--------------------
MOVLW
0x55
; Load 0x55 to get ready for unlock sequence
MOVWF
NVMCON2
; First step is to load 0x55 into NVMCON2
MOVLW
0xAA
; Second step is to load 0xAA into W
MOVWF
NVMCON2
; Third step is to load 0xAA into NVMCON2
BSF
NVMCON1,WR
; Final step is to set WR bit
; ------------------------------------------------------------------
BSF
INTCON,GIE
; Re-enable interrupts, erase is complete
BCF
NVMCON1,WREN
; Disable writes
Table 15-1. NVM Organization and Access Information
Master Values
NVMREG Access
FSR Access
Memory
Function
Memory Type
Program
Counter
(PC), ICSP™
Address
NVMREGS bit
(NVMCON1)
NVMADR[14:0]
Allowed
Operations
FSR
Address
FSR Programming
Access
Reset Vector
Program Flash
Memory
0x0000
0
0x0000
Read/Write
0x8000
Read-Only
User Memory
0x0001
0
0x0001
0x8001
0x0003
0x0003
0x8003
INT Vector
0x0004
0
0x0004
0x8004
User Memory
0x0005
0
0x0005
0x8005
0x3FFF(1)
0x3FFF(1)
0xFFFF
User ID
Program Flash
Memory
0x8000
1
0x0000
Read/Write
No Access
0x8003
0x0003
Reserved
—
—
—
0x0004
—
Revision ID
Hard Coded in
Program Flash
Memory
0x8005
1
0x0005
Read
Device ID
0x8006
1
0x0006
CONFIG1
Program Flash
Memory
0x8007
1
0x0007
Read/Write
CONFIG2
0x8008
1
0x0008
CONFIG3
0x8009
1
0x0009
CONFIG4
0x800A
1
0x000A
CONFIG5
0x800B
1
0x000B
DIA and DCI
Hard Coded in
Program Flash
Memory
0x8100
1
0x0100
Read
0x82FF
1
0x02FF
Reserved
—
0xF000
—
0x7000
—
0x7000
—
0xF0FF
0x7FFF
0x7FFF
PIC16F15213/14/23/24/43/44
NVM - Nonvolatile Memory Control
© 2020 Microchip Technology Inc.
Preliminary Datasheet
DS40002195A-page 113



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


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