Sunteți pe pagina 1din 22

DOCUMENT REVISION HISTORY

Name of Document: WESDAC CPM Technical Description


Network File Name: 514-0001.DT

Original Author: E. Godberson


Date and Version of Preliminary Release: December 4, 1992 Version 0.00
Associated Software Release(s): N/A

Revisions Since Preliminary Release

Date & Version: By Whom: Pgs. Affected: Changes Made:

Dec. 4/92 Ver. 0.00 LB All Created document from chapter 9


& 10 of P000-0HR. (Version 3.00).
Harris Corporation
Controls Division
Distributed Automation Products

WESDAC CPM
Technical Description

Document Version: 0.00


Internal File: 514-0001.DT
Associated Software Release: N/A
NOTICE OF COPYRIGHT & PROPRIETARY
RIGHTS

©Harris Corporation, 1992. All rights reserved.

The contents of this manual are the property of Harris Corporation. No part of this
work may be reproduced or transmitted in any form or by any means, except as
permitted by written license agreement with Harris Corporation.

Harris Corporation has made every reasonable attempt to ensure the completeness
and accuracy of this document, however, the information contained in this manual is
subject to change without notice, and does not represent a commitment on the part of
Harris Corporation.

Any attached hardware schematics and technical descriptions, or software listings


that disclose source code, are for information purposes only. Reproduction in whole
or in part to create working hardware or software for other than Harris Corporation
products is strictly prohibited, except as permitted by written license agreement with
Harris Corporation.

TRADEMARK NOTICES

WESDAC is a registered trademark of Harris Corporation.

All other brand and product names mentioned in this document are trademarks or
registered trademarks of their respective companies.
TABLE OF CONTENTS

Chapter 1: INTRODUCTION 1-1

Chapter 2: SPECIFICATIONS 2-1

Chapter 3: CIRCUIT DESCRIPTION 3-1


3.1 ABOUT THE MICROCONTROLLER 3-1
3.2 SERIAL COMMUNICATIONS 3-4
3.3 MODEM 3-8
3.4 POWER SUPPLY 3-10

i
ii Westronic Inc.
LIST OF TABLES

Table 3-1 MCU Memory Map 3-3

iii
Chapter 1:
INTRODUCTION
The WESDAC Communications Processor Module (CPM) is a
microcontroller-based module designed for multi-serial I/O and protocol
communication applications.

The CPM is controlled by software stored in EPROM. This software can


be configured using the Westronic Configuration System. Refer to the
Westronic Configuration System User"s Guide (P005-0UG) for
information about using the Westronic Configuration System.

1-1
1-2 Westronic Inc.
Chapter 2:
SPECIFICATIONS

Microcomputer

! Motorola 32-bit MC68332 microcontroller


! 16MHz operation
! 256 K bytes EPROM
! 128 K bytes SRAM
! 32 K bytes NVRAM

Power Supply

! 12 or optional 24 V DC input
! 1.5 watts (typical)

Communications Ports

Master Communications Port 1 (Com 1 or Com 2)

! communications to SCADA master station


! bit- or byte- oriented protocols
! asynchronous communications
! TX, RX, RTS, CTS, and DCD signals
! 9600 maximum baud rate
! RS232 DB9 female connector

2-1
Local Serial Communications Port 2 (Com 3)

! local serial port for communications to printers, relays, meters, or


other intelligent devices
! TX, RX, RTS, CTS, and DCD signals
! 9600 maximum baud rate
! RS232 DB9 female connector

DNP Port 3 (Com 4)

! 8-Bit asynchronous
! 9600 maximum baud rate
! RS232 DB9 male connector

Maintenance/Configuration Port 4 (Com 0)

! 8-Bit asynchronous
! 9600 maximum baud rate
! RS232 DB9 female connector

Modem

! Bell 202/CCITT V.23


! 4-wire FSK
! 1200 bps
! messages transferred via port 1: COM 1 or COM 2
! output level -10 dBm (fixed)
! receive sensitivity -35 dBm (minimum)
! telephone jack termination

Configuration

! software configurable using Westronic Configuration System


running on IBM-compatible PC
! configuration downloaded through port 4

2-2 Westronic Inc.


2-3
Site Addressing

! software configurable using Westronic Configuration System


! stored in NVRAM

LED Indicators

! MPU run
! Transmit
! Receive

Physical Dimensions and Weight (Typical)

! 3.9" X 6.3" 0.5 lb.

2-4 Westronic Inc.


Chapter 3:
CIRCUIT DESCRIPTION

