' The transmitter code. Via the transmitter, a "!" is sent. ' The receiving antenna waits until it receives the "!" before beginning ' the ADC. The transmitting antenna sends 8-bits of zeros, which is ' inverted by the serial communication protocal. That means the receiving ' antenna receives 8-bits worth of a high signal for the analog read ' {$STAMP BS2} ' {$PBASIC 2.5} OUTPUT 6 ;connects TO the TX PIN ON the antenna ZERO CON 0 Main: PULSOUT 6, 120 SEROUT 6, 16468, ["!", ZERO] PAUSE 50 GOTO Main STOP END