Hi all,
I just wrote a program for a serial stepper controller. The software worked fine as it was receiving commands from the terminal and executing the steps.
the serin command used was:
As I developed the C# software the controller started losing some commands and I ended up with the following situation having erroneous behavior in a simple program with just one serin command:
If I just wait for the "s" the code works fine which means that the serial subsystem works ok as it parses all bytes send to the serial from the PC and recognises the "s".
When I give the following command I get garbage received back to the PC even though serin is the only code line in the program:
garbage in Hyperterminal is :
"œœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœ<"
and it is similar in all com softwares.
This happens in 2 axe-08 and 1 axe-08M I have here and in 2 different motor driver boards.
The usb to rs-232 is the Prolific but I doubt it may cause the problem but I also do not have a clue about the problem.
Actually when serin has to put a value in the register PIC is outputing at port 5. I am wondering if this is kind of a debug function but I really cannot understand how this happens in 3 different micros with a new 1 codeline program.
Has anyone seen this before?
Thanks in advance.
I just wrote a program for a serial stepper controller. The software worked fine as it was receiving commands from the terminal and executing the steps.
the serin command used was:
Code:
serin 5,N2400,("stp1"),b7,b8,b9
If I just wait for the "s" the code works fine which means that the serial subsystem works ok as it parses all bytes send to the serial from the PC and recognises the "s".
Code:
serin 5,N2400,("s")
Code:
serin 5,N2400,("s"),b1
"œœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœ<"
and it is similar in all com softwares.
This happens in 2 axe-08 and 1 axe-08M I have here and in 2 different motor driver boards.
The usb to rs-232 is the Prolific but I doubt it may cause the problem but I also do not have a clue about the problem.
Actually when serin has to put a value in the register PIC is outputing at port 5. I am wondering if this is kind of a debug function but I really cannot understand how this happens in 3 different micros with a new 1 codeline program.
Has anyone seen this before?
Thanks in advance.