PDA

View Full Version : 18F25K20 & ANSEL = Error



BigWumpus
- 16th December 2008, 21:39
Hi,

I began to write a programm for a PIC18F25K20...
but PBP Pro doesn't like me any more....

<code> ANSEL=%00000001 ;alle Ports digital</code>

makes a syntax-error.
I've looked around in the def-files. There are ANSEL0 and ANSEL1 as well as ANSEL, but the compiler produces an error until I comment it out.
I don't know exactly where to look.

Darrel Taylor
- 16th December 2008, 22:34
Hmmm, the PIC18EXT.BAS file seems to be missing those.

Add these to that file, or your program ...
ANSEL VAR BYTE EXT
ANSELH VAR BYTE EXT

BigWumpus
- 16th December 2008, 22:39
Tchacka !!!!

Darrel Taylor
- 17th December 2008, 02:36
Bitte schön!,

or, Gesundheit. I'm not sure which. :)
<br>