i m working in C using Keil 3.55a
how can i define a one bit variable
and how can i compare two bits using if
how can i set or clear Bit
and how can i get the compliment of one byte or one bit, like in ASM CPL A or CPL c
sorry for wrong answer, The answer for the 1st one should be the following:
sbit lcd_SCK=P0^4; sbit lcd_SDIN=P0^3; sbit lcd_DC=P0^2; sbit lcd_SCE=P0^1; sbit lcd_RST=P0^0;
sbit is for single bit declaration.
regards, yateesh k
I agree with Neil.