The operation of the CPM is controlled by the microcontroller and its


associated chips: EPROM, SRAM, non-volatile SRAM, the modem, and
the serial communications controller. The CPM has an on-board power
supply.

3.1 ABOUT THE MICROCONTROLLER

The CPM uses the Motorola MC68332, which is based on the M68020
microprocessor. The MC68332 is a high-density complementary metal-
oxide semiconductor (HCMOS) 32-bit microcontroller. For more in-depth
information about the internal operation of the MC68332 microcontroller,
please refer to the MC68332 SIM System Integration Module User"s
Manual from Motorola.

The primary functions of the microcontroller U8 are to perform data


processing and device addressing, and to communicate to off-board devices
either directly or through external communications devices.

3-1
External Bus Interface

The external bus of the MC68332 microcontroller provides a total of 24


address lines, allowing for an address range of approximately 16 Mbytes.
The address signals define the address of the byte to be transferred during a
bus cycle. There are 16 data lines available, but the size of the data bus can
be dynamically altered between 8 and 16 bits. The WESDAC CPM uses an
8-bit data bus between microcontroller and the on-board peripheral
devices. The data bus signals contain the data being transferred to or from
the MCU.

The R/W (read/write) and DS (data strobe) lines are also part of the
external bus interface. The R/ W signal indicates the direction data is to be
transferred on the data bus. The DS signal indicates that valid data is
available on the data bus (write cycle), or that a peripheral device can now
drive the data bus (read cycle). Programmable Logic Device (PLD) U11
provides the WR (write enable) and OE (output enable) signals required
by the peripheral devices to read and write data on the external bus.

The AS (address strobe) signal is driven low when a valid address is


placed on the external bus of the microcontroller. This signal is fed
through the PLD U11 producing an output (pin 7) to operate LED DS1.
DS1 is the RUN LED which turns on when the microcontroller is
executing bus cycles.

Two interrupt request level signals are used for the external bus: IRQ1
and IRQ2 . The modem U12 asserts IRQ1 and the serial communications
controller U1 controls IRQ2 . When one of these signals goes low, the
CPU is forced to put aside the software it is currently executing, and begins
executing software related to the IRQ line which was asserted.

3-2 Westronic Inc.


Chip Select

The system integration module contains 12 chip selects that can be used,
under software control, to set up the memory map and number of wait
states for up to 12 external peripheral devices. The memory map can be
divided into blocks ranging from 2K to 1M bytes in size.

When the system is starting, the MCU determines the size of each memory
device as defined in the software, and sets the memory map appropriately.
The microcontroller U7 configures the memory map using the chip selects
which enable peripherals at programmed addresses. CSB (boot chip select)
provides the enable for the EPROM U3. CS0 is the chip select for the
SRAM U4, CS1 is the chip select for the non-volatile SRAM memory U2,
and CS2 is the chip select for the Serial Communications Controller (SCC)
U1. See Table 10-1 for the MCU memory map.

The TPU of the MCU controls the modem, and therefore the modem U12
does not occupy space on the memory map.

Device Base Address Chip


(hexadecimal) Select

CPU (SIM) FFFA00 n/a


EPROM U3 000000 C& S& B&
SRAM U4 300000 C& S& 0&
Non-volatile 200000 C& S& 1&
SRAM U2
Serial FFE800 C& S& 2&
communications
controller U1

Table 3-1 MCU Memory Map

3-3
System Protection Module

This module provides system protection by performing two functions: the


periodic interrupt timer and the software watchdog timer.

The periodic interrupt timer acts as a real-time clock by supplying an


interrupt to the CPU module at a 1-millisecond interval. This allows
software to properly schedule which software programs should be
executing at any given time.

The software watchdog timer is set at approximately 1.0 second. If there is


a software problem, the CPU will not send a signal to the watchdog timer,
causing the watchdog to time out and initiate a system reset.

System Clock

Oscillator U5 provides a 16.00MHz clock for the system. This clock is


received by the MCU U7 at EXTAL, internally buffered, and produced as
an output on the CLKOUT line. This clock signal is fed into a divide by
two circuit within the PLD U11. The result is a 8 MHz signal (pin 9)
which provides a clock to the SCC U1 (pin 20).

3.2 SERIAL COMMUNICATIONS

The WESDAC CPM has five software controlled serial communication


channels (COM 0 to COM 4). The queued serial module and the time
processor unit of the microcontroller U8 generate three channels, and
channels A and B of the serial communications controller U1 generate the
other two.

