Author |
Topic |
|
gameromz
USA
18 Posts |
Posted - 05/04/2008 : 15:27:53
|
can someone tell me how to program these correctly, i program and verify the 12f683 but the chip doesnt work, can anyone help?
thanks |
Edited by - gameromz on 05/04/2008 15:28:46
|
|
Reply #1
ZLM
2945 Posts |
Posted - 05/04/2008 : 16:34:37
|
If your chip been programmed and verified correctly, then something wrong must be in the code itself. OR you did not write the CFG bit. To write the CFG bit, you need to click on the CFG button from toolbar, the CFG windows should show up. Set the all CFG bit you wanted and then click on the write button will write the CFG bits to chip.
Write a simple code to test the chip first. Such as flash LED code. |
|
|
Reply #2
gameromz
USA
18 Posts |
Posted - 05/04/2008 : 18:32:39
|
i know code is good, i can use my home built pic programmer and it works fine.
can you explain the cfg bit a little more? |
|
|
Reply #3
ZLM
2945 Posts |
Posted - 05/04/2008 : 21:57:14
|
Each PIC chip has different Configuration Word. Most of them are a 14 bits long word on 16FXXX chip. It configs PIC chip how it should work. So, it is important to let chip work correctly.
You need read the datasheet of the chip to get all CFG bit inforamtion.
From the True-USB Willem software, click on the CFG button will bring up a CFG bit window. From that window, you can see current CFG setting. Also, you can modify the CFG setting and write the new CFG value to the chip. |
|
|
Reply #4
gameromz
USA
18 Posts |
|
Reply #5
ZLM
2945 Posts |
Posted - 05/05/2008 : 17:23:52
|
If you loaded a working code .hex file, then you do not need change anything, just press Write key from CFG window. Or post/send your code I can take a look. |
|
|
Reply #6
gameromz
USA
18 Posts |
Posted - 05/10/2008 : 07:53:55
|
heres link to what im using yaosm 3.2 rc2
http://*************************
you can remove link after you get it, if you wish or let me know and ill remove it. |
Edited by - gameromz on 05/10/2008 07:54:45 |
|
|
Reply #7
ZLM
2945 Posts |
Posted - 05/10/2008 : 10:01:37
|
Tested, all .hex files have CFG bit info.
Steps to write the chip.
1. Select chip type from the software. 2. Open a .hex file 3. Place the chip. 4. Click on ID, it should give good ID info. 5. After erase the chip, click Write button. The chip should be write and vrified correctly. 6. Click on CFG button and the CFG window should be opened. 7. Click on Write button under CFG Value edit box. 8. Remove the chip and test it in your circuit.
However, the CFG information in the .hex files are assumed correct. If it is not correct, then the chip may not work. |
|
|
Reply #8
gameromz
USA
18 Posts |
Posted - 05/10/2008 : 10:37:15
|
works perfect, thank you for the help!! |
|
|
Reply #9
guerrierodipace
Italy
10 Posts |
Posted - 05/14/2008 : 04:31:42
|
seem similar to my problem in other post... |
|
|
Reply #10
WallacE
United Kingdom
3 Posts |
Posted - 02/01/2009 : 09:54:26
|
I also had this problem and spent a few hours trying to figure it out befor i used my old pic programmer, but now i know the gq-4x can do it after reading this
Thanks |
|
|
|
Topic |
|