Teleki Electronics

Serial (RS232) Interface Card
General purpose serial,RS232 Interface card
An RS232 interface, general purpose I/O Card that connects to a free serial port on any PC Compatible, with a range of DIP switch selectable Baud rates (600 - 76800: 38400 is max in VB6 : Note, that this is somewhat faster than some USB boards that have a throughput rate of 20ms, ie 50Hz ), Prototyping area, onboard voltage regulator for field applications, 40 way IDC connector for external daughterboard user circuits, and handshaking signals for input/output. The 8 bit output port is supported by a positive strobe to enable latching of multibyte data, whilst the 8 bit input port has a negative strobe associated with it. These two handshaking signals enable extremely easy interfacing to ADC and DAC and other chips that have a data input and a clock requirement, for example, Frequency Synthesisers. Applications covered in the documentation include Temperature measurement (A/D Conversion), Multichannel I/O, Steppor Motor control, and D/A conversion. The excellent multichannel AC Power control App is no longer supported due to current legal restrictions. In any case wiring up an optocoupled Triac controller is trivial, and is your responsiblity to get it right. One customer has had 64 AC Power channels controlled per card, without any problems.

Visual Basic 6 was originally used for the applications development (because of convenience). However, now that all our new software is written for .net, C Sharp is used for most of our applications development. Below is some sample code for Visual C# 2005 and 2008.

 private void dostuff()
        {
            int mybaudrate = 9600;//Note, the card supports up to 76800.
            byte recdata;
            SerialPort port = new SerialPort("COM1", mybaudrate, Parity.None, 8, StopBits.One);
            port.Open();
            byte[] sequence = new byte[] { 0x0A, 0xE2, 0xFF, 0xAB, 0x0A, 0xE2, 0xFF, 0xAB,
                                           0x0A, 0xE2, 0xFF, 0xAB, 0x0A, 0xE2, 0xFF, 0xAB};
            port.Write(sequence, 0, 16);//Write a group of bytes
            port.Write(new byte[] { 0xFF }, 0, 1);//Write a single byte
            recdata = (byte)port.ReadByte(); //Read a received byte
            port.Write(new byte[] { 0x55 }, 0, 1);//Write another byte
            recdata = (byte)port.ReadByte(); //Read another received byte
            label1.Text = "Data Sequence Uploaded..." + recdata;
            port.Close();
				}
}
The following sample applications are included in the CD documentation.

Example ADC Circuit
This uses the LM35DZ Temperature sensor to measure Temperature within a range of +2°C to 150°C.

Temperature Measurement Circuit

Example Steppor Motor Interface
Driven with an open collector 7407. For higher power handling use a VFET array.

Steppor Motor circuit and Truth table

Key Benefits
Software (source) Visual Basic 6, and CSharp. Null modem cable included. Documentation (on CD) covers ADC, DAC, Steppor motor control and multichannel applications.

Pricing, £79 per unit.
Home

It's possible to buy cheap versions of this type of card, however, be aware, that they are all limited in some way. Some have a fastest baud rate of 1200, or a command transit of 20ms, which is basically useless for anything serious. Most don't have any handshaking signals, so sending multibyte data is extremely cumbersome (USB kinds included).

Input/outputs are protected by HCMOS buffers. A further level of buffering between the onboard UART and the host PC is a MAX232 RS232 level converter. Make sure, you know what you are doing with your circuitry. We will not be held responsible for customer enthusiasm to get a circuit working as fast as possible and hence making mistakes with connections etc.