SEROUT,HSEROUT or DEBUG ? max 232 or no max232 ?


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    I created a new variable called datatx
    and then after the displaying myvar to LCD with LCDOUT,
    all I did was let datatrx = myvar
    then SEROUT myvar
    And whammo it works :-) YAY ...!
    Well, I'm glad it's working, but I don't think that's what fixed it.

    All that did was copy a byte var to another byte var then displays the copied var. It's no different than displaying the original var in the first place.

    And since it works, I assume that means you don't have PBP 2.60, so I won't need to show an ARRAYREAD example.
    <br>
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default Would love an ARRAY read example :)

    Hi again Darrel

    Would love to see an ARRAY read example if you have the time ..if not just point me to a place to read about or reference it :-)

    Kind regards

    Dennis

  3. #3
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default ARRAYREAD example

    Not sure what sort of ARRAYREAD example you are looking for... but here is one example.

    I am simply reading in a NMEA string from a gps unit and then parsing the NMEA sentence using ARRAYREAD.

    The underscore at the end of each line of the arrayread statement allows you to wrap the text so you do not have such a LONG sentence, yet it is still all one PBP statement.


    Code:
    serin2 gps,188,3000,tmout,[WAIT("$GPRMC,"),STR GPRMC\63\"$"]
    
    arrayread gprmc,[DEC2 hh,DEC2 mm,dec2 ss,_
      wait(","),fix,wait(","),DEC2 latdeg,DEC2 latmin,wait("."),dec4 latminn,_
      wait(","),NS,wait(","),DEC3 londeg,DEC2 lonmin,wait("."),dec4 lonminn,_
      wait(","),EW,wait(","),dec knots,dec Knotss,dec course,_
      wait(","),DEC2 dy,DEC2 mt,DEC2 yr]
    Dwight

Similar Threads

  1. N-Bit_MATH
    By Darrel Taylor in forum Code Examples
    Replies: 38
    Last Post: - 16th December 2010, 14:48
  2. Wireless using debug.
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th January 2010, 14:53
  3. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 20:41
  4. debug not working with MPASM assempler
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2009, 07:51
  5. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46

Members who have read this thread : 3

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