CONTROL SYSTEM METHODS AND APPARATUS FOR INDUCTIVE COMMUNICATION ACROSS AN ISOLATION BARRIER

Abstract: Improved control apparatus (fig.1) and methods transfer information between devices, such as controllers and field devices, utilizing a modulator(16) that generates a pulse width modulated (PWM) signal containing information to be transferred by a first of the devices, e.g., the controller (12), to the second device. A transformer (18) or other inductive device transfers the PWM signal across the isolation barrier, where it is demodulated to analog form for application to the second device, e.g., the field device (14). Information transferred from the second device to the first device can be transferred in an amplitude modulated (AM) signal that utilizes, as its carrier, a fixed duty cycle output of the modulator that generates the PWM signal.

Description: CONTROL SYSTEM METHODS AND APPARATUS FOR INDUCTIVE COMMUNICATION ACROSS AN ISOLATION BARRIER Background of the Invention The invention relates to control systems and, more particularly, to methods and apparatus for transferring information across an isolation barrier between control devices such as, by way of non- limiting example, field devices and the systems that monitor and/or control them. The invention has application in the exchange of data/control signals in process, industrial, environmental and other control systems. The terms "control" and "control systems" refer to the control of a device or system by monitoring one or more of its characteristics. This is used to insure that output, processing, quality and/or efficiency remain within desired parameters over the course of time. In many control systems, digital data processing or other automated apparatus monitor a device, process or system and automatically adjust its operational parameters. In other control systems, such apparatus monitor the device, process or system and display alarms or other indicia of its characteristics, leaving responsibility for adjustment to the operator. Control is used in a number of fields. Process control, for example, is typically employed in the manufacturing sector for process, repetitive and discrete manufactures, though, it also has wide application in utility and other service industries. Environmental control finds application in residential, commercial, institutional and industrial settings, where temperature and other environmental factors must be properly maintained. Control is also used in articles of manufacture, from toasters to aircraft, to monitor and control device operation. Modem day control systems typically include a combination of field devices, control devices, workstations and, sometimes, more powerful digital data processors. Field devices are the "eyes, ears and hands" of the control system. They include the temperature, flow and other sensors that are installed on or in the process equipment to measure its characteristics. They also include positioners and other actuators that move or adjust the equipment settings to effect control. Controllers generate settings for the control devices based on measurements from sensor type field devices. Controller operation is typically based on a "control algorithm" that maintains a controlled system at a desired level, or drives it to that level, by minimizing differences between the values measured by the sensors and, for example, a setpoint defined by the operator. Workstations, control stations and the like are typically used to configure and monitor the process as a whole. They are often also used to execute higher-levels of process control, e.g., coordinating groups of control devices and responding to alarm conditions occurring within them. In an electric power plant, for example, a workstation coordinates control devices that actuate conveyors, valves, and the like, to move coal or other fuels to a combustion chamber. The workstation also configures and monitors the control devices that maintain the dampers to control the level of combustion. The latter operate, for example, by comparing in the temperature of the combustion chamber with a desired setpoint. If the chamber temperature is too low, the control algorithm may call for incrementally opening the dampers, thereby, increasing combustion activity and driving the temperature upwards. As the temperature approaches the desired setpoint, the algorithm incrementally levels the dampers to maintain the combustion level. The field devices, control devices, workstations and other control-related that make up a process control system are typically connected by a hierarchy of communications lines. Ever increasingly, these are Ethernet or other IP network connections, though various buses are still in use, especially lώking field devices to their control devices. Regardless, the field devices are typically electrically isolated from the rest of the control system. In the case of the electric power plant, for example, this is necessary to prevent harm to the control devices, workstations and other plant equipment — not to mention the plant personnel - from the high voltages and currents existing where the power is actually generated. The reverse is likewise true: static discharges or standard line voltages present in the plant control room could knock out field devices, or worse, if circuited back to the power-generating equipment. The art suggests a number of mechanisms for transferring control and data signals between control systems and field devices across an electrical isolation barrier. These include optical and capacitance-based mechanisms, though, the most popular form of isolation relies on inductance, typically, as embodied in transformers. Transformer-based isolation has several advantages over competing mechanisms. Among these are lower cost, durability and reliability. However, when utilizing conventional circuits such as shown in Figure 1, the bandwidth of the data transfers is limited — unless resort is had to unduly large transformers. This can be problematic in applications where power or physical space are limited. An object of this invention is to provide improved methods and apparatus for communication across an isolation barrier. A more particular object is to provide such methods and apparatus as are based on inductive transfer across the barrier and are suitable for use with process, industrial, environmental and other control systems. Another object of the invention is to provide such methods and apparatus as are suited for use in transferring information between control devices that normally rely on analog signaling, such as the industry standard FoxComm™ and HART™ protocols, to communicate control, data and other information signals. A further object of the invention is to provide such methods and apparatus as can be implemented with minimum consumption of power and minimum use of physical space. A related object is to provide such methods and apparatus as do not generate undue heat. Still yet a further object is to provide such methods as can be implemented at low cost, using existing off-the-shelf technologies. Summary of the Invention The foregoing are among the objects achieved by the invention, one aspect of which provides improved apparatus for transferring information between control devices over a galvanic or other isolation barrier. The apparatus has a modulator that generates a pulse width modulated (PWM) signal from a frequency shift keying (FSK), or other frequency modulated (FM) signal, containing information being transferred by a first control device, e.g., a controller. A transformer or other such circuit element inductively transfers the PWM signal across the isolation barrier, where it is demodulated to analog form for apphcation to a second control device, e.g., a field device (or controller) Further aspects of the invention provide apparatus as described above in which the PWM signal is generated from an FSK signal output by a modem, e.g., that is coupled to a control device (such as a controller) generating information to be transferred. Such an FSK signal can be compatible with a FoxComm™ , HART™ or other industry standard or proprietary FSK or FM protocol. Still further aspects of the invention provide apparatus as described above in which the PWM signal is demodulated by a low pass filter. Such a filter can be constructed, for example, using an resistor capacitor (RC) circuit. A buffer is utilized, according to related aspects of the invention, to modify the impedance of the RC circuit for output to the field device. By way of example of the foregoing, digital signals representing command and data output by a controller are converted to analog FSK form by a modem. The analog signal is applied to a pulse width modulator that generates a fixed-frequency PWM signal having pulses whose widths vaiy in accord with the amplitude of the FSK signal and, therefore, in accord with the controller output. The PWM signal is carried over the isolation barrier by a transformer and routed to a low pass filter that demodulates it back into analog FSK form. The FSK signal can be routed to a field device, e.g., via an intelligent transmitter. Further aspects of the invention provide apparatus as described above equipped for transferring information from the second control device (e.g., the field device) to the first control device (e.g., the controller). A modulator generates an amplitude modulated (AM) signal from an FSK signal embodying the information generated by the second device for transfer. That AM signal utilizes a carrier component that is based on a fixed duty cycle output of the pulse width modulator used to transfer information in the reverse direction. That AM signal is transferred over the isolation barrier by the transformer, where it is demodulated to FSK form for application, e.g., to a modem and, then, to the controller. By way of example, an FSK data signal received from a field device is multiplied by an AND gate with the output of the pulse width modulator, which is set at a fixed width duty cycle when the controller is not transmitting. The resulting AM signal is transmitted over the transformer to the control side, where an envelop detector demodulates it back to FSK form for further demodulation to digital, by the controller's modem, and processing by the controller. Further aspects of the invention provide individual control system devices constructed and operated in accord with the foregoing. Apparatus configured and operating as described above have the advantage of permitting information encoded in analog FSK signals (and, in turn, encoded in PWM and AM signals) to be transmitted between electrically isolated components of a control system over small, low power transformers. Brief Description of the Drawings A more complete understanding of the invention may be attained by reference to the drawings, in which Figure 1 depicts a prior art configuration for transmitting information over an isolation barrier between a control device and a field device; Figure 2 depicts a system according to the invention for transmitting frequency shift keying (FSK) signals that are, in turn, encoded in PWM signals over an isolation barrier from control device to field device; Figure 3 depicts the system of Figure 2, additionally showing the transmission of FSK signals that are, in turn, encoded in AM signals over the isolation barrier from the field device to the control device; Figures 4A - 4B depicts the architecture of an application specific integrated circuit (ASIC) embodying a communications system according to the invention; Figure 5 depicts a dual tone asynchronous block of the ASIC of Figures 4 A - 4C; Figure 6 depicts an asynchronous frame supported by the dual tone asynchronous block of Figure 5; Figure 7 depicts a relationship between NRZ and dual tone FSK as supported by the dual tone asynchronous block of Figure 5; Figure 8 depicts a Hart dual tone signal of the type generated by a dual tone asynchronous block of Figure 5; Figure 9 depicts a channel block diagram for the dual tone asynchronous block of Figure 5; Figure 10 shows universal serial transmitter and receiver block level diagrams for the dual tone asynchronous block of Figure 5; Figure 11 illustrates the duration of signal peaks and valleys in a dual tone signal of the type generated by an FSK modulator of the dual tone asynchronous block of Figure 5; Figure 12 depicts re-evaluation of a dual tone signal in a dual tone asynchronous block of Figure 5; Figure 13 depicts a dual tone generation circuit in a dual tone asynchronous block of Figure 5; Figure 14 is a block diagram of the continuous autocorrelation method in a dual tone asynchronous block of Figure 5; Figure 15 illustrates the relation between the dual tone input tone, its 28-bit delayed signal tone, their XOR comparison for a HART signal of the type generated by dual tone asynchronous block of Figure 5; Figure 16 depicts counter ranges and continuous autocorrelation during generation of a HART signal of the type generated by dual tone asynchronous block of Figure 5; Figure 17 depicts integrate and dump circuitry of a dual tone asynchronous block of Figure 5; Figure 18 depicts a FSK dual tone signal suffering from low frequency loss and then from high frequency loss of carrier; Figure 19 depicts a count waveform at the integrate and dump circuit of Figure 19 resulting from the losses depicted in Figure 18; Figure 20 is a block diagram of the PWM circuit in a dual tone asynchronous block of Figure 5; Figure 21 depicts a PWM waveform generated by a dual tone asynchronous block of Figure 5; Figure 22 depicts a FIR filter algorithm in a dual tone asynchronous block of Figure 5; Figure 23 depicts trapezoidal waveform that emerges from the FIR filter of Figure 22; Figure 24 depicts a loopback configuration in a dual tone asynchronous block of Figure 5; Figure 25 is a block diagram of a pin controller of a dual tone asynchronous block of Figure 5; Figure 26 depicts a mapping of the I O bit, Inversion bit and I/O mux control bits for a pin controller for Figure 25; and Figure 27 depicts IO pin control registers in dual tone asynchronous block of Figure 5. Detailed Description of the Illustrated Embodiment Figure 1 illustrates a prior art system for galvanic isolation of the components of a process control system. Here, a control device 12 (e.g., a controller) generates a digital signal for controlling a field device 14. Those signals are transmitted to a modem (which may be integral to the control device or, more typically, coupled to it via a serial port) and modulated to analog form, more specifically, an frequency shift keying form, which can be a "tone" signal in the range of 1 - 5 kHz. A transformer 18 is used to pass the FSK signal across an isolation barrier 20 from the "control side" of the system to the "field side," where it can be applied to the field device directly, via a modem, or otherwise. By a similar mechanism, data (or other control) signals generated by the field device 14 are passed back over the transformer in FSK form, demodulated to digital form and routed to the control device 12 for processing. A drawback of systems of the type illustrated in Figure 1 is the cost, large size and high power requirements of the transformers required to transfer the FSK signals across the isolation barrier. Figure 2 illustrates a system according to the invention for transmitting control, data and other information across an isolation barrier from a control device 12 to a field device 14. The illustrated embodiment is described in the context of process control, though those skilled in the art will appreciate that the invention has apphcation in industrial, environmental and other control systems as well. Like numbered elements in Figures 1 and 2 pertain to like devices that perform like functions. Thus, the system of Figure 2 includes a first control device, such as controller 12, that generates a signal embodying command, data or other information (hereinafter, a "control" signal) for transfer to a second control device, such as field device 14. By way of non-limiting example, in the illustrated embodiment, controller 12 can be any type of control device, such as a controller, workstation, or the like. By way of further non-limiting example, field device 14 can be any of an actuator-type or sensor-type field device, of the "smart" variety or otherwise, available from the assignee hereof, or otherwise. Of course, those it will be appreciated that the invention has apphcation in the transfer of information between any variety of control devices. Thus, in further embodiments of the invention, the first and second control devices can be any of workstations, field controllers, field devices, smart field devices, or other device for any of industrial, manufacturing, service, environmental, or process control. Moreover, though the illustrated devices 12, 14 are in a control relationship, those skilled in the art will appreciate that the isolation mechanisms described herein can be utilized for communications between any devices in a control environment, regardless of whether those devices control one another, are controlled by one another, are peers or otherwise. In the illustrated embodiment, the control signal generated by device 12 is in digital form (as graphically depicted by square wave 12a). This can be any proprietary or industry standard digital signal embodying desired command, data or other information generated by the device 12. The control signal is modulated to analog form (as graphically depicted by sine wave 16a) by modem 16' in any manner, proprietary or otherwise, known in the art. By way of non-limiting example, in the illustrated embodiment, the analog form is a frequency shift keying (FSK) signal defined by "tones" in the range of 1 - 5 kHz range that are superimposed on a 4 - 20 mA current signal, in the manner of industry standard FoxComm™ and HART™ protocols. Of course, those skilled in the art will appreciate that the invention has application in the transfer of other FSK and/or other frequency modulated signals, as well. This FSK (or tone) signal is superimposed on a 40 Pulse width modulator 22 converts the FSK control signal to a pulse width modulated (PWM) form, as graphically depicted by wave 22a. Such conversion can be accomplished using any proprietary or industry standard PWM circuitry and techniques known in the art and, preferably, is accomplished as described below. The modulator 22 can operate at any frequency suitable for the purposes hereof and, by way of non-limiting example, in the illustrated embodiment operates at 1 MHZ. With further reference to Figure 1, the PWM-encoded control signal is applied to transformer 18' for transfer across the isolation barrier. The isolation barrier constitutes any physical barrier across which isolation is desired. This can be a physical barrier, such as a quartz, glass, ceramic or other separation medium. It can also be a "virtual" barrier, such as an equipment boundary, plant boundary, and/or geographic point across which galvanic or other electrical (and physical) protection is desired. Regardless, the barrier 20 need only permit the inductive transfer of electromagnetic waves, e.g., of the type generated between the primary and secondary coils of a transformer 18' or other inductive circuit elements. Transformer 18' comprises any transformer or other combination of devices suitable for inductive transfer over the isolation barrier. This can be a transformer of the type conventionally used in the process and other control arts for such purpose. Preferably, however, it is a smaller, less costly and uses less power than traditional transformers that are used to transfer FSK signals directly (i.e., without encoding in PWM form). By way of non-limiting example, transformers suitable for the inductive transfer of PWM signals encoding control, data and other information in embodiments of the type shown in Figure 2 have inductance in the range of 600 μH - 700 μH and, more preferably, 750 μH - 900 μH and, still more preferably, 1000 μH - 1500 μH. Suitable such transformers 18' of the type available, by way of non-limiting example, from Pulse Engineering, Inc., are suitable for this purpose. PWM-encoded control signals inductively transferred by the transformer 18' across the isolation barrier are graphically depicted by wave 22b in the drawing. These signals are demodulated back into analog form and, particularly, into FSK form, in any manner, proprietary or otherwise, known in the art. In the illustrated embodiment, by way of non-limiting example, this is accomplished through use of a low pass filter comprising a combination of resistor 24 and capacitor 26. In the illustrated embodiment these are arranged to pass the low frequency components in the range of 0 - 10 kHz and, preferably, 1 kHz - 5 kHz, though, those skilled in the art will appreciate that other ranges and/or combinations of components can be used to provide the desired demodulation. The demodulated signal is graphically depicted by sine wave 26a. The impedance of the analog signal is adjusted, in the illustrated embodiment, by buffer 28 of the type conventionally used in the art for this purpose. A Transmit Enable signal is apphed to the buffer 28 during periods when information is being transmitted from the control device 12 to the field device 14. The impedance-adjusted signal is applied to the field device 14 directly, via a modem, or otherwise, over a conventional transmit/receive loop. In the illustrated embodiment, by way of non-limiting example, this loop comprises capacitor 30, resistor 32 and power source 34, which are arranged in the manner shown and whose respective values are selected in the conventional manner in the art to effect transfer of the analog control signal to the field device 14 and receipt of data generated by it. The illustrated embodiment demodulates the PWM-encoded control signals into an analog form substantially the same as the format output by modem 16. Thus, for example, where analog control signal 16a is in a FoxComm™ format, signal 26a is demodulated into that format, as well. Alternate embodiments of the invention demodulate the PWM-encoded control signals into alternate analog formats (e.g., a HART format) or into digital formats, e.g., as determined by the needs of the field device to which the demodulated signal is to be apphed. Figure 3 illustrates circuitry utilized in accord with the apparatus of Figure 2 for transmitting data and other information across the isolation barrier 20 from field device 14 to control device 12. Analog FSK signals containing that data and other information (hereinafter, device signals) generated by the field device in the conventional manner are received in the aforementioned loop, e.g., via direct apphcation by the field device 14, via modem or otherwise. In a preferred embodiment, these signals originate in digital form at the field device 14 and are modulated to analog by a modem, not shown, to analog. As above, the analog signals can be in the range of 1 kHz - 5 kHz and can encode the data and other information in accord with proprietary or industry standards. In the illustrated embodiment, by way of non-limiting example, the analog signals are FSK signals in accord with the standard FoxComm™ or HART™ protocols. The analog signals received from the control device 14 are graphically depicted by waveform 14a. These signals are passed through a band pass filter 36 when the control device 12 is not generating and transmitting control signals and, thus, when the illustrated Transmit Enable signal is not asserted. The band pass filter 36 removes frequency components of the analog device signals outside the range 1 kHz - 15 kHz and, preferably, outside the range 3 kHz - 12 kHz. This has the effect of removing noise from the signal. The filtered analog device signals are subsequently used to modulate the amplitude of a carrier signal. Any carrier signal can be used for this purpose. However, in the illustrated embodiment, by way of non-limiting example, the output of the modulator 22 is used. To this end, the modulator 22 is set to a fixed duty cycle during periods when the control device 12 is not generating and transmitting control signals across the isolation barrier 20. Any duty cycle can be used, though, in the illustrated embodiment, a duty cycle of 20% - 80% and, preferably, approximately 50% is used. At this latter value, by way of example, the modulator 22 generates a 1 MHZ signal whose pulses have a width equal to 50% of the pulse period. This signal is, of course, inductively transferred over the barrier 20 by the transformer 18', thereby, permitting its use as a carrier, when the control device 12 is not generating and transmitting control signals. Modulation of the carrier amplitude to encode the field device's (or transmitter's) FSK signal can be achieved in any manner known in the art. hi a preferred embodiment, by way of non-limiting example, it is accompHshed by multiplying or logically AND'ing the FSK device signal with the carrier, i.e., the modulator output, using AND gate 38. The resulting amplitude modulated signal, which is graphically represented by waveform 38a, is applied to the transformer 18" for inductive transfer over the barrier 20 to the control side. Like transform 18', transformer 18" comprises any transformer or other combination of devices suitable for inductive transfer over the isolation barrier. This can be a transformer of the type conventionally used in the process and other control arts for such purpose, again, however, smaller, less expensive and using less power than transformers traditionally used to carry FSK signals across an isolation barrier. By way of non-limiting example, transformers suitable for the inductive transfer of the amplitude modulated device signals have inductance in the range of 600 μH - 700 μH and, more preferably, 750 μH - 900 μH and, still more preferably, 1000 μH - 1500 μH. Suitable such transformers 18" of the type available, by way of non-limiting example, from the same sources as transformer 18' Amplitude modulated device signals inductively transferred by the transformer 18" across the isolation barrier 20 are graphically depicted by wave 38b in the drawing. This signal is demodulated back into analog FSK form in any manner, proprietary or otherwise, known in the art. In the illustrated embodiment, by way of non-limiting example, this is accomphshed through use of an envelope detector 40 with a time constant of between 1 μS and 2.5 μS and, preferably 1.5 μS. A preferred envelope detector comprises an capacitor of 220 pf and a resistor 6.81 kϋ configured as shown. Those skilled in the art will appreciate that capacitors and resistors of other values may be utilized to achieve the desired time constants. The resulting analog signal, encoding the data and other information from the original device signal, is depicted by waveform 40a. This can be applied directly to the confrol device 12, via modem or otherwise. In the illustrated embodiment, modems 16', 16", pulse width modulator 22 are embodied in a communications controller applications specific integrated circuit 42, which includes circuitry for performing other communications functions as well. That element 42 is referred to, alternatively, as the "ASIC" or "CommControl ASIC" in the text below. Those skilled in the art will, of course, appreciate that the invention can be implemented in other form factors, whether hardware or software, and with circuit element different than those shown in the drawing and described below. The CommControl ASIC, as well as one or more other components illustrated in Figures 2 and 3 (apart from controller 12 and field device 14) can be embodied in any variety of input/output circuits utilized to communicate between process, environmental or other confrol devices. Such circuits can be integral with any such a control device (e.g., a controller) or embodied in a separate communication device, h the illustrated embodiment the ASIC and aforementioned components are embodied in an input output module that is electrically coupled to, but physically separate from, the confrol devices 12 and 14. Such module is designated by the grayed regions of Figures 2 and 3. The illustrated input/output module includes, in addition to the circuitry discussed above, circuitry that transfers power across the isolation barrier to drive the field side of the input output module as well as to drive the field device 14 (and associated transmitter) itself. Such power circuitry is illustrated in the drawing as including a DC/DC converter, a transformer and a rectifier, all coupled in the manner shown and configured and operated in the manner conventional to the art. It will, of course, be appreciated that any other power fransfer circuitry known in the art may be used for this purpose. The illustrated input/output module includes additional circuitry that converts and transfers to the controller 12 a digital signal generated from the 4 - 20 mA current signal communicated between the input/output module and the field device 14. That current signal is traditionally referred to as the "analog" component of a FoxComm™ or HART™ signal, but shall be referred to a "current signal" to avoid confusion with the FSK component (which is traditionally but somewhat erroneously referred to as a "digital" signal, but which shall continue to be referred to as an analog signal elsewhere herein). The additional circuitry includes an A/D converter, which converts the current signal to digital for transfer across the isolation barrier via the optical isolator (comprising a photo diode and transistor opposed across the barrier). The digital signal is routed to a processor local to the input/output module, which can format the signal for transfer to the controller 12. In addition to providing the aforementioned function, the processor coordinates and control operations of the other components of the input/output module, all in the manner traditional in the art. While the circuitry described immediately above converts and transfers to the controller 12 a digital signal generated based on the milliamp current signal from the field device 14, those skilled in the art will appreciate that corresponding circuitry (not shown) can be provided to transfer a milhamp current to the field device from controller. Such corresponding circuitry utilizes a digital to analog converter and a voltage to current converter in place of the A/D converter of the iUustrated circuit, all in the conventional manner. Modem 16 and pulse width modulator 22 are discussed below in connection with the DUAL TONE feature of the ASIC. In the illustrated embodiment, this provides asynchronous FoxComm™ and HART™ communications through eight independent channels. High frequency pulse width modulation encoded transmission supports RF transformer galvanic isolation with minimal external circuit support and cost. In addition, ASIC 42 includes • An 80186-compatible stored program microprocessor controller, which may be switched into slave mode to accommodate an external master controller and for external emulation during software development and debugging. • High speed synchronous serial communications capability through two independent HDLC channels. • Asynchronous serial communications capability through three UART devices (one is a standard console, and two are highly buffered "fastports"). • Field Analog Digital Input and Output Controller (FIOC) interacts with intelligent external analog and digital circuits for measurement and confrol. The FIOC supports state-machine controlled SPI interfaces that need minimal microprocessor intervention. External VO pin programmability enables one same CommConfrol ASIC to be used in connection with interface devices for a diversity of different hardware product types. • Support for additional external peripheral, such as an Ethernet controller. • Scan test capability for high fault coverage and reliability. Figures 4A - 4C illustrates the blocks that provide each of the foregoing functions. The HDLC, UART, DUAL TONE and FIOC blocks are peripherals in the IO space of the vl86 microprocessor. Flash and SRAM memories are external to the ASIC. Building a process field bus module out of the ASIC requires external RS-244 drivers to connect to the HDLC wire, as well as appropriate external A D and D/A converters for analog FBMs. External support circuitry is also required to handle the galvanic isolation and conversion between dual tone and pulse width modulated data in FoxComm and HART applications. Building a basic hardware system with the CommConfrol ASIC 42 requires only two external memory blocks, one flash and the other one SRAM (the latter typically implemented in two ICs). The illustrated ASIC 42 is preferably used in connection with interface devices known as "Field Bus Modules" or "FBM"s (both, tradenames of the Assignee hereof), available from the Assignee hereof, though the ASIC 42 can be used with a variety of other process control devices and, more generally, control devices. The two independent HDLC serial communication controllers (HSSC) provide high speed synchronous serial communications capability to the CommConfrol ASIC. They are referred as HDLCO and HDLCl. Messages of arbitrary length (preferably in bytes) may be exchanged with a remote host. HDLC transfers typically occur under DMA confrol, leaving the microprocessor free to attend other tasks. Outgoing HDLC messages must be assembled first in external SRAM. For transmission, the HDLC controller makes DMA requests to the processor in order to fetch the message from memory. The controller interrupts the processor when the message transmission has been completed. For reception, the HDLC controller also makes DMA requests to the processor, in order to store the incoming message in external SRAM. The controller interrupts the processor when the message reception has been completed. DMA transfers support only half duplex operation. Other full duplex non-DMA transmission and reception modes are also available. Each one of the three UARTs is a standard PC serial port peripheral. They are referred as UARTO (console), UARTl and UART2 ("fastports"). Of these, only the console is equipped with a full set of modem signals. The fastports are designed for maximum software efficiency, while retaining compatibihty with the industry standard PC serial port specifications. Each UART may assert an independent interrupt signal. In the console UART, both transmitter and receiver have a sixteen position FIFO for data buffering. The fastports have a sixty four position FIFO in both transmitter and receiver. The UARTs are general purpose devices, and UARTl and UART2 are intended for fast local inter-board communication in double and triple redundant modules. There are eight independent DUAL TONE FoxComm/HART asynchronous communication controllers. They are referred as AS YNO, AS YN 1 , ... AS YN7. Their inputs and outputs are routed through any of the 32 general purpose IO_SIG pins, as configured in the IO PIN Confrol Register. Each controller consists of a transmitter and a receiver. The transmitter consists of an asynchronous device with a sixteen position FIFO to store data bytes that are converted into serial frames flanked by a start and a stop bit. The frames are fed to a dual tone modulator. The resulting dual tone FSK signal is fed to a Pulse Width Modulator (PWM). Either the serial frames, the FSK or the PWM signals may be transmitted out. The receiver consists of an FSK dual tone demodulator, which converts FSK into asynchronous serial bit frames. The asynchronous serial frame is fed to a serial receiver that stores the received bytes in a 32 position FIFO. In both cases, the dual FSK tone may be programmed to conform to either the FoxComm I (IT1), the Fox-Comm II (IT2) or the HART protocol. The controllers may be selected to receive either FSK dual tone, or asynchronous serial frames (the latter is equivalent to a UART). The PWM option is intended to support small size high frequency external electromagnetic transformers for galvanic isolation. The FIOC is a programmable peripheral capable of handling digital and analog input and output for process confrol. It is fully configurable, and interacts with external devices through a set of 32 programmable IO pins. The FIOC communicates with external devices using an SPI protocol. The SPI transactions may be placed under the control of dedicated state machines thus leaving the internal microprocessor free for other tasks. In addition, it offers status LED control, watchdog timeout and fail-safe protection. The 80186 compatible microprocessor (B186) is a stored-program 16-bit microprocessor, with two DMA and six interrupt channels, three programmable timers, SRAM and PROM select decoding, and up to seven peripheral chip select decoding. The microprocessor is fully integrated inside of the ASIC. The N186 interacts with external SRAM and PROM for instruction fetching and storage. A more complete understanding of the NI 86 maybe attained by reference to "Microsystem Components Handbook", Intel Corporation, Santa Clara, California 1985, chapter 3. Also "NI 86 Synthesizable HDL Core Specification and Data Sheet", Rev 1.6 NAutomation Inc., Nashua, New Hampshire, 1988. Also "V8086 Synthesizable HDL Core Specification and Data Sheet", Rev 1.8 NAutomation Inc., Nashua New Hampshire, 1988, the teachings of all of which are incorporated herein by reference. The ASIC may be operated in two different processor modes. In the normal (master) mode, the internal vl 86 is in confrol of the HDLC, UARTs, DUAL TONE and FIOC peripherals, and the bus signals are brought out for memory transactions and also for visibility. In the alternate (slave) mode, the internal vl86 is turned of line (by asserting the HOLD pin high), and the HDLC, UARTs, DUAL TONE and FIOC peripherals are under the control of an external bus master for emulation, debugging and diagnostics. The operation mode is selected with the HOLD input pin. For normal (internal master) mode, the HOLD pin must be either low or open. For external vl86 (slave) mode, the HOLD pin must be high. The ASIC may be operated in two different processor modes. In the normal (master) mode, the internal vl 86 is in control of the HDLC, UARTs, DUAL TONE and FIOC peripherals, and the bus signals are brought out for memory fransactions and also for visibility. In the alternate (slave) mode, the internal vl86 is turned offline (by asserting the HOLD pin high), and the HDLC, UARTs, DUAL TONE and FIOC peripherals are under the control of an external bus master for emulation, debugging and diagnostics. The operation mode is selected with the HOLD input pin. For normal (internal master) mode, the HOLD pin must be either low or open. For external vl86 (slave) mode, the HOLD pin must be high. Characteristics of the ASIC 42 are overviewed in the table below: CONCEPT CHARACTERISTIC COMMENTS CLOCK RATES Microprocessor: NomiThe U_CLK pin drives the internal micropronally 20MHz cessor clock. Its minimum frequency is 16MHz. May be run at higher frequency. HDLC 2MHz The C_CLK pin drives the HDLC controller, and DUAL TONE logic. Its nominal frequency is 16MHz, which is divided internally by 8 to achieve 2Mbit/sec. An 8.6MHz clock may be used instead for 268.75Kbit/second HDLC (divide by 32). INTERNAL PROCompatible with INTEL Internal processor may be disabled to allow use CESSOR 80186. of an external processor for emulation, debugging, test, or even normal operation. Addressing capability is up to 20 bits (up to 1 Mbytes of SRAM and IMbytes of ROM). DIGITAL/ANAFully configurable. Software-programmable as inputs/outputs, LOG IO PINS with or without logic inversion. Pins have full matrix connectivity to select any internal digital/analog blocks, as well as DUAL TONE blocks. WATCHDOG Bit must be toggled at If processor fails to toggle watchdog keep alive TIMEOUT least every 60msec. bit, it will be reset. FAIL SAFE PROIf enabled, analog and dig- Caused by watchdog timeout or by control pro- TECTION ital outputs go to a precessor command. defined condition. STATUS AND "Red and green" LED sigCHANNEL ED nals to indicate the operaINDICATOR SIGtional status of the module. NALS LEDsignals to indicate channel on-off status. HDLC Two independent HDLC Point to point only. No SDLC loop mode. The controllers. speed is nominally 2Mbit/sec, with other options possible. Supports block DMA communications. PROCESSOR (INT)4-0 used by internal Interrupt lines support the DMA transmission INTERRUPTS peripherals in fully nested and reception of HDLC messages. The interinterrupt mode. INT 5 rupts occur upon the reception of a whole mesavailable for external sage into memory, or after the transmission of a device. whole message out from memory. Also UARTs may interrupt processor. PROCESSOR DREQO and DREQl DMA request signals support DMA block DMA transmission and reception of HDLC frames. The processor is not burdened during the HDLC transfers. CONSOLE Three independent One industry standard PC serial port UART SERIAL PORTS UARTs. with full set of modem signals, to be used as a console, or to support an infrared port. Two other "fastport" UARTs without modem signals, designed for compatibility plus software efficiency for inter-board communication. FOXCOMM/ Eight independent chan- Inputs and outputs fully configurable. Supports HART nels. high frequency PWM to drive small external RF transformers. May be operated as simple UART. Pinouts of the table are presented in the table below: INT(l) NAME IO RES DESCRIPTION (ADDR) 19.0 IO Address. Memory and IO address for an address space of IM bytes. It is an output for normal (internal vl 86) mode, and its (least significant eight bits (ADDR)7-0() are an input for external) vl 86 mode. ALE IO Address Latch Enable. When asserted high, the contents of the DABUS are latched into the internal address latch. It is an output for normal (internal vl86) mode, and an input for external 186 mode. (ARX) 2 .o I UP Asynchronous Receive. Pins with subindex 0, 1 and 2 are the serial data inputs for UARTO (console), UARTl and UART2, respectively. (ATX), O Asynchronous Transmit. Pins with subindex 0, 1 and 2 are the serial data outputs for UARTO (console), UARTl and UART2, respectively. BHE N IO Byte High Enable. Asserted low for byte bus transactions in the high byte of a 16- word (odd byte address). It is an output for normal (internal vl 86) mode, and an input for external vl 86 mode. C CLK I Communications Clock. This is the clock that drives the HDLC channels and DUAL TONE block. It is nominally 16MHz. (CHAN_IND) I5 . 0 O Channel Status Indicators. Used to control external channel LEDs. See Table VII.3 onpagel07. CLK_OK_N I Clock OK. Normally low. When high it forces LED_G low (green LED turns off) and LED_R high (red LED turns on), even if the master clock U_CLK has stopped. CTS_N I UP Clear To Send. Modem input to console UART. Asserted low. (DABUS) 15 . 0 IO UP Data-Address Bus. Bidirectional multiplexed address and data bus. The LSB corresponds to the LSB of internal registers. DCD_N I UP Data Carrier Detect. Modem input to console UART. Asserted low. PIAG_SIG) 7 . 0 IO DDOOWN Input/Output Signals. These signals are used for discrete input and output diagnostics. (DMAREQ),. 0 O DMA Request. A high in either of these signals indicates a DMA request posted by their corresponding HDLC. In normal (internal vl 86) mode, these signals echo internal activity and may therefore be used for testing. In external vl 86 mode, these signals must be connected to the corresponding external microprocessor inputs. DSR_N I UP Data Set Ready. Modem input to console UART. Asserted low. DTR_N O Data Terminal Ready. Modem output from console UART. Asserted low. GCLKOUT O General Clock Out. The output signal on this pin is program selected from several internal sources in the SYSTEM REGIS- TER (see Table 1.5). The sources are the console and UARTl UART2 baud clocks, or the HDLC DPLL clocks. MBYTES O High Bytes. Used to select the high byte external SRAM. Asserted high. HOLD I DOWN Hold. When asserted high, the internal vl86 is forced into hold (slave) mode, stopping the program execution. All the relevant vl86 microprocessor pins change direction, allowing an external microprocessor to become bus master. This signal has an internal pulldown, and must be held low (or left open) during normal operation. HOLDA 0 Hold Acknowledge. Asserted high when internal vl 86 acknowledges the HOLD pin request, and relinquishes the bus to an external master. (INT)4-00 Interrupt Request. A high in either of these signals indicates an interrupt request by their corresponding HDLC or UART blocks (see Table 1.4). In normal (internal vl86) mode, these signals echo internal activity and may be therefore used for testing. In external 186 mode, these signals must be connected to the corresponding external microprocessor inputs. INTERRIN I DOWN Interrupt Input. This input drives the internal vl 86 INTER¬ RUPT 5 input. May be used by any peripheral exernal to the ASIC (such as an Ethernet controller) to interrupt the internal processor. (IO_SIG) 3μo IO DOWN Input/Output Signals. These are the signals used to talk and listen to external digital and analog input and output devices. They are also used for FoxComm and HART. These signals are software-configurable, and maybe routed to any of the internal digital and analog blocks in the ASIC. See "PIN MULTIPLEX CONTROLLER" on page 103. LBYTES 0 Low Bytes. Used to select the low byte external SRAM. Asserted high. LCS_N OZ Low Chip Select. This signal is asserted low whenever a memory reference is made to the lower memory portion of the address space. Drives the external SRAM chip select. High impedance in external 186 mode. LED_G O Green LED. This signal is asserted high to turn on the external green LED. LED_R O Red LED. This signal is asserted high to turn on the external red LED. MCS_N OZ Memory Chip Select. This signal is asserted low to select an external memory device (such as an Ethernet controller). It is driven by the internal vl86 MCS0_N output. This pin is at high impedance in external 186 mode. NMI I DOWN Non Maskable Interrupt. This signal is asserted high to make a non-maskable interrupt request to the internal vl 86. Must be held low (or left open) during normal operation. (PCS_N) 6 . 0 IO Peripheral Chip Select. These signals are asserted low to select the internal peripherals. pcsO selects HDLCO, HDLC1, the system register, console, UARTl and UART2. pcsl selects the DUAL TONE block. pcs2 selects AIOCB0, pcs3 selects AIOCB1 , pcs4 selects the pin configuration and discrete I/O registers. pcs5 selects the pulse counter circuit logic. Pin pcs6 does not select any internal peripherals, and is intended for selecting any future (external peripherals. Pins pcs)5-0 are outputs for normal master (internal vl86) mode, and inputs for external 186 (slave) mode, since they must be driven by the equivalent pins in the external microprocessor. Pin peso is a tristate output. PS_CLK O Power Safe Clock. A constant frequency (400 KHz nominal) is always present on this pin while the chip is powered up. Otherwise, power has been removed from the chip, or a chip failure has occurred. Derived from U_CLKby a programmable divide constant (see Controls Power supply clock rate Table VII.3). RD_N IO Read. Asserted low during a read cycle. It is an output for normal (internal vl 86) mode, and an input for external 186 mode. RESETJSf I Master Reset. Assert this signal low to initialize the chip into a known state. The pin must be held asserted at least four U_CLK cycles for proper initialization of the vl86 microprocessor. RES1860UT O Reset Out. This signal becomes asserted high during any internal vl86 reset (this may be due to a watchdog timeout). This signal also echoes assertions of the reset_n input. Alternatively, if TREE_EN is high, this becomes the output pin for the NAND tree test circuit. RI_N I UP Ring Indicator. Modem input to console UART. Asserted low. RTS_N O Request To Send. Modem output from console UART. Asserted low. (RX)l-0 I Receive. Pins with subindex 0 and 1 are the serial data inputs for HDLCO and HDLC1 respectively. (RX_DIS)l-0 O Receiver Disable. Pins with subindex 0 and 1 are asserted high to turn off the external receive buffer corresponding to HDLCO and HDLC1 respectively. SCAN_ENABLE I DOWN Scan Enable. Must be tied low (or left open) during normal operation. This pin is only driven high during scan test, in order to enable the flip flop scan chain, and to shift in serially a set of flip flop states. A one clock evaluation is performed with this pin low. This is followed by forcing this pin high again, to shift out the resulting states for test analysis. SCAN_TEST I DOWN Scan Test. This pin must be tied low (or left open) during normal system operation. This pin is set high during scan test of the ASIC. This forces the internal flip flops to be driven by their respective scan domain clock (C_CLK or U_CLK). It also forces all bidirectional pins as outputs, eliminates all internal loops, and removes the effect of internal signals on flip flop direct set and clear. (SLOT_ID) 4 . 0 I UP Slot Identification. Intended for hard-wiring a 5-bit code that (low U) identifies the printed circuit board environment and intended use of the ASIC. This code may be read by the microprocessor. See TableVπ.3 on pagel07, Config/Status. SRDYIN I UP Synchronous Data Ready Input. When this input is deasserted low, it causes the internal 186 to extend its memory cycle. In addition, the SRDYOUT pin is also deasserted low. This pin must be kept high or left open for normal operation. To be used by an external peripheral that requires extended memory cycles. SRDYOUT O Synchronous Data Ready Output. This output is deasserted low for as long as an internal peripheral requires the microprocessor to extend its memory cycle. It is also deasserted low if the SRDYIN input is deaaserted low. Connect this pin to the SRDY pin of an external 186 whenever the ASIC is used in external 186 mode. (STATUS), . ,, OZ Microprocessor Status. Indicates the state of the internal vl86 microprocessor. The code is detailed in Table 1.3. High impedance in external 186 mode. TREE_EN I DOWN Tree Scan Enable. Must be tied low (or left open) during normal operation. Assert this pin high to observe NAND tree test output in RES1860UT. ( X),.o 0 Transmit. Pins with subindex 0 and 1 are the serial data outputs for HDLCO and HDLC1 respectively. (TX_EN).. 0 0 Transmit Enable. Pins with subindex 0 and 1 are asserted high to turn on the external transmitter driver corresponding to HDLCO and HDLC 1 respectively. U CLK 1 Microprocessor Clock. This is the master clock. It drives the internal vl 86 microprocessor, as well as other IO components. It is nominally 20MHz. This clock's frequency must be greater or equal than the frequency at the C_CLK pin. UCS N OZ High Chip Select. This signal is asserted low whenever a memory reference is made to the upper memory portion of the address space. Drives the external FLASH chip select. High impedance in external 186 mode. WR N IO Write. Asserted low during a write cycle. It is an output for normal (internal vl86) mode, and an input for external 186 mode. 1. Internal pullup or pulldown resistor. S3 S2 SI SO CODE X 0 0 0 Interrupt Acknowledge X 0 0 1 Read I/O X 0 1 0 Write I/O X 0 1 1 Halt X 1 0 0 Instruction Fetch X 1 0 1 Memory Read X 1 1 0 Memory Write X 1 1 1 Idle 0 X X X Processor Cycle 1 X X X DMA Cycle INTERRUPT DEVICE INT 5 Available for external device. INT 4 UART2 INT 3 UARTl INT 2 UARTO (Console) INT, HDLC1 INT„ HDLCO The Dual Tone Asynchronous Serial Communication block (DTASC) of Figure 4A is a computer peripheral capable of transmitting and receiving data bytes asynchronously as a serial-bit message. The message may be encoded in either of three signal encoding formats: NRZ bit frames, dual tone frequency shift keying (which may be used for example with the well-known Fox-Comml,™ FoxCom Q™ or HART protocols), and high frequency pulse width modulated (PWM) signal (transmission only) . The block contains eight identical channels, as illustrated in Figure 5, each of which may be independently programmed to operate in any of the aforementioned signal formats. The block contains a register set similar to a UART, but with no interrupt or modem handshake signal support. The DTASC block contains eight identical and indepenent Dual Tone channels. Each channel may be programmed independently for FoxComm™ (TTl -IT2) or HART communications. 1 MHz Pulse Width Modulation (PWM) transmission supports external high frequency transformer isolation circuitry for both transmission and reception! The block has trapezoidal dual tone smoothing effect built into PWM transmission whicih adheres to HART specifications. Data may be transmitted as either asynchronous serial frame NRZ, dual tone, or modulated pulse width. Data may be received as dual tone, or serial frame NRZ. The transmitter is buffered with a 8 byte deep FIFO. Receiver is buffered with 16 byte deep FIFO. The block provides polled-based communication, withno interrupt support. A -rogrammable baud generator divides input clock frequency for baud rates between 1/I6 and212. The block is fully programmable: 5-8 bit characters; even, odd or no parity; and, one or two stop bits. The block permits break generation and detection. The transmitter automatically adds and receiver automatically removes start, parity and stop bits. The block supports full duplex NRZ communications, as well as half duplex dual tone and PWM communications. System loopback mode is available for testing all eight channels, each channel transmitting to another channel and receiving from another channel. FRAME FORMAT Referring to Figure 6, for each of the three formats supported by the DTASC, the message unit is the bit-serial frame, which conveys from five to eight bits of information, plus optional parity bit The frame consists of a start bit. The start bit (MARK) is immediately followed by the data bits (between five to eight) LSB first. These are followed by an optional parity bit (either even, odd or stick parity). The frame ends with a stop bit (SPACE). SIGNAL FORMAT Nrz Format In this format a zero bit is represented by a low (SPACE) signal, and a one bit is represented by a high (MARK). Thus the signal is merely an unencoded frame, as shown in Figure 6. Dual Tone Fsk Signal Encoding The block supports three dual tone FSK formats: FoxComml™, FoxCommll™ and HART. A dual tone FSK signal represents a zero or one bit with either a low or a high frequency tone (digital square wave). The bit data rate and tone frequencies are listed in the table below: BAUD NOMINAL MARK NOMINAL SPACE RATE FREQUENCY - ■NRZ FREQUENCY - NRZ ZERO MODE (Hz) ONE (Hz) (Hz) FoxComm I (IT1) 600 5,208 3,125 FoxComm H (IT2) 4800 10,417 6,250 HART 1200 1,200 2,200 Effective peak to peak rise and fall time: 133 μsec The relationship between NRZ and dual tone FSK is illustrated in Figure 7. Pulse Width Modulated Signal Encoding The PWM signal encoding is supported only for transmission. The intention of this format is to provide a high frequency encoded signal to drive external transformers for galvanic signal isolation. The high frequency reduces the size of the transformers, and results in more efficient external support circuitry. The dual tone FSK itself modulates the PWM, so that the FSK will be available after demodulating the signal in the secondary of the external transformer for remote transmission. The PWM has a basic lMHz frequency (lμs period). The signal "on time" during this period is modulated within the us in — u increments to encode the FSK. This results in a duty cycle of 50% ± 6.25% increments. Dual tone valleys are encoded with a lower "on time", and dual tone peaks are encoded with a higher "on time". In ITl and IT2 modes, the PWM fransitions vary abruptly from 31.25% to 68.75% duty cycle. In HART mode, the PWM transitions are encoded with a "staircase" trapezoidal dual tone signal, so that the "on time" changes in three discrete steps either above or three discrete steps below the "unmodulated" 50% duty cycle signal. See Figure 8. BLOCK PINOUT The DTASC block pinout is detailed in the table below: NAME I/O DESCRIPTION (ADDR) 2 . 0 I Address. Used to encode the address of the internal control, status or data registers. CLK4MHZ I Clock 4MHz. This is the primary clock from which the baudrate is derived, as well as all other clocks that generate the dual tone. CLK16MHZ I Clock 16 MHz. This clock is used to generate the PWM signal. CS_N I Chip Select. Assert low to read or write the internal registers and data FIFOs. The block is not selected when deasserted high. (DIN) 15 . 0 Input Data Bus. Contains the 8-bit data to be written into the internal registers or transmit FIFO (bits D)7(-D)0(). Bit 0 is the LSB, and corresponds to the internal registers' LSB. The width is sixteen bits to accomodate the Channel Select Register, whose byte data is at an odd address (the high byte of the corresponding 16-bit word). (DOUT) 15 . 0 O Output Data Bus. Contains the 8-bit data read from the internal registers or receive FIFO. Bit 0 is the LSB, and corresponds to the internal register's LSB. The width is sixteen bits for a reason similar to DIN. HBYTE I High byte. Asserted high if a write transaction occurs in the high byte. LBYTE I Low byte. Asserted high if a write transaction occurs in the low byte. RD_N I Read. Must be asserted low to read out the contents of internal registers or the receive FIFO onto the output data bus DOUT. READENABLE 0 Read Enable. Indicates to external drivers that the HSSC is driving the bus on a register or receive FIFO read. RESET I Reset. Assert high to reset the internal logic to a known state. (RXSD) 7.0 I Receiver Serial In. This is the block receiver serial input. SYSLOOP I System Loop. Places all eight channels inside the block in loopback mode. (TXON) 7 . 0 0 Transmitter On. This pin is high if the transmitter is transmitting, low otherwise. This signal is low during system loopback. (TXQ) 7 . 0 o Transmitter Serial Out. This is the block's transmitter serial output UCLK I Microprocessor Clock. This clock is typically equal or faster than 16MHz, to interface the internal data FIFOs with a processor. WR_N Write. Must be asserted low to write the contents of the DIN bus into the internal registers or the transmit FIFO. REGISTER ADDRESS MAP The register map of the DTASC is detailed in the table below. All register bits are cleared during reset, unless specified otherwise.Registers are sixteen bits wide, and are either byte or word addressable. The CHANNEL SELECT REGISTER and the RECEIVER AND TRANSMITTER DATA BUFFER REGISTER are typically regarded as two separate byte addressable registers. Data in the RECEIVER AND TRANSMITTER DATA BUFFER REGISTER is mapped to the high byte at DIN15-8 and DOUT15-8. Data in all other register's LSB is associated with the LSB of the I/O signals D1N7-0 and DOUT7-0. The contents of the CHANNEL SELECT REGISTER determine the particular channel that is addressed when writing or reading any other registers. Therefore, in order to write or read a particular channel, its channel number must be first written into the CHANNEL SELECT REGISTER. HEX NAME RW BIT DESCRIPTION ADDRESS CHANNEL SELECT RW D 7 -D 0 Write here a binary number to select the REGISTER corresponding channel. Any subsequent write or read references to registers in the address range 1-6 refer to the selected channel. Note: This is a byte wide register RECEIVER AND RW D 7 -D 0 Write at this location the data to be TRANSMITTER DATA transmitted (LSB is first bit out). Read BUFFER REGISTER from this location the received data (First bit in is in LSB). Note: This is a byte wide register LINE CONTROL REGISTER W D 15 ._3 Reserved for Test. (LCR) D°2 Loopback. D„ Hysteresis. Set high to maximize hysteresis to recover the bit serial data from the continuous autocorrelator output. It is recommended to keep this bit high. 'iO Reserved. '9-8 11 Reserved 10 HART. Set high for HART communications - 1200 baud 01 FoxH IT2 mode communications - 4800 baud. 00 FoxL ITl mode communications - 600 baud. D 7 Integrate Dump. Set high to use integrate and dump circuit in the demodulator, instead of the continuous autocorrelation circuit. It is recommended to keep this bit low. D ή Set Break. Set this bit high to send a break (continuous mark). D, Stick Parity. If 1 , stick parity is enabled. With stick parity, frame parity bit is the logic complement of D 4 . D, Even Parity Select. If 0, odd parity, if 1 even parity. D, Parity Enable. If 0, no parity bit in frame, if 1 , parity bit in frame. The parity bit is determined from the settings of D 5 -D 4 . D, Stop bits. If 0, one stop bit, if 1, two stop bits. D,-D 0 11 Character size 8 bits 10 Character size 7 bits 1 Character size 6 bits 0 Character size 5-bits HEX NAME RW ΈΓΓ DESCRIPTION ADDRESS 2 LINE STATUS REGISTER R D,„ Frame In Progress. (LSR) D, Tone Detect. D 8 Transmitter FIFO Full. D 7 Error in Receiver FIFO. D 6 Transmitter Empty. D 5 Transmitter FIFO Empty. D 4 Break Detect D 3 Framing Error D 2 Parity Error D, Overrun Error. Do Data Ready 4 BAUD DIVISOR LATCH RW D I5 -o 16-bit word for baud rate selection. 6 MASTER CONTROL W D 15 -π Reserved REGISTER (MCR) D>o Force pwm on transmitter idle. Set this bit high to force a 50% duty cycle PWM on transmitter idle. Set this bit low to passivate the PWM on transmitter idle. D .8 11 Reserved. 10 NRZ. Input and output are not encoded (not return to zero). 1 Tone. Input and output are encoded as dual frequency tone. 0 PWM. Output is modulated-width pulses. Input is dual frequency. D 7 . 6 Reserved D 5 Transmit Enable. Set this bit high to enable transmitter. D 4 FIFO Enable. D 3 * Reset Transmitter - includes FIFO. D 2 * Reset Receiver - includes FIFO. D,* Transmitter FIFO Reset. D 0 * Receiver FIFO Reset. 1.* This symbol indicates that the bit is "push-button". Writing the bit high initiates an action, and the bit is self-clearing. Channel Select Register (Address 0) This is an 8-bit register, that points to the currently selected channel. It acts as an index for all read or write access to any other registers in the DTASC. This register is typically written first for channel selection. Receiver And Transmitter Buffer Register (Address 1) The RECEIVER BUFFER REGISTER is a readonly byte register located at address 1. The TRANSMITTER BUFFER REGISTER is a writeonly byte register located also at address 1. Data bytes written into the TRANSMITTER BUFFER REGISTER are stored in a 8-level deep transmit FIFO of the selected channel, ready for transmission. However, transmission itself does not start until the Transmit Enable Bit in the MASTER CONTROL REGISTER is set high. Data received by the receiver is stored in a 16-level deep receive FIFO. The data is read out the FIFO through this RECEIVER BUFFER REGISTER. Line Control Register (Address 2) This write-only 16-bit register determines the data frame format, in number of bits and parity. It also contains the bit used to send out a break character. Loopback (D12 Set this bit high to enable local loopback mode in the selected channel. In loopback mode, the transmitter dual tone FSK output is fed back to the receiver dual tone FSK input, and the TXON output is forced low. Hysteresis (Dll) This bit affects the dual tone FSK receiver of the selected channel only. This bit should be normally high, so the continuous autocorrelator circuit output is evaluated with maximum hysteresis, which is the preferred configuration (see Section IV.7.6.1). If this bit is set low, hysterehysteresissis is considerably reduced. This bit is overriden by the Integrate Dump bit (D7). FoxComm/HART Protocol Selection (O9-O8) These two bits determine the type of dual tone signal in the selected channel, whether FoxComml, FoxCom-mH or HART. In addition to setting these bits properly, the appropriate baud rate has to be programmed into the BAUD DIVISOR LATCH. Integrate Dump (D7) This bit affects the dual tone FSK receiver of the selected channel only. This bit should be normally low, so the demodulator output is driven by the internal continous autocorrelator circuit, which is the preferred configuration. If set high, the demodulator output is instead driven by the internal integrate and dump circuit, which is normally used only for carrier detection. This bit overrides the Hysterisis bit (Dl 1). Set Break (D6) Set this bit high to force a low (mark) at the TXQ NRZ transmitter serial output. A continuous mark on the line with a duration equivalent to one full frame is considered a break character. The usage of this bit to send out a break character is as follows: Write an arbitrary byte to the TRANSMITTER BUFFER REGISTER. Follow this immediately by setting the Set Break bit high, which forces the line low. Now poll the Transmitter FIFO Empty bit in the LINE STATUS REGISTER, until his bit is cleared low. When this occurs, clear the Set Break bit. This will send a break character with the desired duration. Stick Parity (D5) Set this bit high to enable stick parity in both transmitter and receiver. With stick parity enabled, the frame has a parity bit which is forced to be the logic complement of bit D4. The name of bit D4 is Even Parity Select, even though there is no relation with even parity when used for stick parity. This mechanism allows to force the parity bit to any value, regardless of the data. Write this bit low to disable stick parity, which is the desired setting when normal even or odd parity is desired. Even Parity Select <D4 Write this bit high for even parity in both transmitter and receiver. In even parity, the number of high bits in the frame is even, including the parity bit. Write this bit low for odd parity in both transmitter and receiver. In odd parity, the number of high bits in the frame is odd, including the parity bit. This even/odd parity scheme applies when the Stick Parity bit D5 is low. However, if the Stick Parity bit D5 is high, D4 is no longer an even parity bit. Instead, the parity bit in the frame is forced to be the logic complement of this bit D4. Parity Enable ω3) Write this bit high to enable parity in both transmitter and receiver. Parity may be odd/even parity, or stick parity. If this bit is low, parity is disabled, and the transmitter does not send a parity bit as part of the frame, and the receiver does not expect a parity bit as part of the frame. Stop Bits (O2) Writing this bit high forces the transmitter to send two contiguous stop bits. Writing this bit low causes the transmitter to send only one stop bit to end the frame. Word Length ωi-DO) This field determines the number of data bits in both the transmitter and the receiver, according to the table below: Number of Bits D,-Do NUMBER OF BITS 11 8 10 7 01 6 00 5 Line Status Register (Address 2 This read-only register returns the status of the transmit and receive FIFO, as well as the indication of any possible receiver errors. A readout of this register indicates the receiver status pertinent to the data while it is still stored in the last position of the receiver FIFO (or receiver buffer). The last FIFO position is the one that stores the character to be read out next on the RECEIVER BUFFER register. Therefore, for vahd receiver status information, this LINE STATUS REGISTER must be read before reading the RECEIVER BUFFER register. Reading this register clears the error conditions reported in bits (D4-D1). Frame In Progress (DIP) This bit is set high when the NRZ serial receiver detects a start bit and stays high for the duration of the vahd frame. The bit is cleared when the stop bit is expected. This bit is vahd in both NRZ and dual tone modes. Tone Detect (O9) This bit is set high when the demodulator in the receiver detects a legal tone. It is zero otherwise. To be legal, the tone must be in the vecinity of either one of the vahd frequencies that represent one and zero, as deteπnined by the integrate-and-dump circuit at the receiver. This bit is meaningless when the DTASC is used in NRZ signal encoding mode. Transmitter FIFO Full (OS) This bit is high if the transmit FIFO is frill, and is low otherwise. Error In Receiver FIFO (D7) This bit is high if one or more byte characters still stored in the receive FIFO have been received either as a break frame, or with a framing error, or with a parity error. The bit is low if no FIFO position contains data received under any of these conditions. Transmitter Empty (D6) This bit is high if the transmit FIFO is empty and the transmitter is currently idle and not fransmitting any frame. The bit is low otherwise. Alternatively, when the FIFOs are disabled, this bit is high if the transmit holding buffer is empty and the transmitter is currently idle. Transmitter FIFO Empty (D5) This bit is high if the transmit FIFO is empty, and is low otherwise. Alternatively, when the FIFOs are disabled, this bit is high if the transmit holding buffer is empty. Note that this bit may be high, while the Transmitter Empty bit (D6) is low. This occurs when the transmitter is still in the process of sending out a frame, which was the last character read out of the FIFO (or transmit holding buffer if FIFO is disabled). Break Interrupt (D4 This bit is high if the data stored in the last position of the FIFO (or receiver buffer if FIFOs disabled) was received as a break character. A break character occurs if the receiver data input remains low during the equivalent duration of a frame. Framing Error (D3) This bit is high if the data stored in the last position of the FIFO (or receiver buffer if FIFOs disabled) was received with a _framing error. A framing error occurs when the frame is not terminated by at least one stop bit. This bit is low when no framing enor has been detected. It is a low (space) in the receiver frame that causes a framing error (when a high was expected). The receiver resynchronizes itself, treating this low in the frame as a start bit of a new frame. Parity Error (D2) This bit is high if the data stored in the last position of the FIFO (or receiver buffer if FIFOs disabled) was received with a parity enor. This bit is low when no parity error has been detected. Overrun Enor (Dl) This bit is high if an attempt was made to overwrite the data that is now stored in the last position of the FIFO (or receiver buffer). This attempt occurs when a frame's reception is completed at a time that the receive FIFO (or data buffer if FIFOs disabled) is full. The data already stored is not overwritten, but the data that has been just received gets lost. This bit is low when no attempt to overwrite data occuned during the last frame reception. Data Ready ωθ This bit is high when the receive FIFO (or data buffer if FIFOs disabled) is not empty. This indicates that at least one received character may be read out. This bit is low when the FIFO (or data buffer) is empty, and there is no data to read. Baud Divisor Latch (Address 4) This register determines the baud rate according to the following rule. The raw transmitter and receiver clock frequency is the ratio of the C_CLK clock input frequency divided by four and divided by the numeric equivalent of the binary number stored in the DIVISOR LATCH REGISTER. The data (baud) rate of both transmitter and receiver is l/16th of the raw clock frequency. Clearing this register causes the fransmitter and receiver clock frequency to be equal to the C_CLK pin divided by four. The proper programming values for the three supported protocols are displayed in the table below, assuming a nominal C_CLK frequency of 16MHz. PROGRAMMEDBAUDRATESFORITl,IT2ANDHART(C_CLK16MHZ) PROTOCOL BAUDRATE FORMULA BAUDDIVISORLATCH PROGRAMMINGVALUE(HEX) ITl 600 16MHz/(600xl6x4) = 417 1A1 IT2 4800 16MHz/(4800xl6x4) = 52 34 HART 1200 16MHz/(1200xl6x4) = 208 DO Master Control Register (Address 6) This register controls various parameters. Force PWM On Transmitter Idle (DIP) This bit is vahd only when the signal encoding is PWM. Set this bit high to force a 50% duty cycle on the PWM serial output when the transmitter is idle. Set this bit low to passivate the transmitter serial output when the transmitter is idle. When this bit is set high, the resulting 50% duty cycle signal may be used by external circuits as a carrier to modulate the received dual tone, and pass the high frequency modulated signal through a galvanic isolation transformer. Signal Encoding fD9-D8) These two bits determine the signal encoding expected at the receiver serial input, and also the signal encoding provided at the fransmitter serial output. The NRZ encoding bypasses the modem and PWM circuits, and the expected input is non-return to zero (NZR) frames flanked with start and stop bits. Selecting this mode is equivalent to using the DTASC as a simple UART. The Tone encoding bypasses the PWM circuit, and the data at the serial input and serial output is dual tone. The PWM enconding forces high frequency pulse-width-modulated data to be transmitted at the serial output, and expects to receive dual tone data at the serial input. Transmit Enable fD5) Setting this bit high forces the data stored in the transmit FIFO (or holding register when FIFOs are not enabled) to be transmitted out. Keeping this bit low allows data to be written to the transmit FIFO without starting transmission. This feature is not usually found in standard UARTs, which instead respond to FIFO writes by automatically initiating transmission. Use of this bit facilitates maximum FIFO utilization, so that the FIFO may first be filled, and the transmission may then be commenced by setting this bit high with a full FIFO. Clearing this bit somewhere in the middle of a frame during a transmission does not stop the transmission. Rather, the current frame transmission is carried out to completion, and only then the fransmitter stops. FIFO Enable (T Write this bit high to enable the transmit and receive FIFOs. Write this bit low to disable the FIFOs. The fransmit FIFO is eight bytes deep, the receive FIFO is sixteen bytes deep. When the FIFOS are disabled, the transmitter operates with a fransmit holding buffer, and the receiver operates with a receiver buffer. FIFOs increase the data throughput, and ease the processor's service of the DTASC. Reset Transmitter (D3) Write this bit to reset the fransmitter. The bit is "push-button". Writing the bit high initiates the reset, and the bit is self-clearing. Reset Receiver (D2) Write this bit to reset the receiver. The bit is "push-button". Writing the bit high initiates the reset, and the bit is self-clearing. Transmitter FIFO reset API Write this bit high to reset the transmit FIFO. The bit is "push-button". Writing the bit high initiates the FIFO reset, and the bit is self-clearing. Receiver FIFO reset (DO) Write this bit high to reset the receive FIFO. The bit is "push-button". Writing the bit high initiates the FIFO reset, and the bit is self-clearing. STRUCTURAL AND FUNCTIONAL DESCRIPTION As shown in Figure 5, the DTASC is made of eight communication channels, each consisting of a fransmitter and a receiver. The DTASC transmitter is made of a Universal Serial Transmitter, an FSK Modulator and a PWM circuit. The Universal Serial Transmitter converts parallel bytes into NRZ equivalent serial frames (LSB is transmitted first), with start, data, optional parity and stop bits. The Modulator converts the resulting NRZ serial bit frame into equivalent dual tone FSK The PWM circuit has the width of its high frequency pulse modulated by the dual tone FSK. The actual fransmitted signal may be chosen among any one of the Universal Serial Transmitter, the Modulator or the PWM circuit modules. The DTASC receiver is made of an FSK Demodulator and a Universal Serial Receiver. The Demodulator takes in FSK dual tone signal and recovers the equivalent NRZ serial data bits (including start, parity and stop bits). The Universal Serial Receiver strips the start, parity and stop bits, and converts the NZR serial frame into parallel bytes of data. The incoming signal may be either FSK or NRZ, and it may be routed to the appropriate module. See Figure 9. Local loopback is routed from the FSK Modulator output to the FSK Demodulator input. The local loopback may be used to test the integrity of all the block's internal modules, except for the PWM circuit. The Universal Serial Transmitter and Universal Serial Receiver may be operated in full duplex mode. The FSM Modulator and Demodulator can be only used in half duplex mode. Universal Serial Transmitter And Receiver (UART) As shown in Figure 10, the UART consists of a fransmitter and receiver (with their FIFOs), a baud generator, and a microprocessor interface. The fransmit and receive FIFOs are both 8-bit wide. The transmitter FIFO is 8 levels deep, and the receiver FIFO is 16 levels deep. Transmitter Description The transmitter is organized around a 13-bit parallel to serial shift register. The start and stop bits are loaded in parallel, besides the data bits (up to eight) and parity bit. Data is loaded from the transmit holding register, or from the FIFO if enabled. The bits are shifted out serially at a rate dictated by the number programmed into the divisor latch. The data LSB is shifted out right after the start bit. The shifting occurs under the confrol of a logic state machine that sequences through idle, load, shift, and stopbit states. Using the Transmitter The transmitter controls are in the LINE CONTROL REGISTER. This is where the makeup of the frame is determined, namely, the number of data and stop bits, whether there is parity and the type of parity. To start transmitting, data must be written first into the TRANSMIT BUFFER REGISTER. The Transmit Enable bit in the MASTER CONTROL REGISTER must then be set high. The data written in the FIFO is then fransferred to the transmitter holding register, or to the FIFO if enabled. Any data stored in the holding register (or the FIFO) is scheduled for transmission, and is fransmitted out as soon as the transmitter becomes idle. The transmitter first sends out the start bit, immediately followed by the LSB. Once it starts sending data, the transmitter will continue transmitting frames as long as it finds data in the transmit FIFO, and as long as the Transmit Enable bit is high. The transmitter may be serviced by polling. When polling, read the Transmitter FIFO Empty Bit in the LINE STATUS REGISTER. Enabling the FIFOs relieves the burden of servicing the UART, since up to sixteen characters may be stored in the FIFO by writing them all sequentially and without interruption into the TRANSMITTER BUFFER REGISTER. Receiver Description The receiver is organized around a serial to parallel converter. After detecting a start bit, the frame bits are shifted serially into the converter, including up to the first stop bit. The stored frame is examined for possible parity enors, framing enors, and also for the possibility of being a break character. This enor/status condition is stored together with the data into an 11 -bit (three bits for enor, plus eight data bits) receiver holding register, or into the 16-deep receiver FIFO if enabled. The enors affect the readout of the LTNE STATUS REGISTER when the data gets to the read end of the FIFO. Detection of the start bit is done with the help of a simple transition filter, in order to ignore any possible spurious low noise pulses in the receive line. Data is first clocked by the raw receiver clock into an eight-register transition filter. The transition filter declares a start bit only if four consecutive samples are low after four consecutive high samples. Once a start bit is detected, the rest of the frame is sampled at the estimated half point of each bit, based on the given baud rate. The raw receiver clock (obtained from the master clock input CLK after division by the divisor latch) is 16 times faster than the data (baud) rate. FSK Modulator The FSK modulator accepts as input a simple non-return to zero data bit stream and encodes it as a dual tone signal. The resulting dual tone is characterized by only two possible discrete periods, depending on the data to be encoded. The duration of the signal "peaks" and "valleys" is itself quantized to two possible discrete time constants, as illustrated in Figure 11. 13 On a first instance, the dual tone generation algorithm samples the bit to be encoded at the onset of a signal swing, and thereby determines the duration of the starting "peak" or "valley". This would be sufficient if dual tone signal swings were aligned with bit boundaries. However, bit boundaries are not normally coincident with dual tone signal periods. Therefore, the original estimation of "peak" or "valley" signal duration must be re-evaluated again at the bit boundary. This may or may not result in a duration update, as iUustrated in Figure 12. The complete dual tone generation algorithm implementation is illustrated in Figure 13. The circuit is centered around an 11-bit loadable down counter. Whenever the counter counts down to zero, the dual tone signal swings. The counter is preloaded with either a HIGH or LOW constant, depending on the encoding bit. The choice of constant determines the short and long duration of the dual tone "peaks" and "valleys". On a bit boundary, if a bit change occurs, the cunent value Q of the counter is conditionally adjusted by an amount equal to the difference of HIGH and LOW, resulting in a potential duration update. The modulator circuit clock frequency is different for each protocol, as depicted in the table below. The table also lists the values of the HIGH and LOW constants for each protocol, as well as the resulting mark and space tone frequencies. FSK MODULATOR CIRCUIT PARAMETERS MAX TONE CLOCK MARK TONE SPACE TONE FREQUENCY FREQUENCY FREQUENCY FREQUENCY ERROR PROTOCOL (MHz) HIGH LOW (Hz) (Hz) (%) ITl 0.5 79 47 5,208.33 3,125.00 0.010 IT2 1.0 79 47 10,416.67 6,250.00 0.003 HART 4.0 908 1666 1,199.76 2,200.22 0.020 FSK Demodulator The FSK demodulator accepts as input a digital dual tone signal and recovers the equivalent NRZ data bit stream. The user has a choice of two different algorithms to decode the dual tone, one is discrete digital continuous autoconelation and the other one is integrate and dump. Both algorithms are described below. Discrete Digital Continuous Autconelation Discrete digital continuous autocorrelation compares the original dual tone signal with its own time- delayed version, using an XOR logic gate. The XOR gate output is either mostly high or mostly low, depending on the frequency of the input tone, and this signal is accumulated by virtue of controlling the up/down control of a 6-bit digital counter. The counter saturates when the count reaches a lower or an upper bound. The original ones and zeroes encoded in the FSK input may be decoded from the accumulated count, as it reaches its upper or lower saturation limits. A block diagram of the continuous autoconelation method is provided in Figure 14. The NRZ decode logic is implemented with a JK flip flop, whose J input is set high if the counter saturates at one end, and whose K input is set high if the counter saturates at the other end. This method provides maximum hysteresis and noise immunity. Alternatively, the J and K inputs may be forced high if the counter reaches a given limit away from its neutral center count, but well before saturation (30 and 34 respectively in this design). This last method provides minimum hysteresis and faster response. Each protocol has its own parameters of circuit sampling clock frequency, number of bit delays, and saturate bounds, as summarized in the table below. CONTINUOUS AUTOCORRELATION PARAMETERS SAMPLES SAMPLING PER FSK CLOCK UPPER LOWER PERIOD FREQUENCY DELAY SATURATION SATURATION (high tone/ SAMPLES PROTOCOL (KHz) (bits) LIMIT LIMIT low tone) PER BIT ITl 125.0 22 57 7 24/40 208 IT2 250.0 23 41 22 24/40 52 HART 62.5 28 44 20 28/52 52 Figure 15 illustrates the relation between the dual tone input tone, its 28-bit delayed signal dtone, their XOR comparison xor for HART, plus a bit boundary. The XOR signal is mostly low for a low frequency tone input, which drives the counter down towards an NRZ zero resolution. Conversely, the XOR signal is mostly high for a high frequency tone input, which drives the counter up towards an NRZ one resolution. Figure 16 illustrates the counter's permitted and out of bound ranges for HART, as well as the time value of the counter, as it swings towards its saturation high and low. The JK trigger points for minimum hysteresis are shown within the counter vahd range. Integrate And Dump Referring to Figure 17, the integrate and dump method accumulates (integrate) a count until a fransition is detected in the FSK dual tone input, at which point the counter is initialized to one (dump). If the count is plotted with respect to time, the resulting sawtooth waveform has maximum peaks which are smaller for high frequency tone, and greater for low frequency tone. The essence of the integrate and dump method is to compare these maximum peaks with respect to two discrete legal bands (defined by min, med and max constants). If the peaks are within these bands, the dual tone is legal, and the equivalent NRZ bit is simply decoded from the particular band where the peak lies. The counter saturates when it reaches the upper limit to avoid overruns. The integrate and dump circuit is very effective for carrier detection. It can easily detect if the tone is outside the frequency bounds of the protocol. The validity of the tone may be read from the LSR register. The integrate and dump circuit is also used to reset the continous autoconelation receiver when no tone is present. Each protocol has its own parameters for circuit sampling clock frequency, as well as bounds for the decoding bands, as summarized in the table below. INTEGRATE AND DUMP PARAMETERS SAMPLING CLOCK PROTOCOL FREQUENCY (KHz) MUST MED MAX ITl 125.0 9 15 26 IT2 250.0 9 15 26 HART 62.5 11 20 33 Figure 18 illustrates an example of an FSK dual tone signal suffering frst from low frequency and then from high frequency loss of carrier. The resulting count waveform at the integrate and dump circuit is iUustrated in Figure 19. Half Duplex Arbitration Any dual tone channel may be independently operated in full duplex as a standard serial port (NRZ mode), and it may therefore fransmit and receive simultaneously. However, when operated in either tone or PWM mode, the channel is forced to half duplex, and it is only capable of either transmitting or receiving at any given time. In half duplex, the transmit mode is dominant, and the channel wiϋ transmit if the transmit FIFO contains any data and the fransmit enable bit is set. The receiver is disabled from the time the transmission starts until the time the last piece of data avaUable in the transmit FIFO has been fuUy fransmitted. The hardware enforces fuU termination of the last transmitted tone, so the line wiggles a whole period, and comes to a full rest before turning off. The receiver becomes enabled whenever the transmitter is idle. PWM Circuit The PWM circuit encodes the dual tone FSK into a 1MHz pulse width modulated signal, and provides trapezoidal transition approximation for the encoded HART mode, but not for ITl nor 1T2. Figure 20 is a block diagram of the PWM circuit. The input to the block is a single bit FSK signal, which goes into an FIR filter. The output of the FIR filter is a 3-bit binary-encoded and frapezoidaUy approximated dual tone signal, whose range is between 1 and 7. This frapezoidal signal goes into a conditional saturation block, which forces the signal to maximum and minimum values to eliminate frapezoidal approximation for ITl and IT2. The resulting signal is extended to four bits and subtracted from a fixed value of 12 10 . The result is compared with a fast 4-bit counter, clearing the PWM output signal when equal, and setting it when zero. The resulting PWM waveform is shown in Figure 21 for the minimum, median (50%) and maximum pulse widths, conesponding to an FIR output of 1, 4 and 7 respectively. The FIR filter is a 7-tap FIR filter with unit coefficients, clocked at 1/76 the transmitter rate. The FSK data is first converted from 1-bit [0,1] to 2-bit two's complement sequence with range [-1,+1]. The filter equation is y(n) jtftt-k) Jt = 0 The resulting sequence grows to 4-bit, with a range in [-7,+7]. The sequence is finally reduced to three bits in the range [1,7] as nlustrated in Figure 22. The trapezoidal waveform that emerges from the FIR filter is designed to fit within the minimum and maximum boundariy specifications for the HART signal, as iUustrated in Figure 23. System Loopback Besides the internal loopback provided within each individual channel, the DTASC can be tested in a system loopback mode, in which each channel receives data transmitted by a near neighbor. The receiver input in each chanel is thus effectively disconnected from its external pin. The connection topology is iUustrated in Figure 24. This loopback configuration is programmed in the GENERAL TEST REGISTER of the SYSTEM REGISTER block writing the Internal Dual Tone System Loopback bit high. AU eight TXON output signals from the DTASC are deasserted low during system loopback, turning off the external line driver. This aUows online system loopback testing. THE DUALTONEBLOCKANDTHE COMMCONTROLASIC The CommConfrol ASIC does not have dedicated package pins connecting to the dual tone block. Instead, the general purpose IO_SIG 31 . 0 pins must be appropriately programmed to route inputs and outputs to and from the block. Internal tone input RXSD 7 . 0 , tone output TXQ 7 . 0 and transmit enable TXON 7 . 0 signals in all eight dual tone channels may be routed to any external IO_SIG 31 . 0 pins. MORE ON CONTINUOUS AUTOCORRELATION The discrete digital continuous autoconelation algorith described is an equivalent implementation of the Mowing analog mathematical relation where x(t) is the dual tone input, τ is an appropriate delay parameter. In the analog case, x(t) is ±1, whereas in the discrete digital case, the FSK consists of ones and zeroes. Multiplication in the domain of ±1 is equivalent to the XOR logic operation in the domain of ones and zeroes. PIN MULTIPLEX CONTROLLER Introduction The Pin Multiplexer Controller consists of 32 registers. Each register controls the function of one of the 32 1/ O pins of the ASIC. It confrols whether the pin is an input or an output and which intemal function block is connected to the pin. A bit in the register can be set to invert the signal to or from the I/O pin. A block diagram of one pin controllers is shown in Figure 25. In Figure 25, Din, Dout, Sclk refer to SPI functions. The first selection block confrols which function is connected to the second mux. The second mux confrols which channel's fimction is connected to the physical I/O Pin. In this diagram, Din, Sclk,Dout, DACs, ADCsel are driven by state machines, not by the processor. Pulse In is read by the pulse counter/period measurement section. Discrete input and Discrete output are read and written to respectively by the processor. The mapping of the I/O bit, Inversion bit and I/O mux control bits for each pin to registers is shown in Figure 26. A memory map of these registers is shown in the table below: PIN MULTIPLEXER REGISTERS HEX NAME RW BIT DESCRIPTION ADDR ESS 236 IO Pin register 28 RW (D)7-0 238 IO Pin register 29 RW (D)7-0 23A IO Pin register 30 RW (D)7-0 23C IO Pin register 31 RW (D)7-0 23E IO Pin register 32 RW (D)7-0 Each physical IO_SIG31 -0 pin of the CommConfrol ASIC package can be routed to any one of several SPI channel functions, discrete input or output bit, or pulse input channel. In the case of the SPI channel, the pin may be routed to either the SPI clock, data in, or data out. Furthermore, in the case of the analog outputs with readback, the physical pin may be routed to any one of four ADC select lines or any one of four DAC select lines, hi the case of the group isolated analog inputs, the physical pin may also be routed to ADCsel. This is iUustrated in Figure 27. Described above are methods and apparatus for communication across an isolation barrier meeting the objects set forth above, among others. It will be appreciated that the iUustrated embodiment is merely an example of the invention and that other embodiments, incorporating changes therein, also faU within the scope of the invention. Thus, by way of example, it will be appreciated that inductive elements other than transformers may be used to carry the pulse width modulated and amphtude modulated signals between the confrol devices. By way of further example, it wiU be appreciated that the Ulustrated methods and apparatus can be used in control applications other than process confrol, e.g., industrial, environmental and other confrol applications. By way of stiU further example, it w l be appreciated that PWM signals can be used to fransfer information in both directions between the confrol devices. By way of stiU further example, it will be appreciated that the methods and apparatus discussed herein may be utilized for communications between any variety of control devices, not just confroUers and field devices. In view of the foregoing, what we claim is:

