LCDout Command w/ LCD 4x40 display


Closed Thread
Results 1 to 26 of 26

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    DEFINE OSC 10
    DEFINE LCD_DREG PORTB
    DEFINE LCD_BIT 0
    DEFINE LCD_RSREG PORTD
    DEFINE LCD_RSBIT 7
    DEFINE LCD_EREG PORTD
    DEFINE LCD_BITS 8
    DEFINE LCD_LINES 4
    DEFINE LCD_EBIT 6

    dsp var portd.5
    FLAGS = 0

    START:

    dsp = 0
    LCDOUT $FE,1 :PAUSE 500 : LCDOUT "SYSTEM 1" 'lcd upper

    dsp = 1
    LCDOUT $FE,1 :PAUSE 500 : LCDOUT "TWO SYSTEM" ' bottom lcd

    goto start

    by this code, you're saying that you using the full 8bit for data... right???
    1. Be sure you don't revert D0 to D7.
    2. IMO you must define a LCD_LINES 2. This is why you have 2 enable lines... BUT I'M REALLY NOT SURE... i just see it's a 4X40 LCD...
    3. What about if you play with the voltage on Vo pin??? Is at least you see some black square???
    4. AND you didn't set direction of your dsp PIN... TRISD.5=0
    5. You may need a startup delay (about .5 to 2 sec) at the begining.
    6. Maybe DEFINE LCD_DATAUS and DEFINE LCD_COMMANDUS defines may do something.
    Last edited by mister_e; - 14th January 2005 at 16:21.
    Steve

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

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  2. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 02:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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