hserout issues on the 18F26K83


Results 1 to 14 of 14

Threaded View

  1. #1
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    137

    Default hserout issues on the 18F26K83

    Hi all,
    Having issues transmitting numeric data out from the 18F26K83 using hserout. No problems with the software serout2, but for some reason all my numerical data is corrupted for hserout ie. any numeric variable sent with a dec or dec2 or dec6 etc is corrupted. Anything sent between quotation marks "" sends fine. Any ideas?

    This is what I should be seeing in my output (transmitted with serout2):

    Start Report
    Base_Pressure =102338
    Elapsed time (s),Z_Gs,Baro_Temp,Baro_mBar,Ch1_Out,Ch1_Active,Ch 1_Firec,Ch2_Out,Ch2_Active,Ch2_Fired,Timer_ON,Time r_Active,Timer_Time,Inhibit_Time,Min Press
    0.000000,2.558,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
    0.024605,1.698,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
    0.061340,0.447,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
    0.098057,-1.4294966557,20.21,1023.28, , , , , , ,, ,15000000,0,1023.27
    0.136882,0.610,20.21,1023.28, , , , , , ,, ,15000000,0,1023.27
    0.183435,2.3,20.21,1023.29, , , , , , ,, ,15000000,0,1023.27
    0.219704,2.952,20.21,1023.30, , , , , , ,, ,15000000,0,1023.27
    0.256500,1.135,20.21,1023.30, , , , , , ,, ,15000000,0,1023.27


    And this is what I'm getting with hserout:

    Start Report
    •}A••= LŠŠj
    Elapsed time (s),Z_Gs,Baro_Temp,Baro_mBar,Ch1_Out,Ch1_Active,Ch 1_Firec,Ch2_Out,Ch2_Active,Ch2_Fired,Timer_ON,Time r_Active,Timer_Time,Inhibit_Time,Min Press
    r‚‚‚‚‚b& b&r’bLŠrb, , , , , , , , S bLŠrj
    rŠ‚ŠššbL MS &r’bLŠrLb, , , , , , , , S bLŠrj
    r’’’bL ªb&r’bLŠrLb, , , , , , , , S bLŠrj
    r‚brŠŠb&r’bLŠrLb, , , , , , , , S bLŠrj
    rLºbršb&r’bLŠrLL , , , , , , , , S bLŠrj
    rL’brb&r’bLŠrL& , , , , , , , , S bLŠrj
    rLSbrŠb&r’bLŠrL& , , , , , , , , S bLŠrj
    r&š’brb&r’bLŠrL& , , , , , , , , S bLŠrj
    r&S‚brʲb&r’bLŠrL& , , , , , , , , S bLŠrj
    r&š¢brN& &r’bLŠrL& , , , , , , , , S bLŠrj
    r&‚‚brN“ &r’bLŠrL& , , , , , , , , S bLŠrj
    r&bL ‚Šb&r’bLŠrL& , , , , , , , , S bLŠrj


    Same code, same everything other than serial transmission method.

    Thanks for any assistance,

    Troy
    Last edited by rocket_troy; - 13th May 2024 at 15:19.

Similar Threads

  1. Loop issues
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 30th September 2021, 01:42
  2. A/D compiler issues
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th March 2014, 13:24
  3. A/D, and compiler issues.
    By BobEdge in forum PBP3
    Replies: 4
    Last Post: - 27th March 2014, 13:20
  4. button press AND hserout issues?!
    By Giulio in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 31st July 2011, 01:22

Members who have read this thread : 16

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