PDA

View Full Version : PIC16F1783: Erase algorithm incorrect



SuddyCamp
- 11th November 2025, 23:15
I have a Melabs U2 programmer. I have no problem programming a PIC16F886 and other microchip controllers of that type. I started a project planning to use a PIC16F1783 or a PIC16F1786. I tried to program the PIC1783 in circuit (like I successfully do with the PIC16F886) and get an error that says the erase algorithm is incorrect. I tried this on a programmer circuit (10 pin connector on PCB with a SMT SOIC28 socket and 5.0volt power and uses the U2 programmer) that I use to program chips prior to soldering onto a PCB. The 886 erases and programs fine. The 1783 gives me the same error - erase algorithm is incorrect.



I don't think I have a problem with my circuit or my programming PCB.


Is there difference in the erase algorithm for the PIC16F178x family or is there a problem with my parts?
If there is a difference with the algorithm, is there an upgrade to the U2 programmer I need to acquire?


I am using PBP 3.1.6.4 gold.

HenrikOlsson
- 12th November 2025, 17:55
Hi,
No experience with the U2 here but according to the U2 supported device list (https://melabs.com/includes/compatibility/meprog.pics.htm) the 16F1783 is supported.

I don't know enough about the erase/programing algorithms to say but the device list linked to above include a comment for the 16F1783 about requiring variable Vpp while the old 16F886 doesn't so there may very well be differences there. With that said, the device is supported and "should" work with the U2.

I'd try the latest software if you're not already on that. Latest seems to 4.67, from 4 years ago (https://melabs.com/support/progsoft.htm)

/Henrik.

SuddyCamp
- 14th November 2025, 23:07
I am not sure this went into a reply. I logged in when I sent it, but the forum said I was not logged in.
Try again.
Thanks for the info. I sent an email to ME Labs and they responded I needed an update to my U2 Programmer. A website was included in the response. This solved my problem. I am moving ahead now.