Not sure if this has anything at all to do with it but you are using square brackets around your array elements in one then parens in the other.
Not sure if this has anything at all to do with it but you are using square brackets around your array elements in one then parens in the other.
Thanks for the replies.
I have tried the HSERIN with both square brackets and parentheses but neither way works unfortunately. It seems very strange to me that the HSERIN will not work with the data I am trying to receive (I have used it a fair few times in the past with no problems). It seems to be set up the same way as the SERIN2 i.e. 9600 baud, no parity bit, 8 data bits, 1 stop bit and the SERIN2 is receiving in True form.
Any other pointers please?
Cheers
Rob
P.S. I am using the round brackets because of post #2 here by Darrel:
Post #2
Hmmmm,
some more testing shows that:
allows the program to continue whereasCode:hserin [wait ($FD)]
does not.Code:hserin [wait ($FD), dec databyte(0)]
However, if I put my original string in but with the DEC modifier removed, the code works fine:
I have also tried the HEX modifier but again this prevents the code from progressing. Very strangeCode:hserin [wait ($FD), databyte(0), databyte(1), databyte(2), databyte(3), databyte(4), databyte(5)]
Last edited by Rob; - 13th February 2008 at 11:47. Reason: Gramatical error
Rob-
I think that you have to specify the no of decimal digits to be output ie
DEC 3 Databyte(0) will print databyte(0) with 3 decimal digits and leading zeroes
regards
Angus Anderson
Bookmarks