PDA

View Full Version : serin not work



mpardinho
- 19th March 2007, 16:14
Sincronismo = ">"
...

'Transmite
Letra = "A"
serout Rf_Out, N2400, [Sincronismo, Letra]



'Receive
serout Rf_In, N2400, ">", Letra

the problem is here

if letra="A" then ... not work

mackrackit
- 19th March 2007, 20:28
You have "serout" on both


'Transmite
Letra = "A"
serout Rf_Out, N2400, [Sincronismo, Letra]

'Receive
serout Rf_In, N2400, ">", Letra

ewandeur
- 20th March 2007, 10:36
You must use the command SERIN with this sintax:

' Wait until the character “A” is received serially on Pin1 and put next character into B0

SERIN PIN1,N2400,["A"],B0

good luckh