| 전자부품 데이터시트 검색엔진 |
|
PIC24F16KA102 데이터시트(PDF) 33 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24F16KA102 데이터시트(HTML) 33 Page - Microchip Technology |
|
33 / 48 page ![]() PIC24FXXKAXXX © 2008 Microchip Technology Inc. Advance Information DS39919A-page 33 5.1.3 TIME-OUTS The programming executive does not use the Watch- dog Timer or time-out for transmitting responses to the programmer. If the programmer does not follow the flow control mechanism using PGCx, as described in Section 5.1.1 “Communication Interface and Proto- col”, it is possible that the programming executive will behave unexpectedly while trying to send a response to the programmer. Since the programming executive does not have a time-out, it is imperative that the pro- grammer correctly follow the described communication protocol. As a safety measure, the programmer should use the command time-outs identified and listed in Table 5-1. If the command time-out expires, the programmer should reset the programming executive and start programming the device again. FIGURE 5-3: PROGRAMMING EXECUTIVE – PROGRAMMER COMMUNICATION PROTOCOL 5.2 Programming Executive Commands The programming executive command set is listed in Table 5-1. This table contains the opcode, mnemonic, length, time-out and description for each command. Section 5.2.4 “Command Descriptions” provides functional details on each command. 5.2.1 COMMAND FORMAT The programming executive commands have a general format consisting of a 16-bit header and any required data for the command (see Figure 5-4). The 16-bit header consists of a 4-bit opcode field, which is used to identify the command, followed by a 12-bit command length field. FIGURE 5-4: COMMAND FORMAT The command opcode must match one of those in the command set. Any command that is received that does not match the list in Table 5-1 returns a “NACK” response (see Section 5.3.1.1 “Opcode Field”). The command length is represented in 16-bit words as the SPI operates in 16-bit mode. The programming executive uses the command length field to determine the number of words to read from the SPI port. If the value of this field is incorrect, the command will not be properly received by the programming executive. 1 2 15 16 12 15 16 PGCx PGDx PGCx = Input PGCx = Input (Idle) Host Transmits Last Command Word PGDx = Input PGDx = Output P8 1 2 15 16 MSB X X X LSB MSB X X X LSB MSB X X X LSB 1 0 P20 PGCx = Input PGDx = Output P9 Programming Executive Processes Command Host Clocks Out Response P21 15 12 11 0 Opcode Length Command Data First Word (if required) • • Command Data Last Word (if required) |
|
링크 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 |