PIC16F1783: Erase algorithm incorrect


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2025
    Posts
    1

    Default PIC16F1783: Erase algorithm incorrect

    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.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,623


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1783: Erase algorithm incorrect

    Hi,
    No experience with the U2 here but according to the U2 supported device list (https://melabs.com/includes/compatib...eprog.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.

Similar Threads

  1. Minsky algorithm
    By Ioannis in forum Code Examples
    Replies: 3
    Last Post: - 9th May 2020, 18:02
  2. ADCIN Problems with PIC16F1783
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th April 2014, 18:08
  3. Erase error
    By waynepauly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th June 2012, 03:23
  4. A Checksum Algorithm
    By amindzo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th December 2008, 23:33
  5. Incorrect calculations... please help.
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th January 2007, 23:03

Members who have read this thread : 4

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts