Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
How to program 16F1503
Hi all, I am trying to read a .hex code from my 16F1503 PIC, when searching in its datasheet I found that PicKit 2 could deal with it, but when trying the software I can't find this PIC in the supported list, also when I let it to be automatically detect it then I get an error of "unsupported part (ID=3FE0)" How I can read from/write to it using PicKit 2? Thanks
|
Murton Pike Systems
Super Member
- Total Posts : 223
- Reward points : 0
- Joined: 2020/09/10 02:13:01
- Location: 0
- Status: online
Re: How to program 16F1503
2021/01/26 09:00:12
(permalink)
Buy a PK3 or PK4 or a Snap programmer.
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 09:18:04
(permalink)
Thanks for reply Why? Doesn’t it support this type? Can I update its software so it can do the job?
post edited by Ayman Khuzundar - 2021/01/26 09:19:20
|
Murton Pike Systems
Super Member
- Total Posts : 223
- Reward points : 0
- Joined: 2020/09/10 02:13:01
- Location: 0
- Status: online
Re: How to program 16F1503
2021/01/26 09:34:03
(permalink)
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 09:52:52
(permalink)
nigelwright7558 PK2 is very old now.
I know, but I bought it by mistake so I’m trying to find a solution to my problem using it.
|
Murton Pike Systems
Super Member
- Total Posts : 223
- Reward points : 0
- Joined: 2020/09/10 02:13:01
- Location: 0
- Status: online
Re: How to program 16F1503
2021/01/26 10:11:53
(permalink)
PK3 are about £15 on ebay. Had mine for years now. I did try a PK4 but it blew up after a week ! So went back to PK3.
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 10:14:39
(permalink)
nigelwright7558 PK3 are about £15 on ebay.Had mine for years now.I did try a PK4 but it blew up after a week !So went back to PK3.
I’ll try it in the future but I want something for now 😅 About to find a solution, I’ll place it here if it works.
|
Murton Pike Systems
Super Member
- Total Posts : 223
- Reward points : 0
- Joined: 2020/09/10 02:13:01
- Location: 0
- Status: online
Re: How to program 16F1503
2021/01/26 10:27:36
(permalink)
The PICkit2 programmer was released back in 2005, and allowed the user to program and debug most of the 8 and 16 bit PIC microcontrollers and dsPIC controllers as well. Its successor, the PICkit3 programmer, was released some years later. In 2009 and 2012, Microchip stopped providing support for the PICkit 2 and PICkit3 software, respectively.
Sounds like a PK4 is the answer. However it did have a bug where you need to put 100r in series with /MCLR or it could blow up the PIC. I like my Snap programmer, nice and cheap and fast but doesn't provide power to a circuit whereas PK4 does.
|
Jerry Messina
Super Member
- Total Posts : 666
- Reward points : 0
- Joined: 2003/11/07 12:35:12
- Status: offline
Re: How to program 16F1503
2021/01/26 11:49:25
(permalink)
Ayman Khuzundar I am trying to read a .hex code from my 16F1503 PIC, when searching in its datasheet I found that PicKit 2 could deal with it, but when trying the software I can't find this PIC in the supported list, also when I let it to be automatically detect it then I get an error of "unsupported part (ID=3FE0)"
According to this: https://www.microchip.com/forums/m610775.aspx that part is supported by the PICkit2 using the datafile v1.62.14
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 12:10:26
(permalink)
Jerry Messina
Ayman KhuzundarI am trying to read a .hex code from my 16F1503 PIC, when searching in its datasheet I found that PicKit 2 could deal with it, but when trying the software I can't find this PIC in the supported list, also when I let it to be automatically detect it then I get an error of "unsupported part (ID=3FE0)" According to this: https://www.microchip.com/forums/m610775.aspx that part is supported by the PICkit2 using the datafile v1.62.14
I’ve tried installing it, the PIC16F1503 appeared in the device list, but it can’t detect the PIC after connecting it to the Programmer. Tried to use LVP and made some changes to the program’s settings but nothing changed 😓
|
Jerry Messina
Super Member
- Total Posts : 666
- Reward points : 0
- Joined: 2003/11/07 12:35:12
- Status: offline
Re: How to program 16F1503
2021/01/26 12:25:35
(permalink)
What are the connections from the PICkit2 and 16F1503? Is there anything else in the circuit?
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 12:36:28
(permalink)
Jerry Messina What are the connections from the PICkit2 and 16F1503?Is there anything else in the circuit?
Vpp,Vdd,Vss,PGD,PGC and there is an AUX not connected pin
|
ric
Super Member
- Total Posts : 29861
- Reward points : 0
- Joined: 2003/11/07 12:41:26
- Location: Australia, Melbourne
- Status: online
Re: How to program 16F1503
2021/01/26 12:47:44
(permalink)
Ayman Khuzundar
Jerry Messina What are the connections from the PICkit2 and 16F1503?Is there anything else in the circuit?
Vpp,Vdd,Vss,PGD,PGC and there is an AUX not connected pin
Those are the five connections. You are making us assume you have connected them to the correct pins. A photo of your board would be useful.
To get a useful answer, always state which PIC you are using!
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 13:25:06
(permalink)
 here is the circuit, I've reverse engineered the circuit and make sure of the connections. but there is something I got, when opening the troubleshoot in MicroKit software I get this " an external voltage was detected on the Vdd pin at 5.0 Volt", but I haven't cared about it because when I totally remove the PIC it still appears
