Two-Wire Mode: Dtr With Echo; Two-Wire Mode: Dtr Controlled; Two-Wire Mode: Txrdy Auto Control; Setting The Transceiver Control Mode - National Instruments PCMCIA-232 Getting Started

Serial hardware and software for windows nt
Hide thumbs Also See for PCMCIA-232:
Table of Contents

Advertisement

Chapter 4
Using Your Serial Hardware

Two-Wire Mode: DTR with Echo

Two-Wire Mode: DTR Controlled

Two-Wire Mode: TXRDY Auto Control

Note
It is recommended that you use the two-wire TXRDY auto control mode when
you are communicating with a two-wire device. Because this mode handles the
transmitter/receiver enabling for a two-wire connection in your hardware, it reduces the
software overhead required to perform this operation in your application program. For
more information about serial communication in two- or four-wire modes, refer to the
section
Serial Communication Issues

Setting the Transceiver Control Mode

PCMCIA Serial for Windows NT
Use this mode in half-duplex systems where the DTR (Data Terminal
Ready) line must control the transmitter. In the DTR-with-echo mode, the
transmitter is tri-stated when the DTR signal of the UART (Universal
Asynchronous Receiver/Transmitter) is asserted. To transmit, your
application must first clear the DTR bit to enable the transmitter. After the
data is fully transmitted, your application once again sets the DTR bit to
disable the transmitter. Because the receiver is always enabled in this
mode, you not only receive packets from other devices, you also receive the
packets sent from your transmitter.
This mode is similar to the two-wire, DTR-with-echo mode. Use this mode
in half-duplex systems where the DTR line must control the transmitter.
Although this mode uses the same method as the DTR-with-echo mode to
control the transmitter, the hardware automatically disables the receiver
whenever the transmitter is enabled. Thus, you do not receive packets that
you have transmitted.
In this mode, the hardware transparently enables the transmitter and
receiver in a two-wire system. This mode removes the burden of flow
control from the user software. By connecting the transmitter to the
TXRDY (Transmit Ready) line, the hardware enables the transmitter for
each byte to be transmitted. Also, the hardware disables the receiver
whenever the transmitter is enabled, so you do not receive packets that you
have transmitted.
The recommended method for setting the transceiver control mode is with
the serial configuration utility located in the Windows NT Control Panel.
For more information, refer to the
Chapter 3, Configuration. The mode you select in the Control Panel is
automatically configured when you open a port on a serial interface.
in Appendix A,
Serial Port
General Port Settings
4-2
Information.
section in
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pcmcia-485Pcmcia-232/2Pcmcia-232/4Pcmcia-485/2

Table of Contents