A question for all those who have played with LCD displays


Results 1 to 11 of 11

Threaded View

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


    Did you find this post helpful? Yes | No

    Wink NO Lcd resets in the displaying loops !!!

    Quote Originally Posted by Navaidstech View Post
    Sorry guys, got sidetracked here....

    OK, here is the snippet of the code. This is essentially a display routine, which will fire up everytime one of the SPEEDUNITS varaiables changes. This could be as often as 20 ms.
    However, I have also noticed this problem with slower update speeds (ie. 1 second).
    I'm driving a 4x20 display using 4 data lines.

    Code:
    DisplayResults:
        lcdout $fe,1,$fe,2                                                 ' Clear Display
        lcdout $fe,$80,#Speedunits[0], " FPS"                   ' Display pulse value
        lcdout $fe,$89,#Speedunits[1], " FPS"                   ' Display pulse value
        lcdout $fe,$C0,#Speedunits[2], " FPS"                   ' Display pulse value
        lcdout $fe,$C9,#Speedunits[3], " FPS"                   ' Display pulse value
        lcdout $fe,$94,"Top Speed ",#PeakSpeed," FPS"
     
    return
    Hi, Just try to place your " LCDOUT $FE,1 " command OUTSIDE your loop ... ( really needed once only in a program !!! @ top lines i.e. )

    so your sub comes to:

    Code:
    DisplayResults:
     
        lcdout $fe,$80,#Speedunits[0], " FPS"                   ' Display pulse value
        lcdout $fe,$89,#Speedunits[1], " FPS"                   ' Display pulse value
        lcdout $fe,$C0,#Speedunits[2], " FPS"                   ' Display pulse value
        lcdout $fe,$C9,#Speedunits[3], " FPS"                   ' Display pulse value
        lcdout $fe,$94,"Top Speed ",#PeakSpeed," FPS"
     
    return
    Will handle the 50 Hz refreshment, now ...
    and note " Home " command already included in the " lcdout $fe,1 " and " lcdout $fe,$80 " commands ...

    Alain
    Last edited by Acetronics2; - 11th June 2010 at 12:51.
    ************************************************** ***********************
    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 " !!!
    *****************************************

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