PIC16f690 LCD Not Working


Results 1 to 20 of 20

Threaded View

  1. #6
    Join Date
    May 2009
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Ok, I made the changes and I'm still having the same problem.
    I attached the schematic and the code is listed below:
    [CODE]
    DEFINE LCD_DREG PORTC 'Set port C for the data lines
    DEFINE LCD_DBIT 4

    DEFINE LCD_RSREG PORTB 'Set the RS Port and Pin
    DEFINE LCD_RSBIT 5

    DEFINE LCD_EREG PORTB 'Set LCD Enable bit and pin
    DEFINE LCD_EBIT 6

    DEFINE LCD_BITS 4
    ' Set number of lines on LCD
    DEFINE LCD_LINES 2
    ' Set command delay time in us
    DEFINE LCD_COMMANDUS 2000
    ' Set data delay time in us
    DEFINE LCD_DATAUS 50

    ANSEL = 0
    ANSELH = 0
    CM1CON0 = 0
    CM2CON0 = 0

    Cnt VAR WORD

    'Start Program
    poke TRISC,0
    poke TRISB,0

    Pause 500

    cnt=0
    RPT:
    HIGH PORTB.6
    LCDOUT $FE,1 'CLEAR LCD SCREEN
    LCDOUT "CNT=", DEC CNT
    Pause 1000
    CNT=CNT+1
    GOTO RPT
    END
    [CODE/]
    Attached Images Attached Images  

Similar Threads

  1. 2x16 lcd not working with pic16f72
    By vu2iia in forum Schematics
    Replies: 4
    Last Post: - 16th February 2011, 14:59
  2. My LCD code is not working...
    By kvrajasekar in forum mel PIC BASIC
    Replies: 2
    Last Post: - 7th December 2008, 05:41
  3. Migrating from PIC16F690 to PIC18F4525 and having LCD issues
    By jblackann in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th June 2008, 20:05
  4. Simple LCD code not working..
    By davewanna in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2008, 13:55
  5. SOUND makes LCD quit working
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th April 2008, 14:12

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