better way


Closed Thread
Results 1 to 7 of 7

Thread: better way

  1. #1
    Join Date
    Aug 2005
    Location
    down south
    Posts
    90

    Default better way

    As always I looking for a better way, I know this is NOT the way a real programmer would do it
    thanks
    PBP 16F676 TO 16F676 TO LCD
    THE MANUAL SAYS
    ‘ Wait until the character “A” is received
    serially on Pin1 and put next character into B0"

    WHATS THE BEST WAY TO SEND "GROUNDED" FROM ONE PIC TO PIC TO LCD
    THIS WORKS BUT THINKING THERE MITE BE A BETTER WAY

    TX

    SEROUT PORTA.0,N2400, ["GR"]

    RX

    SERIN PORTA.0,N2400,["G"],B0
    IF B0="R" THEN LCDOUT $FE,1,"GROUNDED"
    " be nice it's people like me that make people like you look smart"
    yes I read the datasheet, of the 300 pages I understood 10

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    That looks about right.

    You do realize that you are not sending "GROUNDED" but just sending "GR"

    The other ways of using hardware serial or maybe the SERIN2 command or DEBUG may or may not be a "better way", depends on what you are doing. SERIN/SEROUT is fine for basic stuff , SERIN2 gives more options....
    Dave
    Always wear safety glasses while programming.

  3. #3
    skimask's Avatar
    skimask Guest

    Default

    Are you looking to make an LCD serial backpack?
    If so, there are a few decent examples of that here on the forums.
    Just do a search...it's out there...

  4. #4
    Join Date
    Aug 2005
    Location
    down south
    Posts
    90

    Smile

    yep mackrackit just "GR"

    skimask if backpack is what it is called when you turn a $9.00 LCD into a $35.00 LCD
    thats what I'm trying to do. Now I Know what to search for
    thanks to the both of you
    " be nice it's people like me that make people like you look smart"
    yes I read the datasheet, of the 300 pages I understood 10

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2005
    Location
    down south
    Posts
    90

    Default

    I just "print PDF" that one along with some more to study up on.
    make it easier when you at least know what to search for LOL
    thanks
    " be nice it's people like me that make people like you look smart"
    yes I read the datasheet, of the 300 pages I understood 10

  7. #7
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by grounded View Post
    skimask if backpack is what it is called when you turn a $9.00 LCD into a $35.00 LCD thats what I'm trying to do. Now I Know what to search for
    thanks to the both of you
    Yep, basically, you take one PIC, write the code, replace LCDOUT with SEROUT, take another PIC and use SERIN to get the LCDOUT.
    Make any sense? It will after you muddle thru that link above...

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