initialize a 20x4 LCD from hantornix using PIC 16f628


Results 1 to 3 of 3

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Make sure your timing is right, R/W line is tied to ground. Use a pot (usually <20K works a treat) on Vo a play a little bit with the contrast.

    If you use any pins on PORTA, make sure you have disabled the comparators. Somewhere in your code you should have something like..
    Code:
            BANKSEL CMCON
            MOVLW .7
            MOVWF CMCON
    Your config fuse line should also be well written. Hard to tell what's wrong, no code... and asm on a Melabs PICBasic forum

    However i already did one here awhile back... maybe you want to try it?
    see attachement. It's no way optimized, no way the best method, but may have some interesting thoughts in.

    Enjoy!
    Attached Files Attached Files
    Last edited by mister_e; - 27th May 2008 at 15:52.
    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. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  3. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. LCD 20X4 connect with DS1820
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th March 2005, 11:04

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