-
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
-
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.
-
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.