16F877A and LCD HD44780


Closed Thread
Results 1 to 39 of 39

Hybrid View

  1. #1
    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

    _WDT_ON try change to _WDT_OFF it could be your reset

    I am NOT overly familiar with the analog stuff. What I THINK I SEE, is ADCON1 is set to use VDD & VSS as voltage reference, you can change this to an external vref for your A/D conversion in the ADCON1 register, see sect. 11.2 of the data sheet, and you can supply that vREF on AN3, also you lose about .7 volt across those diodes, you could use schottkey or germanium which switch at lower voltage.
    Last edited by Archangel; - 25th October 2013 at 09:12.
    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.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and LCD HD44780

    Hi, Joe

    looks most of the config section diseappeared in the source file ...

    Where are gone the TRISA/TRISB definitions ??? , that between others !!!

    I know most of PBP commands set the I/O's by themselves ... but not all of them !!!
    especially IF ... THEN !!!

    Have a nice day ...

    Alain

    PS: here, the sim runs fine ...
    Last edited by Acetronics2; - 25th October 2013 at 09:32.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    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

    You Shore is RIGHT ! How ya doin' Alain ?
    I just sort of think the author of this code expected users to download and not dissect the code, foolishly I filtered it through Google translator, then spent an hour fixing what Google did to it What I learned was the author is worried about audio pulses above 5 volts blowing the pic's inputs and he suggested resistors and zeners to clip those voltages. I am guessing he might have used it on speaker outputs, whereas our member I think wants it on his preamps.
    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.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and LCD HD44780

    1. What voltages did you apply to the anodes of the diodes and what voltages were required to engage all 16 blocks of the display in your simulation?
    2. What type of diodes did you use?
    Is it possible that Proteus introduces some parameters that I cannot obtain on my protoboard and which make all the difference?
    1. As I said, 2volts on the first run and 1.5 on the second. 2 and 4 Hz for both.
    2. No components were changed.
    It's a sim so all things are possible. BUT these are very common devices and Proteus will report wrongly configured i/o. eg. using ADC module with i/o set for digital. I agree that the prog gets no style points and relies upon defaults but it does seem to work. Sims tend to fall down with arcane timing issues (race conditions, read modify write etc.)

    With all due deference to the other more PBP savy posters on this thread your problem is most likely physical. Check that you have flashed what you think you have flashed, use the pre-compiled HEX. Check component values and the circuit. Make sure your input is what you think it is.

    For example, does your programmer pick up the config fuses from the HEX file? According to my trusty PicKit2 it should be 2F4D.

    Good luck, George

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