Claims: 1. In an input/output circuit of a process confrol system of the type having a transformer that generates an analog frequency shift keying (FSK) signal for fransfer across an isolation barrier, the improvement wherein an FSK signal transfened by the transformer is encoded in a pulse width modulated (PWM) signal. 2. In an input/output circuit according to claim 1, the further improvement comprising a modulator that is associated with a first confrol device and that generates the PWM signal for application to the transformer, a demodulator that is associated with a second control device and that converts the PWM signal transfened by the transformer to back into an analog FSK signal. 3. In an input/output circuit according to claim 3, the further improvement wherein each of the first and second confrol devices are any of a workstation, field controller, field device, smart field device, or other device for process confrol. 4. In an input output circuit according to claim 3, the further improvement wherein the second control device is a smart field device, and further comprising a transmitter that is coupled to the demodulator and that transmits analog signals to/from the second confrol device. 5. In an input/output circuit according to claim 1, the further improvement wherein a further FSK signal transfened by the transformer is encoded in an amphtude modulated (AM) signal. 6. In an input/output circuit according to claim 5, the further improvement wherein the AM signal utilizes a carrier generated by a fixed duty cycle output of the aforesaid modulator. 7. Isolation logic for use in transferring information over a transformer between first and second control devices, the isolation logic comprising a modulator that generates a pulse width modulated (PWM) signal encoding an analog frequency shift keying (FSK) signal to be transfened between the first and second control devices, and the modulator being coupled to the transformer and applying the PWM signal thereto. 8. Isolation logic according to claim 7, wherein the modulator is associated with a first one of the control devices, the modulator applies the PWM signal to the transformer to effect fransfer of the FSK signal encoded therein from the first confrol device to the second confrol device. 9. Isolation logic according to claim 8, wherein the modulator is coupled to a modem that generates the FSK signal to be transfened 10. Isolation logic according to claim 9, wherein the modem is coupled to the first confrol device and receives therefrom a digital signal containing information to be transfened from the first confrol device to the second confrol device, the modem generates the FSK signal from the digital signal. 11. Isolation logic according to any of claims 7 - 10, wherein each of the first and second confrol devices include any of a workstation, field confroUer, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process control. 12. Isolation logic according to any of claims 7 - 10, wherein the FSK signal is compatible with any of a FoxComm™, HART™ or other analog confrol signal format. 13. Isolation logic according to any of claims 7 - 10 adapted for galvanic isolation across an isolation barrier. 14. An input/output module for use in any of industrial, manufacturing, service, environmental, or process confrol to fransfer information over an isolation barrier between first and second confrol devices, the isolation logic comprising transformer logic that inductively transfers a pulse width modulated (PWM) signal across the isolation barrier, the PWM signal having encoded therein an analog frequency shift keying (FSK) signal being transfened from the first to the second confrol device, and the transformer logic inductively transferring an amphtude modulated (AM) signal across the isolation barrier, the AM signal having encoded therein an analog FSK signal being transfened from the second to the first confrol device. 15. An input/output module according to claim 14, wherein the transformer logic includes a first transformer that inductively transfers the PWM signals and second transformer that inductively xansfers the AM signals. 16. An input output module according to claim 14, comprising a first modulator that is coupled to the transformer logic, the first modulator generating and applying to the fransformer logic the PWM signal during a period in which an FSK signal is to be transfened from the first confrol device to the second control device. 17. An input/output module according to claim 16, wherein the first modulator generates and applies to the transformer logic a signal of fixed duty cycle during a period in which an FSK signal is not being transfened from the first confrol device to the second confrol device. 18. An input output module according to claim 17, comprising a second modulator that is coupled with the transformer logic, the second modulator generating the AM signal utilizing the signal of fixed duty cycle as a carrier signal. 19. An input/output module according to claim 18, wherein the second modulator is coupled to the second confrol device and receives therefrom an FSK signal encoding information to be transfened from the second confrol device to the first confrol device, and the second modulator generates the AM signal by modulating the carrier signal in accord with the FSK signal received from the second confrol device. 20. An input output module according to claim 19, wherein the second modulator generates the AM signal by multiplying the carrier signal by the FSK signal received from the second control device. 21. An input/output module according to any of claims 14 - 20, wherein the FSK signal is compatible with any of a FoxComm™, HART™ or other analog control signal format. 22. An input output module according to any of claims 14 - 20, wherein each of the first and second confrol devices include any of a workstation, field confroUer, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process confrol. 23. A confrol system comprising, a first control device and a second confrol device, each of the first and second confrol devices including any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process control, a first analog source that generates a first analog frequency shift keying (FSK) signal encoding information for fransfer from the first control device to the second control device, a first modulator that is coupled to the first analog source, the first modulator generating a pulse width modulated (PWM) signal having encoded therein the first FSK signal, a second analog source that generates a second analog FSK signal encoding information for transfer from the second confrol device to the first control device, a second modulator that is coupled to the second analog source, the second modulator generating an amplitude modulated (AM) signal having encoded therein the second FSK signal, first and second transformers that are coupled to the first and second modulators, respectively, the first and second transformers inductively carrying the PWM and AM signals, respectively, across an isolation barrier. 24. A confrol system according to claim 23, comprising a first demodulator that is coupled to the transformer, the first demodulator responding to the PWM signal carried by the transformer to generate an FSK signal encoding the information being transfened from the first confrol device to the second control device. 25. A confrol system according to claim 24, comprising a second demodulator that is coupled to the fransformer, the second demodulator responding to the AM signal carried by the transformer to generate an FSK signal encoding/the information being transfened from the second confrol device to the first confrol device. 26. A confrol system according to claim 25, wherein the first analog source, the first modulator, and the second demodulator are associated with the first confrol device, and the second analog source, the second modulator and the first demodulator are associated with the second confrol device. 27. A control system according to claim 25, wherein the first analog source, the first modulator, and the second demodulator are disposed on a same side of the isolation barrier as the first confrol device, and the second analog source, the second modulator and the first demodulator are disposed on a same side of the isolation barrier as the second confrol device. 28. A control system according to claim 23, wherein the first analog source is a modem. 29. A confrol system according to claim 28, wherein the modem coupled to the first confrol device and receives therefrom a digital signal encoding the information to be transfened to the second confrol device. 30. A control system according to any of claims 21 -29, wherein the FSK signals are compatible with any of a FoxComm™, HART™ or other analog control signal format. 31. A control system according to any of claims 21 - 29, wherein each of the first and second control devices include any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process control. 32. In a method of operating a process confrol system of the type having a transformer that transfers an analog frequency shift keying (FSK) signal across an isolation barrier, the improvement comprising encoding the FSK signal to be transfened by the transformer in a pulse width modulated (PWM) signal. 33. A method of transferring an analog frequency shift keying (FSK) signal over a transformer between first and second confrol devices, the method comprising the steps of generating a pulse width modulated (PWM) signal encoding the FSK signal to be transfened between the first and second confrol devices, and applying the PWM signal to the fransformer for fransfer between the first and second confrol devices. 34. A method according to claim 33, comprising generating the PWM signal from an FSK signal generated by a modem. 35. A method according to claim 34, comprising generating information to be transfened in digital format and utilizing the modem to generate the FSK signal therefrom. 36. A method according to any of claims 33 -35, wherein each of the first and second confrol devices include any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process confrol. 37. A method according to any of claims 33 - 35, comprising the step of generating the FSK signal in any of a FoxComm™, HART™ or other analog confrol signal format. 38. A method according to any of claims 33 - 35 adapted for galvanic isolation across an isolation barrier. 39. A method for use in any of industrial, manufacturing, service, environmental, or process confrol for transferring information over an isolation barrier between first and second control devices, the method comprising inductively transferring a pulse width modulated (PWM) signal across the isolation barrier, the PWM signal having encoded therein an analog frequency shift keying (FSK) signal containing information being transfened from the first to the second confrol device, and inductively transferring an amphtude modulated (AM) signal across the isolation barrier, the AM signal having encoded therein a FSK signal containing information being transfened from the second to the first confrol device. 40. A method according to claim 39, comprising inductively transferring the PWM signals using a first transformer and inductively transferring the AM signals using a second transformer. 41. A method according to claim 39, comprising generating and inductively transferring the PWM signal during a period in which an FSK signal is to be transfened from the first confrol device to the second confrol device. 42. A method according to claim 41, comprising generating and inductively transferring a signal of fixed duty cycle during a period in which an FSK signal is not being transfened from the first confrol device to the second confrol device. 43. A method according to claim 42, comprising generating the AM signal utilizing the signal of fixed duty cycle as a carrier signal. 44. A method according to any of claims 39 - 43, wherein the FSK signals are compatible with any of a FoxComm™, HART™ or other analog confrol signal format. 45. A method according to any of claims 39 - 43, wherein each of the first and second confrol devices include any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process confrol. 46. A method of operating A method of operating a control system comprising, generating a first analog frequency shift keying (FSK) signal encoding information for transfer from a first confrol device to a second confrol device, each of the first and second confrol devices including any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process control, generating a pulse width modulated (PWM) signal having encoded therein the first FSK signal, generating a second FSK signal encoding information for fransfer from the second confrol device to the first confrol device, generating an amphtude modulated (AM) signal having encoded therein the second FSK signal, inductively transferring the PWM and AM signals across an isolation barrier. 47. A method of operating a confrol system according to claim 46, comprising responding to the PWM signal fransfened by the fransformer to generate a further FSK signal encoding the information being fransfened from the first confrol device to the second confrol device. 48. A method of operating a control system according to claim 47, comprising responding to the AM signal transfened by the fransformer to generate a further FSK signal encoding the information being transfened from the second control device to the first confrol device. 49. A method of operating a confrol system according to any of claims 44 - 48, wherein the FSK signals are compatible with any of a FoxComm™, HART™ or other analog confrol signal format. 50. A method of operating a confrol system according to any of claims 44 - 48, wherein each of the first and second confrol devices include any of a workstation, field controller, field device, smart field device, or other device for any of industrial, manufacturing, service, environmental, or process control.

Inventors: CALVIN JAMES, CALVIN, JAMES
Applicants: FOXBORO CO, FOXBORO COMPANY
Application year: 2001
Main classification: G05B
IPC codes: H03K7, H03K11, H04B5