PDA

View Full Version : PBP 2.60 & ADCON1 problem



bitbangerbob
- 20th October 2009, 18:03
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

Acetronics2
- 20th October 2009, 19:44
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

bitbangerbob
- 20th October 2009, 20:55
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

Acetronics2
- 21st October 2009, 09:49
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

Melanie
- 21st October 2009, 12:06
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.