We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, can anyone tell me how i would set up a variable that expects a certain amount of data to be received through rs232.
i.e. to receive 18 bytes of data only once the the rx pin has been set to input.
thanks guys
"can someone please analyse this code?"
For a start, you need to fix the layout (indentation) - it's all over the place!
Use spaces - do not use TABs.
You know where you are with spaces, but the interpretation of TABs is entirely at the whim of the displaying application and/or device and its/their particular configuration(s)!
And use the 'Preview' before posting to verify that it's OK.