1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

PIC IDE - Oshon Software

Discussion in 'Oshonsoft' started by InspEvans, Jun 26, 2017.

  1. InspEvans

    InspEvans New Member

    Joined:
    Mar 9, 2014
    Messages:
    2
    Likes:
    0
    A very simple question for the Oshon assembler. I have the following that will not assemble -

    #include <p16F877a.inc>

    __config _DEBUG_OFF & _WDT_OFF & _LVP_OFF & _CP_OFF & _CPD_OFF & _XT_OSC
    errorlevel -302 ;suppress bank warning

    I have tried every conceivable format (# in front, <> brackets, et al) for the errorlevel but it just won't assemble. When I use MPLBAB Version 8.92, it assembles.

    Thanks!

    Frank
     
  2. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi,
    Try this:
    Eric

    list p=16f877A ; list directive to define processor
    #include <p16F877a.inc>
    __config _DEBUG_OFF & _WDT_OFF & _LVP_OFF & _CP_OFF & _CPD_OFF & _XT_OSC

    ;errorlevel -302
     
  3. InspEvans

    InspEvans New Member

    Joined:
    Mar 9, 2014
    Messages:
    2
    Likes:
    0
    Sheeessshhhhh!!!! I knew it was simple.

    Thanks.....
     

Share This Page