serout2 problem


Closed Thread
Results 1 to 3 of 3

Thread: serout2 problem

  1. #1
    Join Date
    Nov 2008
    Posts
    48

    Default serout2 problem

    Hi all,
    i have a counter from i = 0 to 31, every loop writes out with serout2 five
    characters: serout2 tx_pin, 32, ["{W", data1(i), data2(i), "}".
    So done, i observed the datapin with a logic analyzer and saw, that on several
    outputs data is missing, sometimes only the character "{" is send out, the other
    four are missing, next one is complete with all five chars.... and so on.
    It is not cyclic, it is random. Processor is a 18F6722 with 20MHz.
    What is wrong?
    Regards,
    Ralf

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


    Did you find this post helpful? Yes | No

    Default

    It is a good idea to post all of your code and not snippets, sometimes the problem is not where you think..

    The line you did give is missing a ]

    Where is the data coming from? Interrupts?

    We need more info.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Yes i forgot the "]" in the post. I don't have the code here in the moment,
    but i can say, it is done cyclic in 1 sec refreshtime, always calculated new and
    then send out via serout2. It is not coming from an interrupt.

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