I've done it again


Results 1 to 17 of 17

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    79

    Default I've done it again

    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 is
    Code:
     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"
    I've tried all the usual by trying
    Code:
     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 combinations
    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?
    Last edited by karenhornby; - 9th April 2008 at 17:11.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts