I have done the Test now.. and here we have the problem
It dosenīt work whit the BS2 code (SERIN2/SEROUT2) whit wires between the picīs but the other code whit SERIN and SEROUT works fine.
What could be the problem?
Code:
SERIN2 reciverpin, 16468, [WAIT("!"),Counter]
Code:
PULSOUT TransmitterPIN, 1200
SEROUT2 TransmitterPIN, 16468, ["!",Counter]
iīm not sure if the "16468" in the BS2 program shold be the same in a PBP program, i dont understand how to set those bits. but if there shold be "16468" then what else could be wrong?
EDIT:
Just find that 9600 baud may be unreliable with 4MHz clock, but itīs still not working when i try to lower the baud to 2400.
Itīs not working in inverted mode whit both SERIN/SEROUT and SERIN2/SEROUT2
http://www.microengineeringlabs.com/.../ser2modes.htm
What are iīm doing wrong?
EDIT2:
Can it have someting to do whit that iīm using a 4MHz inernal RC on the transmitter? shold i clock it up to 20MHz whit an external crystal like the reciver?
Bookmarks