LCD problem with 16F628


Closed Thread
Results 1 to 26 of 26

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    1. Check the SPELLING of your LCD Defines... they must be EXACT because the compiler will not flag errors if have made a mistake there.

    2. Check that you have not mistakenly swapped your E or RS bits and connected them the wrong way around...

    3. Turn down your contrast... if it's too high then you might be swamping any displayed data with black blocks.

    4. Finally, double-check your hardware connections against your DEFINES.

    There are no problems or issues connecting LCDs to a 16F628 on internal oscillator with internal MCLR therefore it must be something in your connection...

  2. #2
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Question

    The compiler is OK.No errors.

    May my programmer cause the problem?
    Because the circuit and the program was working in the past.

    Thanks

  3. #3
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    Melanie,

    I check my circuit and it seems ok.
    That is the diargam of it.

    Please have a look.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Well, let's make sure your PIC is working...

    Got an LED? Connect it say between PortB.0 with a series Resistor (anything between 220R and 470R) and Vss (0v).

    After your LCD define put...

    LED var PORTB.0

    In your main loop, anywhere put...

    Toggle LED

    When the PIC runs, your LED should blink...

  5. #5
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    Dear Melanie,

    You are right. My PIC is not working but I can not understand why?
    I try to blink a led but nothing.Where is the problem with my code?

    I attach my code and the hex file.

    PLEASE HELP MEEEEEEEEEEEEEEEEEEEEEEE.

  6. #6
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    IS ALL THAT OK TO RUN MY PIC WITH INTERNAL OSC?
    I have to write DEFINE OSC 4?

    @ DEVICE pic16F628, INTRC_OSC_NOCLKOUT ' system clock options
    @ DEVICE pic16F628, WDT_ON ' watchdog timer
    @ DEVICE pic16F628, PWRT_ON ' power-on timer
    @ DEVICE pic16F628, MCLR_OFF ' master clear options (internal)
    @ DEVICE pic16F628, BOD_ON ' brown-out detect
    @ DEVICE pic16F628, LVP_OFF ' low-voltage programming
    @ DEVICE pic16F628, CPD_OFF ' data memory code Protect
    @ DEVICE pic16F628, PROTECT_OFF ' program code protection

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


    Did you find this post helpful? Yes | No

    Default

    There is no attachment... nail it to your posting and I will check it...

Similar Threads

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

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