| Electronic Components Datasheet Search |
|
PIC24F04KA201 Datasheet(PDF) 15 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24F04KA201 Datasheet(HTML) 15 Page - Microchip Technology |
|
15 / 48 page ![]() PIC24FXXKAXXX © 2008 Microchip Technology Inc. Advance Information DS39919A-page 15 TABLE 3-6: INSTRUCTION EXECUTION FOR WRITING DATA EEPROM Command (Binary) Data (Hex) Description Step 1: Exit the Reset vector. 0000 0000 0000 000000 040200 000000 NOP GOTO 0x200 NOP Step 2: Set the NVMCON to program 1 data word. 0000 0000 24004A 883B0A MOV #0x4004, W10 MOV W10, NVMCON Step 3: Initialize the Write Pointer (W7) for TBLWT instruction. 0000 0000 0000 2007F0 880190 2FExx7 MOV #0x7F, W0 MOV W0, TBLPAG MOV #<DestinationAddress15:0>, W7 Step 4: Load W0 with the data word to program and load the write latch. 0000 0000 0000 0000 2xxxx0 BB1B80 000000 000000 MOV #<Data_Word_Value>, W0 TBLWTL W0, [W7++] NOP NOP Step 5: Initiate the write cycle. 0000 0000 0000 A8E761 000000 000000 BSET NVMCON, #WR NOP NOP Step 6: Repeat this step to poll the WR bit (bit 15 of NVMCON) until it is cleared by the hardware. 0000 0000 0000 0000 0000 00001 0000 040200 000000 803B02 883C22 000000 <VISI> 000000 GOTO 0x200 NOP MOV NVMCON, W2 MOV W2, VISI NOP Clock out contents of the VISI register. NOP Step 7: Reset device internal PC. 0000 0000 040200 000000 GOTO 0x200 NOP Step 8: Repeat Steps 4 through 7 until the entire data EEPROM memory is programmed. |
|
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 |