Capturing Serial data with BS2 Function Object.
Siri
Posts: 220
I used BS2 to capture 3 Bytes of serial data - using SERIN :
·····" SERIN 16,Baud9600,[noparse][[/noparse]sData1,sData2,sData3]" with BS2 stamp
······························· First Byte ---> variable sDta1
······························· Second Byte ---> variable sData2· etc.
Please can someone show me how to do this using "BS2_Functions" in spin. for the propeller.
OR any other way to cature tyhe data into separate variables.
Thank you.
Siri
I
·····" SERIN 16,Baud9600,[noparse][[/noparse]sData1,sData2,sData3]" with BS2 stamp
······························· First Byte ---> variable sDta1
······························· Second Byte ---> variable sData2· etc.
Please can someone show me how to do this using "BS2_Functions" in spin. for the propeller.
OR any other way to cature tyhe data into separate variables.
Thank you.
Siri
I
Comments
You could just do "sData1 := Debug_Char", then "sData2 := Debug_Char", etc.
There are a variety of other serial input and output routines in BS2_Functions. Read the comments and try them out.