|
ric
Super Member
- Total Posts : 29861
- Reward points : 0
- Joined: 2003/11/07 12:41:26
- Location: Australia, Melbourne
- Status: online
Re: How to program 16F1503
2021/01/26 14:39:43
(permalink)
You are still NOT documenting which PIC pin is connected to which pin on the ICSP connector, just saying "I have checked it". Maybe you have it right, but you are essentally saying "it doesn't work, but I have checked everything". You'll get much more effective help if you stop making assumptions and just document what you have. n.b. the error message in your first post indicates the chip is NOT being read correctly. It reported a device ID of "3FE0", but the device ID for a PIC16F1503 should be 2CEx or 2CFx.
To get a useful answer, always state which PIC you are using!
|
NorthGuy
Super Member
- Total Posts : 6518
- Reward points : 0
- Joined: 2014/02/23 14:23:23
- Location: Northern Canada
- Status: online
Re: How to program 16F1503
2021/01/26 14:51:30
(permalink)
There's a pin with lucky number 13, ICSPDAT. Looks like it's connected correctly. For some reason, it is stuck in the "high" position. That's why you get 3fe0 - all '1' where the device id would appear. Looks like the PIC is driving it high. Can you check this? Disconnect the ICSP connector and measure between VSS and pin 13 (you can measure between pin 3 and pin 4 of the ICSP connector). Do you measure 5V? Is there anything else connected to that pin which could drive it high?
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 14:54:34
(permalink)
ric You are still NOT documenting which PIC pin is connected to which pin on the ICSP connector, just saying "I have checked it".Maybe you have it right, but you are essentally saying "it doesn't work, but I have checked everything".You'll get much more effective help if you stop making assumptions and just document what you have. n.b. the error message in your first post indicates the chip is NOT being read correctly.It reported a device ID of "3FE0", but the device ID for a PIC16F1503 should be 2CEx or 2CFx.
I am not making assumptions, if you see the previous reply you will notice that I’ve written the connected pins. Or you want me to write this: Pin 1 in pic >> Vdd Pin 14 in pic >> Vss Pin 13 in pic >> PGD Pin 12 in pic >> PGC Pin 4 in pic >> Vpp ?!
|
Ayman Khuzundar
New Member
- Total Posts : 9
- Reward points : 0
- Joined: 2018/09/20 06:43:06
- Location: 0
- Status: offline
Re: How to program 16F1503
2021/01/26 15:04:12
(permalink)
NorthGuy There's a pin with lucky number 13, ICSPDAT. Looks like it's connected correctly. For some reason, it is stuck in the "high" position. That's why you get 3fe0 - all '1' where the device id would appear. Looks like the PIC is driving it high. Can you check this? Disconnect the ICSP connector and measure between VSS and pin 13 (you can measure between pin 3 and pin 4 of the ICSP connector). Do you measure 5V? Is there anything else connected to that pin which could drive it high?
an update happened, I’ve changed the device list file .dat with another one and the 16F1503 has appeared in the list, so I am no longer getting the 3fe0 error, but instead a “Device not connected” error 😓
|
PStechPaul
Super Member
- Total Posts : 3024
- Reward points : 0
- Joined: 2006/06/27 16:11:32
- Location: Cockeysville, MD, USA
- Status: online
Re: How to program 16F1503
2021/01/27 11:58:26
(permalink)
Check the pins on the PIC for digital activity when trying to read it. You should see clean logic level transition on PCLK and PDAT.
|