Thanks for the replies.....
Will try then out later.... have been working away!
BR
Andy
Thanks for the replies.....
Will try then out later.... have been working away!
BR
Andy
hi All...
Have played with my code a little more....
Have come to conclusion that the serial port is seeing 0xFf before I type any password... I found by putting a 232 sniffer on the ports !!!
Ie the password is 9 chars but the first on occasionally is 0xFF ????
any Ideas ? anyone ?
Tomorrow O will go back to Serin / Serout see how that gets on !
Thank you for help !
For reliable communications, I always clear the receive buffer before transmitting a request to any perif. That way if you have some noise on the comm lines, it won't be interpreted as bad data.
Dave Purola,
N8NTA
EN82fn
MY Defines are now :-
DEFINE HSER_RCSTA 90H 'Set receive status and control
DEFINE HSER_TXSTA 24H 'Set transmit status and control
DEFINE HSER_BAUD 9615 'Baud Rate
DEFINE HSER_CLROERR 1 ' Clear Buffer
Andy,
You can always just use a "HSERIN" bogus statement to throw away anything in the buffer before you execute your regular "HSERIN" statements.
Since the EUSART has a 2 byte buffer you may need to do two of the bogus "HSERIN" statements with timeouts just to make sure you don't get stuck waiting.
Regards,
TABSoft
Hi
Thanks for reply ...
Will try tomorrow and post what happens ...
Thank you for advice
Andy
Bookmarks