How to define port bits ?
Posted: 12 Oct 2016 15:01
Hi, just started using mikroC having used Keil.
I would like to know the correct method for defining a port bit please.
The help shows the following (but I get compiler error "; expected, but '.0' found")
sbit Abit at P1.0;
I tried the following which does not give a compiler error but is it correct ? I have no hardware yet.
sbit Abit at P1_0_bit;
Thank you very much
Aaron
I would like to know the correct method for defining a port bit please.
The help shows the following (but I get compiler error "; expected, but '.0' found")
sbit Abit at P1.0;
I tried the following which does not give a compiler error but is it correct ? I have no hardware yet.
sbit Abit at P1_0_bit;
Thank you very much
Aaron