| Electronic Components Datasheet Search |
|
PIC16F15213 Datasheet(PDF) 109 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213 Datasheet(HTML) 109 Page - Microchip Technology |
|
109 / 439 page ![]() 15.1.1.2 FSR Write Writing/erasing the NVM through the FSR registers (e.g., the MOVWI instruction) is not supported in the PIC16F152 microcontroller family. 15.1.2 NVMREG Access The NVMREG interface allows read/write access to all the locations accessible by FSRs, read/write access to the User ID locations, and read-only access to the device identification, revision, and configuration data. Writing or erasing of NVM via the NVMREG interface is prevented when the device is write-protected. 15.1.2.1 NVMREG Read Operation To read a NVM location using the NVMREG interface, the user must: 1. Clear the NVMREGS bit if the user intends to access program memory locations, or set NMVREGS if the user intends to access User ID or configuration locations. 2. Write the desired address into the NVMADRH:NVMADRL register pair. 3. Set the RD bit to initiate the read. Once the read control bit is set, the CPU operation is suspended during the read and resumes immediately after. The data is available in the very next cycle, in the NVMDATH:NVMDATL register pair; therefore, it can be read as two bytes in the following instructions. The NVMDATH:NVMDATL register pair will hold this value until another read or until it is written to by the user. Upon completion, the RD bit is cleared by hardware. Figure 15-1. Program Flash Memory Read Sequence Filename: 10-000046D.vsd Title: FLASH PROGRAM MEMORY READ FLOWCHART Last Edit: 8/15/2016 First Used: PIC16(L)F15354/55 Note: Start Read Operation Select Memory: P rogram Memory, DIA, DCI, Config Words, User ID (NVMREGS) Select Word Address (NVMADRH:NVMADRL) Data read now in NVMDATH:NVMDATL End Read Operation Rev. 10-000046 E 5/17/2017 Example 15-1. Program Memory Read // This code block will read 1 word of program memory NVMCON1bits.NVMREGS = 0; // Point to PFM NVMADR = PFM_ADDRESS; // Load NVMADRH:NVMADRL with PFM address NVMCON1bits.RD = 1; // Initiate read cycle PFM_DATA_LOW = NVMDATL; // PFM data low byte PFM_DATA_HIGH = NVMDATH; // PFM data high byte PIC16F15213/14/23/24/43/44 NVM - Nonvolatile Memory Control © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 109 |
|
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 |