Can't program a 12LF1840?


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2004
    Location
    UK-Midlands
    Posts
    84

    Default Can't program a 12LF1840?

    Hi All,

    Usually I use 12f863 in my projects but can't get them anywhere. I managed to get some 12LF1840 pics and find when I try to program them all 5 come up with the error of 'Target device does not match'.

    I am using Melabs U2 programmer with ver 4.67 software.
    Microcode Studio ver. 5.0.0.5
    and PBP 3.0.7.1

    Have tried with in-circuit programming and with 8pin adapter. Both give the same error.
    Programmer works with a 18F2525 so think hardware is OK?

    Any help or tips welcome as tearing hair out! (what there is of it).

    Many thanks
    Bob

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?


  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    there are 12LF1840 and 12F1840 , the compiler , the programmer and the chip all need to sing the same tune

    just saying the obvious
    Warning I'm not a teacher

  4. #4
    Join Date
    Mar 2004
    Location
    UK-Midlands
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    Hi All,

    Thanks for the replies.
    I had already selected 12LF1840 on programmer and Microcode (I had also tried 12F1840 just to be sure).

    But thanks,
    Bob

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    highly recommend pk2 clones and pk3 , the snap/pickit4 programmers are ok too
    Warning I'm not a teacher

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    Pickit 2 or 3 are great and even greater with the stand alone program of Evan Venn: www.pickitplus.co.uk

    Ioannis
    Last edited by Ioannis; - 20th October 2021 at 10:41. Reason: (pickit) 3

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    One time a while back I had to change something in one of the .INC (include) or .LIB (library) or some other file used for the compiler. I compared the listings of the device and other things with a device that worked. I remember finding one simple reference that was incorrect and fixing that made it work.

  8. #8
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    127


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    Pickit 2 or are great and even greater with the stand alone program of Evan Venn: www.pickitplus.co.uk
    +1 to that

    Troy

  9. #9
    Join Date
    Mar 2004
    Location
    UK-Midlands
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: Can't program a 12LF1840?

    Hi All,

    SOLVED!

    I knew I was making a stupid mistake and it only took me a day to see it!

    I was powering the LF part from 5v.

    Set to 3.5v and all working.

    Off to bang my head off the wall.

    hopefully will help someone out there in the future?

    Bob

Similar Threads

  1. 12F683, 12LF1840 - Port ON/OFF speeds are different!
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 4th February 2015, 15:35
  2. Program Structure
    By MOUNTAIN747 in forum General
    Replies: 2
    Last Post: - 8th December 2012, 11:35
  3. Replies: 1
    Last Post: - 23rd May 2009, 10:22
  4. Program Code and Program Memory
    By DenFrod in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th February 2007, 15:51
  5. program help
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2004, 15:59

Members who have read this thread : 1

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