Hserin/out BYVAC serial LCD


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Hserin/out BYVAC serial LCD

    Hi

    Thanks for the char handling

    thisone is working perfectly

    hserout ["rg", 13]
    Hserin 1000, start, [STR char\4\$06] ' Get a char from serial port
    pause 10
    if char[0] = $30 then
    goto get_key
    endif

    char(0) = (char(0)-$30) * 100 'answer 200
    char(1) = (char(1)-$30) * 10 'answer 30
    char(2) = char(2)-$30 'answer 8
    serout2 tx,84,[dec char[0]," ",dec char[1]," ",dec char[2],13,10]
    b0 = char[0]+char[1]+char[2]
    serout2 tx,84,[dec b0,13,10]
    lookdown b0, [125,238,237,235,222,221,219,190,189,187,231,215,18 3,119,126,123],keypressed
    serout2 tx,84,[dec keypressed,13,10]
    pause 10
    Hserout ["rc1", 13] ' Send text followed by carriage return and linefeed
    pause 10
    Hserout ["rd","key= ",dec keypressed,13]
    'keypressed = 0
    pause 10

    return

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Hserin/out BYVAC serial LCD

    If this is in a subroutine and get_key is not in the subroutine then you will get problems by not using RETURN, do not jump out of a subroutine.

    if char[0] = $30 then
    goto get_key
    endif

Similar Threads

  1. pic16f88 Serial questions (hserin/hserout, etc.)
    By harralk in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th October 2012, 01:29
  2. serial port interrupt without using hserin
    By cluster in forum Serial
    Replies: 3
    Last Post: - 27th September 2011, 15:56
  3. PIC16F88 HSERIN to LCD Problem
    By robbrownuk in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 6th June 2009, 23:32
  4. parallel LCD to serial LCD
    By maxbao in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th October 2006, 12:44
  5. to convert LCD // hd 44780 --> serial LCD
    By in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th March 2003, 13:37

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