Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F18323-E/RFQTP Datasheet(PDF) 113 Page - Microchip Technology

Part # PIC16F18323-E/RFQTP
Description  Full-Featured, Low Pin Count Microcontrollers with XLP
PDF  442 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F18323-E/RFQTP Datasheet(HTML) 113 Page - Microchip Technology

Back Button PIC16F18323-E/RFQTP Datasheet HTML 109Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 110Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 111Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 112Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 113Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 114Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 115Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 116Page - Microchip Technology PIC16F18323-E/RFQTP Datasheet HTML 117Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 113 / 442 page
background image
 2015 Microchip Technology Inc.
Preliminary
DS40001799A-page 113
PIC16(L)F18313/18323
10.4.3
NVMREG WRITE TO EEPROM
Writing to the EEPROM is accomplished by the
following steps:
1.
Set the NVMREGS and WREN bits of the
NVMCON1 register.
2.
Write the desired address (address + 7000h)
into the NVMADRH:NVMADRL register pair
(Table 10-2).
3.
Perform the unlock sequence as described in
Section 10.4.2 “NVM Unlock Sequence”
.
A single EEPROM word is written with NVMDATA. The
operation includes an implicit erase cycle for that word
(it is not necessary to set the FREE bit), and requires
many instruction cycles to finish. CPU execution
continues in parallel and, when complete, WR is
cleared by hardware, NVMIF is set, and an interrupt will
occur if NVMIE is also set. Software must poll the WR
bit to determine when writing is complete, or wait for the
interrupt to occur. WREN will remain unchanged.
Once the EEPROM write operation begins, clearing the
WR bit will have no effect; the operation will continue to
run to completion.
10.4.4
NVMREG ERASE OF PROGRAM
FLASH MEMORY
Before writing to Program Flash Memory, the word(s) to
be written must be erased or previously unwritten. Pro-
gram Flash Memory can only be erased one row at a
time. No automatic erase occurs upon the initiation of
the write to Program Flash Memory.
To erase a Program Flash Memory row:
1.
Clear the NVMREGS bit of the NVMCON1
register to erase Program Flash Memory
locations, or set the NMVREGS bit to erase
User ID locations.
2.
Write
the
desired
address
into
the
NVMADRH:NVMADRL
register
pair
(Table 10-2).
3.
Set the FREE and WREN bits of the NVMCON1
register.
4.
Perform the unlock sequence as described in
Section 10.4.2 “NVM Unlock Sequence”
.
If
the
Program
Flash
Memory
address
is
write-protected, the WR bit will be cleared and the
erase operation will not take place.
While erasing Program Flash Memory, CPU operation
is suspended, and resumes when the operation is
complete. Upon completion, the NVMIF is set, and an
interrupt will occur if the NVMIE bit is also set.
Write latch data is not affected by erase operations,
and WREN will remain unchanged.
FIGURE 10-3:
NVM ERASE
FLOWCHART
Start Erase Operation
Select Memory:
PFM,Config Words, User ID
(NVMREGS)
Select Word Address
(NVMADRH:NVMADRL)
Select Erase Operation
(FREE = 1)
Enable Write/Erase Operation
(WREN = 1)
End Erase Operation
Disable Interrupts
(GIE = 0)
Unlock Sequence
CPU stalls while Erase operation
completes (2ms typical)
Enable Interrupts
(GIE = 1)
Disable Write/Erase Operation
(WREN = 0)
Figure 10-2



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