Add pic16F18855 in PicKit2DeviceFile
Hi everybody,
I have to add pic16F18855 to PK2DeviceFile.dat for pickit2.
This is one of the Script, but not works. Please help.
Name MR_Rd_ID (MR_CfgWrScript) - load configuration
Script 310
Device PIC16F18855
ScriptIndex Commands and operands Coments
0 0xAAEE WRITE_BITS_LITERALS
1 0xBB08 N = 8 Command = 80 (Load address)
2 0xBB80 LITERAL = 80 PC = 0x8000
3 0xAAF1 WRITE_BYTE_BUFFER
4 0xAAF1 WRITE_BYTE_BUFFER
5 0xAAEE WRITE_BITS_LITERALS
6 0xBB08 N = 8 Command = F8 (INCREMENT ADDRESS)
7 0xBBF8 LITERAL = F8 PC = 0x8001
8 0xAAE9 LOOP
9 0xBB03 IndexOffset =3 Back 3 bytes, just to Script_Index = 5
10 0xBB06 LoopIteration = 6 during 6 iterations (PC = 0x8007 at the end of iterations)
11 0xAAEE WRITE_BITS_LITERALS
12 0xBB08 N = 8 Command = E0 (BEGIN PROGRAMMING)
13 0xBBE0 LITERAL = E0 PC = 0x8007
14 0xAAE7 DELAY_SHORT 21.3us x 255 = 5.4ms
15 0x00FF LENGTH_OF_DELAY = 0xFF (255)
16 0xAAEE WRITE_BITS_LITERALS
17 0xBB08 N = 8 Command = 00 (LOAD DATA FOR NVM, PC = 8007)
18 0xBB00 LITERAL = 00h
19 0xAAF1 WRITE_BYTE_BUFFER Config1
20 0xAAF1 WRITE_BYTE_BUFFER Config1
21 0xAAEE WRITE_BITS_LITERALS
22 0xBB08 N = 8 Command = E0 (BEGIN PROGRAMMING)
23 0xBBE0 LITERAL = E0
24 0xAAE7 DELAY_SHORT 21.3us x 255 = 5.4ms
25 0x00FF LENGTH_OF_DELAY = 0xFF (255)
26 0xAAEE WRITE_BITS_LITERALS
27 0xBB08 N = 8 Command = F8 (INCREMENT ADDRESS)
28 0xBBF8 LITERAL = F8h PC = PC + 1
29 0xAAE9 LOOP
30 0xBB1D IndexOffset = 13 Back, just to Script_Index = 16
31 0xBB06 LoopIteration = 4 (PC = 0x800B at the end of iteration)