| Electronic Components Datasheet Search |
|
PIC24F04KA201 Datasheet(PDF) 26 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24F04KA201 Datasheet(HTML) 26 Page - Microchip Technology |
|
26 / 48 page ![]() PIC24FXXKAXXX DS39919A-page 26 Advance Information © 2008 Microchip Technology Inc. 4.5.2 PROGRAMMING VERIFICATION After the code memory is programmed, the contents of the memory can be verified to ensure that the programming is successful. Verification requires the code memory to be read back and compared with the copy held in the programmer‘s buffer. The READP command can be used to read back all of the programmed code memory. Alternatively, you can have the programmer perform the verification after the entire device is programmed using a checksum computation. FIGURE 4-5: FLOWCHART FOR PROGRAMMING CODE MEMORY 4.6 Data EEPROM Programming 4.6.1 PROGRAMMING METHODOLOGY The programming executive uses the PROGD command to program the data EEPROM. Figure 4.7 illustrates this process. • First, the number of words to program (RemainingWords) is based on the device size and the destination address (DestAddress) is set to 0. In this example, 256 words of data EEPROM will be programmed. • The first PROGD command programs the first word of data EEPROM. • Once the command completes successfully, ‘RemainingWords’ is decremented by 1 and compared with 0. • Since there are 255 more words to program, ‘BaseAddress’ is incremented by 02h to point to the next word of data EEPROM. • This process is then repeated until all 256 words of data EEPROM are programmed. 4.6.2 PROGRAMMING VERIFICATION Once the data EEPROM is programmed, the contents of the memory can be verified to ensure if the programming was successful. Verification requires the data EEPROM to be read back and compared with the copy held in the programmer‘s buffer. The READD command reads back the programmed data EEPROM. Alternatively, the programmer can perform the verification once the entire device is programmed using a checksum computation, as described in Section 6.1.1 “Checksum Computation”. Is PROGP response PASS? Are RemainingCmds ‘0‘? BaseAddress = 00h RemainingCmds = 176 RemainingCmds = RemainingCmds – 1 BaseAddress = BaseAddress + 40h No No Yes Yes Start Failure Report Error Send PROGP Command to Program BaseAddress End |
|
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 |