PDA

View Full Version : Help setting up MPASM with MicroCode studio



Tomexx
- 23rd November 2008, 04:15
I decided to start playing with the interrupts and came across Darrel Taylor "Instant interrupts" includes and wanted to try them. However they call for MPASM and I've never used it before (all I ever use is MicroCode studio + PM).


Can someone help me setup and use MPASM with the Microcode studio please?
Apart from DT interrupts, is there any advantage of using MPASM vs PM in everyday pic projects?

Thanks,
Tom

mackrackit
- 23rd November 2008, 04:25
With the 18Fs you need MPASM.

Install MPLAB, MPASM is included.
In MCS, under View - Compile and Program Options - Click the Assembler tab.
There is a check box there -- Use MPASM ---
Click find Automatically.
Should find it if MPLAB is installed in the normal place.

Tomexx
- 23rd November 2008, 04:30
Thanks, I'm using 16F628A but I think I still have to use MPASM for Darryl's instant interrupts. Is that correct?

mackrackit
- 23rd November 2008, 04:33
Yep, MPASM is required for DT's interrupts.

Tomexx
- 23rd November 2008, 04:46
Installed MPLAB 8.1
In MCS, under View - Compile and Program Options - Click the Assembler tab.
There is a check box there -- Use MPASM ---
Click find Automatically. FOUND.


Is that it, how do I use it?

mackrackit
- 23rd November 2008, 04:51
Installed MPLAB 8.1
In MCS, under View - Compile and Program Options - Click the Assembler tab.
There is a check box there -- Use MPASM ---
Click find Automatically. FOUND.


Is that it, how do I use it?
As long as the box is checked to use MPASM, when you compile a program ( F9 on the key board), MCS will use MPASAM to assemble the code, you do not have to do anything else.

Tomexx
- 23rd November 2008, 04:56
IT is, that's it then.
So PBP is the compiler and MPASM the assembler right? Not sure what is the difference. I thought the compiler translated source into .hex file. What does the assembler do then?

mackrackit
- 23rd November 2008, 05:04
PIC Basic compiles the code into assembly language. The assembler generates the hex.

Refer to the PBP manual section 8, for more info.

Tomexx
- 23rd November 2008, 05:12
Yeah, just read section 8,
Thanks mackrackit