Help LCD


Closed Thread
Results 1 to 5 of 5

Thread: Help LCD

  1. #1
    Join Date
    Jan 2005
    Location
    Puerto Rico
    Posts
    133

    Exclamation Help LCD

    My Controler (Pic18f2620)
    I am Sending Data from one Pic to my LCD with Other Pic but is no Working..

    SerOut LCDScreen, T9600,[LCDCmd,LCDLine1," TEST "]

    ------------------------------------------------------------------------------
    is not displaying nothing

    LCD Code (pic16f688)

    INCLUDE "modedefs.bas"
    OSCCON=$70
    DEFINE OSC 8
    define LCD_DREG PORTC
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTA
    DEFINE LCD_RSBIT 5
    DEFINE LCD_EREG PORTA
    DEFINE LCD_EBIT 0
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 50
    BO VAR byte

    ANSEL=0
    CMCON0=7
    LOW PORTA.4
    LCDOUT $FE,1,"LCD 2.0v" (Work ok)
    pause 500
    HIGH PORTA.2 'Back LED
    LCDStart:
    serin PORTC.5,T9600,BO (no Wotk)
    lcdout BO
    goto LCDStart
    Last edited by jetpr; - 27th April 2008 at 17:54.
    My Hobbies is PicBasic PRO

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


    Did you find this post helpful? Yes | No

    Default

    Did you tried with a slower baudrate like 2400 bauds?

    on the Pic18f2620 side, which osc speed are you using?

    Are you sure LCDScreen pin is not an open collector type?

    any chance to see some code snip of your PIC18F2620 side?

    When you say nothing work... you mean absolutely nothing.. not even some garbage character?
    Steve

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

  3. #3
    Join Date
    Jan 2005
    Location
    Puerto Rico
    Posts
    133


    Did you find this post helpful? Yes | No

    Exclamation

    Yes it work the lcd but all character i send to lcd does not respond

    the only i see is black blocks.
    My Hobbies is PicBasic PRO

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Seems to be a contrast issue to me.

    =========================
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    Could be... but it doesn't explain why the first LCDOUT works huh? Well that's what my half-smart brain tell me

    I feel a baudrate issue, timing issue... never dared to calc the amount of time required for a LCDOUT and to receive a BYTE though. I may try it... later

    I tend to use USART so far... this 2 bytes buffer is often handy...
    Steve

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

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  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 will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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