| ||
| Description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A Hardware Object that encapsulates the OOPic's serial communication (SC) module which uses 1 Input line and 1 Output line of the OOPic's thirty-one Input/Output Lines and transmits and receives serial data at a specified baud rate. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| When a value is written to the Value property, the value is sent serially out I/O Line 22. When a value is received serially from I/O line 23 it is stored in the Value property and the Received property is set to cvTrue. After the Received property is set to cvTrue, reading the Value property will clear the Received property to cvFalse. The Baud property specifies at which baud rate to send and receive data . It can specify a baud rate of 31500, 1200, 2400, or 9600 Baud. The serial input and output signals are TTL level signals providing 0 and 5 volts. 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. The serial communication (SC) module provides a high-speed serial communication port capable of communicating at 1200, 2400, 9600, and 31500 BPS. It can be configured as full duplex asynchronous or synchronous and can communicate with serial devices such as CRT terminals and personal computers. It uses the standard non-return-to-zero (NRZ) format asynchronous mode (one start bit, eight data bits, and one stop bit). The SC module transmits and receives the lowest significant bit first. The SC module’s transmitters and receiver are functionally independent but use the same data format and baud rate. Each dimensioned instance of the oSerial Object internally uses this single serial communications module and thus only one instance may be active at any given time. Setting the Operate property to 1 activates an instance of the oSerial Object and will deactivate any other oSerial and oSerialPort Objects that were previously activated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Remarks: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| One physical serial port is implemented within the OOPic. The oSerial Object does not provide flow control. It is recommended that applications that require flow control of steaming data use the oSerialPort or the oSerialX Object. The oSerialPort and the oSerialX Objects have flow control properties and the oSerialPort Object uses a buffer for incoming data. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage size & Availability: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the size and availability of the oSerial Object:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the Properties of the oSerial Object:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In
the following examples, the oSerial Object is used
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| oSerialPort - A hardware based serial port with a buffer. oSerialX - A serial port that can use any I/O line. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||