I don't have the manual in front of me now, but I think that you are missing some parameters in the HSERIN command.
I don't have the manual in front of me now, but I think that you are missing some parameters in the HSERIN command.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
the manual is in PDF format.
Let me know what is missing when you can.
from the data sheet only 3 setup as to be done for receiving.
thank you
Last edited by jackberg1; - 19th January 2025 at 03:25.
Check this thread.
https://www.picbasic.co.uk/forum/sho...IN-with-a-WAIT
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Also, HSERIN starts saving the variables after the WAIT requirement has been met. In your case, it will only save 11 numbers instead of 12.
Code:' code to scan sample : 0 59749 96859 1 MAIN: HSERIN [wait ("0"), str AArray\11]
"No one is completely worthless. They can always serve as a bad example."
Anonymous
I rectified it (hserin 5,MAIN,[STR AARRAY\12])
here's the code from today post:
HSERIN [wait ("0"), str AArray\12]
serOut2 PORTB.0,84, [str BArray\12,13,10]
Thanks for your time, I'll look at it, also I did used a timeout label (hserin 5,MAIN,[STR AARRAY\12])
still no result.
Thanks again.
Works ok for me if BArray has something printable placed in it
perhaps u wired it up incorrectly
Warning I'm not a teacher
thanks to everyone involved to help me on this project.
I tried about every way to setup the HSerin1,2
still not working.
I'm realy suprise since these HSerin command are part of PBP3 for at least 15 years
and today in 2025 cannot find any reliable sample codes.
even the PBP3 examples does not work at all for my setup.
I had 1 rs232/ttl scanner bad (intermitent power on the rs232 rail)
connected another one and the only easy way to make work it's
with the code below.
Code:MAIN: '-------------------------------------------- serin2 PORTB.0,84,50,MAIN,[STR AARRAY\12] serOut2 PORTB.1,84, [str aarray\12,13,10] serOut2 PORTB.1,84, ["Done!",13,10] '-------------------------------------------- GoTo MAIN
Last edited by jackberg1; - 19th January 2025 at 22:02.
Bookmarks