Hello
I've tried to communicate from my CR1000 (os v17) to a microcontroller using the CS I/O port. To do so I tried to open the serial port using this command:
SerialOpen (ComME,2400,16,100,255)
Unfortunately this gives a compiler error: "Format option only available on COM1...COM4"
But the help file (CRBASIC1.HLP) supplied with the cr1000 firmware v17 states:
"The Format parameter is used to specify the type of error detection to be used for the exchange of data. These format options apply to all ComPorts except COM310/COM320, ComSDC7, and ComSDC8."
So "ComME" should work?!
Does anybody know why I get an error message?
Hi Monte,
When in doubt, trust the compiler. (I write the CRBasic help ;)
I will double check with the developer and get back with you. TTL logic may apply only to the COM (e.g., C1/C2) ports.
Dana
Hi Dana
Thanks for your answer.
Have you doublechecked with the developer?
If the TTL format options are not supported right now, will there be support in the near future?
Monte
Hi Monte,
This from the developer:
* Com1..Com4 are capable of all the options.
* ComRS232 and ComME are capable of all but TTL.
* Format options 0, 3, and 4 are the only options applicable using SDC comports.
I wouldn't expect there to be any changes to this.
Regards, Dana
Thanks for clarifying this. (You might add these informations to the CRBasic help files?)
Regards
Monte
I will correct the information in the help files for any future release.
Dana