having problems with Hantronix 20x4 lcd


Results 1 to 17 of 17

Threaded View

  1. #16
    Rhatidbwoy's Avatar
    Rhatidbwoy Guest


    Did you find this post helpful? Yes | No

    Default

    i got that part. luciano I get what you are saying. we are just getting crossed with the explanation.


    ok get this. I am having problems with my program. I would like for the pointer that I have in my project (transmitter) to go to line four. I have the pointer start in column 2 on the LCD and go up and down. There are three screens that this pointer shows up on and the first screen it works on. The first screen it starts on the second line second column then goes down to line four. The problem that I am having is that I would like for this to happen on the second page also, go from line one to four then scroll to page three, but I can not get it to go down to line four. I have checked the program (transmitter) numerous amount of time and I can not seem to find what the problem is. Do you have any idea on that.


    Where it starts:

    CHANNELS:
    line = linet
    line = linet1
    screen = screent
    line = $81:val = $8E
    CHANNELSA:
    screen = 2
    lcdout $FE, 1
    pause 10
    lcdout $FE, $93, CS1
    lcdout $FE, $D3, CS2
    lcdout $FE, $83, "Channel 1:"
    lcdout $FE, $C3, "Channel 2:"
    lcdout $FE, $97, "Channel 3:"
    lcdout $FE, $D7, "Channel 4:"
    gosub subval
    gosub value
    gosub pointer
    pause 500
    CHANNELSB:
    goto channels1b

    CHANNELS1B:
    if PortB.7 = 1 or PortB.6 = 1 or PortB.5 = 1 or PortB.4 = 1 then pause 300
    if PortB.7 = 1 or PortB.6 = 1 or PortB.5 = 1 or PortB.4 = 1 then CHANNELS1C
    goto CHANNELS1B
    CHANNELS1C:
    if PortB.6 = 1 and PortB.7 = 1 then pause 300
    if PortB.6 = 1 and PortB.7 = 1 then enter
    if PortB.5 = 1 then meninc
    if PortB.4 = 1 then mendec
    if PortB.7 = 1 then chlinc
    if PortB.6 = 1 then chldec
    goto channels1b




    This is where I think the problem is:

    MENINC:
    if line = $81 and Screen = 2 or screen = 3 then Line2
    if line = $C1 and Screen = 1 or screen = 2 or screen = 3 then line3
    if line = $95 and screen = 1 or screen = 2 then line4
    if line = $D5 and screen = 2 then channels1 ' Scroll to page 3
    goto scren
    MENDEC:
    if line = $D5 and screen = 1 or screen = 2 then line3
    if line = $95 and screen = 1 or screen = 2 or screen = 3 then line2
    if line = $C1 and screen = 2 or screen = 3 then line1
    if line = $81 and screen = 3 then line4s ' Scroll to page 2
    goto scren
    LINE1: line = $81:val = $8E:goto scren
    LINE2: line = $C1:val = $CE:goto scren
    LINE3: line = $95:val = $A2:goto scren
    LINE4: Line = $D5:val = $E2:goto scren
    LINE4S: line = $D5:val = $E2:goto channelsa



    Program continues with the loop:

    SCREN:
    if screen = 1 then menua
    if screen = 2 then channelsa
    if screen = 3 then channels1a


    P.S. the program is posted earlier in the forum
    Last edited by Rhatidbwoy; - 21st December 2005 at 21:45.

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Pic18f452 with 20x4 LCD Help
    By djmachine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th November 2008, 22:43
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD 20X4 connect with DS1820
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th March 2005, 11:04

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