LCD contrast


Results 1 to 4 of 4

Thread: LCD contrast

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi robert,

    If i refer to my, i'll get :

    - 1 line contrast squares, 1 line blank, 1 line contrast squares, 1 line blank.

    What is the difference between using a 4 bit bus vs an 8 bit bus? I am trying to use 8 bits 'cause, well I have them. I figured that 8 bits would either give faster communication or some other advantage.
    i always use LCD in 4bit mode. This way you save I/O ( duh! ). It can be more faster... it has too but... who will see it??? i think nobody

    Don't forget the LCD Defines... 4 lines and blah blah blah. Be sure you disable analog comparator and place pull-up on RA4 pin.

    In my case i'll place all LCD pins on PORTB. The define lines will look something like this
    Code:
    '********************** Lcd pinout ******************************
    '
    '                  B0-B3 : Data port 
    '                     B4 : Rs Bit              
    '                     B5 : E Bit               
    '
    define LCD_DREG PORTB   ' Set data pin of LCD to
    define LCD_DBIT 0       ' PORTB.0-PORTB.3
    define LCD_RSREG PORTB  ' Set RS bit of LCD to
    define LCD_RSBIT 4      ' PORTB.4
    define LCD_EREG PORTB   ' Set E bit of LCD to
    define LCD_EBIT 5       ' PORTB.5
    define LCD_LINES 4
    Last edited by mister_e; - 31st January 2005 at 04:30.
    Steve

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

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  4. Controlling LCD contrast?
    By jblackann in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th December 2006, 03:31
  5. How to change contrast LCD?
    By MCU Destroyer in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd July 2005, 14:16

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