PDA

View Full Version : debug vs serout vs serout2



mychangl
- 20th March 2007, 14:59
could somebody advice me when should we use debug, serout and serout2 or debugin, serin and serin2 ?

thx

Darrenmac
- 22nd March 2007, 07:47
I use debug to send info from the pic to hyperterminal on my pc. Very handy when fault finding cose because you can send the contents of the variables to a screen to see the values. I gues thats why it is called debug?

skimask
- 22nd March 2007, 17:05
I use debug to send info from the pic to hyperterminal on my pc. Very handy when fault finding cose because you can send the contents of the variables to a screen to see the values. I gues thats why it is called debug?

You can do the same thing with the rest of the serial output commands.
The main difference using DEBUG is that it's the fastest, quickest responding, leanest command of the bunch...
But, it's also the least 'configurable'. All of the pins, modes, etc. have to be designated at design-time, there aren't any options for a change during run-time.
And as the manual states, SERIN/SEROUT is Basic Stamp compatible, SERIN2/SEROUT2 is more advanced.

mychangl
- 25th March 2007, 05:35
Thanks for the tips.....