I wish for a PIC configurator like this:
http://www.protonbasic.co.uk/content...nfigurator-Mk2
If this is already working for the PDS compiler in a MCS environment, how difficult is to make it compatible with PBP?
Ioannis
I wish for a PIC configurator like this:
http://www.protonbasic.co.uk/content...nfigurator-Mk2
If this is already working for the PDS compiler in a MCS environment, how difficult is to make it compatible with PBP?
Ioannis
Too bad the attachment on that article isn't working.
This has come up so often ever now and again. I remember Mr E being real tempted to do something a while back.
Now that you mention it, I wonder how complicated it would be to do in VB? I'm dabbling a bit in VB code for my Access database, I know VB should be able to do all this. It's just a matter of knowing how to get at all the right information from the right files (in my feeble mind).
The hard part would be to make it so it can work for any PIC. Personally I'd target PIC 10, 12, 16 and 18 (know little of 10 and 12 series - haven't researched PIC 24 and 33 yet).
Robert
Robert, at the bottom of the page the link refers too, there is a Note and after this note you can download the Fuse Configurator ( PIC® Fuse Configurator Mk2 (Ver3.2.0.2) ). But it is for the PDS compiler in a Microcode environment.
So, my question is, since this is done for the other compiler, and covers almost all PIC® controllers, how difficult is to modify it and use it in PBP?
Ioannis
The author is unlikely to share source code if he has a vested interest in the other compiler (and rightfully so).
You can ask but I wouldn't hold it against him if he said no.
Robert
My phrasing implied "free", but it was not my intention. Maybe in the Plus edition of the MCS?
But there is no option yet.
Ioannis
Tell you what, accumulate everything I would need to know to make this tool; what files, what lines to look for, etc.
I'll keep an eye open while I'm making this application and see if I can come up with at least a basic system. Nothing is stopping us from coming up with a barebone version 1 with open source, and let the ball roll from there. Maybe someone with more advanced skills than me might then be willing to spruce things up at that point.
I can't guarantee anything except giving my best effort with the VB knowledge I have. I know this can be done, someone has proved that already.
Robert
EDIT: I had done this for PIC 18s:
http://www.picbasic.co.uk/forum/cont...-for-Beginners
But I'd also need the same for 10, 12 and 16s. I don't know anything about the 24 and 33s, do they support PBP?
Last edited by Demon; - 7th February 2014 at 18:31.
MPLAB X have fuse configurator buil in.
MPLAB X>Window>PIC Memory Views>Configuration Bits:
http://www.picbasic.co.uk/forum/atta...9&d=1391798898
I can tell you from experience that it's VERY HARD to write a configuration utility!!!
But rather than trying to convert one from a different compiler.
Try this one, which is written for PicBasic Pro ... http://support.melabs.com/content/563-meCONFIG
Many months have gone into this FREE program, and many more are sure to come.
Please test and then comment at ... http://support.melabs.com/forums/22-meCONFIG
DT
That's excellent Darrel. That has pretty much everything I need to config a PIC.
I liked Old-Long setting, feels comfy and can just copy/paste into my program. I don't like editting the INC except to comment out default settings. Not all my programs for a given PIC use the same CONFIGs; best place for me is in the program.
Looks can be deceiving. I bet there's a lot of code under that puppy.
Now I just need a newer programmer for easy debugging.
Robert
![]()
Like MANNA from Heavin
Ask and Ye shall recieve
That's awesome Darrel!
I see it was posted to MeLabs website on Feb 8th, that's quite a coincidence compared to the original post by Ioannis.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Thanks Darrel. I felt it that you were up to something!
Gone for testing now!
Ioannis
I have a reasonably easy answer to the configuration method:
Since all of my code is for inhouse use, ie for things I build for my own, or close contacts, I feel I don't really need to go through the CONFIG method in my code.
My solution is that I use the MELABS USB programmer, and once I do the COMPILE & PROGRAM step in MCS, then the programmer fires up and I can set the configuration in a dropdown tab. Each CONFIG bit, all of which are named, can be set or cleared as required and the chip programmed. So far, it appears that all the config bits that pertain to the chip you are using are available in the dropdown, so you know each bit is relative to the chip that you are about to program.
There will probably be some purists out there that will insist that CONFIG should be part of my code, but, hey, it works for me doing it the cheating way, so why not?
I do believe the PICKIT has similar function, but the CONFIG bits are not named, they ere simply shown as the bit number, so you still have to work out what the bits are. Too damn hard for an old bloke, so the PICKITs have been put out to pasture in favour of the MELABS unit...So much easier.
Last edited by muddy0409; - 23rd October 2014 at 01:15.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
Bookmarks