adding a second stop bit to serout?
Could anybody help me add a second stop bit to the serout function? Can it be done in·sxb, or does it need to be done in Assembly?
I can't find anything in the SEROUT in·the help file.
Thanks.
Shaun·
I can't find anything in the SEROUT in·the help file.
Thanks.
Shaun·

Comments
SUB TX_BYTE tmpB1 = __PARAM1 IF __PARAMCNT = 2 THEN tmpB2 = __PARAM2 IF tmpB2 > 0 THEN DEC tmpB2 ENDIF ELSE tmpB2 = 0 ENDIF SEROUT TX, Baud, tmpB1 DO WHILE tmpB2 > 0 PAUSEUS BitTime DEC tmpB2 LOOP ENDSUBOf course, you'll need a PIN definition for TX, and CONstant definitions for Baud and BitTime. Use this declaration:
You may want to use the MAX operator to limit the maximum number of additional stop bits.
Post Edited (JonnyMac) : 5/14/2007 7:33:13 PM GMT
Thanks for the help!
Shaun