LCD and "count": need to clear LCD?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    If I understood what you wanted to do, this should be it.


    Code:
    RPT:
        Count PORTB.0,1000,CNT
        LCDOUT $fe,1, "Freq.= ", DEC Cnt ' Display count
    Goto RPT

    Also, no need for PAUSE 1000 because your Count command itself creates 1000ms delay for LCD.


    --------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Try somethinbg like this:
    Code:
    LCDOUT "Freq.= ",$FE,$C0,DEC Cnt ' Display count
    If Cnt < 100 then LCDOUT " "      ' if Cnt is less than 100 then print a blank
    If Cnt < 10 then LCDOUT " "       ' if Cnt is less than 10 then print a blank 
    PAUSE 1000
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

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