Help with 16f688


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    jessey, Try adjusting the voltage on the Contrast pin of the LCD. It should be close to 0 volts..

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    There's few missing DEFINE and one bad to fit your actual hardware.
    Code:
    DEFINE LCD_RSREG PORTC 'LCD register select port 
    DEFINE LCD_RSBIT 4 'LCD register select bit 
        ' 4      Orange / Black     RS     Register select ------Connect to pin  (6) RC4 
    
    DEFINE LCD_EREG PORTC 'LCD enable port 
    DEFINE LCD_EBIT 5 'LCD enable bit 
        ' 6      Blue / White       E      Enable ---------------Connect to pin  (5) RC5  
    
    
    DEFINE LCD_DREG PORTC 'LCD data port 
    DEFINE LCD_DBIT 0 'LCD data starting bit 0 or 4 
        ' 11     Blue               DB4    Data bit 4 -----------Connect to pin (10)     RC0 
        ' 12     White              DB5    Data bit 5 -----------Connect to pin  (9) RC1 
        ' 13     Green              DB6    Data bit 6 -----------Connect to pin  (8) RC2
        ' 14     Orange             DB7    Data bit 7 -----------Connect to pin  (7) RC3
    Steve

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

  3. #3
    jessey's Avatar
    jessey Guest


    Did you find this post helpful? Yes | No

    Default Working good now

    Hi Steve,

    Thanks for the define codes, my Lcd works like a charm now. I'll remember that the next time I change a Lcd Define to another port.

    Thanks again
    jessey

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


    Did you find this post helpful? Yes | No

    Thumbs up

    You're welcome.

    You live in a great city so far. i went there few years ago.
    Steve

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

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Me too live in a great city Steve.
    I have not seen you here yet.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    A contract and/or a pre-paid airplane ticket always help
    Last edited by mister_e; - 20th October 2006 at 22:24.
    Steve

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

  7. #7
    jessey's Avatar
    jessey Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    I spent some time in Montreal too, in the late 1960's and early 1970's. Beautiful city that still holds fond memories for me.

    It's a small world.

    jessey

Similar Threads

  1. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  2. 16f688 <-> Max232
    By PlantBob in forum Serial
    Replies: 1
    Last Post: - 25th March 2008, 14:57
  3. Error programming 16F688
    By manxman in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 23rd July 2007, 21:10
  4. Direct replacement for 16F688
    By Christopher4187 in forum General
    Replies: 10
    Last Post: - 7th September 2006, 01:20
  5. Problem with 16F688 and Hserout
    By DWV in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th March 2005, 05:37

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