PBP 2.60 & ADCON1 problem


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default PBP 2.60 & ADCON1 problem

    I recently upgraded to PBP 2.60 from 2.46.
    Using Microcode Studio Plus V3.0.0.5, when I compile a program named "TEST" for the 16F876A, containing a single line "ADCON1 = $06" I get the following assembler errors:
    Error Test.ASM 47 : [202] illegal character 'x' (x appears as a square)
    Error Test.ASM 47 : [226] numeric constant or symbol name expected
    Error Test.ASM 47 : [201] ')' expected
    Fatal Test.ASM 47 : [300] too many errors

    When I set the compiler option to a different directory, which contains PBP 2.46, the problem dissapears. Examining the listing with Hexedit shows the illeagal character to be $08, also known as ^H and backspace. I haven't been able to find that character in any of the include files or the .mac file shown in the listing.

    I find that other code, which compiled and assembled correctly using older versions of PBP, also exhibits the same problem when ADCON1 is written.

    I use have used PBP for 10 years, writing code for interactive science museum exhibits, and have never encountered the illegal character error.

    Any ideas?

    Thanks,

    Bob Reynolds
    Lead Electronics Developer
    Oregon Museum of Science and Industry

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Question

    Hi,

    I just typed this line into one of my 16F876A Programs : No Problem with V 2.60 and MPASM ...

    So, it might be something else.

    Did you try to compile with MPASM or PM ???

    Could you post the Whole FILE ( attached ) and not a "copy and paste" or rewriting, just to catch any "ghost" character.

    One of the faulty programs could also be helful for debugging ...

    Alain
    Last edited by Acetronics2; - 20th October 2009 at 19:48.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3


    Did you find this post helpful? Yes | No

    Default here are the files

    I am using PM. The only non-printing characters Hexedit shows in the source code are the spaces ($20)


    Thanks for your time and attention,

    Bob
    Attached Files Attached Files

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Question

    Hi,

    Everything fine. No error here ( Whether MPASM or PM used ).

    May be try to wipe off ( from the "add/remove program Windows menu ) and re-install PBP 2.60 ( default Folder used ??? )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I don't use Microcode Studio so I can't comment there.

    For editing I use Notepad because what you see is pretty much what you get saved to Disk. But if you ever happen to use WordPad, Word or some other WP or Text Editor, they have a horrible habit of embedding all kinds of formatting and control codes which are invisible to you on the screen and which then serve to screw-up the Compiler.

Similar Threads

  1. Replies: 14
    Last Post: - 19th January 2012, 19:38
  2. Strange problem with PBP 2.50
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th October 2007, 20:45
  3. Big Problem in PBP To receive DMX
    By programmer07 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2007, 18:49
  4. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  5. Problem DEFINE OSCCAL and PBP 2.46
    By David in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd April 2005, 17:19

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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