Because the TPU and channel B of the SCC generate channels that share
some common hardware and a modem, only four communication ports
are available for use at any one time on the WESDAC CPM.

3-4 Westronic Inc.


The communications channels are associated with the following port
connections on the CPM:

! COM 0 at J1 (port 4)
! COM 1 and COM2 at J3 (port 1) or at J4 (modem)
! COM 3 at J2 (port 2)
! COM 4 at P1 (port 3)

COM 0

Communication port COM 0 is dedicated for use as the maintenance port


for the WESDAC CPM at J1. The TPU in the microcontroller U7
generates the transmit (TX) and receive (RX) signals for COM 0 using
TP14 and TP15 respectively. TP14 acts as a standard synchronous
transmit signal line and TP15 receives serial synchronous data.

COM 0 has the following RS232 signals appearing at the female DB-9
connector J1 on the CPM:

Signal Line Pin

common (COM) 1
transmit data (TX4) 3
receive data (RX4) 4
ground (GND) 6

Pins 2, 5, 7 to 9 are not connected. The signals are at TTL levels at the
TPU of the MCU U7 and at RS-232 levels at J1. The RS-232/TTL
transmitters/receivers at U10 perform the level translations for this
communications port. The data format is fixed in the CPM software at
9600 baud, 8 data bits, and no parity.

COM 1 and COM 2

Communication channels COM 1 and COM 2 are used to communicate to


the host or master station. These two channels share some common
equipment, allowing only one channel at a time to provide communications.
The channel to be in operation is programmed in the software.

3-5
When the data format on the port is to be byte-oriented and in a format
used by the Serial Communications Controller, COM 2 is used. When a
bit-oriented non-standard data format is to be used, COM 1 is used. The
TPU generates COM 1 using TP0 to TP4 on the microcontroller U7. TP0
generates the TX line, and TP1 the RX line. This port handles handshaking
through TP2 (RTS), TP3 (CTS), and TP4 (DCD). Since the TPU is
programmable and independent, COM 1 can be programmed to
accommodate a wide variety of bit-oriented protocols.

COM 2 is generated by channel A of the Serial Communications Controller


(SCC) U1. The communications lines TX and RX are produced at pins 15
and 13. The handshaking lines RTS, CTS, and DCD are generated at pins
17, 18 and 19 respectively. The SCC is capable of handling a variety of
synchronous or synchronous data formats.

COM 1 and COM 2 share common RS-232/TTL transmitter/receiver U10,


an optional modem U11, and connector J3 for external connections.
Portions of the PLD U12, allow the signals from COM 1 and COM 2 to be
physically connected to the same devices. The CPM software determines
which of the communication ports will be active. The signals are at TTL
levels at the TPU and the SCC, and at RS-232 levels at J3.

Transmitter/receiver U11 provides the signal level translation between TTL


and RS-232 for COM 1 and COM 2. The RS-232 signals are available at
the female DB-9 connector J3 when the internal modem is not being used.
J3 has the following signal lines:

Signal Line Pin

DCD1 (data carrier detect) 1


RX1 2
TX1 3
COM 5
TX Key 6
RTS1 (request to send) 7
CTS1 (clear to send) 8
GND 9

There is no connection at pin 4. The power supply common connects to


pin 5 and the chassis ground connects to pin 9. Refer to the modem
description for details on how COM 1 or COM 2 can be used in
conjunction with the internal modem.

3-6 Westronic Inc.


LEDs DS2 and DS3 indicate the status of messages being transmitted and
received between the master station and the CPM. DS2 and DS3 are
directly connected to the TX1 and RX1 lines. A space on TX1 causes DS2
to be lit. A space received on RX1 causes DS3 to be lit.

COM 3

Communication channel COM 3 is used for special purpose applications.


The port is generated by channel B of the SCC U1 and provides TX2,
RX2, RTS2, CTS2, and DCD2 signals. As with COM 2, COM 3 is
programmable for a variety of data formats. RS-232/TTL level translation
is provided by transmitter/receiver U10 and a portion of the PLD U11.

Access to the port is via the female DB-9 connector J2. J2 has the
following pin-outs for the signal lines:

Signal Line Pin

DCD2 1
RX2 2
TX2 3
COM 5
RTS2 7
CTS2 8
GND 9

There are no connections at pins 4 and 6. The power supply common


connects to pin 5 and the chassis ground to pin 9.

COM 4

The Serial Communications Interface (SCI) in the queued serial module of


the MCU U8 handles the communications portion of this communication
port. The SCI is programmed in the software for standard NRZ formatted
data communications with 8 data bits, no parity, and a 9600 baud.

