Reset risetime seems to upset LCD on 18f4550


Closed Thread
Results 1 to 3 of 3

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: Reset risetime seems to upset LCD on 18f4550

    try what this thread is about:
    http://www.picbasic.co.uk/forum/showthread.php?t=8193
    also bypass your LCDpower pins with a .01 µ F cap.
    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
    Feb 2011
    Location
    Durban. South Africa
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Reset risetime seems to upset LCD on 18f4550

    Thanks Joe S

    The power is very well bypassed so I tried the FLAGS = 0 command and it worked but not without a bit of fiddling.
    I reasoned that if any reset occurrs the software would be reinitialised but I must be wrong.
    I first put the FLAGS command at the start of the program but that didnt work.
    I then put it after the clearing and home commands with a pause before continuing as below.

    Lcdout $fe, 1 'CLEAR
    Lcdout $fe, $0C 'CURS OFF
    Lcdout $fe, 2 'HOME
    flags = 0
    pause 2000
    lcdout "Hello WORLD" ' WRITE

    It was also neccessary to adjust the timing parameters quite carefully as below
    DEFINE LCD_COMMANDUS 3000
    DEFINE LCD_DATAUS 150

    It now works from any kind of reset.
    I have used literally hundreds of these displays with several PICS and 8051 types but never battled like this before!

    Thanks again for the suggestion.

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