PBP Support for 12F1840 8-Pin Device?


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    This is the reply i got from Charles Leo

    The datasheet wasn't available in time for our last PBP revision, and another revision isn't planned for few months.

    It looks to me like the part is identical to the 16F1828, with the exception of a few missing ports. I think you can compile for the 1828 and the hex file will work for the 1840. Let me know if you encounter any compiler or assembly errors and I will look into it.

    Programming support for the 1840 has already been added to the meProg software for the programmers.

    Charles Leo
    microEngineering Labs, Inc.
    2845 Ore Mill Road STE 4
    Colorado Springs, CO 80904
    719-520-5323
    fax: 719-520-1867
    http://melabs.com
    This is the reply i got from Piccircuit.com

    Hi,

    Thanks for checking with us.
    For the PIC12F1840, you might need to install the attached patch to enable the PIC12F1840 programming
    Please apply the patch at C:\Program Files\Microchip\PICkit 2 v2>PK2DeviceFile.dat
    Then the PIC12F1840 should be detected by the PICkit2.
    Please let us know the testing results on our solutions. We will try our best to help you.

    Best Regards,
    PICCIRCUIT.COM
    Patch attached

    PK2DeviceFile.zip

  2. #2
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    Retepsnikrep (Peter?) - Thank-you for taking the time to post the added info. When I get my test board together, I will certainly give it a shot - Very much appreciated.

  3. #3
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    Hello , did you finally managed to play with the 12F1840 ?

    I mean you used 12F1822 Hex ?

    But i think Microcode Studio wouldn't give error (and quit) when try to write more than 2048 words ?

    I need the 12F1840 for the 4K space ....

  4. #4
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    LakisFM1 - Yes, I have been playing with the 12F1840 for a while now. I only used very small programs for the 12F1840 until I purchased PBP3 that had full support for it. The advice I got here on the forum was to use the 16F1828 include file to allow me to compile code for the 12F1840, using PBP2.60. The steps I used are below.
    1. Get latest PICKIT2 programmer firmware that supports programming 12F1840.
    2. Modify "16F1828.inc" file to allow using Internal Oscillator and other options you want
    3. I used PBP 2.60C with MicroCode Studio Plus V4.0.0.0
    4. Create NEW program in Microcode Studio Plus for your 12F1840 (mine were very simple)
    5. In Microcode Studio Plus, Choose Device = "16F1828"
    6. Compile using MPASM
    7. Open PICKIT2 application, select device "12F1840", then program device with your HEX file.

    Once I got PBP3, compiling for 12F1840 works fine with no special tricks needed.
    Maybe the above steps can help somebody who wants to try using PBP2.x with 12F1840, but I am very pleased with PBP3.
    Sorry I have not used 12F1822.

  5. #5
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    Would it be too much if i ask you to attach the modified .inc file ?

    Thank You in any case !

  6. #6
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    LakisFM1 - I will try to attach the one I used, along with a very short example program. Hope you find it useful.
    Attached Files Attached Files

  7. #7
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: PBP Support for 12F1840 8-Pin Device?

    Thank you!

    I thought the differences in the .inc were also about the registers ,
    so i had to verify that aaaaaall the registers of the 12F1840 are in same addresses as the 16F1828.

    Or maybe is it you are using a simple TRISA/PORTA? (em, with also ANSELA,WPUA and OSCON )

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