display received data


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    tq for the sugesstion. one more question, how can i display '83' in LCD? is this code below relevant?
    Code:
    @ device hs_osc
    define osc 20
    define LCD_EBIT 1
    DEFINE LCD_RSBIT 0
    DEFINE LCD_DBIT 4
    DEFINE LCD_DREG PORTC
    DEFINE LCD_RSREG PORTC
    DEFINE LCD_EREG PORTC
    dta var word
    main:
    high portb.0
    pause 50
    serin2 portc.7,84,[wait("A"),dta]
    pause 50
    serout2 portc.6,16468,[dta]
    LCDOUT $FE,1
    lcdout #dta
    low portb.0
    pause 50
    goto main

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I'm sorry, I thought you where using a serial LCD and SEROUT2 to write to that display since there was no LCDOUT in the code in your first post.
    Code:
    dat VAR BYTE
    dat = 83
    LCDOUT $FE, 1, "dat = ", #dat
    Have a look at the manual for the various modifiers that can be used.

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