| 전자부품 데이터시트 검색엔진 |
|
PIC24F16KA102 데이터시트(PDF) 26 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24F16KA102 데이터시트(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 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |