Finally, we're getting somewhere..... First of all MicroCodeStudio IS the IDE.I am using MicroCodeSudio. It does not automatically launch IDE.
Select View->Compile and program options and make sure the correct path where PBP3 is installed is specified there. If not, click Find Automatically and let it search for it.
Then Click the Compile in the toolbar. (The IDE (MicroCodeStudio) will now launch the compiler (PBP3) which will compile the program and the launch the assembler which will assemble the compiled program into a .hex file. That file will be in the same folder as you saved your source file/program. It's that .hex file you should program into the PIC.
If you don't see the compile button click View->Toolbars and check and make sure that Compile and Program is enabled, the button should now appear.
/Henrik.
EDIT: I guess you've seen the install video that's on the MELABS site? If not, here it is.
Tell microcode studio where pbp compiler and mpasm resides.
Type in your program, then click compile, then start whatever programming software came with your development board.
That software will use the hex file from compile to program your pic.
Robert
Well "Thank you Everyone". I know how frustrating it can be with newcomers. I've finally managed to get MikroBasic-Pro to generate a hex file and have managed to get my 18F45K22 to actually respond.
I've got ONE HELLOVA way to go but I can now get started.
I never managed to get PBP3 to generate code that the PIC would work with. I'd prefer to use PBP3 as its more like what I am used to. MikroBasic Pro is like learning Basic all over again.
BUT, as they say, you can learn BASIC in ten minutes - MikroBasic-Pro might take a few days.
In the UK 18F45K22 for less than £2.00 GBP. How do MicroChip make any money? 12F609's are less than 45p each.
I've just bought a bunch of PICs all brand new from RS-Components.
2 x 12F509
2 x 10F200
5 x 12F629
5 x 16F684
5 x 16F506
2 x 16F722
2 x 18F45K22
Total cost incl P&P less than £14.
Last edited by AndyFreestone; - 7th April 2013 at 18:57.
Bookmarks