LCD Problem witch PIC16F676


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    20

    Question LCD Problem with PIC16F676

    Hi all!
    I'm using a PIC16F676 with a 16x2 LCD (CDL4162) but I can't get LCDOut to work!
    This LCD today work without problem with a PIC16F874A...

    these are my DEFINES:

    Define LCD_DREG PORTC ' Port for LCD Data
    Define LCD_DBIT 4 ' so I have
    ' D7 on portc.5
    ' D6 on portc.4
    ' D5 on portc.3
    ' D4 on portc.2
    Define LCD_RSREG PORTA ' Port for RegisterSelect (RS) bit
    Define LCD_RSBIT 1 ' Port Pin for RS bit on porta.1
    Define LCD_EREG PORTA ' Port for Enable (E) bit
    Define LCD_EBIT 0 ' Port Pin for E bit on porta.0
    Define LCB_BITS 4 ' Using 4-bit bus
    Define LCD_LINES 2 ' Using 2 line Display
    Define LCD_COMMANDUS 2000 ' Command Delay (uS)
    Define LCD_DATAUS 40 ' Data Delay (uS)

    Are my connections true?

    at the benigging of the program i added this:
    ANSEL = 0
    CMCON = 7

    and I try to view something with:
    lcdout $fe,1, "Hello Friends!"

    Please help me!!
    thanks to all!
    Last edited by microuser; - 11th August 2005 at 10:39.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    In four-bit mode for PICBasics LCD commands, your LCD connections can be...

    Portx.0, Portx.1, Portx.2 and Portx.3

    or

    Portx.4, Portx.5, Portx.6 and Portx.7

    Make your choice, then make your corrections.

  3. #3
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Thank you very much Melanie.

    Today I will try your suggestions.

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

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