| Electronic Components Datasheet Search |
|
PIC16F15213 Datasheet(PDF) 110 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213 Datasheet(HTML) 110 Page - Microchip Technology |
|
110 / 420 page ![]() • Write 55h to NVMCON2 • Write AAh to NMVCON2 • Set the WR bit Once the WR bit is set, the processor will stall internal operations until the operation is complete and then resume with the next instruction. Since the unlock sequence must not be interrupted, global interrupts should be disabled prior to the unlock sequence and re-enabled after the unlock sequence is completed. Figure 15-2. NVM Unlock Sequence Filename: 10-000047B.vsd Title: FLASH PROGRAM MEMORY UNLOCK SEQUENCE FLOWCHART Last Edit: 8/24/2015 First Used: PIC15F1508/9 Note: Start Unlock Sequence End Unlock Sequence Write 0x55 to NVMCON2 Write 0xAA to NVMCON2 Initiate Write or Erase operation (WR = 1) Rev. 10-000047B 8/24/2015 Example 15-2. NVM Unlock Sequence BCF INTCON,GIE ; Recommended so sequence is not interrupted BANKSEL NVMCON1 ; Bank to NVMCON1 register BSF NVMCON1,WREN ; Enable write/erase MOVLW 55h ; Load 55h MOVWF NVMCON2 ; Step 1: Load 55h into NVMCON2 MOVLW AAh ; Step 2: Load W with AAh MOVWF NVMCON2 ; Step 3: Load AAh into NVMCON2 BSF NVMCON1,WR ; Step 4: Set WR bit to begin write/erase BSF INTCON,GIE ; Re-enable interrupts Note: 1. Sequence begins when NVMCON2 is written; the following four steps must occur in the cycle-accurate order shown. If the timing of the four steps is corrupted by an interrupt or a debugger Halt, the action will not take place. 2. Opcodes shown are illustrative; any instruction that has the indicated effect may be used. 15.3.3 NVMREG Erase of Program Memory Before writing to program memory, the word(s) to be written must be erased or previously unwritten. Program memory can only be erased one row at a time. No automatic erase occurs upon the initiation of the write to program memory. To erase a program memory row: PIC16F15213/14/23/24/43/44 NVM - Nonvolatile Memory Control © 2020 Microchip Technology Inc. Preliminary Datasheet DS40002195A-page 110 |
|
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 |
| 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 |