Hi Fredrick,
A sync pulse of 3000 µs is what is used in the BS1 example visible at page 5 of this doc:
http://www.parallax.com/Portals/0/Do...ceive-v1.0.pdf
(In the BS1 sample code the baud rate is 2400).
I am not a PicBasic Pro user or a Basic Stamp user, so what I can do is very limited
and based only on the user manuals.
Here is my version of the PBP code:
Code:
' Transmitter code
' (Clock = 4MHz).
'
' At 4MHz, a PULSEOUT of 300 is OK.
' 300 * 10 µs = 3000 µs
' (See PBP Manual PULSEOUT).
'
' BAUD MODE = 16780 (Baud rate 2400, 8-bit, no-parity, inverted, output DRIVEN).
'
'
PULSOUT TransmitterPIN, 300 ' sync pulse of 3000 µs
SEROUT2 TransmitterPIN,16780,["!",Counter]
'
Code:
' Receiver code
' (Clock = From 4MHz to 20 MHz).
'
' BAUD MODE = 16780 (Baud rate 2400, 8-bit, no-parity, inverted).
'
'
SERIN2 reciverpin, 16780, [WAIT("!"),Counter]
'
Best regards,
Luciano
Bookmarks