I thought when you set "Char receive type" to "Int (extended data)" that if there was not a character available (timeout), the return value would be greater than 256? See attached please. This is running on an 18F4580. This fails on the simulator and the EB006.
This must be a simple mistake or misunderstanding.
[solved] RS232 - Char receive type
Moderator: Benj
[solved] RS232 - Char receive type
- Attachments
-
- RS232Test.fcf
- (5.5 KiB) Downloaded 265 times
Last edited by dbasnett on Thu Sep 08, 2011 9:33 pm, edited 1 time in total.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: RS232 - Char receive type
Hello,
I'm unsure if the new return type is available on the simulator. This could explain the simulation issues. What happens when you send your program to the EB006?
I'm unsure if the new return type is available on the simulator. This could explain the simulation issues. What happens when you send your program to the EB006?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: [solved] RS232 - Char receive type
Great thanks for letting us know, Was surprised when you said it was also happening on the EB006 because I know we gave the code a good test before releasing it.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel