Debug/Serout/Serout2 - please, need advice ...


Results 1 to 14 of 14

Threaded View

  1. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Debug/Serout/Serout2 - please, need advice ...

    Hi Fratello.

    You don't say how your PIC is connected to the PC.
    Whether you have the PIC connected via a MAX232 chip or direct to the PC.
    e.g.
    PIC -> MAX232 -> PC
    or
    PIC -> PC

    It makes a difference on how you use SEROUT or SEROUT2.

    Also, take a look in the PBP manual for the SEROUT2 command.
    I don't think your MODE setting is quite right for you comms settings on the PC, not to mention what I said above about the connectivity between the PIC and the PC.
    If you are trying to use 300 baud 8N1 then setting MODE 300 is most likely not correct.

    Read through section 5.73 (SEROUT2 command) and then look at the table in section 8.6 (SERIN2/SEROUT2 Mode List).

    With this I think you can find the correct MODE value.

    A couple of more suggestions.
    1. You have DEFINE OSC 04
    I don't know if this is an issue since no errors are reported during compile, but you may want to use DEFINE OSC 4 instead as per the manual.
    2. Try a simple program that you just send out a known text string and maybe a value via the serial port without the ADC stuff.
    See if you can get just that to work with your PC and then move on to the ADC stuff.

    Just some suggestions.
    Last edited by Tabsoft; - 14th May 2015 at 18:55.
    Regards,
    TABSoft

Similar Threads

  1. 12f629 serout,debug and serout2 timings
    By Dennis in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 10th January 2010, 03:13
  2. Serout/serin issues, advice required
    By Agent36 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th May 2008, 22:51
  3. debug vs serout vs serout2
    By mychangl in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th March 2007, 05:35
  4. Serout/serout2
    By fowardbias in forum Serial
    Replies: 10
    Last Post: - 23rd January 2006, 05:48
  5. Debug vs SerOut Commands
    By EShatara in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th November 2004, 05:16

Members who have read this thread : 2

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