Author |
Topic |
|
busterk
18 Posts |
Posted - 06/15/2009 : 12:43:43
|
Could you add this pic for next sw release for GQ-4X? Or could i add this myself?
Here are the specs:
P.Memory (Kbytes) 7 Flash P.Memory (KWords) 4 Self-Write Flash Yes RAM (Bytes) 384 EEPROM (Bytes) 256 I/O Pins 16 Max CPU Speed 32 MHz (8 MIPS) Internal OSC 32 MHz, 32 kHz Code Guard™ Security System Mgmt Features BOR, LVD, POR, WDT, nanoWatt-[Low Speed, Fast Wake, Active Ctrl] Analog Peripherals 2-Comparators w/SR-Latch, OpAmp, ShuntReg; 1A/D, 12x10-bit @ 100ksps Digital Comm. Peripherals 1-A/E/USART, 2-MSSP(SPI/I2C) Connectivity Capture/Compare PWM Peripherals 2-CCP, 2-ECCP, 10-bitPWM Digital Timers 4x8-bit, 1x16-bit Application Peripherals No, EBI-No Debug/Development Features ICSP, Integrated ICDdebug Package (Pins) (18) Operating Voltage (1.8V-5.5V) Temperature Ranges (-40 to +125
|
Edited by - busterk on 06/15/2009 13:02:27
|
|
Reply #1
ZLM
2945 Posts |
Posted - 06/15/2009 : 14:07:09
|
Is it DIP18 package? |
|
|
Reply #2
Bad_Ad84
210 Posts |
Posted - 06/15/2009 : 15:09:05
|
id assume so, his post says "Package (Pins) (18) " |
|
|
Reply #3
busterk
18 Posts |
Posted - 06/15/2009 : 20:34:15
|
quote: Originally posted by ZLM
Is it DIP18 package?
yes it is |
|
|
Reply #4
ZLM
2945 Posts |
Posted - 06/15/2009 : 22:40:49
|
I am unable to find the programming specification for this chip from Microchip.com.
|
|
|
Reply #5
Bad_Ad84
210 Posts |
|
Reply #6
busterk
18 Posts |
|
Reply #7
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/11/2010 : 23:29:03
|
BUMP! Hello, I've got a few of these pics and I see this fellows query has been forgotten. I now require support for this device, and Microchip now has the Programming Specs :) So, Was wondering if you could add support for it in the next release now? Or if not, how would one go about adding support for a device themselves?
*update*
I've been messing around with trying to add it myself and I've managed to get it to identify correctly and program the program memory successfully, however, the configuration bits will not program.
I've found the 16F1827.dev file in the MPLAB devices directory. I've edited the 'devices.txt' file to the best of my knowledge and here's what I've got:
Name="PIC16F1827",ID="2927A0",Class="PIC16FXXX",Category="MCU",MFG="Microchip",CodeSize="4096",EepromSize="256",Package="DIP18",BEGPRG_COMMAND="18",ENDPRG_COMMAND="0A",BEGERASECHIP_COMMAND="9",ERASECHIP_COMMAND="",Adapter="ICSP/PIC adapter+, no adapter required on GQ-4X";
Still.. no dice. I think its a 'class' problem. I don't think the PIC16Fxxx class uses the same configuration bit writing/erasing algorithms as this chip.. if anyone could help to point me in the right direction that would help lots :) I would really like to use this chip soon. |
Edited by - RidDleZis1337@gmail.com on 04/12/2010 23:38:38 |
|
|
Reply #8
ZLM
2945 Posts |
Posted - 04/13/2010 : 11:11:15
|
This chip has different configuration bit address to other 16FXXX chips. Add CFGAddress(Hex)="8007" in the device line see if it works.
Name="PIC16F1827",ID="2927A0",Class="PIC16FXXX",Category="MCU",MFG="Microchip",CFGAddress(Hex)="8007",CodeSize="4096",EepromSize="256",Package="DIP18",BEGPRG_COMMAND="18",ENDPRG_COMMAND="0A",BEGERASECHIP_COMMAND="9",ERASECHIP_COMMAND="",Adapter="ICSP/PIC adapter+, no adapter required on GQ-4X";
|
|
|
Reply #9
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/13/2010 : 11:36:42
|
Thank you for your reply ZLM, I've tried adding the line to the devices.txt and now it just hangs when writing and reading to the cfg bits, but still fails. Could it be because there are two configuration bit words? one at 8007 and one at 8008? Also, I thought the DEV file would point the programmer to the correct cfg bits? |
|
|
Reply #10
ZLM
2945 Posts |
Posted - 04/13/2010 : 14:59:29
|
How do you write the CFG bit? There are two ways: CFG button and auto write after code write. |
|
|
Reply #11
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/14/2010 : 08:53:22
|
I've tried both ways and still nothing. I usually use the 'Auto' button after setting the right cfg bits in the 'Configuration' tab.
I've been looking into this some more and it seems the 16F1xxx chips are of a different family than the previous 16F5xxx - 16F9xxx chips
Could it be because the 16F1xxx chips are part of the 16Exxx Family apposed to the 16XXXX family? I'm not sure if this helps, I've got limited knowledge in this area. So let me know if I'm searching in all the wrong places Also, the 16F1827 is supposed to be the upgrade from the 16F628A if I'm not mistaken, though setting the class to this chip still yields the same results..
|
Edited by - RidDleZis1337@gmail.com on 04/14/2010 11:19:15 |
|
|
Reply #12
ZLM
2945 Posts |
Posted - 04/14/2010 : 13:34:28
|
The 16F1827 is a new PIC chip. It has different CFG address. I will try it later and let you know then. |
|
|
Reply #13
ZLM
2945 Posts |
Posted - 04/14/2010 : 15:57:42
|
I do not have this chip for testing. So, I tried it without the chip. But it seems working fine, no hangs.
Can you try to write without chip? uncheck the ID check box first.
What is your chip package? DIP 18 pin?
|
|
|
Reply #14
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/14/2010 : 19:16:30
|
Without the chip? I'm sorry, I don't know what you mean.
*edit* Alright, I've removed the chip and went through the motions without loading a hex file. It successfully writes nothing and verifies it. Including the config bits which are all on. Also, when I change a config bit and attempt the same, the config bit verify fails as it should, correct?
and yes this is the DIP18 |
Edited by - RidDleZis1337@gmail.com on 04/14/2010 19:45:05 |
|
|
Reply #15
ZLM
2945 Posts |
Posted - 04/14/2010 : 22:21:33
|
That was I mean.
I think I need to get a chip for testing. |
|
|
Reply #16
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/14/2010 : 23:59:12
|
Alright, but is there anything else I can do? I've got the chip right here :-/ It just seems so close with everything else verifying correctly.. |
|
|
Reply #17
ZLM
2945 Posts |
Posted - 04/15/2010 : 16:04:07
|
If your testing hangs when write the CFG, then it is hard to do the test.
First thing is to find out why it hangs during the write CFG bit.
OR
You can try to use ICSP connection to see if it still hangs. ICSP is to only connect 5 pins from programmer socket to chip.
|
|
|
Reply #18
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/16/2010 : 12:28:03
|
Alright, have tried both ways, ICSP and in programmer and still same result. Also, when I say it 'hangs' I do not mean it freezes. It just pauses for a few seconds and then continues to say verify failed.
If you need I wouldn't mind sending you a chip, but they're only like $2 a piece |
Edited by - RidDleZis1337@gmail.com on 04/16/2010 13:53:03 |
|
|
Reply #19
ZLM
2945 Posts |
Posted - 04/17/2010 : 18:11:14
|
If you can wait, I will get a testing chips in 2 or 3 weeks. If you are in hurry, then you can send me a chip. |
|
|
Reply #20
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 04/22/2010 : 20:13:51
|
I will be patiently waiting |
|
|
Reply #21
ZLM
2945 Posts |
|
Reply #22
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 05/01/2010 : 06:40:21
|
YES! It sure does sir. Config bits write fine, let you know if anything turns up but this seems to do the trick. Thank you! |
|
|
Reply #23
RidDleZis1337@gmail.com
USA
9 Posts |
Posted - 05/01/2010 : 19:29:45
|
I've got a strange issue now.. My code in MPLAB is compiled with all the config bits configured the way I want them, but when I load the .hex file into the programmer it doesn't recognize my changes. I have to manually set them all from the config tab anyway... It worked fine with other pics used and MPLAB shows the right values from the Configure->Configuration Bits menu. It seems to be a problem with the programming software? |
|
|
Reply #24
ZLM
2945 Posts |
Posted - 05/01/2010 : 22:28:54
|
Download again and see if it fixed. |
|
|
|
Topic |
|