3-7
On COM 4, only the TX and RX lines are used: no handshake lines are
available. RS-232/TTL level translation is provided by both
transmitters/receivers U10 and U11. The RS232 signals are available at
the male DB-9 connector P1.

Signal Line Pin

TX4 2
RX4 3
+VIN 4
COM 5
-VIN 6
GND 9

The 0 volt common is available on pin 5 and the chassis ground on pin 9.
Pins 4 and 6 are used by the CPM power supply. Please refer to the Power
Supply section below for further details.

3.3 MODEM

An on-board modem U13 can be connected to communication port COM 1


or COM 2 to communicate to the host or master station. These ports
support 2 or 4-wire operations.

Types of Modems

The CPM supports Bell 202 and CCITT V.23 modem types. For the Bell
202, a SSI73K302L integrated chip is installed at U13. For the CCITT
V.23 a SSI73K322L chip is installed.

The modem features an automatic gain control circuit on the tone receive
line and a fixed output level. Please refer to the Silicon Systems
Communications Products Integrated Circuits data book for further
details.

3-8 Westronic Inc.


Operation

During the serial data mode of the modem, the modem is programmed
through TPU channels TP7 to TP13 of the MCU U8. Channels TP9,
TP10, and TP11 control the AD0, AD1, and AD2 lines of the modem.
Channels TP10 and TP11 control the read and write select lines, RD and
WR , of the modem. TP12 provides a data clock signal on the EXCLK pin
of the modem. Serial data on the AD7 pin of the modem is connected to
TP13 on the microcontroller U7.

The modem is capable of generating an interrupt on the IRQ2 line of the


MCU U8 under a variety of conditions, such as detection of carrier. Serial
communication data into and out of the modem takes place over the RXD
and TXD pins of the modem which are connected via the U12 to the RX1
and TX1 lines of COM 1 and COM 2. The CPM software determines
which of the communication ports is used in conjunction with the modem.
Y1 is an 11.0592 MHz crystal which is used by the modem to generate and
demodulate the tone signals.

In the analog portion of the modem, transmit tones are output at the TXA
line. This signal is then coupled through capacitor C19 to the amplifier
U14 (pins 1, 2 and 3). The output of the amplifier connects to the modem
coupling transformer T3. The secondary side of T3 outputs at the RJ-11
connector J4 on pins 1 and 2.

2-Wire and 4-Wire Operations

The modem is set for 2-wire or 4-wire operation by placing a jumper on


the 3-pin header strip Z1.

For the 2-wire mode, a jumper is required on pins 1 and 2 of Z1. In this
mode, the modem receives tones through transformer T3. Amplifier U14
(pins 5, 6 and 7) amplifies the received signal. The output connects through
pins 1 and 2 of jumper block Z1 to a second amplifier U14 (pins 9, 10 and
8).
For the 4-wire mode, pins 2 and 3 are jumpered on Z1. The modem
receives tones through the RJ11 connector J4 (pins 2 and 5). The signal
passes through transformer T2, then through pins 2 and 3 of Z1, and into
amplifier U14 (pins 9, 10 and 8).

3-9
The output of amplifier U14 (pins 9, 10 and 8), whether it is from the
2-wire or 4-wire circuit of the modem, is capacitively coupled by C20 into
the modem U13 (RXA).

Opto-coupler U5 forms the basis of a ring detect circuit. This circuit is


monitored by TP6 of the microcontroller"s TPU module. Similarly, TP5
controls the hook switch of the modem through U16. U6 is a solid-state
isolated switch. Varistors and capacitors on the line side of transformers
T1 and T2 protect the modem against electrical impulse and electrical
surge disturbances.

3.4 POWER SUPPLY

The power supply circuitry consists of pins 4 and 6 of the P1 connector,


the voltage regulator U6 and various discrete components. The CPM
accepts a 9 to 36 VDC input supply at P1 with the positive terminal
connected to pin 4, the negative on pin 6. The voltage regulator U6 drops
this voltage down to +5 VDC for use by the logic circuitry on the
WESDAC CPM board. Since the power supply is self-regulated, no user
adjustments are required to maintain the voltage within tolerance.

Power Monitor

U7 is an undervoltage sensing circuit that monitors the 5V logic power


supply. U7 prevents the logic from operating when there is insufficient
voltage to properly run the system. When the 5V input falls below 4.6V,
the RESET line of the MCU goes low. When the voltage goes above
4.6V, RESET goes high again

3-10 Westronic Inc.

S-ar putea să vă placă și