Author |
Topic |
|
BenieUK
United Kingdom
6 Posts |
Posted - 11/12/2007 : 12:28:09
|
How to add support for PIC 12C508, 12C508a, 12C509, 12C509a ?
Thank You |
|
Reply #1
BenieUK
United Kingdom
6 Posts |
Posted - 11/12/2007 : 13:43:17
|
Is 12F508 the same as 12c508/12c508a ? |
|
|
Reply #2
ZLM
2945 Posts |
Posted - 11/13/2007 : 23:58:10
|
Name="PIC12C508",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12C508A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12509",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12509A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX"
Only 12C508A is tested. |
|
|
Reply #3
BenieUK
United Kingdom
6 Posts |
Posted - 11/14/2007 : 03:58:55
|
I think there a mistake?
Name="PIC12509",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12509A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX"
Should it not be 12C509 & 12C509A NOT 12509 & 12509A ?
Thanks For Help :) |
|
|
Reply #4
ZLM
2945 Posts |
Posted - 11/14/2007 : 08:40:40
|
Yes. you are right.
It should be those lines:
Name="PIC12C508",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12C508A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12C509",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX" Name="PIC12C509A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="2048",Package="DIP8",ENDPRG_COMMAND="14",PRG_MODE="0"; No ID device need ID="XXXX"
Let me know if it works.
Please note, writing is only write current active buffer. That is to say: if current buffer is in code, then only code will be written. If you want to write the user ID, then you need to select the user ID tab and write again. To write the CFG bit, click the write button in the CFG window. |
|
|
Reply #5
BenieUK
United Kingdom
6 Posts |
Posted - 11/14/2007 : 14:34:15
|
it seems to have programmed my 12C508A but i get this error:
device verify failed at address: 0x0003fe, device read 0x0c, buffer is 0x0f ??
i have not been able to test to see if chip works yet, im new to this programming so i cant tell you much more sorry.
Also not sure i understand fully:
Please note, writing is only write current active buffer. That is to say: if current buffer is in code, then only code will be written. If you want to write the user ID, then you need to select the user ID tab and write again. To write the CFG bit, click the write button in the CFG window.
Thank You :) |
|
|
Reply #6
BenieUK
United Kingdom
6 Posts |
Posted - 11/14/2007 : 14:37:04
|
Also if i select ' ID ' i get the following error:
'Signature not supported on this device'
Thanks Again. |
|
|
Reply #7
ZLM
2945 Posts |
Posted - 11/15/2007 : 00:22:42
|
This device has no ID. So you can not read the ID from chip. The message for this chip ID is correct.
It seems you did not select 12C508A from the device list. The 12C508A only have address range from 0x000 to 0x1FF. Your message said the verify failed on address 0x3FE, which is not the 12C508A address range.
Also, confirm the chip is blank before write the data. To confirm the chip is blank on code area, read the chip and the checksum should be 1C00 .
To let the chip works in circuit, you need to set the CFG bit. To set CFG bit, click on the CFG button and write the CFG word after you set it. The chip will not work if the incorrect CFG bit been set. |
|
|
Reply #8
Tony2k
Italy
23 Posts |
Posted - 06/03/2008 : 09:08:18
|
I need to program a pic 12c508a but it's impossible. Can you tell me ho to set the program? |
Edited by - Tony2k on 06/03/2008 09:12:19 |
|
|
Reply #9
ZLM
2945 Posts |
Posted - 06/03/2008 : 10:42:51
|
What is your error message? |
|
|
Reply #10
Tony2k
Italy
23 Posts |
Posted - 06/03/2008 : 10:48:53
|
No error message. The problem is that I can't program correctly hex files and I can't erase the pic. |
|
|
Reply #11
ZLM
2945 Posts |
Posted - 06/03/2008 : 19:26:24
|
The 12c508a is OTP(One-Time-Programmable) chip. So, it can not be erased and reprogrammed. It need a new chip every time.
Unless the chip has a UV erase window. Which is UV eraseable only. |
|
|
Reply #12
Tony2k
Italy
23 Posts |
Posted - 06/07/2008 : 08:10:08
|
quote: Originally posted by BenieUK
it seems to have programmed my 12C508A but i get this error:
device verify failed at address: 0x0003fe, device read 0x0c, buffer is 0x0f ??
I have the same error. Can you tell me how set the software? |
|
|
Reply #13
ZLM
2945 Posts |
Posted - 06/11/2008 : 11:24:26
|
What is your error message? |
|
|
Reply #14
Tony2k
Italy
23 Posts |
Posted - 06/14/2008 : 05:46:37
|
device verify failed at address: 0x0003fe, device read 0x0c, buffer is 0x0f |
|
|
Reply #15
ZLM
2945 Posts |
Posted - 06/16/2008 : 08:50:38
|
That location is not used in this chip. It seems the the code been programmed correctly. It needs to skip this byte.
Put following line into devices.txt file and delete the old one for the 12C508A.
Name="PIC12C508A",ID="XXXX",Class="PIC12F508",Category="MCU",MFG="Microchip",CodeSize="1022",Package="DIP8",ENDPRG_COMMAND="0E",PRG_MODE="0"; No ID device need ID="XXXX"
|
|
|
Reply #16
Tony2k
Italy
23 Posts |
Posted - 07/22/2008 : 15:46:36
|
I have to make this change also in last rev 3.ob? |
|
|
Reply #17
ZLM
2945 Posts |
Posted - 07/23/2008 : 17:36:40
|
The 3.0B should be fine. You do not need to change any thing. |
|
|
|
Topic |
|
|
|