On Mon, Feb 20, 2012 at 2:44 PM, news group wrote: > Hi, > I fail to program only the configuration memory using my code (after > successfully erasing program&data memory). > AT microchip DS41196G when programing the configuration memory the > specification specifies > to start with "load configuration data" . > The command is build of 6bits ( XX0000 ) and data (0,data[14],0 ). > Assuming i like to programme only address 0x2007 ( CFG) : > 1 - Should i =A0send 7 times "increment address command" and then: > A) =A0should i send "begin programming only cycle" and the data that was > loaded in "load configure data" command will > =A0 =A0 be written into 0x2007 > B) =A0should i send again "load configuration data" command and then > send ""begin programming only cycle" ? > C)- what else should be done ? :-) > > 2 - i fail to understand how "Program Cycle (Config.Word)" is build , > the document specifies "Program cycle" of > Program data memory and of "programming range of program memory " no > information about configuration memory > program cycle > I am no longer interested in knowing about the PIC programming specifications. But one thing you can get help is to understand the PICKit 2 FW/SW source codes and you should be able to gain a lot of insights. If would help a lot as well if you dump the device file. Download: http://www.microchip.com/pickit2 Device File: http://ww1.microchip.com/downloads/en/DeviceDoc/PK2DFUpdate-1-= 62-14.zip FW/SW source codes: http://www.microchip.com/stellent/idcplg?IdcService=3DSS_GET_PAGE&nodeId=3D= 1960 Device File Editor: https://sites.google.com/site/pk2devicefileeditor/ Device File dumper: http://www.microchip.com/forums/fb.ashx?m=3D335775 -- Xiaofan --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .