serial data to LCD


Results 1 to 9 of 9

Threaded View

  1. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Much simple... your SERIN line is wrong

    SERIN PorPin, Mode, Variable

    Using the square bracket says you want to wait a specific character..

    Code:
    INCLUDE "modedefs.bas"
    M VAR BYTE
    pause 500
    START
            SERIN PORTB.5,N2400,#M
            lcdout $FE,1,#M
            GOTO START
    if you send 1234... it will never fit in a BYTE variable.. max=255...

    Leave your transmitter code as is, but change 1234, to 123 for now to see what happen.


    PS: DEC modifier should not work for SEROUT, but for SEROUT2 .
    Last edited by mister_e; - 18th November 2008 at 20:53.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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