Hey Jerson,
I tried changing the the code but for some reason when i try to compile the code, the following error occurrs. <code>ERROR Line 25: Bad expression. (RX.pbp)</code>
<code>rx:
serin rxpin,n1200,[WAIT($66),VALID,UTYPE,UID] 'Line 25
if VALID = 22 then hit
goto rx</code>
Is it the software i am using?
MicroCode Studio - PBP Compiler
The previous code works using RF modules but not for IR.
Regards,
Jeremy
Double check the syntax for SERIN and the wait modifier.
Other than that, are you sure the hardware is working correctly, everything is matched?
If you have not seen this it may help. The receiver code is for a BS2 though.
http://www.rentron.com/Infrared_Communication.htm
Dave
Always wear safety glasses while programming.
See this example http://www.rentron.com/Micro-Bot/IR_Serial.htm
SERIN does not require the WAIT modifier. Just enclose the qualifier in square
brackets. SERIN2 can be used with the WAIT modifier followed by the qualifier
in square brackets.
Last edited by Bruce; - 27th August 2008 at 23:58.
Thanks Guys,
I have been looking around at different posts and the internet and i can't find a solution, they all say what i am doing is correct but it does not work. I have attached a copy of the wiring for you guys to look at. The only other thing i can think of in the Baud Rate and the way its driven. Should N1200 work? or should i drive it TRUE?
Thanks Again,
Jeremy
Your drawing will not display. Try uploading again.
Dave
Always wear safety glasses while programming.
does this attachment work better? PS. i forgot to put the external oscillator on the the drawing, but its connected.
Jeremy
Bookmarks