User’s Manual
from Emerson Network Power
Embedded Computing
™
PmT1 and PmE1: High Speed T1 and E1 Interface Module
December 2007
The information in this manual has been checked and is believed to be accurate and reliable.
HOWEVER, NO RESPONSIBILITY IS ASSUMED BY EMERSON NETWORK POWER, EMBEDDED
COMPUTING FOR ITS USE OR FOR ANY INACCURACIES. Specifications are subject to change
without notice. EMERSON DOES NOT ASSUME ANY LIABILITY ARISING OUT OF USE OR
OTHER APPLICATION OF ANY PRODUCT, CIRCUIT, OR PROGRAM DESCRIBED HEREIN. This
document does not convey any license under Emerson patents or the rights of others.
The Emerson PmT1 and PmE1 meets the requirements set forth by the Federal Communications Commission (FCC) in Title 47 of the Code of Federal Regulations. The following
information is provided as required by this agency.
This device complies with part 15 of the FCC Rules. Operation is subject to the following
two conditions: (1) This device may not cause harmful interference, and (2) this device
must accept any interference received, including interference that may cause undesired
operation.
FCC RULES AND REGULATIONS — PART 15
This equipment has been tested and found to comply with the limits for a Class A digital
device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses and can radiate radio frequency energy
and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely
to cause harmful interference, in which case the user will be required to correct the interference at his own expense.
Caution: Making changes or modifications to the PmT1 and PmE1 hardware without the explicit
consent of Emerson Network Power could invalidate the user’s authorit y to operate this
equipment.
EMC COMPLIANCE
The electromagnetic compatibility (EMC) tests used a PmT1 and PmE1 model that includes
a front panel assembly from Emerson Network Power.
Caution: For applications where the PmT1 and PmE1 is provided without a front panel, or where the
front panel has been removed, your system chassis/enclosure must provide the required
electromagnetic interference (EMI) shielding to maintain EMC compliance.
FCC RULES AND REGULATIONS — PART 68
This equipment complies with Part 68 of the FCC rules. There is a label on the PmT1 and
PmE1 board that contains the FCC registration number. If requested, this information must
be provided to the telephone company.
1000236 7-02PmT1 and PmE 1 User’s Manua l
i
Regulatory Agency Warnings & Notices (continued)
This board is designed to be connected to the telephone network or premises wiring using
a compatible modular jack which is Part 68 compliant. This board cannot be used on telephone company-provided coin service. Connection to Part y Line Ser vice is subject to state
tariffs.
If this board causes harm to the telephone network, the telephone company will notify you
in advance that temporary discontinuance of service may be required. If advance notice is
not practical, the telephone company will notify the customer as soon as possible. Also, you
will be advised of your right to file a complaint with the FCC if you believe it is necessary.
The telephone company may make changes in its facilities, equipment, operations, or procedures that could affect the operation of the equipment. If this happens, the telephone
company will provide advance notice in order for you to make the necessary modifications
in order to maintain uninterrupted service.
It is recommended that the customer install an AC surge arrestor in the AC outlet to which
this device is connected. This is to avoid damaging the equipment caused by local lightening strikes and other electrical surges.
The following table lists each applicable Facility Interface Code (FIC) along with the Service
Order Code (SOC) and connector jack type for the PmT1 and PmE1.
Facility Interface
Board Name:
PmT1 and PmE1 04DU9.BN
a. Combinations of equipment provide full protection to digital service. Billing protection and encoded analog protection are provided
either by including auxiliary equipment within the registration envelope or by use of a separately registered device.
Code (FIC):
04DU9.DN
04DU9.1KN
04DU9.1SN
Note: The following information and instructions must be given to the final assembler/end user.
FIC
Description:
1.54 Mbps AMI Superframe Format (SF) without
line power
1.544 Mbps SF and B8ZF without line power
1.544 Mbps AMI ESF without line power
1.544 Mbps AMI ESF and B8ZS without line power
Service Order
Code (SOC):
a
6.0N
The mounting of the PmT1 and PmE1 in the final assembly must be made so that the PmT1
and PmE1 is isolated from exposure to hazardous voltages within the assembly. Adequate
separation and restraint of cables and cords must be provided.
The circuitr y from the PmT1 and PmE1 to the telephone line must be provided in wiring
that carries no other circuitry that is specifically allowed in the rules, such as PR and PC
leads.
PC board traces carrying tip and ring leads shall have sufficient spacing to avoid surge
breakdown.
ii
PmT1 and PmE1 Us er’s Manual1000236 7-02
Jack
Typ e:
RJ48C
Regulatory Agency Warnings & Notices (continued)
!
Information shall be provided as to the power source requirements. See the PmT1 and
PmE1 power requirements in the hardware manual.
If the device is enclosed in an assembly, and not readily accessible, a label shall be placed on
the exterior of the cabinet listing the registration number of each PmT1 and PmE1 contained therein.
The final assembler shall provide, in the consumer instructions, all applicable Network Connection Information.
INDUSTRY CANADA RULES AND REGULATIONS — CS03
NOTICE: The Industry Canada label identifies certified equipment. This certification means
that the equipment meets certain telecommunications network protective, operational,
and safety requirements as prescribed in the appropriate Terminal Equipment Technical
Requirements document(s). The Department does not guarantee the equipment will operate to the user’s satisfaction.
Before installing this equipment, users should ensure that it is permissible to be connected
to the facilities of the local telecommunications company. The equipment must also be
installed using an acceptable method of connection. The customer should be aware that
compliance with the above conditions may not prevent degradation of service in some situations.
Repairs to certified equipment should be coordinated by a representative designated by
the supplier. Any repairs or alterations made by the user to this equipment, or equipment
malfunctions, may give the telecommunications company cause to request the user to disconnect the equipment.
Users should ensure for their own protection that the electrical ground connections of the
power utility, telephone lines, and internal metallic water pipe system, if present, are connected together. This precaution may be particularly important in rural areas.
Caution: Users should not attempt to make such connections themselves, but should contact the
appropriate electric inspection authority, or electrician as appropriate.
The standard connecting arrangement code (telephone jack type) for this equipment is
CA48C.
1000236 7-02PmT1 and PmE 1 User’s Manua l
iii
Regulatory Agency Warnings & Notices (continued)
EC Declaration of Conformity
According to EN 45014:1998
Manufacturer’s Name:Emerson Network Power
Embedded Computing
Manufacturer’s Address:8310 Excelsior Drive
Madison, Wisconsin 53717
Declares that the following product, in accordance with the requirements of 2004/108/EEC, EMC
Directive and 1999/5/EC, RTTE Directive and their amending directives,
Product: PMC Module
Model Name/Number:PmT1 and PmE1/01439143-xx
has been designed and manufactured to the following specifications:
EN55022:1998 Information Technology Equipment, Radio disturbance characteristics, Limits and
methods of measurement
EN55024:1998 Information Technology Equipment, Immunity characteristics, Limits and methods
of measurement
EN300386 V.1.3.1 Electromagnetic compatibility and radio spectrum matters (ERM);
Telecommunication network equipment; EMC requirements
As manufacturer we hereby declare that the product named above has been designed to comply
with the relevant sections of the above referenced specifications. This product complies with the
essential health and safety requirements of the EMC Directive and RTTE Directive. We have an internal production control system that ensures compliance between the manufactured products and
the technical documentation.
CPU: The CPU for the PmT1 and PmE1 is the Freescale MPC860P PowerQUICC 32-bit micropro-
RAM: The PmT1 and PmE1 module is populated with 16 megabytes of 32-bit wide DRAM.
Flash: The PmT1 and PmE1 module has a 32-pin PLCC flash socket with a 512-kilobyte flash capac-
Section 1
The PmT1 and PmE1 is a single width PMC module designed to provide high-speed T1 and
E1 interfaces for PMC-compatible baseboards. The design is based on the Freescale™
MPC860P PowerQUICC™ microprocessor and the PLX Technology PCI9060ES bus interface
controller. The PmT1 has two standard landed T1 channels, and the PmE1 has two standard
landed E1 channels. An optional EIA-422 port is available.
COMPONENTS AND FEATURES
The following is a brief summary of the PmT1 and PmE1 hardware components and features:
cessor chip running at 80MHz. See Chapter 3 for processor features.
ity.
Serial I/O: The PmT1 and PmE1 module has two EIA-232 I/O ports implemented with two serial man-
agement controllers (SMCs). If the second E1 channel is not required, the PmE1 can be factory configured to additionally provide a single EIA-422 serial port.
T1E1: The PmT1 is factory configured to support the T1 channel using the Dallas Semiconductor
DS2151Q controller. The PmE1 is factory configured to support the E1 channel using the
Dallas Semiconductor DS2153Q controller.
PCI Bus: The PLX Technology PCI9060ES controls the Peripheral Component Interconnect (PCI) bus.
The PmT1 and PmE1 modules appear as peripheral cards to PCI.
FUNCTIONAL OVERVIEW
The following block diagram provides a functional overview for the PmT1 and PmE1:
1000236 7-02PmT1 and PmE 1 User’s Manua l
1-1
Overview: Physical Memory Map
EIA232 Console
and Download
Serial Ports
CPU
MPC860P
PMC Connectors
P14
System Interface Unit (SIU)
Memory Controller
Internal
Bus Interface
Unit
External
Bus Interface
Unit
PCMCIA-ATA Interface
System Functions
Real-Time Clock
Power PC
Processor Core
32-Bit Bus
Communcations
Processor Module (CPM)
PMC Connectors
P11, P12
PCI Controller
PCI90x0
Serial
EEPROM
128 bytes
EEPROM
2 kilobytes
I C
2
1
A21/D32
A20/D8
A32/D32
32
PmT1 or PmE1
Channel 1
PmT1 or PmE1
Channel 2 or EIA422 Port
DRAM
16 megabytes
PCI
PCI
Flash/ROM
Socket
512 kilobytes
Figure 1-1: General System Block Diagram
1-2
PHYSICAL MEMORY MAP
The physical memory map of the PmT1 and PmE1 is depicted in Fig. 1-2. Information on particular portions of the memory map can be found in later sections of this manual. See
This section lists the PmT1 and PmE1 hardware’s regulatory certifications and briefly discusses the terminology and notation conventions used in this manual. It also lists general
technical references.
Mean time between failures (MTBF) is listed in the following table:
The PmT1 and PmE1 hardware has been tested to comply with various safety, immunity,
and emissions requirements as specified by the Federal Communications Commission
(FCC), Underwriters Laboratories (UL), and others. The following table summarizes this
compliance:
1-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
Overview: Additional Information
Tab le 1-3 : Regulatory Agency Compliance — T1
Type:Specification:
SafetyUL60950-1, CSA C22.2 No. 60950-1-03, 1st Edition – Safety of
Information Technology Equipment, including Electrical Business
Equipment (BI-National)
Global IEC – CB Scheme Report IEC 60950, all country deviations
TelecomFCC Part 68 – Title 47, Code of Federal Regulations, Radio
Frequency Devices
IC CS03 – Radiated and Conducted Emissions, Canada
EMCFCC Part 15, Class A – Title 47, Code of Federal Regulations, Radio
Tab le 1-4 : Regulatory Agency Compliance — E1
Type:Specification:
SafetyIEC60950/EN60950 – Safety of Information Technology Equipment
TelecomCTR012 – Business Telecommunications; Open Network Provision
EMCEN55022 – Information Technology Equipment, Radio Disturbance
Frequency Devices
ICES 003, Class A – Radiated and Conducted Emissions, Canada
(Western Europe)
technical requirements; 2048 kbits/s digital unstructured leased line
attachment requirements for terminal equipment.
CTR013 – Business Telecommunications Open Network Provision
technical requirement, 2048 kbits/s structured, leased line attachment
requirements for terminal equipment.
Characteristics, Limits and Methods of Measurement
EN55024 – Information Technology Equipment, Immunity
Characteristics, Limits and Methods of Measurement
ETSI EN300386 – Electromagnetic Compatibility and Radio Spectrum
Matters (ERM), Telecommunication Network Equipment,
Electromagnetic Compatibility (EMC) Requirements
Emerson maintains test reports that provide specific information regarding the methods
and equipment used in compliance testing. Unshielded external I/O cables, loose screws, or
a poorly grounded chassis may adversely affect the PmT1 and PmE1 hardware’s ability to
comply with any of the stated specifications.
The UL web site at ul.com has a list of Emerson’s UL certifications. To find the list, search in
the online certifications directory using Emerson’s UL file number, E190079. There is a list
for products distributed in the United States, as well as a list for products shipped to Canada. To find the PmT1 and PmE1, search in the list for 01439143-xx, where xx changes with
each revision of the printed circuit board.
1000236 7-02PmT1 and PmE 1 User’s Manua l
1-5
Overview: Additional Information
RoHS Compliance
The PmT1 and PmE1 are compliant with the European Union’s RoHS (Restriction of Use of
Hazardous Substances) directive created to limit harm to the environment and human
health by restricting the use of harmful substances in electrical and electronic equipment.
Effective July 1, 2006, RoHS restricts the use of six substances: cadmium (Cd), mercury
(Hg), hexavalent chromium (Cr (VI)), polybrominated biphenyls (PBBs), polybrominated
diphenyl ethers (PBDEs) and lead (Pb). Configurations that are 5-of-6 are built with tin-lead
solder per the lead-in-solder RoHS exemption.
To obtain a certificate of conformity (CoC) for the PmT1 and PmE1 modules, send an
e-mail to sales@artesyncp.com or call 1-800-356-9602. Have the part number(s) (e.g.,
C000####-##) for your configuration(s) available when contacting Emerson.
Terminology and Notation
Active low signals: An active low signal is indicated with an asterisk * after the signal name.
Byte, word: Throughout this manual byte refers to 8 bits, word refers to 16 bits, and long word refers to
32 bits, double long word refers to 64 bits.
PLD: This manual uses the acronym, PLD, as a generic term for programmable logic device (also
known as FPGA, CPLD, EPLD, etc.).
Radix 2 and 16: Hexadecimal numbers end with a subscript 16. Binary numbers are shown with a
subscript 2.
Technical References
Further information on basic operation and programming of the PmT1 and PmE1 components can be found in the following documents:
Tab le 1-5 : Technical References
Device / Interface:Document: 1
Controller, T1/E1DS2153Q, E1 Single Chip Transceiver Data Sheet
EEPROMCAT93C86 (Die Rev. C) 16-Bit Microwire Serial EEPROM
PCIPCI Local Bus Specification
PMCDraft Standard for a Common Mezzanine Card Family: CMC P1386/Draft 2.0
Serial InterfaceEIA Subcommittee TR-30.2 on Interface, EIA Standard RS-232-D
1. Frequently, the most current information regarding addenda/errata for specific documents may be
found on the corresponding web site.
(Catalyst l Semiconductor, Inc.., Doc. No. 1091, Rev. O, 10/13/06)
http://www.catsemi.com/
(PCI Special Interest Group, Revision 2.1 1995)
http://www.pcisig.com /
PCI9060ES PCI Bus Master Interface Chip for Adapters and Embedded
Systems–data sheet
(Mountain View, CA: PLX Technology, Inc., December1995 VERSION 1.2)
http://www.plxtech.com/
April 4, 1995
(IEEE:N ew York, NY)
Draft Standard Physical and Environmental Layers for PCI Mezzanine Cards:
PMC P1386.1/Draft 2.0 April 4, 1995
(IEEE: New York, NY)
http://www.ieee.org/
(Electronic Industries Association, August 1969)
http://www.eia.org/
1000236 7-02PmT1 and PmE 1 User’s Manua l
1-7
Overview: Additional Information
1-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
Setup
!
TDM B
TDM A
Section 2
This chapter describes the physical layout of the boards, the setup process, and how to
check for proper operation once the boards have been installed. This chapter also includes
troubleshooting, service, and warranty information.
ELECTROSTATIC DISCHARGE
Before you begin the setup process , please remember that electrostatic discharge ( ESD) can
easily damage the components on the PmT1 and PmE1 hardware. Electronic devices, especially those with programmable parts, are susceptible to ESD, which can result in operational failure. Unless you ground yourself properly, static charges can accumulate in your
body and cause ESD damage when you touch the board.
Caution: Use proper static protection and handle the PmT1 and PmE1 board only when absolutely
necessary. Always wear a wriststrap to ground your body before touching a board. Keep
your body grounded while handling the board. Hold the board by its edges–do not touch
any components or circuits. When the board is not in an enclosure, store it in a staticshielding bag.
To ground yourself, wear a grounding wriststrap. Simply placing the board on top of a staticshielding bag does not provide any protection–place it on a grounded dissipative mat. Do
not place the board on metal or other conductive surfaces.
PMT1 AND PME1 CIRCUIT BOARD
The PmT1 and PmE1 circuit board is a PMC module assembly. It uses an eight-layer printed
circuit board with the following dimensions:
Tab le 2-1 : Circuit Board Dimensions
Width:Depth:Height:
5.86 in. (148.8 mm)2.913 in. (74.0 mm).39 in. (10.0 mm)
The following figures show the front panel and component maps for the PmT1 and PmE1
circuit board.
Figure 2-1: PmT1 and PmE1 Front Panel
1000236 7-02PmT1 and PmE 1 User’s Manua l
2-1
Setup: PmT1 and PmE1 Circuit Board
C1
C10
C12 C13
C14
C15
C16
C17
C18
C19
C2
C20
C21
C22
C23
C24
C25
C26
C27
C28
C29
C3
C30
C4
C5
C6
C7
C8
C9
L1
L2
P1
P11
P12
P14
P2
R1
R10R11
R12
R13
R14
R5
R6
R7
R8
R9
RN1
RN2
S1
S2
U1
U100
U101
U12
U14
U15
U16
U17
U18
U19
U2
U20
U21
U22
U3
U4
U5
U6
U8
U9
X5
Y4
Y5
U13
U10
U7
U11
F1
F2 F3 F4
F5
F6
F7
F8
F9
F11
F13
F15
Y1
Y2
Y7
Y3
Y6
PCI90x0
MPC860
T1/E1
T1/E1
Figure 2-2: Component Map, Top (rev. 33)
2-2
PmT1 and PmE1 Us er’s Manual1000236 7-02
Setup: PmT1 and PmE1 Circuit Board
R19
R18
U25U24U23
U30U29U28U27U26
CR2/CR6
CR1/CR4
CR5
CR3
CR8
CR7
CR9
CR10
CR11
C67
U31
U32
R69 R68
R71
R16
R74
R73
R75
R72
R17
R15
R63
R66
R52
R55
R56
R59
R60
R57
R58
R48
R42
R47
R54
P3
R53
R46
R43
R64
R62
R65
R51
R50
R49
R41
R40
R39
R45
R44
R25
R29
R30
R24
R23
R36
R33
R26
R22
R31
R32
R37
R38
R20
R21
R27
R28
R34
R35
R2
R3
R4
C11
C33
C32
C31
C51
C54
C47
C43
C48
C49
C50
C52
C66
C65
C58
C61
C62
C63
C64
R61
C46
C39
C38
C37
C36
C45
C35
C34
C44
C42 C41
C40
C60
C59
C57
C53
C56 C55
C68
R67
R70
10001234-AA
D
590-
YYYYY
Figure 2-3: Component Map, Bottom (rev. 33)
1000236 7-02PmT1 and PmE 1 User’s Manua l
2-3
Setup: Installation
Connectors
The PmT1 and PmE1 circuit board has various connectors (see the figures beginning on
page 2-2), summarized as follows:
P1/P2: These connectors are installed for the PmT1 front panel I/O configurations. See Chapter 6
for pin assignments.
P3: This is the optional 10-pin BDM JTAG header for viewing processor functions. See
for pin assignments.
P11/P12: These provide a 32-bit PCI interface between the module and the PMC baseboard. Pin
assignments are shown in Chapter 7.
P14: This is the I/O connector for the EIA-422 and EIA-232 serial ports. See Chapter 5 for pin
assignments.
Tab l e 3- 7
INSTALLATION
The PmT1 and PmE1 module may be installed in either expansion site on the baseboard. To
attach the module to your baseboard, follow these steps:
1 Remove the loosely installed screws from the standoffs on the PmT1 and PmE1 module.
2 Line up the P11, P12, and P14 connectors and the 5V keying hole with the PMC connectors
and the keying pin on the baseboard. Press the module into place, making sure that the
connectors are firmly mated and the module front panel is fully seated in the baseboard
front panel.
3 From the back of the baseboard, insert and tighten the two screws in the standoffs closest
to the PMC connectors.
2-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
Setup: PmT1 and PmE1 Setup
Tighten these two screws first.
Voltage key
!
Figure 2-4: PmT1 and PmE1 Installation
4 Insert and tighten the two remaining screws.
PMT1 AND PME1 SETUP
You need the following items to set up and check the operation of the Emerson PmT1 and
PmE1:
❐ Five-volt compatible PMC baseboard
❐ Chassis and power supply
❐ Serial interface cable for EIA-232 port, Emerson part #C0006322-xx0
❐ Two Compu-shield to RJ45 cable assemblies (Emerson part number C308A009-xx) for
front panel I/O configurations
❐ Computer terminal
Save the antistatic bag and box for future shipping or storage.
Caution: Do not install the board in a rack or remove the board from a rack while power is applied, at
risk of damage to the board.
Power Requirements
The Emerson PmT1 and PmE1 circuit board typically requires 6.7 watts maximum.
1000236 7-02PmT1 and PmE 1 User’s Manua l
2-5
Setup: Reset Methods
Tab le 2-2 : Power Requirements
Volts:Range (volts):Maximum Current:
+5 +/- 5%1.16 A, typical
1. Running on-card memory test.
The exact power requirements for the PmT1 and PmE1 circuit board depend upon the specific configuration of the board, including the CPU frequency and amount of memory
installed on the board. Please contact Emerson Technical Support at 1-800-327-1251 if you
have specific questions regarding the board’s power requirements.
Environmental Considerations
As with any printed circuit board, be sure that air flow to the board is adequate. Chassis constraints and other factors greatly affect the air flow rate. The environmental requirements
are listed in
Tab le 2-3 : Environmental Requirements
Tab l e 2 -3 .
Environment:Range:Relative Humidity:
Operating Temperature0° to +55° Centigrade, ambient
Storage Temperature—40° to 70° CentigradeNot to exceed 95%
Air Flow50 linear feet/minute n/a
RESET METHODS
The entire board is reset on power-up. A baseboard PCI reset causes a PORESET* of the
PmT1 and PmE1. The PCI9060ES may be programmed to initiate a software controlled hard
reset from the PCI bus.
(at board)
1
Not to exceed 95% (noncondensing)
(non-condensing)
To do a hard reset of the PmT1 and PmE1 from the local bus, clear and then set bit 16 in the
PCI9060ES register at local address C100,00EC
To do a hard reset of the PmT1 and PmE1 from the PCI bus, the same bit must be cleared
and then set in software. However, the PCI bus is little endian so this bit appears as bit 8
from the (big-endian) point of view of the MPC860P. This means that bit 8 of the register at
offset 6C
from the PCI base address must be cleared and then set. After this reset, the
16
module must be reconfigured on PCI by the baseboard.
TROUBLESHOOTING
In case of difficulty, use this checklist:
2-6
PmT1 and PmE1 Us er’s Manual1000236 7-02
16
.
Setup: Troubleshooting
❐ Be sure the PmT1 and PmE1 circuit board is seated firmly in the baseboard and that the
baseboard is fully plugged in the chassis.
❐ Be sure the system is not overheating.
❐ Check the cables and connectors to be certain they are secure.
❐ If you are using the PmT1 and PmE1 monitor, run the power-up diagnostics and check
the results. “Power-up Diagnostic/Test Commands”, Section describes the power-up
diagnostics.
❐ Check your power supply for proper DC voltages. If possible, use an oscilloscope to look
for excessive power supply ripple or noise (over 50 mV
❐ Check that your terminal is connected to serial port A (SMC1).
❐ The PmT1 and PmE1 monitor uses values stored in on-card NVRAM (I
configure and set the baud rates for its console port. The lack of a prompt might be
caused by incorrect terminal settings, and incorrect configuration of the NVRAM, or a
malfunctioning NVRAM. Try holding down the H character during a reset to abort
autoboot using NVRAM parameters. If the prompt comes up, the NVRAM console
parameters are probably configured incorrectly. Enter the command nvopen, then the
command nvdisplay, to check the console configuration. For more information about
the way NVRAM is used to configure the console port baud rates, refer to Chapter 8.
below 10 MHz).
pp
2
C EEPROM) to
Technical Support
If you need help resolving a problem with your PmT1 and PmE1, visit
http://www.emersonembeddedcomputing.com/contact/postsalessupport.html on the
Internet or send e-mail to support@artesyncp.com. If you do not have internet access, call
Emerson for fur ther assistance:
(800) 327-1251 or (608) 826-8006 (US)
44-131-475-7070 (UK)
Have the following information available when contacting support:
• PmT1 and PmE1 serial number and product identification (see
• monitor version (see
• the baseboard serial number and product identification
• version and part number of the operating system (if applicable) This information is
labeled on the master media supplied by Emerson or another vendor.
• whether your board has been customized for options such as a higher processor speed
or additional memory
Fig. 8- 1 start-up display)
1000236 7-02PmT1 and PmE 1 User’s Manua l
Fig. 2-5)
2-7
Setup: Troubleshooting
10001234-AA
D
590-
YYYYY
Serial number
Product ID
10001234-AA
D
590-
YYYYY
• license agreements (if applicable)
Figure 2-5: Serial Number and Product ID on Bottom Side
Product Repair
If you plan to return the board to Emerson Network Power for service, visit
http://www.emersonembeddedcomputing.com/contact/productrepair.html on the internet or send e-mail to serviceinfo@artesyncp.com to obtain a Return Merchandise Authorization (RMA) number. We will ask you to list which items you are returning and the board
serial number, plus your purchase order number and billing information if your PmT1 and
PmE1 hardware is out of warranty. Contact our Test and Repair Services Department for
any warranty questions. If you return the board, be sure to enclose it in an antistatic bag,
such as the one in which it was originally shipped. Send it prepaid to:
Emerson Network Power, Embedded Computing
Test and Repair Services Department
8310 Excelsior Drive
Madison, WI 53717
RMA #____________
Please put the RMA number on the outside of the package so we can handle your problem
efficiently. Our service department cannot accept material received without an RMA number.
2-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
Central Processing Unit
The PmT1 and PmE1 module uses the Freescale MPC860P PowerQUICC™ microprocessor
installed as its CPU. The MPC860P combines an embedded PowerPC™ core with features of
the QUICC MC68360 communications processor module (CPM). This chapter is an overview
of the processor logic on the PmT1 and PmE1. It includes information on the CPU, exception handling, and processor reset.
Tab le 3-1 : MPC860P Features
Feature:Description:
Instruction Set32-bit
System Clock Rate80 MhZ
Data Bus32-bit
Address Bus32-bit
Cache16K instruction, 8K data
MMU32-entr y instruction and data Translation Look-aside Buffer (TLB)
Dual-port RAM8K
ATM10/100 base-T Ethernet, QMC microcode for multichannel HDLC support
Serial Channelfour SCCs, two SMCs, one SPI and on I
System Interface
Unit (SIU)
DMA channels16 virtual SDMA and 2 IDMA
Dynamic bus sizing8-, 16-, or 32-bits
Voltages3.3V operation with 5V TTL compatibility
Memory controller, internal and external bus interface units, real-time clock,
PCMIA-ATA interface, and JTAG TAP
2
C interface
Section 3
Beyond the usual CPU functions, the MPC860P provides:
• A DRAM controller is contained in the system interface unit (SIU). The memory
controller is described in the “On-card DRAM”, Section .
• Four high-speed SCC serial ports are supported by the CPM. The serial interface is
described in Chapter 5
MPC860P INITIALIZATION
Some of the MPC860P registers must be initialized with Emerson-specific values. The values in the following tables assume a PmT1 and PmE1 configuration of 9600 baud, 40-MHz
and CPU speed.
The relevant special purpose registers on the MPC860P are accessed with the Move to Special Registers (mtspr) and the Move from Special Registers (mfspr) instructions.
1000236 7-02PmT1 and PmE 1 User’s Manua l
3-1
Central Processing Unit: MPC860P Initialization
Tab le 3-2 : MPC860P Special Purpose Register Initialization
Decimal
Address:Register:
148ICR0000,0000Interrupt cause
149DER0000,0000Debug enable
158ICTRL0000,0000Instruction support control
638IMMRFF00,00 00Inter nal memor y map se ts up the base add ress of
—MSR1002Machine State register (control)
Required
Hex Format:Notes:
The internal registers of the MPC860P are mapped to a contiguous 16-kilobyte block of
memory space on a 64-kilobyte boundary. The special purpose register IMMR specifies the
base address of this block. The following table is for the four megabyte PmT1 and PmE1,
some values may change for different configurations.
Tab le 3-3 : MPC860P Internal Register Initialization
Physical
Address (hex):Register:
General SIU
FF00,0 000SIUMCR7062,3900SIU module con figuration
FF00,0004SYPCRFFFF,FF08System protection control
MEMC
FF00,0100BR0FFF0,0501Base register bank 0
FF00,0104OR0FFF8,09F4Option register bank 0
FF00,0108BR10000,0081Base register bank 1
FF00,010COR1FFC0,0000Option register bank 1
FF00,0110BR20040,0081Base register bank 2
FF00,0114OR20000,0000Option register bank 2
FF00,0118BR3C100,0001Base register bank 3
FF00,011COR3FFFF,8128Option register bank 3
FF00,0120BR4—Base register bank 4
FF00,0 124OR4C0 00,0128Option register bank 4
FF00,0130BR6C000,0401Base register bank 6
FF00,0134OR6FF80,0120Option register bank 6
FF00,0170MAMR4E82,1113Machine A mode
System Integration Timers
FF00,0200TBSCR00C2Timebase status and control
FF00,0240PISCR0082PIT status and control
Clocks and Reset
FF00,0280SCCR0200,0000System clock control
Input/Output Por
the MPC860P internal register block
Required
Hex Format:Description:
3-2
PmT1 and PmE1 Us er’s Manual1000236 7-02
Central Processing Unit: MPC860P Exception Handling
Physical
Address (hex):Register:
FF00,0950PADIR000APort A data direction register
FF00,0952PAPAR0000Port A pin assignment register
FF00,0954PADDR0000Port A open drain register
BRGs
FF00,09F0BRGC110144BRG1 configuration register
FF00,09F4BRGC210144BRG2 configuration register
SMC s
FF00,0A82SMCMR14823SMC1 mode register
FF00,0A92SMCMR24823SMC2 mode register
PIP
FF00,0AB8PBDIR0030Port B data direction register
FF00,0ABCPBPAR00C0Port B pin assignment register
FF00,0AC2PBODR0010Port B open drain register
SI
FF00,0AE0SIMODE1000,0000SI mode register
FF00,0AECSICR0000,0000SI clock route
MPC860P EXCEPTION HANDLING
Each type of CPU exception transfers control to a different address in the vector table. The
vector table normally occupies the first 8-kilobytes of RAM (with a base address of
0000,0000
may be used to point to an error routine or for code or data storage.
exceptions recognized by the MPC860P in the order of their priority
Tab le 3-4 : MPC860P Exceptions
) or flash (with a base address of FFF0,000016). An unassigned vector position
16
Required
Hex Format:Description: (continued)
Tab l e 3- 4 lists the
Vec tor Ad dre ss
Exception:
Development port NMI01F00Highest priority
NMI reset00100
Tr ac e0 0D 0 0
Instruction TLB miss01100
Instruction TLB error01300
Machine check00200
Instruction breakpoint01D00
Software emulation01000
Alignment00600
System call00C00
Data TLB miss01200
Hex Offset:Notes:
1000236 7-02PmT1 and PmE 1User’s Manua l
3-3
Central Processing Unit: System Interface Unit (SIU)
Vec tor Ad dre ss
Exception:
Data TLB error01400
Data breakpoint01C00
Peripheral breakpoint01E00
External interrupt00500
DecrementerDecrementerLowest priority
CPU Interrupts
The logic on the PmT1 and PmE1 module receive external interrupts LSERR* and LINTo*
from the PCI9060ES chip. These interrupts are combined on IRQ7*, which is the only external interrupt input used on the MPC860P.
The Conventional Interrupt register and the Interrupt Vector register are available to monitor the status of the external interrupts. These registers are byte wide and read-only.
Attempts to read these registers with data sizes greater than a byte does not result in a bus
error.
Hex Offset:Notes: (continued)
The Conventional Interrupt register at C000,000C
are active. If bit 5 is one, LSERR* is active. If bit 4 is one, LINTo* is active. All other bits in this
register read as zero.
Bits (4:2) of the Interrupt Vector register (at C000,0000
priority external interrupt that is pending. The vector for LSERR* is 100
LINTo* is 011
. The vector 0002 indicates that no interrupt is pending.
2
Internal interrupt sources including the hardware bus monitor, the software watchdog
timer, the periodic interrupt timer (PIT), the real-time clock, and the CPM may each be
assigned to a particular interrupt level in software. Interrupt levels may be programmed for
logic low or negative edge assertion.
SYSTEM INTERFACE UNIT (SIU)
The SIU provides the MPC860P with system configuration and monitoring features. In particular, two system timers are described in the following subsections. The memory controller is also part of the SIU but is described in the “On-card DRAM”, Section .
Tab le 3-5 : MPC860P SIU Register Block Map
Physical Hex
Address:Acronym:Register Block Name:
FF00,0000SIUGeneral System Interface Unit
FF00,0 080—reserved
FF00,0 100MEMCMemor y controller
FF00,0200—System integration timers
FF00,0280—Clocks and reset
FF00,0300—System integration timers keys
FF00,0380—Clocks and reset keys
Timebase Counter
This 64-bit counter provides a timebase reference for software. The counter generates a
maskable interrupt when it reaches the value programmed into one of four reference registers. On the PmT1 and PmE1, the timebase clock source is the system clock divided by 16.
Decrementer Counter
This 32-bit counter provides a decrementer interrupt. It is clocked by the same source as the
timebase counter (system clock divided by 16).
SOFTWARE RESET
The MPC860P may be reset in software via the PCI9060ES PCI interface chip. Writing a one
to bit 30 at local address C100,00EC holds the local bus logic in the PCI9060ES reset and
LRESETO* asserted. The contents of the PCI configuration registers and Shared Runtime
registers are not reset. The PCI adapter software reset can only be cleared from the PCI bus.
To do a hard reset of the PmT1 and PmE1 from the local bus, clear and then set bit 16 in the
PCI9060ES register at local address C100,00EC
16
.
To do a hard reset of the PmT1 and PmE1 from the PCI9060ES device, the same bit must be
cleared and then set in software. However, the PCI is little endian so this bit appears as bit 8
from the (big-endian) point of view of the MPC860P. This means that bit 8 of the register at
offset 6C
from the PCI base address must be cleared and then set. After this reset, the
16
module must be reconfigured on PCI by the baseboard.
MPC860 PARALLEL PORT CONFIGURATION
The following values set up the MPC860 parallel ports to receive RCLK from the incoming
T1/E1 stream, route the clock to the respective Baud Rate Generator (TDMA: BRGO2,
TDMB: BRGO4), then output the clock from the Baud Rate Generator as TCLK.
padir0 x44F0
papr0xEFFF
pcdir0x0002
pcpar0x0F00
1000236 7-02PmT1 and PmE 1 User’s Manua l
3-5
Central Processing Unit: Optional BDM Header
Tab l e 3- 6 lists the implementation of the MPC860 Port A and C signals used on the PmT1
and PmE1 module.
Tab le 3-6 : MPC860P Ports A and C
MPC860 Pin:MPC860 Signal:Use:
PA15RXD1Facility Data Link (FDL A)
PA1 4TX D1F DL( A)
PA13RXD2FDL(B)
PA12TXD2FDL(B)
PA1 1L1 TXD BT DMB
PA1 0L1 RXD BTD MB
PA9L1 TXDATDM A
PA8L1 RXDATDM A
PA7CLK1/L1 RCLK ATDMA
PA6CL K2TDMA
PA5BR GO2TDM A
PA4CL K4FDL
PA3
PA2CLK6/L1 RCLK BTDM B
PA1BR GO4TDM B
PA0CLK8/L1 TCLKBTDMB
PC15—Management Data Interface (MDI)
PC14—MDI
PC13—MDI
PC12
PC11
PC10
PC9
PC8
PC7L1TSYNCBTDMB
PC6L1RSYNCBTDMB
PC5L1TSYNCATDMA
PC4L1RSYNCATDMA
PC3
An optional 10-pin header (P3) is available for examining processor functions. The recommended mating connector is AMP part number 746288-1. The standard pin assignment is
shown in
3-6
PmT1 and PmE1 Us er’s Manual1000236 7-02
Tab l e 3 -7 .
Central Processing Unit: Optional BDM Header
1
2
9
10
Figure 3-1: Processor BDM Header
Tab le 3-7 : Processor BDM Pin Assignments
Pin
Number:
1VFLSOVisible History Buffer Flushes Status 0 output line reports how
2SRESET*Software Reset input signal may initiate a warm reset.
3GND1Ground 1
4TCKTest Clock input scan data is latched at the rising edge of this signal
5GND2Ground 2
6VFLS1Visible History Buffer Flushes Status 1 output line reports how
7HRESET*Hardware Reset input signal is used at power-up to reset the
8TDITest Data Input signal acts as the input port for scan instructions
93_3V +3.3 Voltage
10TDOTest Data Output signal acts as the output port for scan (JTAG)
Signal
Name:Description:
many instructions were flushed from the history buffer in the
MPC860P internal core.
(1K ohm pull-up to +5 volts, input to board, JTAG bit clock).
many instructions were flushed from the history buffer in the
MPC860P internal core.
processor.
and data (1K ohm pull-up to +5 volts, input to board, JTAG data in).
instructions and data.
1000236 7-02PmT1 and PmE 1 User’s Manua l
3-7
Central Processing Unit: Optional BDM Header
3-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
On-Card Memory Configuration
!
The PmT1 and PmE1 module provides one 32-pin flash socket, an EEPROM, and one RAM
configuration. Off-card memory may be accessed via the PMC/PCI interface.
SOCKETED FLASH
The PmT1 and PmE1 modules have a 32-pin PLCC socket for a byte-wide read-only flash. Up
to 512-kilobytes of flash may be installed. The socketed flash occupies physical address
space FFF0,0000-FFFF,FFFF
Note: To avoid damage, please use the proper tool to remove the PLCC device.
The MPC860P controls the access time for flash. The default power-up timing allows flash
with speeds of 200-nanoseconds or faster. We strongly suggest that you use the default
timing because of the inherent risks of optimizing timing for a specific configuration, and
because of the fact that flash may be cached.
Caution: The monitor resides within this socketed device (ROM address: 0x0 - 0x30000) and should
not be overwritten.
16
.
Section 4
I2C EEPROM
Another memory device on the PmT1 and PmE1 is a 16-kilobit serial EEPROM. It is internally
organized as 1Kx16 and is accessed through the I
EEPROM supports a sixteen-byte page write mode and a self-timed write cycle. It provides a
minimum endurance of 100,000 cycles and a minimum data retention of 100 years.
2
C interface consists of the Serial Clock (SCL) and the Serial Data (SDA) lines, which are
The I
controlled by bits in the PBDIR and PBDAT registers, and accessible with longword
read/write.
Tab le 4-1 : I2C EEPROM Regi sters
Hex Address:Register Name:Bit:Access:Description:
FF00,0AB8Port B Direction
FF00,0AC4Port B Data
FF00,0AC4PBDAT27WI
FF00,0AC4PBDAT27RI
(PBDIR)
(PBDAT)
2
C interface pins on the MPC860P. The
27R/WSet SDA as an input or an output.
0= Input
1= Output
2
26R/WI
C EEPROM Clock Line (SCL)
0= Drives SCL low
1= Drives SCL high
2
C EEPROM Line Driver (SDA)
0= Drives SDA low
1= Drives SDA high
2
C EEPROM Data on D0 (SDA)
1000236 7-02PmT1 and PmE 1 User’s Manua l
4-1
On-Card Memory Configuration: On-card DRAM
I2C EEPROM Operation
The I2C EEPROM supports a bidirectional bus-oriented protocol. The protocol defines any
device that sends data onto the bus as a transmitter and the receiving device as the receiver.
The device controlling the transfer is the CPU, and the I
slave. The CPU always initiates data transfers and provides the clock for both transmit and
receive operations.
Initialization software for the I
lowed by a stop condition to reset EEPROM to a known state, since the chip maintains its
state even between power-ups.
Emerson Memory Map
The following memory map convention has been established by Emerson for data storage
within the I
parameters without affecting each other.
Tab le 4-2 : I2C EEPROM Memory Map
Hex Byte Offset:Description:
400—7FFUser nonvolatile data storage
300—3FFReserved for the operating system
000—2FFReserved for the monitor
2
C EEPROM. This map allows various operating systems to store their boot
2
C EEPROM should issue a start condition immediately fol-
2
C EEPROM being controlled is the
ON-CARD DRAM
The PmT1 and PmE1 support 16-megabyte DRAM configuration four bytes wide, for data
storage. On-card RAM occupies physical addresses starting at 0000,0000
Note: All accesses to on-card DRAM must be aligned to natural boundaries. For example, byte accesses must be
aligned to byte boundaries, word accesses to word boundaries, and long-word accesses to long-word boundaries.
The DRAM is controlled by the MPC860P DRAM controller. The controller may be programmed for most memory sizes and speeds, block sizes from 32-kilobytes to 4-gigabytes,
and write protection.
In addition to the basic DRAM control functions the MPC860P chip provides several additional DRAM-related functions. Performance enhancing features include: programmable
delay insertion for controlling RAS recovery time, RAS low time, CAS setup before RAS time,
row address hold time, CAS recovery time, CAS pulse width, CAS access time, and address
access time.
4-2
PmT1 and PmE1 Us er’s Manual1000236 7-02
16
.
On-Card Memory Configuration: On-card DRAM
On-card Memory Sizing and Type
The Board Configuration register (C000,018016) is a byte-wide, read-only register that contains configuration information about the MPC860P and DRAM. Bit (5) is no parity. The configuration registry values are factory set.
Register 4-1: Board Configuration 0 (BCR), 0x010
7654 3 210
LBS10MEMSNOBMEMSNOB
LBS: Local Bus Speed
00 Reserved
01 33.33 MHz with 66.66 MHz processor
10 40.00 MHz with 40.00 MHz processor
11 40.00 MHz with 80.00 MHz processor
Bit 4: On-card memory type valued
0 Fast page mode (FPM)
1 Synchronous DRAM (not available)
MEMS/NOB: Memory Size/Number of Banks
0000-0111 Reserved
1000 16/one bank of 16M x 32
DRAM Timing
One of the primary functions of the MPC860P is to allow flexible control of all important
DRAM timing parameters. The correct DRAM timing for any reasonable combination of
board speed and DRAM speed is handled by the user-programmable machine (UPM). The
timing parameters are stored in the UPM’s internal RAM. Reference Chapter 16 in the
MPC860 PowerQUICC™ User’s Manual (Freescale 07/2004, Revision 3) for more details about
the UPM.
Tab le 4-3 : RAM Acess Time
Cycle:Total Clocks:Wait States:
Reads4
Writes3
Burst Read (4
accesses)
Tab l e 4- 3 describes the wait states for the PmT1 and PmE1 module.
1
2
4
1
2
3
1
8
2
7
1000236 7-02PmT1 and PmE 1 User’s Manua l
1
3
2
3
1
2
2
2
3-1-2-1
3-1-1-1
1
2
4-3
On-Card Memory Configuration: On-card DRAM
Cycle:Total Clocks:Wait States: (continued)
Burst Write (4
accesses)
1. At 40 MHz local bus speed.
2. At 33 MHz local bus speed.
7
5
1
2
2-1-1-1
2-1-1-1
1
2
For non-burst cycles, the number in the “Total Clocks” column of Tab l e 4 - 3 is the total number of CPU clock cycles required to complete the transfer, and the number in the “Wait
States” column is the number of wait states per cycle.
For burst cycles, the number in the “Total Clocks” column of
Ta bl e 4 - 3 is the total number of
CPU clocks for the first access of the four long-word burst, plus the number of clocks for the
second, third, and fourth cycles. The number in the “Wait States” column is the number of
wait states for each of the four accesses.
4-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
Serial I/O
Section 5
The PmT1 and PmE1 module has six TTL serial ports that are supplied by the MPC860P PowerQUICC™. The MPC860P supports the serial ports with the following features:
• Communications Processor Module (CPM), which includes a RISC controller, 224 buffer
descriptors, continuous mode transmission and reception on all serial channels, dualport RAM, fourteen serial DMA (SDMA) channels, and NMSI mode (each serial channel
can have its own pins)
• Four serial communication controllers (SCCs)
• Two serial management controllers (SMCs) for the console and download serial ports
• Four baud rate generators that are independent (i.e., can be connected to any SCC or
SMC), allow changes during operation, and have autobaud support
• Protocols in firmware for asynchronous/synchronous UARTs, HDLC, and SS7
For detailed descriptions of the MPC860P features and examples of how to implement
them, refer to the MPC860 PowerQUICC™ User’s Manual.
THE COMMUNICATIONS PROCESSOR MODULE
The physical base address of the MPC860P is FF00,000016. The following table shows the
register block map for the CPM portion of the MPC860P. Please refer to the MPC860 Power-QUICC™ User’s Manual for descriptions of the registers in each register block.
Some of the CPM registers must be initialized as described in Tab le 5 - 2 .
Tab le 5-2 : CPM Initialization Values
Physical Address
(hex):Acronym:
Input/Output Port
FF00,0950PADIR000APort A Data Direction register
FF00,0952PAPAR0000Port A Pin Assignment register
FF00,0954PAODR0000Port A Open Drain register
BRGs
FF00,09F0BRGC110144BRG1 Configuration register
FF00,09F4BRGC210144BRG2 Configuration register
FF00,0AC2PBODR0010Port B Open Drain register
SMC s
FF00,0A82SMCMR14823SMC1 mode register
FF00,0A92SMCMR24823SMC2 mode register
SI
FF00,0AE0SIMODE1000,0000SI Mode register
FF00,0AECSICR0000,0000SI Clock route
Required
Hex Format:Description:
RISC Controller
The RISC controller manages the serial interface to the CPM. It services all I/O requests,
allowing the CPU on the PmT1 and PmE1 module to dedicate compute time to other tasks.
The RISC controller implements user-chosen protocols, manages serial DMA transfers and
independent DMA transfers (optionally), and maintains 16 timers for use in application software. See
external processor using the following methods:
Ta bl e 5 - 3 for the RISC controller processing priority. It can communicate with the
• Parameters exchanged through dual-port RAM
• External processor executes special commands via the RISC controller
• RISC controller generates interrupts through the interrupt controller
External processor reads the controller's status/event registers
Tab le 5-3 : RISC Controller Processing Priority
Priority:Function:Description:
Highest1Reset in RISC Processor Command register or System Reset
2SDMA Bus Error
3Commands issued in the RISC Processor Command register
The CPM RISC controller generates interrupts through the interrupt controller to the CPU.
The interrupt vector is provided by the CPU.
The interrupt controller is the focal point for all internal and external interrupt requests by
the CPM. It handles up to 28 interrupt sources (12 external, 16 internal) which may be
assigned to a programmable interrupt level (1, 3, 5, 7). The priority in which interrupt
sources are serviced is generally fixed (see the MPC860 PowerQUICC™ User’s Manual), but
some flexibility is provided to modify the priority structure, particularly with respect to the
SCCs.
Dual-Port RAM
The CPM has 8KB of SRAM configured as dual-port memory. It can be accessed by the RISC
processor, the CPU, IDMAs, and SDMAs. The dual-port RAM has the following uses–any two
of which can occur simultaneously:
• Store parameters associated with the SCCs and IDMAs
• Store buffer descriptors (describe the location of data buffers)
• Store data from the serial channels
• Store RAM microcode for the RISC processor
• Scratchpad RAM space for the user program
1000236 7-02PmT1 and PmE 1 User’s Manua l
5-3
Serial I/O: MPC860P Serial Interface
General Purpose Timers
The general purpose timers can be configured as four 16-bit or two 32-bit identical timers.
The best resolution of the time is one clock cycle, which translates to 25 nanoseconds at 40
MHz. The maximum period is 268,435,456 cycles, translating to 6.7 seconds at 40 MHz.
Independent DMA (IDMA) Channels
The MPC860P has two IDMA channels which may be programmed by the user to transfer
data between any combination of memory and I/O. The IDMA supports 32-bit data and
addressing, dual or single address modes, and three buffer modes (single, auto, and buffer
chaining). The theoretical maximum data rate of the IDMA with a local bus speed of 25 MHz
is 50 MB/second.
Serial DMA (SDMA) Channels
The MPC860P has fourteen SDMA channels dedicated to the transmit/receive channels of
the serial controllers. Data from the serial controllers may be routed either to external RAM
or to internal dual-port RAM. When transfers use the internal dual-port RAM, other operations may occur simultaneously on the PmT1 and PmE1 local bus.
MPC860P SERIAL INTERFACE
Several types of popular serial protocols are available on the PmT1 and PmE1. Please refer
to the MPC860 PowerQUICC™ User's Manual for more detail on these supported protocols.
UART: The universal asynchronous receiver transmitter protocol is the defacto standard for com-
municating low-speed data between equipment. The most popular of these is the EIA-232
standard. EIA-232 specifies standard baud rates, handshaking protocols, and mechanical/electrical details. Other popular standards include EIA-422 and EIA-485, which offer features such as longer line lengths and multidrop support.
The UART also supports synchronous mode, where a clock is provided with each bit. Synchronous UART mode can provide faster data transfers, because there is no need to oversample the data bits.
HDLC: HDLC is one of the most common layer 2 protocols (of the seven-layer OSI model). HDLC
protocol consists of a framing structure which is synchronously transferred. Therefore,
HDLC relies on the physical layer (i.e., SI with TSA) to provide a method of clocking and synchronizing the transmitter/receiver. Each of the four SCCs can function as an HDLC controller. The SCC outputs can then be routed directly to the external pins, or connected to one of
two TDM channels via the TSA.
5-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
Serial I/O: MPC860P Serial Interface
Serial Communication Controllers (SCC)
The MPC860P has four SCCs which may be configured independently to implement different protocols. Protocols such as UART, HDLC, and SS7 are supported to varying degrees in
the MPC860P.
The choice of protocol is independent of the choice of physical interface. The SCCs do not
implement the physical interface. They are connected to the outside world via the serial
interface (SI). The SI can route the SCC/SMC outputs directly to the MPC860P external pins,
or it can multiplex any combination of SCCs and SMCs together on one or two TDM channels using the time slot assigner.
Each of the internal clocks (RCLK, TCLK) for each SCC can be driven by one of four baud rate
generators or one of four external clock pins. These clocks have a top rate of one half of the
system clock (20 MHz at 40 MHz).
Serial Management Controllers (SMC)
The MPC860P contains two SMC s configured as UART ports. SMC1 is assigned as the DCE
console port A, and SMC2 is assigned as the DCE download port B. The SMC physical interface is implemented via the serial interface and time slot assigner, and may also be connected to a TDM channel. The clock is driven by either one of four baud rate generators or
from an external clock pin.
Time Slot Assigner (TSA)
The TSA allows any combination of SCCs and SMCs to multiplex their data together on
either one or two time-division multiplexed (TDM) channels. A TDM is defined as a serial
channel which is divided into channels separated by time. Common examples of TDM channels are T1/E1, CEPT, PCM Highway, ISDN Primary Rate, and ISDN Basic Rate (IDL and GCI).
You may define your own interface as well.
The serial interface with TSA implements both the internal route selection and, if necessary,
time division multiplexing for multiplexed serial channels. The TSA is completely independent of the protocol used by the SCCs and SMCs. The purpose of the TSA is to route data
from the specified pins to the desired SCC or SMC at the correct time. The SCCs and SMCs
then handle the data they receive.
The TSA also supports:
• 1 or 2 clocks per data bit
• programmable delay (0-3 bits) between frame sync and frame start
• four programmable strobe outputs
• two clock output pins
1000236 7-02PmT1 and PmE 1 User’s Manua l
5-5
Serial I/O: UART Baud Rate Selection
• frames up to 8-kilobits long
UART BAUD RATE SELECTION
The clock sources for each SCC are defined in the SICR register (FF00,0AEC16) and for each
SMC are defined in the SIMODE register (FF00,0AE0
generators or an external clock may be used.
The internal baud rate generators are contained in the CPM. They can deliver a maximum
baud rate at one half of the system clock rate and may be changed on-the-fly. Each baud
rate generator may be routed to multiple SCCs and SMCs.
The baud rate produced by a generator is set within the corresponding Baud Rate Generator
Control (BRGC) register (FF00,09F0 - 9FC
frequency (40 MHz) and the values stored in the BRGC register, and depends on whether
the serial controller is operating in asynchronous or synchronous mode.
The formula for the asynchronous baud rate is:
async baud rate = (system frequency) ÷ ((clock divider +1) x (Div16) x 16)
). Any one of four internal baud rate
16
). The baud rate is calculated from the system
16
The clock divider value is stored in bits (12:1) of the BRGC. The Div16 value (1 or 16) is
selected with bit 0 of the BRGC.
Ta bl e 5 - 4 lists the clock divider and Div16 values associated
with typical asynchronous baud rates.
Tab le 5-4 : Asynchronous Baud Rates (16X oversample)
Note: The EIA-232C specification defines a maximum rate of 20,000 bits per second over a typical 50-foot cable
(2,500 picofarads maximum load capacitance). Higher baud rates are possible, but successful operation
depends specifically upon the application, cable length, and overall signal quality.
The clock divider value is stored in bits (12:1) of the BRGC. The Div16 value (1 or 16) is
selected with bit 0 of the BRGC.
with typical synchronous baud rates.
Tab le 5-5 : Synchronous Baud Rates
Baud
Rate
(Kbaud):
1544 (T1)1261538.50.4
2048 (E1)12020002.3
Div16
Value:Clock Divider + 1:Actual Frequency:
Ta bl e 5 - 5 lists the clock divider and Div16 values associated
System Frequency=40 MHz
Div16
Value:Clock Divider + 1:Actual Frequency:
Frequency Error
(%):
Frequency Error
(%):
SERIAL CONNECTOR PIN ASSIGNMENTS
The PmT1 and PmE1 module has a 64-pin connector for the serial I/O interface. The P14 pin
assignments, including the VME P0 and VME P2 pin numbers specific to Emerson baseboards are shown in
Note: The VME P2 pin numbers are listed for a module installed in expansion site J1x. The VME P0 pin numbers are
listed for a module installed in expansion site J2x.
Reference “PMC Connector Pin Assignments” Section for the remaining PMC connectors,
P11 and P12; and “Front Panel I/O” Section for the front panel I/O connectors, P1 and P2.
1. All xTIP and xRING signals are routed to P14 directly from the Dallas interface and do not provide cir cuit protection. See Regulatory Agency
Warnings and Notices in preface.
1
1
1
1
16E7A8TDM#2 TxRing
20A7A10TDM#1 TxTip
22———
24B8A12TDM#1 RxRing
1
1
1
1
5-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
TDM Interface
The Time Division Multiplexor (TDM) processes channelized serial data such as T1 and E1.
The data channels can be routed internally to the QUICC to any of the SCC or SMC controllers. Each port can be configured to be either T1 or E1 at manufacturing. The TDM interface
consists of:
• Three signals for the transmitter (L1TXD, L1TCLK, L1TSYNC)
• Three for the receiver (L1RXD, L1RCLK, L1RSYNC)
• Each direction has a data, clock and sync signal
The PmT1 supports two T1 TDM ports and the PmE1 supports two E1 TDM ports. The TDM
signals are converted to T1 or E1 signaling by either the DS2151Q or DS2153Q transceivers
and are routed to the front panel connectors (P1 and P2).
which QUICC pins are dedicated to the TDM, and how the T1 or E1 signals from the transceiver are routed to the connectors.
Configurations that route T1 or E1 out the P14 connector bypass the protection circuitry.
The FCC Part 68 and UL1950 certification can be met by providing an external circuit protection card.
Section 6
Tab l e 6 -1 and Ta b le 6 - 3 indicate
The DS2153Q on the PmE1 requires specific initialization (reference Application Note 342;
DS2151, DS2153 Initialization and Programming, Dallas Semiconductor 102899):
1 Set CCR2 to 0x04. This causes the framer to switch to RCLK if TCLK stops.
2 Wait for at least 10 ms.
3 Zero all of the framer registers except the LOTCMC bit that was set in step 1. This is
important since the framer has no reset and cannot be guaranteed to be in an absolute
known state after power-up.
4 Configure the desired framer settings.
5 Set the LIRST bit in CCR3
6 Clear the LIRST bit in CCR3.
Tab le 6-1 : TDM to T1E1 Port Connections for TDMB (P1)
QUICC Pins to Transceiver:Direction:DS215xQ Function:
and the signal list which follows indicate how the QUICC is connected to the
DS2151Q (T1) or DS2153Q (E1) interface controller.
6-2
PmT1 and PmE1 Us er’s Manual1000236 7-02
TDM Interface:
P2
P1
BRG02
BRG04
TDMA
QUICC
TDMB
FDLA
FDLB
L1TSYNCA (PC5)
L1RSYNCA (PC4)
L1TXDA (PA9)
L1RXDA (PA8)
L1RCLKA (PA7)
CLK1
CLK2 (PA6)
L1TCLKA (PA5)
BRG02/CLK3
TXD1 (PA14)
RXD1 (PA15)
L1TSYNCB (PC7)
L1RSYNCB (PC6)
L1TXDB (PA11)
L1RXDB (PA10)
L1RCLKB (PA2)
CLK6
BRG04 (PA1)
L1TCLKB (PA0)
CLK8
RXD2 (PA13)
CLK4 (PA4)
TXD2 (PA12)
TSYNC
RSYNC
TSER
RSER
RCLK
TCLK
TLINK
RLINK
TLCLK
RLCLK
or
PmE1
DS2153Q
PmT1
DS2151Q
Channel 1
TSYNC
RSYNC
TSER
RSER
RCLK
TCLK
TLINK
RLINK
TLCLK
RLCLK
or
PmE1
DS2153Q
PmT1
DS2151Q
Channel 0
Figure 6-1: TDM and FDL Connectivity Diagram
The following list describes how these signals are used and how they are to be configured
for the variety of options that can be supported.
RCLK: The receive clock signal is always driven by the E1 or T1 controller. The controller provides
the ability to determine if the line interface has successfully synchronized to the line interface.
The QUICC must always be configured to accept the receive clock on L1RCLKx. If the application requires the transmit clock TCLK to be derived from RCLK, then RCLK can be routed
to an internal baud rate generator and driven as TCLK.
1000236 7-02PmT1 and PmE 1 User’s Manua l
6-3
TDM Interface: The T1 or E1 Line Interface
TCLK : The transmit clock must be driven to the T1 or E1 controller. The clock will be driven by a
baud rate generator. In this case, the baud rate generator is driven by the RCLK input or system clock. The TCLK line for TDM channel 'B' is routed to BRG04 to support this option.
TSYNC RSYNC: The data signals must always be driven by the T1 or E1 controller. The receive sync signal is
always an output of the T1 or E1 controller and the transmit sync must be programmed to
be an output. In both cases the QUICC must be programmed to accept the sync lines on
L1TSYNCx and L1RSYNCx.
Additional factory installed optional configuration resistors can be provided which connect
both sync and clock lines together. This option is non-standard and is only useful when the
application requires the T1 or E1 controller transmit and receive sections be multi-frame
synchronized.
TSER RSER: The transmit serial data is driven by the QUICC from the L1TXDx and the receive data is
driven by the T1 or E1 controller. The QUICC must be initialized appropriately to utilize the
L1TXDx and L1RXDx signals.
THE T1 OR E1 LINE INTERFACE
The PmT1 and PmE1 modules that route channels out the front panel provide protection
circuitry which protects equipment from overvoltage and overcurrent stresses from lightning strikes, power crosses and other noise impairments. This circuitry is necessary in cases
where the connections are outside the customers building, and in some cases within the
same building (depending on the application).
The requirements for T1 equipment are specified by FCC Part 68 (lightning), UL1950 (AC
Hazards), Bell Core TR-TSY-000007 and AT&T Publication 62411. Similar requirements are
specified for E1 equipment including ETS 300 046-3 and ITU K17 through K20.
Note: To ensure compliance with these standards, it will be necessary to undergo appropriate testing at an
approved lab.
The PmT1 and PmE1 modules implement the suggested secondary over-voltage protection circuitry specified by Dallas Semiconductor which targets UL1459, FCC Part 68,
BellCore TR-NWT-1089 and ITU K17-K20.
The DS2153Q provides the ability to shape the interface wave-form depending on the
impedance and length of the line used. The PmE1 can be built to support a variety of line
impedances but is normally configured to support Twisted pair, 120-Ohm line impedance.
The PmT1 is configured to support Twisted pair, 100-Ohm line impedance.
6-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
TDM Interface: Configuring the T1 or E1 Interface
CONFIGURING THE T1 OR E1 INTERFACE
The PmT1 and PmE1 framers have typical configuration settings for operation. The typical
operational mode for T1 is:
• Transmit/receive ESF mode enabled
• Line build-out set to 133 feet/0 dB (DSX-1/CSU applications)
• B8ZS encoding enabled
• Jitter attenuator enabled
The typical operational mode for E1 is:
• HDB3 enabled
•CRC4 enabled
• CCS mode enabled (time slot 16 is available for use)
• Automatic E-bit insertion enabled
• Automatic resync enabled
• Automatic remote alarm generation enabled
• Jitter attenuator enabled
• Line build-out set to 120 ohms
• Si bits are otherwise managed by the framer device
• Error counters change every 500 frames (about once per second). The error count only
pertains to the second before the register was polled.
THE T1 FDL INTERFACE
The Facility Data Link (FDL) is the mechanism used by a T1 port to communicate operating
statistics. The FDL consists of one bit for every other frame of data, or a 4-KHz serial data
port. For most applications the FDL remains inactive waiting for commands. The DS2151Q
uses the HDLC protocol to transfer information to and from the FDL.
Note: The Facility Data Link is currently not available for use on the PmT1 due to latency of the MDI interface.
The PmT1 support for the FDL varies depending on the application requirements. Normally
the FDL can be accessed via the FDL transmit and receive registers inside the DS2151Q T1
controller. The DS2151Q can be configured to generate interrupts when the receiver goes
full, transmitter goes empty, and when a particular pattern is detected at the receiver. Use
the SI mode register to set up transmit and receive frame sync delays (0-3 clocks) to mask
the F-bit in T1 applications (RFSDA = 1 for DS2151Q and 0 for DS2153Q).
1000236 7-02PmT1 and PmE 1 User’s Manua l
6-5
TDM Interface: The T1 FDL Interface
Depending on the configuration of the board, the FDL receiver can be connected to an SCC
allowing the application to push the overhead of receive data on the QUICC chip. However,
the transmitter can only be accessed via the FDL transmit register. The only exception is
when the transmitter and receiver can be made multi-frame synchronized.
The T1 FDL interface consists of three signals:
1 Receive data (RXD)
2 Tra nsmit d ata ( T XD)
3 Clock (CLKx)
The following table indicates which QUICC pins are dedicated to the FDL.
1. CLK2 is derived from t he receive cl ock (RCLK) for TDMA.
and the following signal list indicate how the QUICC is connected to the DS2151Q
FDL for Port P1
Pin / Function:
PA(4) / CLK4
(T1) or DS2153Q (E1) interface controller. The module provides factory installed optional
configuration resistors to address a variety of options.
Note: The DS2151Q has two onboard two-frame (386 bits) elastic stores—receive side and transmit side, and the
DS2153Q has one onboard two-frame (512 bits) elastic store. These elastic store buffers are not available for
use and should always be bypassed.
TLINK RLINK: The transmit and receive link lines are the 4-KHz serial data lines of the FDL interface. The
QUICC must be initialized appropriately to utilize the appropriate RXDx and TXDx signals.
TLCLK: There are not enough resources in the QUICC to support the transmit link clock. This means
that TLINK line does not have a clock line to frame data and FDL data can only be read using
the FDL transmit register. The only exception to this case is if the transmit and receive sections can be forced to be multi-frame synchronized. Then RLCLK input can be used for transmitter as well.
RLCLK: The receive link clock is a 4-KHz clock used to frame data on the RLINK line.
6-6
PmT1 and PmE1 Us er’s Manual1000236 7-02
TDM Interface: The Management Data Interface (MDI)
CAD0 1CCA A A A A A ADD DDDDD
MDC
MDIO
Start
Register Data (8 Bits)Register Address (8 Bits)
Opcode (3)
THE MANAGEMENT DATA INTERFACE (MDI)
The MDI or Management Data Interface is a 3-wire protocol which allows access to the module resources, registers and interrupts using the minimum resources necessary. This interface consists of Data (MDIO), Clock (MDCLK) and Interrupt (MDINT) lines.
The MDI uses control pins PC0-PC2, which are not likely to conflict with any MPC860P dedicated functions.
The protocol used to communicate involves sequencing bit patterns to indicate the start,
command, address, data and close of a transaction.
accessed. This protocol is modeled after the existing standards for serial ROM and other
micro-wire type non-volatile memory devices.
Figure 6-2: MDI Interface Protocol
Fig. 6- 2 shows how the interface is
Note: The MDI interrupt line (MDINT) connects to the MPC860P at PC(15), which must set up as an active low (high-
to-low transition) interrupt. Consult the MPC860 PowerQUICC™ User’s Manual for details on configuring the
port C i nterrupt.
The MDI interface is intended for very low bandwidth communications and/or power up
configuration. The opcode specifies whether a read, write, or reset cycle is to take place. The
register address and data are written to and read from the PmT1 and PmE1 modules.
The PmT1 and PmE1 MDI provides the ability to identify the module, monitor interrupts,
and access the serial configuration.
Ta bl e 6 -7 provides the protocol format for communicat-
ing with the MDI interface.
For MDI example code, contact an Emerson Network Power Technical Support representative: visit http://www.emersonembeddedcomputing.com/contact/postsalessupport.html
on the Internet, send e-mail to support@artesyncp.com, or call (800) 327-1251.
1000236 7-02PmT1 and PmE 1 User’s Manua l
6-7
TDM Interface: Front Panel I/O
P2
(TDMA - Channel 0)
P1
(TDMB - Channel 1)
Pin 1
Tab le 6-7 : MDI Bit Field Format
Field:Width:Function1:
Start2The “01” transition frames the beginning of an MDI cycle.
The MDI Interface is reset when the MDIO line (which is pulled up) is
high for greater than 40 clocks.
OpCode3000
001
010
011
Bits 0—3undefined
Bit 4INT1—, from DS2153/DS2151 Channel 1
Bit 5INT2—, from DS2153/DS2151 Channel 1
Bit 6INT1—, from DS2153/DS2151 Channel 0
Bit 7INT2—, from DS2153/DS2151 Channel 0
100
101
110
111
Address8Address of a T1 or E1 controller register (determined by 2153 or 2151
interface controller) For ID register and interrupt register cycles the
address field is ignored.
Data8Register Read/Write Data On read cycles the MDI protocol requires
that the accessing application continue to clock the interface while
waiting for the MDIO line to be driven low. Once low the following 8
bits will be valid data.
1. These are read-only bits. You must enable, disable, or clear interrupts at the DS2153/DS2151 framer
chip itself. The SR1 status reg ister on each framer chip corresponds to bits 5 and 7. Similarly, the SR2
status register on each framer chip corresponds to bits 4 and 6 .
Reserved
2
Reserved
2
Module ID Register Read (returns 0216)
2
Module Interrupt Register Read
2
DS2153/DS2151 Channel 0 (TDMA) Register Write
2
DS2153/DS2151 Channel 1 (TDMB) Register Write
2
DS2153/DS2151 Channel 0 (TDMA) Register Read
2
DS2153/DS2151 Channel 1 (TDMB) Register Read
2
1
6-8
FRONT PANEL I/O
Connectors P1 and P2 provide the TDM signals for the PmT1 and PmE1 front panel I/O configurations. The manufacturer part number for this eight-pin connector is Stewart Connector Systems SS-610808-NF-P-5.
Figure 6-3: Front Panel I/O Connectors, P1 and P2
PmT1 and PmE1 Us er’s Manual1000236 7-02
TDM Interface: Front Panel I/O
COMPU-SHIELD
8-pin Male
Modular Plug
Connector
8-pin Female
Modular Jack
Connector
!
The recommended cable assembly (Emerson part number C308A009-05) for P1 and P2 is
shown in
tor Systems SS-310808-5 and SS-800810-040-250. See
RJ-45 jack pin assignments.
Figure 6-4: Front Panel I/O Cable Assembly (C308A009-05)
Fig. 6-4. The manufacturer part numbers for these connectors are Stewart Connec-
1. Thi s is a straight-through cabl e, there is no crossover.
10 (no connect)
Caution: To reduce risk of fire, use only number 26 AWG or larger telecommunication line cord.
1000236 7-02PmT1 and PmE 1 User’s Manua l
6-9
TDM Interface: Front Panel I/O
6-10
PmT1 and PmE1 Us er’s Manual1000236 7-02
PMC/PCI Interface
The PmT1 and PmE1 module design complies with the Peripheral Component Interconnect
(PCI) bus interface standard and with the associated PCI Mezzanine Card (PMC) mechanical
interface standard. The PmT1 and PmE1 modules must be attached to and controlled by a
PMC/PCI-compliant baseboard.
The PmT1 and PmE1 use the PLX Technology PCI9060ES interface controller to implement
the +5V PMC/PCI interface. The PMC/PCI interface features:
• Asynchronous operation between the local and PCI buses operating at up to 33.33 MHz
• Bi-directional bus locking
• Doorbell interrupts
• EEPROM power-on initialization
PCI9060ES REGISTER MAP
Section 7
The PCI9060ES is controlled through registers that are accessible by the MPC860P and the
baseboard on which the PmT1 and PmE1 is mounted. The registers fall into four
groups: PCI Configuration registers, Local Configuration registers, Shared Runtime registers, and Local DMA registers. The local base address of these registers is C100,0000
PCI base address of these registers is programmable.
The PCI9060ES registers are readable and writable in byte, word, or long-word accesses,
unless noted otherwise. See page 7-3 for a description of the Emerson-specific initialization
of these registers. For details on the bit fields and functionality of these registers refer to
the PCI9060ES data sheet.
PCI Configuration Registers
The PCI Configuration registers are also known as the “configuration header”. The configuration header is accessed via configuration space. The registers map baseboard local memory, the Local Configuration, and Shared Runtime registers into the PCI memory map.
Tab le 7-1 : PCI Configuration Registers
Local Bus
Address (hex)
C100,0 00000WordPCI Vendor ID r egister
C100,000202WordPCI Device ID register
C100,000404WordPCI Command register
C100,0 00606WordPCI St atus register
C100,000808BytePCI Revision ID register
C100,0009093 By tesPCI Class Code r egister
:
PCI Offset
Address (hex):
Size:Register Name:
16
. The
1000236 7-02PmT1 and PmE 1 User’s Manua l
7-1
PMC/PCI Interface: PCI9060ES Register Map
:
PCI Offset
Address (hex):
Local Bus
Address (hex)
C100,000C0CBy tePCI Cache Line Size register
C100,000D0DBytePCI Latency Timer register
C100,0 00E0EBy tePCI Header Ty pe register
C100,000F0FBytePCI Built-in Self Test (BIST) register
C100,001010LongPCI Base Address register (for memory access to
C100,001414LongPCI Base Address register (for I/O access to Local
C100,001818Lon gPCI Base Addr ess register
C100,0 01C-2F1C-2F—reser ved
C100,003030LongPCI Expansion ROM Base register
C100,0 034-3B34-3B—reser ved
C100,003C3CBytePCI Interrupt Line register
C100,003D3DBytePCI Interrupt Pin register
C100,0 03E3EBy tePCI Min_ Gnt register
C100,0 0003FWordPCI Max_Lat register
Local Configuration Registers
The Local Configuration registers map PCI memory and I/O into the local memory map.
These registers may be accessed via local space. They may also be accessed via PCI memory
and I/O space based on the values in the PCI base address registers at C100,0010
C100,0014
Tab le 7-2 : Local Configuration Registers
16
.
Size:Register Name: (continued)
Local Configuration an d Shared Runtime registers)
Configur ation and Sha red Runtime registers)
(for memory access to local address space)
16
and
:
PCI Offset
Address (hex):
Local Bus
Address (hex)
C100,008000LongLocal Address Space 0 Range register
C100,008404LongLocal Space 0 Local Base Address register
C100,008808LongLocal Arbitration register
C100,0 08C0CLongBi g/Little Endian D escriptor register
C100,009010LongLocal Expansion ROM Range register
C100,009414LongBREQo Control register
C100,009818LongLocal Bus Region Descriptor for PCI to Local
C100,009C1CLongLocal Range register (Direct Master to PCI)
7-2
PmT1 and PmE1 Us er’s Manual1000236 7-02
Size:Register Name:
(PCI to local bus)
(PCI to local bus)
(PCI to local bus)
Accesses register
PMC/PCI Interface: PCI9060ES Initialization
:
PCI Offset
Address (hex):
Local Bus
Address (hex)
C100,00A020LongLocal Bus Base Address register
C100,00A424LongLocal Base Address For Direct Master to PCI
C100,00A828LongPCI Base Address register (Direct Master to PCI)
C100,00AC2CLongPCI Configuration Address register
Shared Runtime Registers
The Shared Runtime registers are a collection of mailbox, interrupt, doorbell, and configuration registers that may be accessed from the local bus and the PCI bus.
The following tables describe how the PCI9060ES PCI Configuration, Local Configuration,
and Shared Runtime registers are initialized to set up the PCI bridge and turn on the necessary functions.
The PCI bridge is used to decode portions of the local address bus and the PCI address bus.
At reset, the PCI9060ES reads a serial EEPROM to initialize the PCI bridge. Five long words of
data are stored in the 128-kilobyte EEPROM. These long words sequentially program the
PCI Configuration registers listed in
registers 0 and 1–listed in
Ta bl e 7 - 6.
Tab l e 7 -4 and two Shared Runtime registers–Mailbox
1000236 7-02PmT1 and PmE 1 User’s Manua l
7-3
PMC/PCI Interface: PCI9060ES Initialization
The serial EEPROM may be reprogrammed to configure the PCI bridge in other ways. Bits
(27:24) of the PCI9060ES EEPROM control register (C100,00EC
writing the EEPROM. Refer to the NS93CS46 data sheet listed in
the EEPROM’s programming instructions, and the PCI9060ES data sheet for the sequence
in which the data is stored.
Tab le 7-4 : PCI9060ES PCI Configuration Register Initialization
Hex Value
Local Bus
Address (hex):Register:
C100,0 000
C100,0 002
C100,0 002
C100,0 004
C100,0 030
C100,0 008
C100,0 009
C100,0 018
C100,0 03C
C100,0 03D
C100,0 03E
C100,0 03F
1
1
1
2
2
1
1
2
1
1
1
1
1. These registers are initialized by the serial EEPROM.
2. These registers are not initialized by the serial EEPROM.
PCI Configuration ID00040400This read-only register contains the PmT1
PCI Configuration ID00050500This read-only register contains the PmE1
PCI Command01474701Enable I/O and memory space accesses.
PCI Expansion ROM
Base
PCI Revision ID0101This read-only register contains the PmT1
PCI Class Code0B2000000200BNo interface is defined.
PCI Base Address
(for memor y access to
local address space)
PCI interrupt Line0000—
PCI Interrupt Pin0101This read-only register indicates that the
PCI Min_Gnt0000This read-only register specifies a burst
PCI Max_Lat0000This read-only register specifies a maximum
at the
PCI9060ES:
0000000000000000Address decode enable and expansion ROM
xxxxxxxxxxxxxx xxPCI-to-local base address is 0000,0000
byte-swapped
at the CPU:Notes:
vendor ID.
device ID.
device ID.
Enable PCI9060ES to act as a bus master.
Enable parity checking and the SERR* driver.
base address accesses.
and PmE1’s revision number.
(PCI host sets)
PCI9060ES uses INTA* as its interrupt pin.
period of 0 μseconds.
latency of 0 μsec onds.
) are used for reading and
16
Tab l e 1- 5 for a description of
.
16
7-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
PMC/PCI Interface: PCI9060ES Initialization
Tab le 7-5 : PCI9060ES Local Configuration Register Initialization
Local Bus
Address (hex):
C100,0080Local Address Space 0
C100,0084Local Space 0 Local
C100,0088Local Arbitration0040000000004000Enable PCI direct slave locked sequences.
C100,0 08CBig/Little Endian
C100,0090Local Expansion ROM
C100,0094BREQo Control 0000001111000000Slave BREQo delay is 24 clocks. Enable local
C100,0098Local Bus Region
C100,009CLocal Range
C100,00A0Local Bus Base
C100,00A4Local Base Address
C100,00A8PCI Base Address
C100,00ACPCI Configuration
1
Register:
Range
Base Address
Descriptor
Range (PCI to local
bus)
Descriptor to PCI to
Local Accesses
(Direct Master to PCI)
Address (Direct
Master to PCI
memory)
(Direct Master to PCI
I/O/CFG)
(Remap) (Direct
Master to PCI)
Address (Direct
Master to PCI IO/CFG)
1. These registers are initialized by the serial EEPROM.
2. Bursting on the MPC860P ’s loca l bus must remain disabl ed (i.e., bit 24 of the PCI906 0ES’s local register at offset 0x98 must be zero).
at the
PCI9060ES:
FF80000808008 0FFMemor y space reads are prefetchable. The
0000000101000000PCI-to-local remap address is 0000,0000
0000000000000000Little endian ordering.
0000000000000000Disable local expansion ROM.
F8030043430003F8Memory space local bus width is 32 bits.
E0000000000000E0Local-to-PCI range is 512 MB.
4000000000000040PCI memory space is mapped at
6000000000000060PCI I/O and configuration space is mapped
0000000707000000Local-to-PCI remap address is 0000,0000
0000000000000000Local-to-PCI accesses are not converted to
byte-swapped
at the CPU:Notes:
PCI-to-local range is set to 2MB of on-card
DRAM.
Enable PCI-to-local accesses.
bus BREQo.
There are no memory space internal wait
states. Enable memory space ready input.
Disable bterm input and bursting.
slave PCI write mode is one. Target retry
delay is 120 clocks.
4000,0000
at 6000,0000
Enable master I/O, memory accesses, and
lock input.
PCI configuration cycles.
2
The
.
16
.
16
16
16
Hex Value
.
.
1000236 7-02PmT1 and PmE 1 User’s Manua l
7-5
PMC/PCI Interface: PCI9060ES Initialization
Tab le 7-6 : PCI9060ES Shared Runtime Register Initialization
Hex Value
Local Bus
Address (hex):Register:
C100,00C0Mailbox 00000000000000000These registers are initialized by the serial
C100,00C4Mailbox 10000000000000000These registers are initialized by the serial
Deadlocked Cycles
When a local bus master attempts to access the PCI bus at the same time a PCI bus master
attempts to access the local bus, a deadlocked cycle results. Neither master can complete
its cycle because the other device already owns the required resource. The PCI9060ES can
quickly force one of the masters to relinquish ownership of its bus and try the cycle again
later. Consequently, retrying one side favors the other.
at the
PCI9060ES:
byte-swapped
at the CPU:Notes:
EEPROM. C10000C0 will be a5000000 upon
successful completion of the Monitor power
up diagnostics.
EEPROM.
Retries on Local Direct Master Cycles
Local Direct Master cycles are transfers that originate from a local bus master and access the
PCI bus. The PCI9060ES programmable Direct Slave BREQo Delay Timer and BREQo retry
pin control Local Direct Master cycle retries. If enabled, this timer counts down when a Local
Direct Master cycle is pending and unable to access the PCI bus. If the count expires, a true
condition on the BREQo pin signals the local master to relinquish the local bus and retry its
cycle later.
Retries on Direct Slave Cycles.
Direct Slave cycles are transfers that originate from a PCI bus master and access the local
bus. The PCI9060ES programmable PCI Target Retry Delay Timer controls Direct Slave cycle
retries. This timer counts down while a Direct Slave cycle is pending. If the count expires,
the PCI9060ES signals a “target retry” condition, informing the PCI master to relinquish the
PCI bus and retry its cycle later.
Assigning Priorities
When assigning a bus priority for deadlocked cycles, consider whether a series of transfers
on one side of t he bridge could starve access on the other side. Also, consider whether there
may be other adverse effects of retrying Local Direct Master cycles or Direct Slave cycles.
The following PCI9060ES internal register fields control bus priority and also are accessible
from the PmT1 and PmE1 monitor (see
Tab l e 8- 1 ).
7-6
PmT1 and PmE1 Us er’s Manual1000236 7-02
PMC/PCI Interface: PCI9060ES Initialization
Tab le 7-7 : PCI9060ES Bus Priority Control
Hex Address:Bits:Register Field:Factory Default Value (hex):
As an example, a user could give priority to the Direct Slave device (PCI bus) by enabling the
BREQo timer and setting Direct Slave BREQo Delay Clocks to a value less than PCI Target
Retry Clocks. When a deadlock occurs, the BREQo timer expires and the PCI9060ES asserts
BREQo to the local bus master, forcing it to relinquish the bus and retry its cycle later. This
allows the Direct Slave cycle to complete.
Alternatively, a user could give priority to the Local Direct Master by disabling the BREQo
timer and setting PCI Target Retry Clocks to a nominal value. When a deadlock occurs, the
PCI target retry timer expires, forcing the Direct Slave device to relinquish the PCI bus and
retry its cycle later. This allows the Local Direct Master cycle to complete.
Note: The factory default values favor the local bus during deadlocked cycles. Tune the timer values appropriately
for the system devices.
Controlling Access Latency
When initializing the PCI9060ES, make sure that the retry timers are set to a value greater
than the maximum latency of the target device.
For example, if the register value for PCI Target Retry Delay Clocks is 2
, a PCI master must
16
access the local bus and complete its cycle within 16 clocks. In this situation, however, the
Direct Slave cycle would seldom gain access because of the local bus acquisition latency.
(The Direct Slave device must wait for the CPU to finish its local I/O cycle and relinquish the
local bus.) Setting the Direct Slave BREQo Delay Clocks value too low has a similar effect on
Local Direct Master cycles.
Avoiding the PCI9060ES Phantom Read
As a default, Emerson configures the PCI9060ES to favor Local Direct Master cycles by
allowing retries only on Direct Slave cycles (see
PCI9060ES that can happen when a local bus master attempts to read from a PCI device and
a deadlocked cycle occurs that results in a BREQo to the local master. The PCI9060ES retries
the read cycle on the PCI bus and discards the data before the local bus master retries the
cycle. This phantom read (reading ahead) by the PCI9060ES affects target devices that
change their data or state upon access, such as FIFOs or other devices. (For example, some
devices de-assert their interrupts after a vector is read.) In these cases, the PCI9060ES phantom read access can result in a bus error or bad data upon subsequent read cycles.
1000236 7-02PmT1 and PmE 1 User’s Manua l
Ta bl e 7 - 2). This avoids a problem with the
7-7
PMC/PCI Interface: PCI Interrupts
Managing Bandwidth
It is possible to inadvertently set the PCI9060ES to give a disproportionate bandwidth on
either side of the bridge. For instance, one side may retry frequently because the timer
value is slightly less than the time required to gain access to the other side. As a result, the
retries needlessly consume a large percentage of the attempted cycles. To avoid this situation, tune the timer values appropriately for the system devices.
Bridge to Bridge Considerations
Many PMC modules also incorporate a bridge chip between their PCI and local busses,
essentially creating two bridges that must be crossed to complete a cycle. Often, the second bridge is a source of long delays due to the associated bus acquisition latency. The timer
values should be set up to accommodate any additional latency.
PCI INTERRUPTS
The PmT1 and PmE1 has two PCI interrupt lines:
LSERR*: A synchronous level output indicating a system error. It is asserted to the MPC860P when
the PCI bus target abort or master abort status bit is set in the PCI Status Configuration register.
LINT0*: A synchronous level output to the MPC860P indicating a local interrupt. The PCI-to-local
doorbell register or a PCI BIST interrupt can generate a local interrupt.
See the PCI9060ES data sheet for more details on the interrupt lines. CPU Interrupts
describes the interrupt handling by the MPC860P.
PCI Bus Interface
Using the DRAM timing, the PCI interface of the PmT1 and PmE1 is capable of the transfer
rates given in
design. Local to PCI bus and PCI to local bus does not support bursting.
Tab l e 7 -8 . The transfer rates to PCI bus are dependent on the baseboard
PMC CONNECTOR PIN ASSIGNMENTS
The PmT1 and PmE1 modules have three 64-pin PMC connectors: P11, P12, and P14. These
connectors support the PCI and serial interfaces. The pin arrangement for the 64-pin connector is shown in
7-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
Fig. 7-1. The possible manufacturer part numbers for this connector are
PMC/PCI Interface: PMC Connector Pin Assignments
1
2
63
64
Amp 120534-1, Molex 53483-0649 or Molex 53508-0648. The recommended mating connectors include Amp 120521-1, Amp 120528-1, and Molex 52763-0649. Refer to
the placement of these connectors on the PmT1 and PmE1 module.
The following signals for the PCI interface are available on connectors P11 and P12. Refer to
the PCI specification for detailed usage of these signals. All signals are bi-directional unless
stated otherwise.
Note: A sustained tri-state line is driven high for one clock cycle before float.
AD00-AD31: ADDRESS and DATA bus (bits 0-31) tri-state lines are used for both address and data han-
dling. A bus transaction consists of an address phase followed by one or more data phases.
no connect54AD05no connect
no connect56GNDGND
no connect58AD03no connect
no connect62+5Vno connect
no connectno connect
no connect
BUSMODE1*-4*: The PmT1 and PmE1 modules assert BUSMODE1* to indicate to the baseboard that it is
present and capable of performing PCI protocols. The baseboard uses BUSMODE2*-4* to
indicate that it is PCI compatible.
C/BE0* -C/BE3*: BUS COMMAND and BYTE ENABLES tri-state lines have different functions depending on the
phase of a transaction. During the address phase of a transaction these lines define the bus
command. During a data phase the lines are used as byte enables.
CLK: CLOCK input signal to the PmT1 and PmE1 provides timing for PCI transactions.
DEVSEL*: DEVICE SELECT sustained tri-state signal indicates when a device on the bus has been
selected as the target of the current access.
FRAME*: CYCLE FRAME sustained tri-state line is driven by the current master to indicate the begin-
ning of an access, and continues to be asserted until transaction reaches its final data phase.
GNT*: GRANT input signal indicates that access to the bus has been granted to a particular master.
Each master has its own GNT*.
IDSEL: INITIALIZATION DEVICE SELECT input signal acts as a chip select during configuration read
and write transactions.
INTA*: PMC INTERRUPT A input line is used by the PmT1 and PmE1 to interrupt the baseboard.
IRDY*: INITIATOR READY sustained tri-state signal indicates that the bus master is ready to com-
plete the data phase of the transaction.
7-10
PmT1 and PmE1 Us er’s Manual1000236 7-02
PMC/PCI Interface: PMC Connector Pin Assignments
LOCK*: LOCK sustained tri-state signal indicates that an atomic operation may require multiple
transactions to complete.
PAR : PARITY is even parity across AD00-AD31 and C/BE0-C/BE3*. Parity generation is required by
all PCI agents. This tri-state signal is stable and valid one clock after the address phase, and
one clock after the bus master indicates that it is ready to complete the data phase (either
IRDY* or TRDY* is asserted). Once PAR is asserted, it remains valid until one clock after the
completion of the current data phase.
PERR*: PARITY ERROR sustained tri-state line is used to report parity errors during all PCI transac-
tions.
REQ*: REQUEST output pin indicates to the arbiter that a particular master wants to use the bus.
RST*: RESET assertion of this input line brings PCI registers, sequencers, and signals to a consis-
tent state.
SERR*: SYSTEMS ERROR open-collector output signal is used to report any system error with cata-
strophic results.
STOP*: STOP sustained tri-state signal is used by the current target to request that the bus master
stop the current transaction.
TRDY*: TARGET READY sustained tri-state signal indicates the target’s ability to complete the cur-
rent data phase of the transaction.
1000236 7-02PmT1 and PmE 1 User’s Manua l
7-11
PMC/PCI Interface: PMC Connector Pin Assignments
7-12
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor
Section 8
The PmT1 and PmE1 monitor consists of a set of about 150 C language functions. The monitor commands constitute a subset of these functions and are designed to provide easy-touse tools for PmT1 and PmE1 configurations at power-up or reset and communications,
downloads, and other common uses.
This chapter includes an introduction to monitor operation, instructions for command
sequences that configure the PmT1 and PmE1 modules, a command reference, and a function reference.
POWER-UP/RESET SEQUENCE
At power-up or board reset, the monitor performs hardware initialization, autoboot procedures, free memory initialization, and if necessary, invokes the command-line editor. In
more detail, monitor execution starts up as follows.
1 The MPC860P is initialized first: caches are disabled, the memory control UPM (user-
programmable machine) is initialized, CS (chip select) memory map and control are
initialized, and the Systems Interface Unit (SIU) is initialized.
2 The QUICC sections are initialized in the following order: the NVRAM clock and data bits,
and then the console port SMC1.
3 The NVRAM is checked for functionality and valid contents (i.e., this is not the first power
up). If NVRAM is not valid, power-up diagnostics are run. If NVRAM is valid, the
PowerUpDiags bit is checked to see if diagnostics should be run. (Refer to Step 6 for a
description of the default NVRAM configuration parameters including PowerUpDiags.) If
PowerUpDiags is off, the system level initialization is performed.
4 Power-up Diagnostics: “Hello World” is printed on the console. Memory size is read from
the configuration register and printed on the console. The decrementer and timebase timer
is checked for functionality. The character sequence “89ABCDEF” is printed to test the print
hex ASCII routine. A Write/Read test is performed at location 0x40000. 0x05050a0a and its
complement is written and read. Then an address boundary test is performed.
5 System level initialization sets up the system for running compiled C code. BSS is cleared.
The dynamic data section is relocated from ROM to its linked address space starting at
0x2000. The RAM-based interrupt vector table is initialized. The interrupt prefix is changed
to point to the RAM-based interrupt table at 0x00000000. The stack is initialized at 0xFFF8.
All interrupt vectors in the interrupt vector table are initialized to use the unexpected
interrupt handler. This handler prints the message “Unexpected Interrupt” and restarts the
monitor. Masking of interrupts is reinforced. The memory parameters for system memory
management (e.g., Malloc) are initialized. If PowerUpDiags is set, the C code power-up
tests are run. The EEPROM test is run, and if IsModConfig is set, the PCI bus is configured
Tab l e 8 -1 ).
(see
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-1
Monitor: Power-up/Reset Sequence
6 The countdown to autoboot begins if a boot device (BootDev) is specified. If you allow the
countdown finish, the selected device is booted. Reference page 8-7 for booting from
specific devices using the boot commands.
If you cancel configuration before the autoboot begins, the board is configured with the
default nonvolatile configuration, which is summarized in
groups may be accessed with the NVRAM commands described on page 8-13.
Tab le 8-1 : NVRAM Configuration Groups
Fac tor y
Fields:Purpose:
Console and Download
PortSelects communications port.A (Console)
BaudSelects baud rate.9600
ParitySelects parity type. None(Even, Odd, None, Force)
DataSelects the number of data bits for transfer.8-Bits(5-Bits, 6-Bits, 7-Bits, 8-Bits)
StopB itsSelects the number of stop bits for transfer.1-Bit(1-Bit, 2-Bits)
ChBaudOnBreakBreak character causes baud rate change.False(True, False)
RstOnBreakBreak character causes reset (Download).False(True, False)
Cache
Instr CacheTurn instruction cache on or off.On(On, Off)
DataCacheTurn data cache on or off.Off(On, Off)
CacheModeSelect cache mode type.Writethru(Copyback, Writethru)
Misc
PowerUpMemClrClear memory on power-up.True(True, False)
ClrMemOnResetClear memory on reset.False(True, False)
PowerUpDiagsRun diagnostics on power-up.On(On, Off)
ResetDiagsRun diagnostics on reset.Off(On, Off)
Bus MonitorTurn bus monitor on or off.
NOTE: Do not c hange this default setting.
Cou ntVal ueChoose shortest (0) to longest (7) duration for
autoboot countdown.
DoModConfigModule configuration. Sets the PlxBReqTmr and
PlxPciRetTmr values.
PlxBReqTmrSelect value of BReq timer in PLX register 0x94.1(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
PlxPciRetTmrSelect value of PCI target retry delay in PLX
Model2 PmT1 and PmE1
ShipDate
ManufPartNum
WorkOrderNum
SerNumber
RevLev
2
16MEG(16MEG)
2
2
2
2
3
3
3
3
3
1. DoModConfig must be set to False in Solaris hosts.
2. These values are set by software.
3. These values are entered in the Test Services department.
Default:Optional Values:
BootDev is defined as ROM.
BootDev is defined as ROM.
depends on the application.
When BootDev is defined as Bus
or ROM , DevType refers to a
device t ype. When BootDev is
defined as Serial, DevType selects
a download format (0 for hexIntel, 1 for S-records, 2 for
Emerson binary).
depends on the application.
None(None, None)
None(None)
None(None)
None(None)
Unknown
Unknown
Unknown
0
0
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-3
Monitor: Start-up Display
Hardware
initialization
and power-up
diagnostic
reports
Monitor
command
prompt
Hello World !!!!!!!!!!!!!
MPC860 and SMC are initialized
Memory Size is 0x00400000
860 Decrementer Test PASSED
860 Time Base Timer Test PASSED
Print Hex Test, should = 89ABCDEF ? 89ABCDEF
Power Up Memory Test
Memory Test at 0x00040000 PASSED
Address Boundary Clear PASSED
All Memory Address Test ********
PASSED
BSS Zeroed
Data Section Relocated
Exception Vector Table Set to 0x0
Stack has been initialized to 0x10000 - 8
Monitor Cold Started
Power Up EEPROM Test PASSED
MPC860 Power Up Cache Test PASSED
PCI Bus Interface Initialized
Copyright Artesyn Communication Products, Inc., 2001
Created: Thu Jan 11 13:04:24 2001
===========
===========
=== ===
=== === ======
=== === ======
=========== ==
=========== === === == ==
=== ==== ==== == ===
=== ========== == ==
=== == == == == ==
=== == == == ==
PM/T1[Rev 2.6]
PM/Link (TM) Debug Monitor
Artesyn Communication Products,Inc.
Version Rev 2.6
START-UP DISPLAY
At power-up or after a reset, the monitor runs diagnostics and reports the results in the
start-up display. The PmT1 and PmE1 displays have identical diagnostic reports.
Figure 8-1: Monitor Star t-up Display
8-4
PmT1 and PmE1 Us er’s Manual1000236 7-02
Note: The results of the power-up diagnostic tests are displayed at power-up or after a reset. A failed memory test
could indicate a hardware malfunction that should be reported to our Technical Support department at
http://www.emersonembeddedcomputing.com/contact/postsalessupport.htm on the internet or send email to support@artesyncp.com.
At power-up and reset, the monitor configures the board according to the contents of nonvolatile configuration memory. If the configuration indicates that an autoboot device has
been selected, the monitor attempts to load an application program from the specified
device. You can prevent the board from booting the OS if any of the power-up tests fail by
setting the NVRAM configuration parameter HaltOnFailure (see
Tab l e 8- 1 and page 8-13).
Monitor: Command-line History
You can cancel both the nonvolatile configuration sequence and the autoboot sequence by
pressing the H key on the console keyboard before the boot ends. The monitor is then in a
“manual” mode from which you can execute commands and call functions. The monitor
also enters manual mode if the autoboot fails. Instructions for downloading and executing
remote programs are given in the command reference and function reference.
The monitor provides a command-line interface that includes a command history and a vilike line editor. The command-line interface has two modes: insert text mode and command mode. In insert text mode you can type text on the command line. In command
mode you can move the cursor along the command line and modify commands. Each new
line is brought up in insert text mode.
COMMAND-LINE HISTORY
The monitor maintains a history of up to 50 command lines for reuse. Press the <ESC> key
from the command line to access the history.
k or -: Move backward in the command history to access a previous command.
j or +: Move forward in the command history to access a subsequent command.
COMMAND-LINE EDITOR
The command-line editor uses typical UNIX® vi editing commands.
<help editor>: To access an on-line description of the editor, type help editor or h editor.
<ESC>: To exit Entry mode and start the editor, press <ESC>. You can use most common vi com-
mands, such as x, i, a, A, $, w, cw, dw, r, and e.
<cr>: To execute the current command and exit the editor, press Enter or Return.
<DEL>: To discard an entire line and create a new command line, press <DEL> at any time.
a or A: Append text on the command line.
i or I: Insert text on the command line.
x or X: Delete a single character.
r: Replace a single character.
w: Move the cursor to the next word.
c: Change. Use additional commands with c to change words or groups of words, as shown
below.
cw or cW: Change a word after the cursor (capital W ignores punctuation).
1000236 7-02PmT1 and PmE 1User’s Manua l
8-5
Monitor: Initializing Memory
ce or cE: Change text to the end of a word (capital E ignores punctuation).
cb or cB: Change the word before the cursor (capital B ignores punctuation).
c$: Change text from the cursor to the end of the line.
d: Delete. Use additional commands with d to delete words or groups of words, as shown
below.
dw or dW: Delete a word after the cursor (capital W ignores punctuation).
de or dE: Delete to the end of a word (capital E ignores punctuation).
db or dB: Delete the word before the cursor (capital B ignores punctuation).
d$: Delete text from the cursor to the end of the line.
INITIALIZING MEMORY
The monitor uses the area between 0000,000016 and 0001,000016 for interrupt vector,
stack, data, and bss space. Any writes to that area can cause unpredictable operation of the
monitor. The monitor initializes all local memory on power-up and/or on reset, depending
on the configuration of nonvolatile memory. The monitor initializes (i.e., writes to) this
area, but it is left up to the programmer to initialize any other accessible memory areas,
such as off-card or module memory.
COMMAND SYNTAX
Each command may be typed with the shortest number of characters that uniquely identify
the command. For example, you can type nvd instead of nvdisplay. (There is no distinction
between uppercase and lowercase.) Note, however, that abbreviated command names
cannot be used with on-line help; you must type help and the full command name. Press
Enter or Return (carriage return <cr>) to execute a command.
• The command line accepts three argument formats: string, numeric, and symbolic.
Arguments to commands must be separated by spaces.
• Monitor commands that expect numeric arguments assume a default base for each
argument. However, the base can be altered or specified by entering a colon (:) followed
by the base as in the following examples.
1234ABCD:16hexadecimal
123456789:10decimal
101010:2binar y
8-6
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Initializing Memory
INITIALIZING MEMORY
The monitor uses the area between 0000,000016 and 0001,000016 for interrupt vector,
stack, data, and bss space. Any writes to that area can cause unpredictable operation of the
monitor. The monitor initializes all local memory on power-up and/or on reset, depending
on the configuration of nonvolatile memory. The monitor initializes (i.e., writes to) this
area, but it is left up to the programmer to initialize any other accessible memory areas,
such as off-card or module memory.
COMMAND SYNTAX
Each command may be typed with the shortest number of characters that uniquely identify
the command. For example, you can type nvd instead of nvdisplay. (There is no distinction
between uppercase and lowercase.) However, note that abbreviated command names
cannot be used with on-line help; you must type help and the full command name. Press
Enter or Return (carriage return <cr>) to execute a command.
• The command line accepts three argument formats: string, numeric, and symbolic.
Arguments to commands must be separated by spaces.
Definition:
Example:
• Monitor commands that expect numeric arguments assume a default base for each
argument. However, the base can be altered or specified by entering a colon (:) followed
by the base. See the following examples.
Typographic Conventions
In the following command descriptions, Courier font is used to show the command format. Italic type indicates a field or argument that requires input.
BOOT COMMANDS
bootbus
is an autoboot device that allows you to boot an application program over a bus interface.
This command is used for fast downloads to reduce development time.
bootbu s
bootbus uses the “LoadAddress” field from the nonvolatile memory definitions group
‘BootParams’ (see
structure, described below:
=>struct BusComSt ruct {
unsigne d long Magic Loc;
Ta bl e 8 - 1) as the base address of a shared memory communications
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-7
Monitor: Boot Commands
unsigne d long CallA ddress;
};
The structure consists of two unsigned long locations. The first is used for synchronization,
and the second is the entry address of the application.
The sequence of events used for loading an application is described below:
1 The host board waits for the target (this board) to write the value 0x496d4f6b (character
string “ImOk”) to “MagicLoc” to show that the target is initialized and waiting for a
download.
2 The host board downloads the application program over the bus, writes the application
start address to “CallAddress,” and then writes 0x596f4f6b (character string “YoOk”) to
“MagicLoc” to show that the application is ready for the target.
3 Target writes value 0x42796521 (character string “Bye!”) to “MagicLoc” to show that the
application was found. The target then calls the application at “CallAddress.”
When the application is called, four parameters are passed to the application from the nonvolatile memory boot configuration section. The parameters are seen by the application as
shown below:
Applic ation(Dev ice, N umber, RomSize, RomBa se)
unsign ed char D evice, Number;
unsign ed long R omSize , RomBase;
These parameters allow multiple boards using the same facility to receive configuration
information from the monitor.
Also refer to the function BootUp on page 8-37.
booteprom
is an autoboot device that allows you to boot an application program from EPROM.
Description:
8-8
PmT1 and PmE1 Us er’s Manual1000236 7-02
bootep rom
In order for the monitor to jump to the star t of the program, the following conditions must
be met:
• The start of the program is at FFF4,0000
• The first long word of the EPROM image contains a branch link instruction of the form
0100,10xx,xxxx,xxxx,xxxx,xxxx,xxxx,xx01
You can avoid jumping to an EPROM, even if a valid one is present, by changing the nonvolatile configuration parameter BootDev to something other than EPROM. The default setting
is to run an EPROM (especially if NVRAM is trashed).
Also refer to the function BootUp on page 8-37.
16
.
.
2
Monitor: Boot Commands
bootrom
is an autoboot device that allows you to boot an application program from ROM. It copies
code from ROM into RAM and then jumps to the RAM address. The ROM source address
RomBase, the RAM destination address LoadAddress, and the number of bytes to copy RomSize are read from the nonvolatile memory group BootParams.
Description:
bootro m
When the application is called, two parameters are passed to the application from the nonvolatile memory group BootParams. The parameters are seen by the application as shown
below:
Applic ation(Dev ice, N umber)
unsign ed char D evice, Number;
There are no arguments for this command. The nonvolatile configuration is modified with
the NVRAM commands nvdisplay and nvupdate.
Also refer to the function BootUp on page 8-37.
bootserial
is an autoboot device that allows you to boot an application program from a serial port.
Description:
Tab le 8-2 : Device Download Format
bootse rial
It determines the format of the download and the entry execution address of the downloaded application from the LoadAddress and DevType fields in the nonvolatile memory
group BootParams. The DevType field selects one of the download formats specified below:
Device Type:Download Format:
INT_MCS86 0Intel MCS-86 Hexadecimal Format
MOT_EXORMAT 1Motorola Exormax Format (S0-S3,S7-S9 Records)
HK_BINARY 2Emerson Binary Format
The nonvolatile configuration is modified with the NVRAM commands nvdisplay and nvup-date.
When the application is called, three parameters are passed to the application from the
nonvolatile memory boot configuration section. The parameters are seen by the application as shown below:
Applic ation(Num ber, R omSize, RomBase )
unsign ed char N umber;
unsign ed long R omSize , RomBase;
These parameters allow multiple boards using the same facility to receive different configuration information from the monitor.
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-9
Monitor: Help Commands
Also refer to the function BootUp on page 8-37.
HELP COMMANDS
help
Use the help command to view the description of the monitor command specified by
name. The full name of the command must be given.
Description:
help name
For instructions on editing command lines, type hel p editor.
For a list of command-line functions, type
For a detailed memory map, type
MEMORY/REGISTER COMMANDS
For some memory commands, the data size is determined by the following flags:
Description: The flag -b is for data in 8-bit bytes.
The flag -w is for data in 16-bit words.
The flag -l is for data in 32-bit long words.
checksummem
reads bytecount bytes starting at address source and computes the checksum for that
region of memory. The checksum is the 16-bit sum of the bytes in the memory block.
Description:
checks ummem s ource by tecount
clearmem
clears bytecount bytes starting at address source.
Description:
clearm em source bytecount
help f unctions.
help memmap.
8-10
cmpmem
compares bytecount bytes at the source address with those at the destination address. Any
differences are displayed.
Description:
cmpmem source destination bytecount
copymem
copies bytecou nt bytes from the source address to the destination address.
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Memory/Register Commands
Description: copyme m sourc e destination bytec ount
displaymem
displays memory in 16-byte lines starting at address startaddr. The number of lines displayed is determined by lines. If the lines argument is not specified, sixteen lines of memory
are shown. The data is displayed as hex character values on the left and printable ASCII
equivalents on the right. Nonprintable ASCII characters are printed as a dot.
Description:
Description:
Description:
Description:
displa ymem star taddr li nes
Press any key to interrupt the display. If the previous command was displaymem, pressing
<cr> displays the next block of memory.
fillmem
fills memory with value starting at address startaddr to address endaddr.
fillme m -[b,w,l] value star taddr endaddr
For example, to fill the second megabyte of memory with the data 0x12345678 type:
=>fill -l 12345 678 10 0000 200000
findmem
searches memory for a value from address startaddr to address endaddr for memory locations specified by the data searchval.
findme m -[b,w,l] se archva l startaddr endaddr
findnotmem
searches from address startaddr to address endaddr for memory locations that are different
from the data specified by searchval.
findno tmem -[b,w, l] searc hval startaddr enda ddr
findstr
searches from address startaddr to address endaddr for a string matching the data string
searchstr.
Description:
Description:
findst r searchs tr sta rtaddr endaddr
readmem
reads a memory location specified by address. This command displays the data in hexadecimal, decimal, octal, and binary format.
readme m -[b,w,l] ad dress
1000236 7-02PmT1 and PmE 1User’s Manua l
8-11
Monitor: Memory/Register Commands
setmem
allows memory locations to be modified starting at address. setmem first displays the value
that was read. Then you can type new data for the value or leave the data unchanged by
entering an empty line. If you press <cr> after the data, the address counts up. If you press
<ESC> after the data, the address counts down. To quit this command type any illegal hex
character (for example, “.”[period]).
Description:
Description:
Description:
setmem -[b,w,l] address
swapmem
swaps bytecount bytes at the source address with those at the destination address.
swapme m source de stinat ion bytecount
testmem
performs a nondestructive memory test from startaddr to endaddr. If endaddr is zero, the
address range is obtained from the functions MemBase and MemTop. The memory test can
be interrupted by pressing any character.
This command can be used to verify memory (DRAM). It prints the progress of the test and
summarizes the number of passes and failures.
testme m startad dr end addr
Also refer to the functions MemBase and MemTop in “Misc” Section .
um
performs a destructive memory test from base_addr to top_addr. This is done by first clear-
ing all memory in the range specified, doing a rotating bit test at each location, and finally
filling each data location with its own address. If top_addr is zero, the address range is
obtained from the functions MemBase and MemTop.
This command prints the progress of the test and summarizes the number of passes and
failures. The memory test can be interrupted by pressing any character.
8-12
Description:
um -[b ,w,l] base_addr top_addr
Also refer to the functions MemBase and MemTop in “Misc” Section .
writemem
writes value to a memory location specified by address.
Description:
PmT1 and PmE1 Us er’s Manual1000236 7-02
writem em -[b,w, l] address value
Monitor: NVRAM Commands
writestr
writes the ASCII string specified by string to a memory location specified by address. The
string must be enclosed in double quotes (“ “).
Description:
Description:
writes tr “strin g” add ress
NVRAM COMMANDS
The monitor uses the I2C EEPROM for nonvolatile memory. A memory map of the I2C
EEPROM is given in
Tab l e 4- 2 earlier in this manual. Portions of this nonvolatile memory are
reserved for factory configuration and identification information and the monitor.
The nonvolatile memory support commands provide the interface to the I
2
C EEPROM. The
nonvolatile commands deal only with the monitor- and Emerson-defined sections of the
nonvolatile memory. The monitor-defined sections of nonvolatile memory are readable
and writeable and can be modified by the monitor.
nvdisplay
is used to display the Emerson-defined and monitor-defined nonvolatile sections. The nonvolatile memory configuration information is used to completely configure the PmT1 and
PmE1 modules at reset. The utility command configboard can also be used to reconfigure
the board after modifications to the nonvolatile memory.
nvdisp lay
The configuration values are displayed in groups. Each group has a number of fields. Each
field is displayed as a hexadecimal or decimal number, or as a list of legal values.
To display the next group, press <space> or <cr>.
To edit fields within the displayed group, press E.
Example:
To quit the display, press <ESC> or Q.
To save the changes, type the command nvupdate.
To quit without saving the changes, type the command nvopen.
Tab l e 8- 1 shows all the groups and fields you can edit when you use the nvdisplay command.
1 At the monitor prompt, type:
=>nvdi splay
2 Press <cr> until the group you want to modify is displayed. An example for the group
“Console” is shown below.
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-13
Monitor: NVRAM Commands
!
Group ‘C onsole’
PortA( A, B)
Baud96 00
Parity None(Ev en, Od d, None, Force)
Data8- bits(5- Bits, 6- Bits, 7-Bits, 8-Bit s)
StopBits2-bits(1-Bit, 2-Bits)
ChBaud OnBreakFa lse(Fa lse, True)
RstOnB reakFal se(False , True)
[SP, CR to co ntinue] or [E, e to Edit]
3 Press E to edit the group.
4 Press <cr> until the field you want to change is displayed.
5 Type a new value. For most fields, legal options are displayed in parentheses.
6 Press <ESC> or Q to quit the display.
7 Typ e nvupdate to save the new value or nvopen to cancel the change by reading the old
value.
nvinit
is used to initialize the nonvolatile memory to the default state defined by the monitor.
First nvinit clears the memory and then writes the Emerson and monitor data back to the
EEPROM.
Description:
nvinit sernum “re vlev” ec olev writes
Caution: nvinit clears any values you have changed from the default. Use nvinit only if the
nonvolatile configuration data structures might be in an unknown state and you must
return them to a known state.
sernumserial number
revlevrevision level
ecolevstandard ECO level
writesthe number of writes to nonvolatile memory
nvopen
reads and checks the monitor and Emerson-defined sections. If the nonvolatile sections are
not valid, an error message is displayed.
Description:
nvopen
nvset
is used to modify the Emerson-defined and monitor-defined nonvolatile sections.
8-14
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: NVRAM Commands
Description: nvset group field value
To modify the list with the nvset command, you must specify the group and field to be
modified and the new value. The group, field, and value can be abbreviated, as in the examples below:
Example:
Description:
Note: The fields in the ‘BootParams’ group have different meanings for each device. For example, “DevType” values
=>nvse t console por t A
=>nvse t con dat 6
nvupdate
attempts to write the Emerson- and monitor-defined nonvolatile sections back to the
EEPROM. First the data is verified, and then it is written to the device. The write is verified
and all errors are reported.
nvupda te
Configuring the Default Boot Device
The default boot device is defined in the nonvolatile memory group BootParams, in the
field BootDev. When the PmT1 and PmE1 is reset or powered up, the monitor checks this
field and attempts to boot from the specified device.
are not used for Bus devices, but are used by Serial devices to select the format for downloading.
Currently, the monitor supports Serial, ROM, and Bus as standard. If you edit the BootDev
field and define a device that is unsupported on your board, the monitor will display the
message:
Unknow n boot device
Defining BootDev as Serial calls the command bootserial, defining BootDev as ROM calls
the command bootrom, and defining BootDev as Bus calls the command bootbus. See the
“Boot Commands” Section for details on these commands.
Example: In this example, nvdisplay and nvupdate are used to change the default boot device from
the bus to the ROM. The changes are made to the BootParams group.
1 At the monitor prompt, type:
=>nvdi splay
2 Press <cr> until the BootParams group is displayed.
4 Press <cr> until the BootDev field is displayed.
5 Type the new value ROM.
6 Press <cr> to display the LoadAddre ss field.
7 Type the address where execution begins.
8 Press <cr> to display the ROMBase field.
9 Type the ROM base address.
10 Press <cr> to display the ROMSize field.
11 Typ e t he ROM siz e.
12 Press <ESC> or Q to quit the display.
13 Typ e nvupdate to save the new values.
8-16
Example: In this example, nvdisplay and nvupdate are used to change the default boot device from
the bus to the serial port. The changes are made to the BootParams group.
1 At the monitor prompt, type:
=>nvdisplay
2 Press <cr> until the BootParams group is displayed.
3 Press E to edit the group.
4 Press <cr> until the BootDev field is displayed.
5 Type the new value Serial.
6 Press <cr> until the DevType field is displayed.
7 Type the new value for DevType; for example, 2 selects downloads in Emerson binary
format.
8 Edit any other fields you want to modify. Whether you use the DevType and DevNumber
fields depends on the application.
9 Press <ESC> or Q to quit the display.
10 Typ e nvupdate to save the new values.
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Power-up Diagnostic/Test Commands
POWER-UP DIAGNOSTIC/TEST COMMANDS
The following on-card functional tests are available to be run at any time, including powerup and reset. The nonvolatile configuration memor y can be used to enable or disable the
execution of these tests on power-up and reset (see the nvdisplay command’s Misc group
Tab l e 8 -1 ).
in
The results of the tests are stored at an offset of 0x60 in the I
PASS/FAIL flags, do four byte reads from the EEPROM at 0x60, 0x61, 0x62, and 0x63. The
byte at 0x60 should contain the magic number 0xa5 indicating that the device is functional
and that PASS/FAIL reporting is supported. The values for the long word when a failure
occurs are listed in
Tab le 8-3 : NVRAM Power-up Diagnostic PASS/FAIL Flags
The power-up PASS/FAIL flags are also written to PLX Mailbox 0. The module writes the
progress and PASS/FAIL status of each of its power-up tests to PCI so that the baseboard
can determine the power-up status of the module and proceed accordingly. At the conclusion of power-up, the same magic number (0xa5) used in the NVRAM PASS/FAIL flags is
written to the least significant bit (LSB) of PLX Mailbox 0. The PLX Mailbox 0 register can be
polled until the magic number is displayed and then checked to see if there are any fail
mask bits set. The following bits in
sequence and failure.
Tab le 8-4 : PLX Mailbox 0 Sequence and Fail Mask Bits
Power-up Test:Sequence Bit:Fail Mask Bit:
Counter/Timer0x020000000x00000002
Cache0x050000000x00000010
EEPROM0x060000000x00000020
Parity DRAM Memory0x0A0000000x00000200
Data DRAM Memory0x0B0000000x00000400
For example, if the module had a memory failure, the PLX Mailbox 0 register would contain
0x0B000400. For parity and DRAM failures, the same register would contain 0x0A000600.
The magic number 0xa5 will not be in the LSB of the PLX Mailbox 0 register because if a
memory error is encountered, then the debug monitor is entered. If all power-up tests
pass, the PLX Mailbox 0 will be 0xA5000000.
1000236 7-02PmT1 and PmE 1 User’s Manua l
Tab l e 8 -4 are used to indicate the power-up test
8-17
Monitor: Remote Host Commands
cachetest
tests the operation of the data cache. The test writes a word to every cache line and verifies
that the data was written into the data cache and not into DRAM.
Description:
Description:
Description:
cachet est
eepromtest
checks the interface to the I2C EEPROM by writing a byte to the device, and then reading it
back and verifying the data.
eeprom test
memtest
performs an address boundary test throughout all of DRAM. The test first clears all of memory by writing zeros. The test then performs a rotating bit test on each address boundary
and writes the test address as data to the test address location. The test finishes by verifying each address location contains its address as data. Any failure during the memtest
causes an error message to be displayed and the debug monitor is entered. The debug
monitor does not require RAM to execute.
memtes t
REMOTE HOST COMMANDS
The monitor commands transmode, download, and call are used for downloading applications and data in hex-Intel format, S-record format, or binary format.
Hex-Intel and S-record are common formats for representing binary object code as ASCII
for reliable and manageable file downloads. Both formats send data in blocks called
records, which are ASCII strings. Records may be separated by any ASCII characters except
for the start-of-record characters–“S” for S-records and “:” for hex-Intel records. In practice, records are usually separated by a convenient number of carriage returns, linefeeds, or
nulls to separate the records in a file and make them easily distinguishable by humans.
8-18
All records contain fields for the length of the record, the data in the record, and some kind
of checksum. Some records also contain an address field. Most software requires the hexadecimal characters that make up a record to be in uppercase only.
transmode stands for “transparent mode,” which means that the console port is connected
to the download port via software. In this mode, a terminal connected to the console port
can communicate with a host connected to the download port through the PmT1 and
PmE1 as though they were transparent. This allows you to edit your source code, recom-
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Remote Host Commands
pile, initiate and complete the download, and return to the monitor, all from one terminal.
This is convenient for downloading, because a single control sequence issues a carriage
return to the host and issues a download command to the PmT1 and PmE1.
call
allows execution of a program after a download from one of the board’s interfaces. This
command allows up to eight arguments to be passed to the called address from the command line. Arguments can be symbolic, numeric, characters, flags, or strings. The default
numeric base is hexadecimal.
If the application wants to return to the monitor, it should save and restore the processor
registers. Also, it is important that special-purpose registers remain unchanged.
Description:
Description:
Definition:
call a ddress ar g0 arg 1 arg2 arg3 arg 4 arg5 arg6 arg 7
download
provides a serial download from a host computer to the board.
downlo ad -[b,h, m] address
download uses binary, hex-Intel, or Motorola S-record format, as specified by the following
flags:
-b binary
(address not used)
-h hex -Intel
(load address in memory = address + record address)
-m Motorola S-record
(load address in memory = address + record address)
If no flag is specified, the default format is hex-Intel.
Refer to page 8-20 for an example of how to configure the download port using NVRAM
commands. “Binary Download Format” Section , “Hex-Intel Format” Section , and “Motorola S-record Format” Section describe the download formats in detail.
Binary Download Format
The binary download format consists of two parts:
• Magic number (0x12345670) + number of sections
• Information for each section including: the load address (unsigned long), the section
size (unsigned long), a checksum (unsigned long) that is the long word sum of the
memory bytes of the data section.
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-19
Monitor: Remote Host Commands
Note: If you download from a UNIX host in binary format, be sure to disable the host from mapping <cr> to <cr-lf>.
The download port is specified in the nonvolatile memory configuration.
transmode
provides an interface to UNIX® through the board by connecting the console to a download port. A null modem cable might be necessary for the connection.
Description:
transm ode
Several key sequences are used to leave transparent mode and to initiate a download:
This command uses software FIFOs to buffer characters between the two systems. This
seems to work reasonably well for most processors, but can lose characters if large numbers of characters are displayed. In general, the only complete solution is to use serial interrupts rather than polling. Since this is not likely to happen, be aware that the transmode
command will allow execution of commands without problems, but may have problems if
text editing is attempted.
Example: If the host is a UNIX system and you have a hex-Intel file called ‘foo.hex’ in a directory
‘foodir’ to download, you can use the following sequence:
=>PmT1 or PmE1[2.x] transmode
UNIXpr ompt>cd f oodir
UNIXpr ompt>cat fo o.hex
Press CT RL-@-Retu rn.
...... ......... ...... .....
=>PmT1 or PmE1[2.x]
{dots continue during download}
Configuring the Download Port
In this example, the NVRAM command nvdisplay changes fields in the Download group,
which contains fields for port selection, baud rate, parity, number of data bits, and number
of stop bits:
Note: A cable reverser might be necessary for the connection
1 At the monitor prompt, type:
8-20
=>nvdisplay
2 Press <cr> until the Download group is displayed.
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Remote Host Commands
3 Press E to edit the group.
4 Press <cr> until the Baud field is displayed.
5 Typ e a ne w value.
6 Change other fields in the same way.
7 <cr> over all fields whether you edit them or not, until the monitor prompt reappears.
8 Typ e nvupdate to save the new value.
Hex-Intel Format
Hex-Intel format supports addresses up to 20 bits (one megabyte). This format sends a 20bit absolute address as two (possibly overlapping) 16-bit values. The least significant 16
bits of the address constitute the offset, and the most significant 16 bits constitute the segment. Segments can only indicate a paragraph, which is a 16-byte boundary. Stated in C,
for example:
addres s = (segment << 4) + offset;
or
segmen t (ssss) + offs et (oooo ) = address (aaaaa)
For addresses with fewer than 16 bits, the segment portion of the address is unnecessary.
The hex-Intel checksum is a two’s complement checksum of all data in the record except
for the initial colon (:). In other words, if you add all the data bytes in the record, including
the checksum itself, the lower eight bits of the result will be zero if the record was received
correctly.
Four types of records are used for hex-Intel format: extended address record, data record,
optional start address record, and end-of-file record. A file composed of hex-Intel records
must end with a single end-of-file record.
Extended Address Record
:02000 002sssscs
:is the rec ord start ch aracter .
02is t he record lengt h.
0000is the load addre ss field, alway s 0000 .
02 is the recor d type .
ssssis the segment ad dress fie ld.
csis t he checks um.
The extended address record is the upper sixteen bits of the 20-bit address. The segment
value is assumed to be zero unless one of these records sets it to something else. When
such a record is encountered, the value it holds is added to the subsequent offsets until the
next extended address record.
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-21
Monitor: Remote Host Commands
Here, the first 02 is the byte count (only the data in the ssss field is 3counted). 0000 is the
address field; in this record the address field is meaningless, so it is always 0000. The second 02 is the record type; in this case, an extended address record. cs is the checksum of all
the fields except the initial colon.
Example:
=>:020 000020020 DC
In this example, the segment address is 002016. This means that all subsequent data record
addresses should have 200
address.
Data Record
:11aaaa00d1d2d3...d ncs
:is the rec ord start ch aracter .
11is t he record lengt h.
aaaais the load addre ss. This is the load address of the fi rst
data b yte in th e reco rd (d1) relativ e to t he curren t
segmen t, if any .
00is t he record type.
d1...d nare data byt es.
csis t he checks um.
Example: =>:0 400100050 D55ADF 8E
In this example, there are four data bytes in the record. They are loaded to address 1016; if
any segment value was previously specified, it is added to the address. 50
address 10
checksum is 8E
Start Ad dress Recor d
:04000 003ssssoo oocs
:is the rec ord start ch aracter .
04is t he record lengt h.
0000is the load addre ss field, alway s 0000 .
03is t he record type.
ssssis the start addr ess segme nt.
oooois the start addr ess offse t.
csis t he checks um.
Example: =>:0 400000351 620005 41
In this example, the start address segment is 516216, and the start address offset is 000516,
so the absolute start address is 51625
, D516 to address 1116, 5A16 to address 1216, and DF16 to address 1316. The
16
.
16
added to their addresses to determine the absolute load
16
is loaded to
16
.
16
8-22
End-of-file Record
000000 01FF
:is the rec ord start ch aracter .
00is t he record lengt h.
0000is the load addre ss field, alway s 0000 .
PmT1 and PmE1 Us er’s Manual1000236 7-02
Monitor: Remote Host Commands
01is t he record type.
FFis t he checks um.
This is the end-of-file record, which must be the last record in the file. It is the same for all
output files.
Here is a line-by-line explanation of the example file:
=>:080 000002082 E446A8 0A6CCE40
loads byte 2016 to address 00
loads byte 8216 to address 01
loads byte E416 to address 02
loads byte 4616 to address 03
loads byte A816 to address 04
loads byte 0A16 to address 05
loads byte 6C16 to address 06
loads byte CE16 to address 07
=>:020 000020001 FB
sets the segment value to one, so 1016 must be added to all subsequent load addresses.
=>:080 00000D0ED 0A2744 617EFFE8
loads byte D016 to address 10
loads byte ED16 to address 11
loads byte 0A16 to address 12
loads byte 2716 to address 13
loads byte 4416 to address 14
loads byte 6116 to address 15
loads byte 7E16 to address 16
loads byte FF16 to address 17
=>:040 000030001 0002F6
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-23
Monitor: Remote Host Commands
indicates that the start address segment value is one, and the star t address offset value is 2,
so the absolute start address is 12
=>:040 03000902B B4FD60
loads byte 9016 to address 40
loads byte 2B16 to address 41
loads byte B416 to address 42
loads byte FD16 to address 43
=>:000 00001FF
terminates the file.
Motorola S-record Format
S-records are named for the ASCII character “S,” which is used for the first character in each
record. After the “S” character is another character that indicates the record type. Valid
types are 0, 1, 2, 3, 5, 7, 8, and 9. After the type character is a sequence of characters that
represent the length of the record, and possibly the address. The rest of the record is filled
out with data and a checksum.
16
16
16
16
16
.
8-24
The checksum is the one’s complement of the 8-bit sum of the binary representation of all
elements of the record except the S and the record type character. In other words, if you
sum all the bytes of a record except for the S and the character immediately following it
with the checksum itself, you should get FF
S0-records (User Defined)
S0nnd1 d2d3...dn cs
Where:
S0indicates the record type
nnis the count of data and checksum bytes
d1...dnare the data bytes
csis the che cksum
0 records are optional, and can contain any user-defined data.
Example:
PmT1 and PmE1 Us er’s Manual1000236 7-02
=>S008 763330627 567736 D
In this example, the length of the field is 8, and the data characters are the ASCII representation of “v30bugs.” The checksum is 6D
nnis the count of data and checksum bytes
a...aare the data bytes
csis the che cksum
These are data records. They differ only in that S1-records have 16-bit addresses, S2records have 24-bit addresses, and S3-records have 32-bit addresses.
Example:
Where:
Example:
=>S108 01A00030F FDC95B 6
In this example, the bytes 0016, 3016, FF16, DC16, and 9516 are loaded into memory starting
at address 01A0
=>S30B 30000000F FFF555 5AAAAD3
.
16
In this example, the bytes FF16, FF16, 5516, 5516, AA16, and AA16 are loaded into memory
starting at address 3000,0000
. Note that this address requires an S3-record because the
16
address is too big to fit into the address range of an S1-record or S2-record.
S5-records (Data Count Records)
S5nnd1 d2d3...dn cs
S5indicates the record type
nnis the count of data and checksum bytes
d1...dnare the data bytes
csis the che cksum
S5-records are optional. When they are used, there can be only one per file. If an S5-record
is included, it is a count of the S1-, S2-, and S3-records in the file. Other types of records are
not counted in the S5-record.
=>S503 0343B6
In this example, the number of bytes is 3, the checksum is B616, and the count of the S1records, S2-records, and S3-records in the file is 343
.
16
1000236 7-02PmT1 and PmE 1 User’s Manua l
8-25
Monitor: Remote Host Commands
S7-S8-and S9-records (Termination and Start Address Records)
S705aa aaaaaacs
S804aa aaaacs
S903aa aacs
Where:
S7, S8, or S9indicates the record type
05, 04, 03count of address digits and the cs field
a...ais a 4-, 6-, or 8-digit address field
csis the checksum
These are trailing records. There can be only one trailing record per file, and it must be the
last record in the output file. Included in the data for this record is the initial start address
for the downloaded code.