PBP Support for 12F1840 8-Pin Device?


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    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 ....

  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?

    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.

  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?

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

    Thank You in any case !

  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 - 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

  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?

    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 )

  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 - Yes, I was only doing very simple things with the 12F1840 and PBP2.6. I really just did Port toggle control and some simple PWM. All my programs were very short, mostly used to check out my handmade test board with a real 12F1840. You have my .inc and simple program, and I didn't do much more than that until PBP3 came out.
    If you are serious about using PBP with the 12F1840, then I think PBP3 is a must for you. It will make your life a lot easier. No matter what you do, the 16F1828 is not a 12F1840.
    Sorry I don't have more for you.

  7. #7
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

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

    So did we ever get an update to support this device in PBP 2.6?

Members who have read this thread : 0

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