' RECEIVER - CONNECTED TO PC FOR DEBUG ' SERIN_SEROUT2.BS2 ' Using two BS2-IC's, connect the circuit shown in the SERIN command ' description and run this program on the BASIC Stamp designated as the ' Receiver. This program demonstrates the use of Flow Control (FPin). ' Without flow control, the sender would transmit the whole word "Hello!" ' in about 1.5 ms. The receiver would catch the first byte at most; by the ' time it got back from the first 1-second PAUSE, the rest of the data ' would be long gone. With flow control, communication is flawless since ' the sender waits for the receiver to catch up. ' {$STAMP BS2} ' {$PBASIC 2.5} ' baudrate = 115200 SI PIN 0 ' serial input FC PIN 1 ' flow control pin letter VAR Byte Main: DO SERIN SI\FC, 1, [letter] ' recieve one byte PAUSE 1000 ' wait one second LOOP ' repeat forever END