These where suggestions on the syntax for how some initcode could be implemented in future versions of ldmicro, currently somethimng like this is not implemented.
I have written a small script for autoit (=freeware) that takes a hex file generated by ldmicro.exe version 2.1 for the PIC16f88 (i have not tested it with other versions that may generate a different hex file). it changes the code at the start to enable the internal oscilator (config bytes) set the oscilator to 8 mhz (osccon=0x70) and enable the weak pullups on port b )so i can read switches with just a switch connected between ground and an input pin on port b.
The script opens a file open dialog when run without parameters to select the hex file to be patched. after patching the hex file is modified and saved as
originalfilename_patched.hex
a second way to select the file is to compile the script with autoit and drag a hex file on top of the compiled script
(this takes the file and saves it with the name as above)
It was actually a little different than i suggested in my previous email you have to switch to bank 1 to write to osccon and back after.
I have attached the script to this message, feel free to use it for whatever (public domain use at your own risk)
Peter van Hoof <
[email protected]>
ps: I need a engineering job in the Scranton PA area
http://www.linkedin.com/in/pvhoof