onde
Junior Member level 1
80c517
Hi,
I have a problem with the Keil C51-Compiler:
If I write
sbit RS = P6^1;
I got the following error:
MAIN.C(8): error C146: 'P6': invalid base address
If I change it to:
sbit RS = P5^1;
it compiles correctly.
In reg517.h P6 is defined as followed:
sfr P6 = 0xFA;
So that should not be the problem.
I can use P6 like P6=1 in Programms, but it seems P6 is not bitadressable??
So what´s the Problem, is there something special I do not know with the 80c517 on Port 6 or is it a Problem with the Compiler???
Pse help,
thx onde
Hi,
I have a problem with the Keil C51-Compiler:
If I write
sbit RS = P6^1;
I got the following error:
MAIN.C(8): error C146: 'P6': invalid base address
If I change it to:
sbit RS = P5^1;
it compiles correctly.
In reg517.h P6 is defined as followed:
sfr P6 = 0xFA;
So that should not be the problem.
I can use P6 like P6=1 in Programms, but it seems P6 is not bitadressable??
So what´s the Problem, is there something special I do not know with the 80c517 on Port 6 or is it a Problem with the Compiler???
Pse help,
thx onde