Converting to MPASM


Results 1 to 12 of 12

Threaded View

  1. #1
    Join Date
    Mar 2003
    Posts
    41

    Default Converting to MPASM

    I have never used MPASM, always PM that comes with PBP. I have a 500 line program that compiles and runs perfectly under MicroCode Studio Plus with PBP 2.46 and PM but when I try and use MPASM my system falls apart. The PBP program using PM compiles to 2512 words - with MPASM it generates 3444 errors. That is an average of 5 errors per line of program code. Not what I had in mind.

    I downloaded MPASM v02.15 from the MicroChip site & unzipped it to its own directory. I pointed MCSP to the appropriate directory in View/Compile and Programme Options. I read the MCSP help. I checked the MPASM notes in the PBP manual. Still got 3444 errors.

    Can someone please point me at the basics of using MPASM? Are there settings outside MCSP that need tweaking? Must all commands be in upper case? Do I need a blank at the start of evry line? There has to be a fundamental something I am missing.

    For example the following few lines work in PM.

    @ Device pic16F877, HS_OSC, BOD_OFF, PWRT_ON, WDT_ON, PROTECT_OFF

    trisa = %11111111
    trisb = %11111111
    trisc = %10011111

    But in MPASM I get the following error messages (text abbreviated)
    16F877.inc..unknown processor (16F877)
    Cannot open file (include file "16F877.INC" not found)
    Processor type is undefined
    Duplicate label ("_PORTL"..........)
    Symbol not previously defined PORTC
    Symbol not previously defined TRISB
    Symbol not previously defined TRISC

    I have started reading the MPASM manual but at 278 pages that will take a while.

    Any tips greatly appreciated.

    thanks
    Brian
    Last edited by btaylor; - 3rd November 2005 at 05:09.

Similar Threads

  1. Help setting up MPASM with MicroCode studio
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 23rd November 2008, 05:12
  2. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  3. MPASM vs PM
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th October 2007, 01:29
  4. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  5. 18F8722 and MPASM confusion!
    By Jackson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd April 2006, 01:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts