Thanks Darrel. I felt it that you were up to something!
Gone for testing now!
Ioannis
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.
I did that for a while, but if you are tweaking and experimenting, it gets old pretty fast. Far better to have it in the code and do it ONCE rather than every program attempt.
Umm, no, you only have to alter the dropdown contents if you need to change anything.
Before the programming starts, the existing config is read and doesn't change unless you tell it to. So makes it easy, in my view anyway.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
http://support.melabs.com/DT/meCONFI...NFIG_setup.exe
have you seen this ?
@ Peter - you didn't say which programmer you are using, but mine resets the bits to a default and needs to be changed every time. I guess they can behave differently. (Granted mine is a clone).
Charlie,
The Melabs usb programmer program has a pull down menu for options.
Un-check the "Update configuration from file". Now it will keep the configurations
you selected and not reset these each time you flash the pic.
I agree with Peter the Melabs USB programmer is the way to go. Many questions on this forum
are on configurations problems. Melabs USB program has a pull down configuration check list for each
pic supported. The negative is the price, I think it is about $80usd.
Bookmarks