The oSerialL Object uses the I/O line specified by the IOLineS property to send or receive an 8-Bit serial data transmission at the baud rate specified by the Baud property. The IOLineS property specifies which I/O Line to use to transmit and receive the serial transmission. The IOLineF property specifies which I/O Line to use to control the flow of the serial transmission. In normal operation, both the IOLineS and and the IOLineF Lines use RS232 Logic states. These logic states can be inverted so that both or either the IOLineS and the IOLineF lines use TTL Logic states. (more on this later) Note that the following description of operation is expressed in RS232 Logic states. Serial Output: When a value is written to the oSerialL Object's Value property, the oSerialL Object will wait until the flow control line (F) is brought to 5-Volts by the receiving device indicating that the receiving device is ready to receive a serial transmission. Once at 5-Volts, the value is sent serially out the I/O line specified (S). Serial Input: When the value property is read, the flow control line (F) is set to 5-Volts indicating that the oSerialL Object is ready to receive a serial transmission. The oSerialL Object then waits for the sending device to initiate an 8-Bit serial transmission on the I/O line specified (S). Once initiated, it receives the serial transmission and then returns the 8-Bit value. While the 8-Bit serial transmission is being received, the flow control line is set back to 0-Volts indicating that the oSerial Object is once again busy. The sending device must be configured to follow proper flow control protocol or it could send a second 8-Bit serial signal before the oSerialL Object is ready to receive it. 
When the value of the IOLineF property is 0 then the flow control functions described above are disabled and the serial transmissions are performed without first checking the flow control status. As mentioned above, the RS232 Logic can be inverted to TTL Logic. The InvertS and InvertF properties are provided to invert the expected logic state of the Serial Line and the Flow Control Line respectively. When these properties are set the corresponding I/O Line will work in reverse logic. When they are reversed, the I/O Lines will use TTL Logic. In the diagram above, C-Time is the amount of time between the oSerialL Object processing one byte of data and the next. This amount of time is directly related to how the oSerialL Object is used. Note that there will ALWAYS be some amount of time between bytes. Caution: The serial input and output signals are ALWAYS TTL level signals providing 0 and 5 volts (even if the using RS232 logic states). Conversion to RS232 signals can be done with a TTL to RS232 signal converter chip such as the SN75188 or the MAX203 which will provide the voltage conversion to the RS232 levels of +12 Volts and - 12 Volts as well as providing the required signal inversion. It is important to note that the terms "RS232 Logic" and "TTL Logic" refer to the logical states while "RS232 Level" and "TTL Level" refer to the voltage level. |