In your example program on rs232 what do the following refer to
> ?....
< ?....
also i see this cropping up in programs "==" what does this do.
cheers guys
Ian
RS232 help
- goldwingers
- Posts: 118
- Joined: Wed Sep 06, 2006 1:22 pm
- Location: London
- Been thanked: 1 time
- Contact:
- 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:
Hello Ian
These commands are all comparisons.
> means greater then.
5 > 3 would return true (1)
3 > 5 would return false (0)
3 > 3 would return false (0)
< means less then.
5 < 3 would return false (0)
3 < 5 would return true (1)
3 < 3 would return false (0)
== means logically equal.
3 == 5 would return false (0)
3 == 3 would return true (1)
These commands are all comparisons.
> means greater then.
5 > 3 would return true (1)
3 > 5 would return false (0)
3 > 3 would return false (0)
< means less then.
5 < 3 would return false (0)
3 < 5 would return true (1)
3 < 3 would return false (0)
== means logically equal.
3 == 5 would return false (0)
3 == 3 would return true (1)
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
- goldwingers
- Posts: 118
- Joined: Wed Sep 06, 2006 1:22 pm
- Location: London
- Been thanked: 1 time
- Contact:
reply...
Hi Beng
I get that but in your RS232 sample flowcode you ask if the input is anything other than 255 this is then followed by another decision box with the following
What are these char's im supposing they are < & > but what does it do?. the return char's as in the program.....(CHR<>60) AND (CHR<>62)
Cheers Ian
I get that but in your RS232 sample flowcode you ask if the input is anything other than 255 this is then followed by another decision box with the following
What are these char's im supposing they are < & > but what does it do?. the return char's as in the program.....(CHR<>60) AND (CHR<>62)
Cheers Ian
RS232 Question
Hi Guys,
Another RS232 Question. I know from previous threads that the RS232 component assumes a Xtal speed of 19.96MHz and that to adapt this to other Xtals you need to edit the C code.
Could you please elaborate on this a little. Specifically what (register?) do you edit and how do you derive what the new value should be for the new Xtal.
Thanks
MW
Another RS232 Question. I know from previous threads that the RS232 component assumes a Xtal speed of 19.96MHz and that to adapt this to other Xtals you need to edit the C code.
Could you please elaborate on this a little. Specifically what (register?) do you edit and how do you derive what the new value should be for the new Xtal.
Thanks
MW
- 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:
Hello Ian
In the example CHR <> 60 means not equal to 60.
eg
if CHR = 59 then CHR <> 60 returns true (1)
if CHR = 60 then CHR <> 60 returns false (0)
You can also use the following instead to do the same function
CHR != 60
In the example CHR <> 60 means not equal to 60.
eg
if CHR = 59 then CHR <> 60 returns true (1)
if CHR = 60 then CHR <> 60 returns false (0)
You can also use the following instead to do the same function
CHR != 60
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:
Hello MW
The clock speed in Flowcode is set via the Chip -> Clock Speed menu.
Once this setting has been set correctly you can go into the properties for the RS232 component and adjust the baud rate accordingly.
No edits to the C code are required.
The clock speed in Flowcode is set via the Chip -> Clock Speed menu.
Once this setting has been set correctly you can go into the properties for the RS232 component and adjust the baud rate accordingly.
No edits to the C code are required.
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
- goldwingers
- Posts: 118
- Joined: Wed Sep 06, 2006 1:22 pm
- Location: London
- Been thanked: 1 time
- Contact: