Assembler errors trying to use MIBAM


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The BAM_PIN (PORTC,0, L1B) statements define the PIN used and the dutycycle variable.

    But instead of a byte variable for the dutycycle, L1B, L2B and L3B are defined as the PINs again.

    Change them to ...
    Code:
    L1B VAR BYTE ;PORTC.0 
    L2B VAR BYTE ;PORTC.2 
    L3B VAR BYTE ;PORTC.4
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel

    I see where that was an error - I made the changes but still get the same two assembler errors . . . .

    Ken

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The "processor type is undefined" error usually means that MicroCode studio is pointing to the wrong MPASM installation.

    In MCS go to View > Compile and Program Options > assembler tab.
    The path above the "Find" buttons should read ... c:\program files\microchip\mpasm suite
    On 64-bit systems it's ... c:\program files (x86)\microchip\mpasm suite

    If the path is different, click the "Find manually" button and point it to the correct folder.
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thanks...

    That is not it however - the path is correct . I have been assembling and compiling a large program for this project, with no problems. When trying to assemble this small sample program is when I get the errors. As soon as I include MYBAM I get the error. If I comment out that include, and the related MIBAM program, it assembles fine.
    ???
    thanks
    Ken

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You may want to download the MIBAM.pbp file again. Maybe you got a bad download.

    I've compiled your program here (after the L1B, L2B, L3B changes) and there's no errors.

    If you still have problems, send me the .LST file. (support at melabs.com)
    DT

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Thanks Darell

    I did try downloading MIBAM a couple of times with the same results.

    I just sent a copy of the .lst file to the support address - -

    Ken

  7. #7


    Did you find this post helpful? Yes | No

    Red face Problem solved

    Thanks to DT's expert help, my problem has been solved. It was my problem, because I named my program MYBAM - which caused the assembly problems. Don't name your programs the same as the macro - - -

    Ken

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