16F877A and LCD HD44780


Results 1 to 39 of 39

Threaded View

  1. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and LCD HD44780

    Try add flags = 0
    I usually eliminate POT from circuit & tie pin 3 to ground
    The PIC 16F877a has power and ground pins on both sides of the chip, make sure both sides are hooked up
    I did not see any config statement in that code, so how it is running or not is anyone's guess, are you sure it is? Try making a blinking led to be sure.

    The code below is the 16F877A.inc file from my v2.6 install
    Code:
    ;****************************************************************
    ;*  16F877A.INC                                                 *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2003 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 11/06/03                                        *
    ;*  Version   : 2.45                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F87xA.INC'  ; PM header
            device  pic16F877A, xt_osc, wdt_on, lvp_off, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F877A, r = dec, w = -302
            INCLUDE "P16F877A.INC"  ; MPASM  Header
            __config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
            NOLIST
        endif
            LIST
    Notice it says XT_OSC, this is incorrect for your 20 mhz osc, it should say HS_OSC, for any resonator and crystals above 4 mhz, this is an oscillator power setting, either change it here or comment this line out and put the config in your code. This statement assumes you are using a version older than 3.0

    It is always better to copy paste your code than a link to somewhere,however; a link does make a good supplemental.
    Last edited by Archangel; - 24th October 2013 at 11:30.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. 20x4 HD44780 LCD Supplier Recomendations
    By retepsnikrep in forum General
    Replies: 4
    Last Post: - 19th September 2011, 23:43
  2. 2x16 LCD Module with HD44780 + 16F877A
    By comwarrior in forum General
    Replies: 12
    Last Post: - 19th August 2009, 19:38
  3. Lcd Hd44780
    By alaaodeh in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th February 2007, 14:04
  4. code for LCD-4x20 HD44780....HELP
    By Martin.... in forum mel PIC BASIC
    Replies: 13
    Last Post: - 24th July 2006, 22:31
  5. LCD 4x20 HD44780
    By inteco in forum mel PIC BASIC
    Replies: 13
    Last Post: - 27th June 2006, 16:52

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts