Hello, i'm working on a project where I have to use the LCD and two LEDs at the same time. LCD is commonly on Port 3. So the LEDS are ! LCD will use 7 bits from the port 3, and both LEDs will use one bit each. The problem is that the port is 8-bit. Can I use the LCD on another port, for the example Port 1 ? (Silicion laboratories tells that we should use 4 bits of data on the Port 1). If it is effectively possible, how should I proceed ? Or, can I use LEDs on another port ? Then, how to initialize the port to handle the LED_Block.
sbit LCD_D7 = P1^7; sbit LCD_D6 = P1^6;......... I doubt data is moved to the LCD bitwise PRT0CF |= 0x40; // Enable TX0 as a push-pull output This does not exist on a standard '51 what derivative fdo you use. "in my previous post I asked: "if you are asking: how do I make some code I have change the port it uses, post the code" There is no such in your answer.