I've been through the searches trying to find the answer to this, and have also googled it as well as trying to read the manual
I'm trying to get an LCD to display something if both port C.1 AND port C.2 are high, but display something different if the ports are low
my code isI've tried all the usual by tryingCode:IF PORTC.1 = 0 AND PORT C.2 = 0 then lcdout $FE,1,"test 1" If PORTC.1 = 1 AND PORT C.2 = 1 then LCDOUT $FE,1,"Test 2"and various other combinationsCode:IF (PORTC.1 = 0) AND (PORT C.2 = 0) then lcdout $FE,1,"test 1" If (PORTC.1 = 1) AND (PORT C.2 = 1) then LCDOUT $FE,1,"Test 2"
Promise I'll try not to ask stupid questions again (for today anyway)
Forgot to say I'm using PBPro 2.5 and Microcode Studio to assemble it, and Picflash to program, by the way I still cant find any way of setting OSC to HS I've tried various suggestions, and read the thread http://www.picbasic.co.uk/forum/showthread.php?t=543 but none work, I'm guessing its something to do with the rubbish Picflash program I'm using?
Bookmarks