Migrating from PIC16F690 to PIC18F4525 and having LCD issues


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jblackann View Post
    If there are any guides on this, this would be quite helpful as well.
    Config fuse - a good thread on how to handle it right here -
    http://www.picbasic.co.uk/forum/show...setting+config

    Try increasing your LCD startup time to 1 second.
    Post the whole code. Maybe we could help you trim it down to remain in the '690.

  2. #2
    Join Date
    May 2006
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    I noticed a wrong configuration with the TRISD. I changed this and was still having problems. I decided to try connecting the LCD on a different pins and it appears to work now. Here is what I did:
    Code:
    DEFINE LCD_DREG    PORTD  'set LCD DATA port
    DEFINE LCD_DBIT    0       'set starting DATA bit (0 or 4) if 4-bit
    DEFINE LCD_RSREG    PORTD   ' Set LCD Register Select port
    DEFINE LCD_RSBIT	4       ' Set LCD Register Select bit
    DEFINE LCD_EREG	PORTC       ' Set LCD Enable port
    DEFINE LCD_EBIT	3           ' Set LCD Enable bit
    DEFINE LCD_BITS	4           ' Set LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES	2       ' Set number of lines on LCD
    DEFINE LCD_COMMANDUS    2000  ' Set command delay time in us
    DEFINE LCD_DATAUS	50      ' Set data delay time in us
    I will review the config settings thread. I will try to clean up my code and post it.

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