T O P I C R E V I E W |
Andymarkt |
Posted - 05/27/2008 : 22:51:51 Hi all,
As a complete "noob" to both pic programming and the GQ-3X programmer here's me hoping that someone out there would have the time and inclination to assist me with what I am sure to some of you would be a trivial issue, unfortunatly I am stumped.
I have attempted to add the PIC 16F73 device to the devices.txt file for the programmer without apparent success.
Using a combination of the data sheet and good old fashion guesswork - I have developed this entry but unfortunately - it doesnt appear to work there is no 16F73 PIC entry when I attempt to select a device for programming within the prgramming software.
Name="PIC16F73",ID="29600",Class="PIC16FXXX",Catagory="MCU",MFG="Microchip",CodeSize="4096",Package="DIP28",Speed="5",Eepromsize="0",PRG_MODE="0",ERASECHIP_COMMAND="1F",BEGERASECHIP_COMMAND="8",PAGE_WRITE_SIZE="1",CFG_PAGE_WRITE_SIZE="1",Adapter="ICSP or PIC adapter+";
Please, could anyoneone indicate how to translate datasheet information into the entries needed to properly create the PIC device programming entry in devices.txt.
Thanks for taking the time to read this rambling post |
15 L A T E S T R E P L I E S (Newest First) |
ZLM |
Posted - 06/04/2008 : 08:17:51 The key parameters are:
ID="29060",CodeSize="4096",EepromSize="0",Package="DIP28",BEGPRG_COMMAND="8",ENDPRG_COMMAND="E",BEGERASECHIP_COMMAND="",ERASECHIP_COMMAND="9",PRG_MODE="0",CFGByteLabel="- - - - - - - BODEN - CP0 PWRTE WDTE F0SC1 F0SC0"
Here, based on the datasheet, the BEGERASECHIP_COMMAND and ERASECHIP_COMMAND shoud use BEGERASECHIP_COMMAND="",ERASECHIP_COMMAND="9". The previous post is working too because they are generic command. |
Andymarkt |
Posted - 06/03/2008 : 23:15:00 Tried it out on release 2.07 Sofware and a sample program was written perfectly to the chip and run on an experimentor board.
All I have to do now is try to work out what parameters you took from the datasheet to develop the device line in devices.txt.
Thanks for all the effort |
ZLM |
Posted - 06/03/2008 : 19:23:06 I found I read the datasheet wrongly on 16F73.
The correct device line should be:
Name="PIC16F73",ID="29060",Class="PIC16FXXX",Category="MCU",MFG="Microchip",CodeSize="4096",EepromSize="0",Package="DIP28",Speed="5",BEGPRG_COMMAND="8",ENDPRG_COMMAND="E",BEGERASECHIP_COMMAND="8",ERASECHIP_COMMAND="1F",PRG_MODE="0",CFGByteLabel="- - - - - - - BODEN - CP0 PWRTE WDTE F0SC1 F0SC0",Adapter="ICSP or PIC adapter+";
This should work on Re2.07 software as well as Re2.08 Beta. |
ZLM |
Posted - 06/02/2008 : 00:38:58 Thanks. I will let know if I am unable to get one with in couple of days. |
Andymarkt |
Posted - 06/01/2008 : 23:28:31 Send me an e-mail with a "snail mail" address and I will send one to you if you feel it would help. Might not be brand new as most of the PICs I am playing with are pulls but should give you a good idea whats goin on.
|
ZLM |
Posted - 06/01/2008 : 20:05:24 I do not have this chip. I am trying to find one. I will let you know once the fixed problem.
|
Andymarkt |
Posted - 06/01/2008 : 14:05:04 Have installed the latest Beta2.08 software but on trying to gather the device ID information, the prgram returns 3FFF (hex) and unkown device type.
Do you have a 16F73 device there and did the newest software work for you? |
ZLM |
Posted - 05/31/2008 : 23:55:30 Try again: http://www.mcumall.com/download/TrueUSBWillem/TrueUSBWillem2.08BetaSetup.exe |
ZLM |
Posted - 05/30/2008 : 20:57:35 It seems something wrong in Beta release. Need to take a look. |
Andymarkt |
Posted - 05/30/2008 : 19:24:42 With version 2.07 software I have tested the 16F877 (40 pin device) and on issueing the ID command I am returned 09A (Hex)Device Type 877 Revision 6.
Tested the 16F876 (28 pin device)and on issueing the ID command am returned 09E (Hex) Device Type 16F876 Revision 6.
Tested the 16F73 (28 pin device)and on issueing the ID command am returned 060 (Hex) Device Type 16F73 Revision 1.
Finally Tested the 16F628A (18 pin device)and on issueing the ID command am returned 106 (Hex) Device Type 16F628A Revision 8.
With the version Beta2.08 software: 16F73 Returns 3FFF (Hex) Unkown device type. 16F877 Returns 09A (Hex) 16F877 device type, Revision 6 16F876 Returns 3FFF (Hex) unkown device type 16F628A Returns 106 (Hex) 16F628A device type, Revision 8
Please note that I am using the PIC+ ver 2 adaptor board rather than trying to carry out any ICSP in situ programming.
Hope this helps.
|
ZLM |
Posted - 05/30/2008 : 16:55:43 I think you are getting close.
You need to install the Beta2.08 for this chip. The 2.07 does not support the new PIC command set.
In the device line, change the ID to ID="29060". This will let you get the correct ID report.
Also, try to select any other PIC chip and click on the ID, see if it can report correct the ID.
|
Andymarkt |
Posted - 05/30/2008 : 13:07:19 Have uninstalled Beta 2.08 before I checked. However, I have installed version 2.07 and added your 16F73 device entry to the devices.txt file.
Now the ID check returns 060(Hex) and the device type is not in library.
On writing a sample program to the device, the ID check passes, the write process proceeds to completion but the device fails to verify.(Device verify Failed at address 0x000000, Device Read 0x3F, Buffer is 0x28.
Will reinstall Beta 2.08 and advise findings. |
ZLM |
Posted - 05/29/2008 : 22:51:18 The correct ID is the first of all steps. What is the exact value you got when you clicked on the ID button? |
Andymarkt |
Posted - 05/29/2008 : 13:44:02 Have downlaoded and installed the beta software and the 16F73 does appear in the devies list but in my short test does not appear to work.
I selected the device and then just worked my way through the command options on the menu bar. On all of the commands I get "ID check failed", Please check chips orientation and pin contact.
When I try to write a sample program out I get the ID check failed message, then the write is attempted, then the ID check fail message again, then a verify failure mssage:
"verify failed Address= 0x000000, Device= 0x3F, Buffer= 0x28"
Hope this is more useful to yo than to me |
ZLM |
Posted - 05/29/2008 : 01:25:48 Based on the datasheet, the PIC16F73 has a complete new command set. So, it should be like this:
Name="PIC16F73",ID="29600",Class="PIC16F872",Category="MCU",MFG="Microchip",CodeSize="4096",Eepromsize="0", Package="DIP28",PRG_MODE="0",CMD_LDCONF="0",CMD_LDCODE="10",CMD_RDCODE="8",CMD_INCADD="18",BEGPRG_COMMAND="4",ENDPRG_COMMAND="1C",ERASECHIP_COMMAND="24",BEGERASECHIP_COMMAND="", PAGE_WRITE_SIZE="1",CFG_PAGE_WRITE_SIZE="1",CFGByteLabel="- - - - - - - BODEN - CP0 PWRTE WDTE F0SC1 F0SC0",Adapter="ICSP or PIC adapter+";
Also, use the latest software to try. http://www.mcumall.com/download/TrueUSBWillem/TrueUSBWillem2.08BetaSetup.exe
The chip aleady added in this version. Let me know if it works. |
|
|