I am migrating code from a Parallax Basic Stamp to a PIC. I am using Pic Basic Pro. I have code that works on the basic stamp when using the parallax debug window, but when I try the same thing using Pic Basic Pro and output to hyperterminal, I am not getting the result I want. I don't know if it is a code issue or if it is a feature built into the basic stamp debug window that I can't duplicate using hyperterminal.
Here is the code
FOR memread = 1 TO 50
pulsin PORTA.0,1,xpulse
pulsin PORTA.1,1,ypulse
serout PORTC.6,N2400,[2,0,11] 'code to determine stating point on display
serout PORTC.6,N2400,["-----------------",10,13]
serout PORTC.6,N2400,["X Pulse = ",#xpulse,10,13]
serout PORTC.6,N2400,["Y Pulse = ",#ypulse,10,13]
PAUSE 250
NEXT memread
Goto loop ' Do it forever
So...what I am trying to do is have the serout for each loop to overwrite the previous output so that the display does not scroll. Using the parallax, the line
serout PORTC.6,N2400,[2,0,11] defines the starting point of the output on the debug termnal. With the basic stamp, the 2 is the command is ASCII for start of text. the 0 and 11 are the x and y coordinates of the starting pooint.
so 2 questions
1) Does anyone know if I can define the starting point of output to hyperterminal so I can overwrite the previous output?
2) If so, can you help me get there? Maybe I need different settings in hyperterminal or ???
Thanks
Bookmarks