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 ....
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 ....
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.
Would it be too much if i ask you to attach the modified .inc file ?
Thank You in any case !
LakisFM1 - I will try to attach the one I used, along with a very short example program. Hope you find it useful.
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)
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.
So did we ever get an update to support this device in PBP 2.6?
Bookmarks