TMS 140
8031, 8032, 8051 & 8052 Microcontroller Support
070-9813-00
There are no current European directives that
apply to this product. This product provides
cable and test lead connections to a test object of
electronic measuring and test equipment.
Warning
The servicing instructions are for use by
qualified personnel only. To avoid personal
injury, do not perform any servicing unless you
are qualified to do so. Refer to all safety
summaries prior to performing service.
Copyright T ektronix, Inc. All rights reserved. Licensed software products are owned by Tektronix or its suppliers and are
protected by United States copyright laws and international treaty provisions.
Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the
Rights in T echnical Data and Computer Software clause at DFARS 252.227-7013, or subparagraphs (c)(1) and (2) of the
Commercial Computer Software – Restricted Rights clause at F AR 52.227-19, as applicable.
T ektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supercedes
that in all previously published material. Specifications and price change privileges reserved.
Printed in the U.S.A.
T ektronix, Inc., P.O. Box 1000, Wilsonville, OR 97070–1000
TEKTRONIX and TEK are registered trademarks of T ektronix, Inc.
SOFTWARE WARRANTY
T ektronix warrants that the media on which this software product is furnished and the encoding of the programs on
the media will be free from defects in materials and workmanship for a period of three (3) months from the date of
shipment. If a medium or encoding proves defective during the warranty period, T ektronix will provide a
replacement in exchange for the defective medium. Except as to the media on which this software product is
furnished, this software product is provided “as is” without warranty of any kind, either express or implied.
T ektronix does not warrant that the functions contained in this software product will meet Customer’s
requirements or that the operation of the programs will be uninterrupted or error-free.
In order to obtain service under this warranty, Customer must notify Tektronix of the defect before the expiration
of the warranty period. If T ektronix is unable to provide a replacement that is free from defects in materials and
workmanship within a reasonable time thereafter, Customer may terminate the license for this software product
and return this software product and any associated materials for credit or refund.
THIS WARRANTY IS GIVEN BY TEKTRONIX IN LIEU OF ANY OTHER WARRANTIES, EXPRESS
OR IMPLIED. TEKTRONIX AND ITS VENDORS DISCLAIM ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. TEKTRONIX’
RESPONSIBILITY TO REPLACE DEFECTIVE MEDIA OR REFUND CUSTOMER’S PAYMENT IS
THE SOLE AND EXCLUSIVE REMEDY PROVIDED TO THE CUSTOMER FOR BREACH OF THIS
WARRANTY. TEKTRONIX AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER
TEKTRONIX OR THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH
DAMAGES.
HARDWARE WARRANTY
T ektronix warrants that the products that it manufactures and sells will be free from defects in materials and
workmanship for a period of one (1) year from the date of shipment. If a product proves defective during this
warranty period, T ektronix, at its option, either will repair the defective product without charge for parts and labor,
or will provide a replacement in exchange for the defective product.
In order to obtain service under this warranty, Customer must notify Tektronix of the defect before the expiration
of the warranty period and make suitable arrangements for the performance of service. Customer shall be
responsible for packaging and shipping the defective product to the service center designated by T ektronix, with
shipping charges prepaid. Tektronix shall pay for the return of the product to Customer if the shipment is to a
location within the country in which the T ektronix service center is located. Customer shall be responsible for
paying all shipping charges, duties, taxes, and any other charges for products returned to any other locations.
This warranty shall not apply to any defect, failure or damage caused by improper use or improper or inadequate
maintenance and care. T ektronix shall not be obligated to furnish service under this warranty a) to repair damage
resulting from attempts by personnel other than T ektronix representatives to install, repair or service the product;
b) to repair damage resulting from improper use or connection to incompatible equipment; c) to repair any
damage or malfunction caused by the use of non-T ektronix supplies; or d) to service a product that has been
modified or integrated with other products when the effect of such modification or integration increases the time
or difficulty of servicing the product.
THIS WARRANTY IS GIVEN BY TEKTRONIX IN LIEU OF ANY OTHER WARRANTIES, EXPRESS
OR IMPLIED. TEKTRONIX AND ITS VENDORS DISCLAIM ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. TEKTRONIX’
RESPONSIBILITY TO REPAIR OR REPLACE DEFECTIVE PRODUCTS IS THE SOLE AND
EXCLUSIVE REMEDY PROVIDED TO THE CUST OMER FOR BREACH OF THIS WARRANTY.
TEKTRONIX AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT , SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX OR
THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
TMS 140 Microcontroller Support Instruction Manual
iii
Table of Contents
iv
TMS 140 Microcontroller Support Instruction Manual
General Safety Summary
Review the following safety precautions to avoid injury and prevent damage to
this product or any products connected to it. To avoid potential hazards, use this
product only as specified.
Only qualified personnel should perform service procedures.
While using this product, you may need to access other parts of the system. Read
the General Safety Summary in other system manuals for warnings and cautions
related to operating the system.
To Avoid Fire or
Personal Injury
Connect and Disconnect Properly . Do not connect or disconnect probes or test
leads while they are connected to a voltage source.
Observe All Terminal Ratings. To avoid fire or shock hazard, observe all ratings
and marking on the product. Consult the product manual for further ratings
information before making connections to the product.
Do not apply a potential to any terminal, including the common terminal, that
exceeds the maximum rating of that terminal.
Do Not Operate Without Covers. Do not operate this product with covers or panels
removed.
Use Proper Fuse. Use only the fuse type and rating specified for this product.
Avoid Exposed Circuitry. Do not touch exposed connections and components
when power is present.
Do Not Operate With Suspected Failures. If you suspect there is damage to this
product, have it inspected by qualified service personnel.
Do Not Operate in Wet/Damp Conditions.
Do Not Operate in an Explosive Atmosphere.
Keep Product Surfaces Clean and Dry .
Provide Proper Ventilation. Refer to the manual’s installation instructions for
details on installing the product so it has proper ventilation.
TMS 140 Microcontroller Support Instruction Manual
v
General Safety Summary
Symbols and Terms
T erms in this Manual. These terms may appear in this manual:
WARNING. Warning statements identify conditions or practices that could result
in injury or loss of life.
CAUTION. Caution statements identify conditions or practices that could result in
damage to this product or other property.
T erms on the Product. These terms may appear on the product:
DANGER indicates an injury hazard immediately accessible as you read the
marking.
WARNING indicates an injury hazard not immediately accessible as you read the
marking.
CAUTION indicates a hazard to property including the product.
Symbols on the Product. The following symbols may appear on the product:
WARNING
High Voltage
Protective Ground
(Earth) T erminal
CAUTION
Refer to Manual
Double
Insulated
vi
TMS 140 Microcontroller Support Instruction Manual
Service Safety Summary
Only qualified personnel should perform service procedures. Read this Service
Safety Summary and the General Safety Summary before performing any service
procedures.
Do Not Service Alone. Do not perform internal service or adjustments of this
product unless another person capable of rendering first aid and resuscitation is
present.
Disconnect Power. To avoid electric shock, disconnect the main power by means
of the power cord or, if provided, the power switch.
Use Care When Servicing With Power On. Dangerous voltages or currents may
exist in this product. Disconnect power, remove battery (if applicable), and
disconnect test leads before removing protective panels, soldering, or replacing
components.
To avoid electric shock, do not touch exposed connections.
TMS 140 Microcontroller Support Instruction Manual
vii
Service Safety Summary
viii
TMS 140 Microcontroller Support Instruction Manual
Preface: Microcontroller Support Documentation
This instruction manual contains specific information about the TMS 140 8031,
8032, 8051 and 8052 microcontroller support package and is part of a set of
information on how to operate this product on compatible Tektronix logic
analyzers.
If you are familiar with operating microcontroller support packages on the logic
analyzer for which the TMS 140 8031, 8032, 8051 and 8052 support was
purchased, you will probably only need this instruction manual to set up and run
the support.
If you are not familiar with operating microcontroller support packages, you will
need to supplement this instruction manual with information on basic operations
to set up and run the support.
Information on basic operations of microcontroller support packages is included
with each product. Each logic analyzer has basic information that describes how
to perform tasks common to support packages on that platform. This information
can be in the form of online help, an installation manual, or a user manual.
This manual provides detailed information on the following topics:
Manual Conventions
HConnecting the logic analyzer to the system under test
HSetting up the logic analyzer to acquire data from the system under test
HAcquiring and viewing disassembled data
HUsing the probe adapter
This manual uses the following conventions:
HThe term disassembler refers to the software that disassembles bus cycles
into instruction mnemonics and cycle types.
HThe phrase “information on basic operations” refers to online help, an
installation manual, or a basic operations of microcontroller supports user
manual.
HIn the information on basic operations, the term XXX or P54C used in field
selections and file names must be replaced with 8031. This is the name of
the microcontroller in field selections and file names you must use to operate
the 8031, 8032, 8051 and 8052 support.
TMS 140 Microcontroller Support Instruction Manual
ix
Preface: Microcontroller Support Documentation
HThe term system under test (SUT) refers to the microcontroller-based system
from which data will be acquired.
HThe term logic analyzer refers to the Tektronix logic analyzer for which this
product was purchased.
HThe term module refers to a 68/102/136-channel or a 96-channel module.
H8031 refers to all supported variations of the 8031, 8032, 8051 and 8052
microcontrollers unless otherwise noted.
HA tilde (~) following a signal name indicates an active low signal.
Logic Analyzer Documentation
A description of other documentation available for each type of Tektronix logic
analyzer is located in the corresponding module user manual. The manual set
provides the information necessary to install, operate, maintain, and service the
logic analyzer and associated products.
Contacting Tektronix
Product
Support
Service
Support
For other
information
To write usTektronix, Inc.
For application-oriented questions about a Tektronix measurement product, call toll free in North America:
1-800-TEK-WIDE (1-800-835-9433 ext. 2400)
6:00 a.m. – 5:00 p.m. Pacific time
Or, contact us by e-mail:
tm_app_supp@tek.com
For product support outside of North America, contact your
local Tektronix distributor or sales office.
Contact your local Tektronix distributor or sales office. Or, visit
our web site for a listing of worldwide service locations.
http://www.tek.com
In North America:
1-800-TEK-WIDE (1-800-835-9433)
An operator will direct your call.
P.O. Box 1000
Wilsonville, OR 97070-1000
x
TMS 140 Microcontroller Support Instruction Manual
Getting Started
Getting Started
Support Description
This chapter provides information on the following topics:
HA description of the TMS 140 microcontroller support
HLogic analyzer software compatibility
HYour system under test requirements
HSupport restrictions
HHow to configure the probe adapter
HHow to connect to the system under test (SUT)
The TMS 140 microcontroller support disassembles data from systems that are
based on the Intel 8031, 8032, 8051 and 8052 microcontrollers. The TMS 140
supports all 8031 and 8051 core-type microcontrollers that are compatible with
Intel MCS-51. The support runs on a compatible Tektronix logic analyzer
equipped with a 68/102/136-channel module or a 96-channel module.
Refer to information on basic operations to determine how many modules and
probes your logic analyzer needs to meet the minimum channel requirements for
the TMS 140 microcontroller support.
NOTE. The 8051 and 8052 have internal RAM and ROM. Only bus activity
outside the microcontroller is disassembled. Internal activity is not present on the
bus and cannot be disassembled.
Table 1–1 shows the microcontrollers and packages from which the TMS 140
support can acquire and disassemble data.
T able 1–1: Supported microcontrollers
NamePackage
8031/32/51/52
8031/32/51/52
A complete list of standard and optional accessories is provided at the end of the
parts list in the Replaceable Mechanical Parts chapter.
Socketed/soldered 40- and 48-pin DIP
Socketed/soldered 44-, 68- and 84-pin PLCC
TMS 140 Microcontroller Support Instruction Manual
1–1
Getting Started
To use this support efficiently, you need to have the items listed in the information on basic operations as well as the 8-Bit Embedded Controller’s Manual, Intel
Inc., 1991
Information on basic operations also contains a general description of supports.
Logic Analyzer Software Compatibility
The label on the microcontroller support floppy disk states which version of logic
analyzer software the support is compatible with.
Logic Analyzer Configuration
To use the 8031, 8032, 8051 and 8052 support, the Tektronix logic analyzer must
be equipped with either a 68/102/136-channel module, or a 96-channel module at
a minimum. The module must be equipped with enough probes to acquire clock
and channel data from signals in your 8031, 8032, 8051 and 8052-based system.
Refer to information on basic operations to determine how many modules and
probes the logic analyzer needs to meet the channel requirements.
Requirements and Restrictions
You should review the general requirements and restrictions of microcontroller
supports in the information on basic operations as they pertain to your SUT.
You should also review electrical, environmental, and mechanical specifications
in the Specifications chapter in this manual as they pertain to your system under
test, as well as the following descriptions of other 8031, 8032, 8051 and 8052
support requirements and restrictions.
System Clock Rate. The microcontroller support product supports the 8031, 8032,
8051 and 8052 microcontroller at speeds of up to 30 MHz
Hardware Reset. If a hardware reset occurs in your 8031, 8032, 8051 and 8052
system during an acquisition, the disassembler might acquire an invalid sample.
Internal RAM and ROM. The 8051 and 8052 are microcontrollers with internal
RAM and ROM. Only external bus activity (outside the microcontroller) is
disassembled. Internal activity is not present on the bus and cannot be acquired.
1
.
1–2
1
Specification at time of printing. Contact your PRISM sales representative for current
information on the fastest devices supported.
TMS 140 Microcontroller Support Instruction Manual
Interrupts and DMA Cycles. The disassembler handles interrupts and DMA cycles
as regular 8031, 8032, 8051 and 8052 cycles because there are no signals on the
8031, 8032, 8051 and 8052 microcontroller to indicate an interrupt or DMA
cycle. Therefore, interrupt and DMA cycles visible on the external bus are
disassembled as data reads and writes.
Connecting to a System Under Test
Before you connect to the SUT, you must connect the probes to the module.
Your SUT must also have a minimum amount of clear space surrounding the
microcontroller to accommodate the probe adapter. Refer to the Specifications
chapter in this manual for the required clearances.
The channel and clock probes shown in this chapter are for a 68/102/136-channel
module. The probes will look different if you are using a 96-channel module.
The general requirements and restrictions of microcontroller supports in the
information on basic operations shows the vertical dimensions of a channel or
clock probe connected to square pins on a circuit board.
Getting Started
DIP Probe Adapter
Refer to the Replaceable Mechanical Parts chapter for part numbers of various
clip adapters and UPIK adapters you can use to connect to a 48-pin DIP and 44-,
68- or 84-pin PLCC packages.
To connect the logic analyzer to a SUT using a DIP probe adapter, follow these
steps:
1. Turn off power to your SUT. It is not necessary to turn off the logic analyzer.
CAUTION. Static discharge can damage the microcontroller, the probe adapter,
the probes, or the module. To prevent static damage, handle all of the above only
in a static-free environment.
Always wear a grounding wrist strap or similar device while handling the
microcontroller and probe adapter.
2. To discharge your stored static electricity, touch the ground connector located
on the back of the logic analyzer. Then, touch any of the ground pins of the
probe adapter to discharge stored static electricity from the probe adapter.
3. Place the probe adapter onto the antistatic shipping foam to support the probe
as shown Figure 1–1. This prevents the circuit board from flexing and the
socket pins from bending.
4. Remove the microcontroller from your SUT.
TMS 140 Microcontroller Support Instruction Manual
1–3
Getting Started
5. Line up pin 1 on the microcontroller with the pin 1 indicator on the probe
adapter board.
CAUTION. Failure to correctly place the microcontroller into the probe adapter
might permanently damage all electrical components once power is applied.
6. Place the microcontroller into the probe adapter as shown in Figure 1–1.
Microcontroller
Probe adapter
Foam
1–4
Figure 1–1: Placing a microcontroller into a DIP probe adapter
7. Connect the channel and clock probes to the probe adapter as shown in
Figure 1–2. Match the channel groups and numbers on the probe labels to the
corresponding pins on the probe adapter. Match the ground pins on the
probes to the corresponding pins on the probe adapter.
TMS 140 Microcontroller Support Instruction Manual
Getting Started
Channel probe
Hold the channel probes by the podlet
holder when connecting them to the
probe adapter. Do not hold them by
the cables or necks of the podlets.
Foam
Figure 1–2: Connecting probes to a DIP probe adapter
Clock probe
Probe adapter
8. Place the probe adapter onto the SUT as shown in Figure 1–3.
NOTE. You might need to stack one or more replacement sockets between the SUT
and the probe adapter to provide sufficient vertical clearance from adjacent
components. However, keep in mind that this might increase loading, which can
reduce the electrical performance of your probe adapter.
TMS 140 Microcontroller Support Instruction Manual
1–5
Getting Started
Pin 1
SUT socket
DIP Probe Adapter
with a DIP Clip
Figure 1–3: Placing a DIP probe adapter onto the SUT
If your microcontroller is soldered to a circuit board and the probe adapter
provides pins to which you can connect a DIP clip, you will need to use the DIP
converter clip with the probe adapter.
One end of the converter clip connects to square pins on the probe adapter. The
other end connects to the microcontroller in your SUT. To connect the logic
analyzer to your SUT using a DIP probe adapter with a clip, refer to Figure 1–4
and follow these steps:
1. Follow steps 1 through 7 in the previous procedure.
2. Connect the cable end to the square pins on the probe adapter.
NOTE. The red strip along the side of the cable indicates that it connects to pin 1
on the probe adapter and pin 1 of the microcontroller.
3. Connect the clip end to the microcontroller.
NOTE. If you are having problems acquiring data, removing pins 18 (XTAL1) and
19 (XTAL2) from the DIP clip may restore proper operation.
1–6
TMS 140 Microcontroller Support Instruction Manual
Red strip
Getting Started
Pin 1
Without a Probe Adapter
Figure 1–4: Connecting to the SUT using a DIP converter clip
You can use channel probes, clock probes, and leadsets with a commercial test
clip (or adapter) to make connections between the logic analyzer and your SUT.
To connect the probes to 8031, 8032, 8051 and 8052 signals in the SUT using a
test clip, follow these steps:
1. Turn off power to your SUT. It is not necessary to turn off power to the logic
analyzer.
CAUTION. Static discharge can damage the microcontroller, the probes, or the
module. To prevent static damage, handle all of the above only in a static-free
environment.
Always wear a grounding wrist strap or similar device while handling the
microcontroller.
2. To discharge your stored static electricity, touch the ground connector located
on the back of the logic analyzer. If you are using a test clip, touch any of the
ground pins on the clip to discharge stored static electricity from it.
3. Use Table 1–2 to connect the channel probes to 8031, 8032, 8051 and 8052
signal pins on the test clip or in the SUT.
Use leadsets to connect at least one ground lead from each channel probe and
the ground lead from each clock probe to ground pins on your test clip.
TMS 140 Microcontroller Support Instruction Manual
1–7
Getting Started
NOTE. Since the microcontroller multiplexes address A7-A0 and data D7-D0 (as
the AD7-AD0 signals), the D0:7-0 channel probe does not need to be connected.
These channels are not considered to be extra channels, even though they are not
connected. Do not use them to make connections to other signals in your SUT.
T able 1–2: 8031, 8032, 8051 and 8052 signal connections for channel probes
TMS 140 Microcontroller Support Instruction Manual
Getting Started
Table 1–3 shows the clock probes and the 8031, 8032, 8051 and 8052 signal to
which they must connect for disassembly to be correct.
T able 1–3: 8031, 8032, 8051 and 8052 signal connections for clock probes
Section:channel 8031, 8032, 8051 and 8052 signal
CK:3ALE_B
CK:2PSEN_B
CK:1RD_B~
CK:0WR_B~
4. Align pin 1 of your test clip with the corresponding pin 1 of the 8031, 8032,
8051 and 8052 microcontroller in your SUT and attach the clip.
TMS 140 Microcontroller Support Instruction Manual
1–9
Getting Started
1–10
TMS 140 Microcontroller Support Instruction Manual
Operating Basics
Setting Up the Support
This section provides information on how to set up the support. Information
covers the following topics:
HChannel group definitions
HClocking options
HSymbol table files
Remember that the information in this section is specific to the operations and
functions of the TMS 140 8031, 8032, 8051 and 8052 support on any Tektronix
logic analyzer for which it can be purchased. Information on basic operations
describes general tasks and functions.
Before you acquire and disassemble data, you need to load the support and
specify setups for clocking and triggering as described in the information on
basic operations. The support provides default values for each of these setups,
but you can change them as needed.
Channel Group Definitions
Clocking Options
The software automatically defines channel groups for the support. The channel
groups for the 8031, 8032, 8051 and 8052 support are Address, Data, and
Control. If you want to know which signal is in which group, refer to the
channel assignment tables beginning on page 3–4.
The TMS 140 support offers a microcontroller-specific clocking mode for the
8031, 8032, 8051 and 8052 microcontroller. This clocking mode is the default
selection whenever you load the 8031 support.
A description of how cycles are sampled by the module using the TMS 140
support and probe adapter is found in the Specifications chapter.
Disassembly will not be correct with the Internal or External clocking modes.
Information on basic operations describes how to use these clock selections for
general purpose analysis.
The TMS 140 support acquires all cycles. No clocking options are available.
TMS 140 Microcontroller Support Instruction Manual
2–1
Setting Up the Support
Symbols
The TMS 140 support supplies one symbol table file. The 8031_Ctrl file replaces
specific Control channel group values with symbolic values when Symbolic is
the radix for the Control channel group.
Table 2–1 shows the name, bit pattern, and meaning for the symbols in the file
8031_Ctrl, the Control channel group symbol table.
T able 2–1: Control group symbol table definitions
Control group value
ALE_B
PSEN_B~
Symbol
RD_B~
WR_B~
Meaning
An Opcode fetch
A read from memory
A write to memory
Information on basic operations describes how to use symbolic values for
triggering and for displaying other channel groups symbolically, such as the
Address channel group.
2–2
TMS 140 Microcontroller Support Instruction Manual
Acquiring and Viewing Disassembled Data
This section describes how to acquire data and view it disassembled. Information
covers the following topics:
HAcquiring data
HViewing disassembled data in various display formats
HCycle type labels
HHow to change the way data is displayed
HHow to change disassembled cycles with the mark cycles function
Acquiring Data
Once you load the 8031 support and specify the trigger, you are ready to acquire
and disassemble
If you have any problems acquiring data, refer to information on basic operations
in your online help or Appendix A: Error Messages and Disassembly Problems in
the basic operations user manual, whichever is available.
data.
Viewing Disassembled Data
You can view disassembled data in four different display formats: Hardware,
Software, Control Flow, and Subroutine. The information on basic operations
describes how to select the disassembly display formats.
NOTE. Selections in the Disassembly property page (the Disassembly Format
Definition overlay) must be set correctly for your acquired data to be disassembled correctly. Refer to Changing How Data is Displayed on page 2–6.
The default display format shows the Address, Data, and Control channel group
values for each sample of acquired data.
The disassembler displays special characters and strings in the instruction
mnemonics to indicate significant events. Table 2–2 shows these special
characters and strings, and gives a definition of what they represent.
TMS 140 Microcontroller Support Instruction Manual
2–3
Acquiring and Viewing Disassembled Data
T able 2–2: Meaning of special characters in the display
Character or string displayedMeaning
or m
The instruction was manually marked as a program fetch
Hardware Display Format
****
#
Indicates there is insufficient data available for complete
disassembly of the instruction; the number of asterisks will
indicate the width of the data that is unavailable. Each two
asterisks represent a byte.
Indicates an immediate value
In Hardware display format, the disassembler displays certain cycle type labels in
parentheses. Table 2–3 shows these cycle type labels and gives a definition of the
cycle they represent.
T able 2–3: Cycle type definitions
Cycle typeDefinition
(FLUSH)*
(EXTENSION)*
(PGM MEM READ)*
(DATA READ)
(DATA WRITE)
(DISCARDED OPCODE)*
A cycle discarded by the microcontroller because of a change
in control flow
An extension byte for a multiple byte instruction
A read from program memory that is not an opcode fetch
A read from data memory (not program memory)
A write to data memory (not program memory)
A cycle discarded by the microcontroller and refetched later
2–4
(ILLEGAL CYCLE TYPE)*
(ILLEGAL INSTRUCION )*
*Computed cycle types.
Not a legitimate cycle type
Not a legitimate instruction type
Figure 2–1 shows an example of the Hardware display.
TMS 140 Microcontroller Support Instruction Manual
Sample Column. Lists the memory locations for the acquired data.
2
Address Group. Lists data from channels connected to the 8031, 8032, 8051
and 8052 microcontroller address bus.
3
Data Group. Lists data from channels connected to the 8031, 8032, 8051
and 8052 microcontroller data bus.
4
Mnemonic Column. Lists the disassembled instructions and cycle types.
5
Control Group. Lists data from channels connected to 8031, 8032, 8051 and
8052 microcontroller control signals (shown symbolically).
6
Timestamp. Lists the timestamp values when a timestamp selection is made.
Information on basic operations describes how you can select a timestamp.
The Software display format shows only the first fetch of executed instructions.
Flushed cycles and extensions are not shown, even though they are part of the
executed instruction.
The Control Flow display format shows only the first fetch of instructions that
change the flow of control.
TMS 140 Microcontroller Support Instruction Manual
2–5
Acquiring and Viewing Disassembled Data
Instructions that generate a change in the flow of control in the 8031, 8032, 8051
and 8052 microcontroller are as follows:
The Subroutine display format shows only the first fetch of subroutine call and
return instructions. It will display conditional subroutine calls if they are
considered to be taken.
ACALLLCALLRETRETI
Instructions that generate a subroutine call or a return in the 8031, 8032, 8051
and 8052 microcontroller are as follows:
BGNDDIVSLPSTOPRTS
BKPTDIVSLRESETSTOP
Changing How Data is Displayed
There are fields and features that allow you to further modify displayed data to
suit your needs. You can make selections unique to the 8031, 8032, 8051 and
8052 support to do the following tasks:
HChange how data is displayed across all display formats
HChange the interpretation of disassembled cycles
Optional Display
Selections
You can make optional display selections for disassembled
analyze the data. You can make these selections in the Disassembly property
page (the Disassembly Format Definition overlay).
data to help you
2–6
In addition to the common display options (described in the information on basic
operations), you can select the microcontroller from which to disassemble data.
The Processor field selection determines how Special Function Registers (SFRs)
are decoded. Selections are 8031/51 or 8032/52. If you select the incorrect
microcontroller, some registers will be labeled incorrectly.
TMS 140 Microcontroller Support Instruction Manual
Acquiring and Viewing Disassembled Data
Marking Cycles
The disassembler has a Mark Opcode function that allows you to change the
interpretation of a cycle type. Using this function, you can select a cycle and
change it to one of the following cycle types:
HOpcode (the first word of an instruction)
HExtension (a subsequent word of an instruction)
HFlush (an opcode or extension that is fetched but not executed)
Mark selections are as follows:
Opcode
Extension
Flush
Undo mark
Information on basic operations contains more details on marking cycles.
Viewing an Example of Disassembled Data
A demonstration system file (or demonstration reference memory) is provided so
you can see an example of how your 8031, 8032, 8051 and 8052 microcontroller
bus cycles and instruction mnemonics look when they are disassembled. Viewing
the system file is not a requirement for preparing the module for use and you can
view it without connecting the logic analyzer to your SUT.
Information on basic operations describes how to view the file.
TMS 140 Microcontroller Support Instruction Manual
2–7
Acquiring and Viewing Disassembled Data
2–8
TMS 140 Microcontroller Support Instruction Manual
Specifications
Specifications
This chapter contains the following information:
HProbe adapter description
HSpecification tables
HDimensions of the probe adapter
HChannel assignment tables
HDescription of how the module acquires 8031, 8032, 8051 and 8052 signals
HList of other accessible microcontroller signals and extra acquisition channels
Probe Adapter Description
The probe adapter is nonintrusive hardware that allows the logic analyzer to
acquire data from a microcontroller in its own operating environment with little
effect, if any, on that system. Information on basic operations contains a figure
showing the logic analyzer connected to a typical probe adapter. Refer to that
figure while reading the following description.
The probe adapter consists of a circuit board and a socket for a 8031, 8032, 8051
and 8052 microcontroller. The probe adapter connects to the microcontroller in
the SUT. Signals from the microcontroller-based system flow from the probe
adapter to the channel groups and through the probe signal leads to the module.
The probe adapter accommodates the Intel 8031, 8032, 8051 and 8052 microcontroller in a 40-pin DIP package. You can also use other clips and adapters with
the probe adapter to connect to the microcontrollers listed in Table 3–1.
T able 3–1: Supported microcontrollers
NamePackage
8031/32/51/52
8031/32/51/52
Refer to the Replaceable Mechanical Parts chapter for part numbers of the
various clip and adapters.
Socketed/soldered 40- and 48-pin DIP
Socketed/soldered 44-, 68- and 84-pin PLCC
TMS 140 Microcontroller Support Instruction Manual
3–1
Specifications
Specifications
These specifications are for a probe adapter connected between a compatible
Tektronix logic analyzer and a SUT. Table 3–2 shows the electrical requirements
the SUT must produce for the support to acquire correct data.
In Table 3–2, for the 68/102/136-channel module, one podlet load is 20 k in
parallel with 2 pF. For the 96-channel module, one podlet load is 100 k in
parallel with 10 pF.
T able 3–2: Electrical specifications
CharacteristicsRequirements
SUT DC power requirements
Voltage5.0 V ±.25 V
Current75 mA (I max), 26 mA (I typical)
SUT clock rateMax. 30 MHz
Minimum setup time required
A15-A0 (with respect to falling ALE)8.3 ns
D7-D0 (with respect to rising RD~, to rising PSEN
and/or to rising WR~)
8.3 ns
RST5.0 ns
All other signals8.3 ns
Minimum hold time required
A15-A0 (with respect to falling ALE)3.3 ns
D7-D0 (with respect to rising RD~, to rising PSEN~
TMS 140 Microcontroller Support Instruction Manual
Table 3–3 shows the environmental specifications.
T able 3–3: Environmental specifications*
CharacteristicDescription
Temperature
Specifications
Maximum operating
Minimum operating0° C (+32° F)
Non-operating–55° C to +75° C (–67° to +167° F)
Humidity10 to 95% relative humidity
Altitude
Operating4.5 km (15,000 ft) maximum
Non-operating15 km (50,000 ft) maximum
Electrostatic immunityThe probe adapter is static sensitive
*Designed to meet Tektronix standard 062-2847-00 class 5.
[
Not to exceed 8031, 8032, 8051 and 8052 microcontroller thermal considerations.
Forced air cooling might be required across the CPU.
+50° C (+122° F)[
Table 3–4 shows the certifications and compliances that apply to the probe
adapter.
T able 3–4: Certifications and compliances
EC ComplianceThere are no current European Directives that apply to this product.
Figure 3–1 shows the dimensions of the probe adapter. Information on basic
operations shows the vertical clearance of the channel and clock probes when
connected to a probe adapter in the description of general requirements and
restrictions.
TMS 140 Microcontroller Support Instruction Manual
3–3
Specifications
74 mm
(2.93 in)
13.4 mm
(.53 in)
28 mm
(1.1 in)
48 mm
(1.9 in)
Pin 1
Channel Assignments
7 mm (.26 in)
Figure 3–1: Minimum clearance of the DIP probe adapter.
Channel assignments shown in Table 3–5 through Table 3–13 use the following
conventions:
HAll signals are required by the support unless indicated otherwise.
HChannels are shown starting with the most significant bit (MSB) descending
to the least significant bit (LSB).
HChannel group assignments are for all modules unless otherwise noted.
HA tilde (~) following a signal name indicates an active low signal.
HA signal that is buffered on the probe adapter has an _B following its name.
HAn equals sign (=) following a signal name indicates that it is double probed.
Table 3–5 shows the probe section and channel assignments for the Address
group and the microcontroller signal to which each channel connects. By default,
this channel group is displayed in hexadecimal.
3–4
TMS 140 Microcontroller Support Instruction Manual
Table 3–6 shows the probe section and channel assignments for the Data group
and the microcontroller signal to which each channel connects. By default, this
channel group is displayed in hexadecimal.
NOTE. Since the microcontroller multiplexes address A7-A0 and data D7-D0 (as
the AD7-AD0 signals), the D0:7-0 channel probe does not need to be connected.
These channels are not considered to be extra channels, even though they are not
connected. Do not use them to make connections to other signals in your SUT.
TMS 140 Microcontroller Support Instruction Manual
3–5
Specifications
T able 3–6: Data group channel assignments
Bit
order
1D0:1AD1D1
0D0:0AD0D0
Section:
channel
8031, 8032, 8051 and
8052 signal name
Derived signal name
Table 3–7 shows the probe section and channel assignments for the Control
group and the microcontroller signal to which each channel connects. By default,
this channel group is displayed symbolically.
Table 3–8 shows the probe section and channel assignments for the Intr group
and the microcontroller signal to which each channel connects. By default, this
channel group is not visible.
3–6
T able 3–8: Intr group channel assignments
Bit
order
1
0
* Signal not required for disassembly .
Section:
channel
C2:5
C2:4
8031, 8032, 8051 and
8052 signal name
INT0~*
INT1~*
Derived signal name
INT0_B~
INT1_B~
Table 3–9 shows the probe section and channel assignments for the Misc group
and the microcontroller signal to which each channel connects. By default, this
channel group is not visible.
TMS 140 Microcontroller Support Instruction Manual
T able 3–9: Misc group channel assignments
Specifications
Bit
order
1
0
* Signal not required for disassembly .
Section:
channel
D1:3
D1:2
8031, 8032, 8051 and
8052 signal name
RST*
EA~*
Derived signal name
RST
EA~
Table 3–10 shows the probe section and channel assignments for the Timer group
and the microcontroller signal to which each channel connects. By default, this
channel group is not visible.
T able 3–10: T imer group channel assignments
Bit
order
1
0
* Signal not required for disassembly .
Section:
channel
C2:2
C2:3
8031, 8032, 8051 and
8052 signal name
T1*
T0*
Derived signal name
T1_B
T0_B
Table 3–11 shows the probe section and channel assignments for the Serial group
and the microcontroller signal to which each channel connects. By default, this
channel group is not visible.
T able 3–11: Serial group channel assignments
Bit
order
1
0
* Signal not required for disassembly .
Section:
channel
C2:7
C2:6
Table 3–12 shows the probe section and channel assignments for the Port_1
group and the microcontroller signal to which each channel connects. By default,
this channel group is not visible.
TMS 140 Microcontroller Support Instruction Manual
8031, 8032, 8051 and
8052 signal name
RXD*
TXD*
Derived signal name
RXD_B
TXD_B
3–7
Specifications
Á
Á
Á
Á
T able 3–12: Port–1 group channel assignments
Bit
order
7
6
5
4
3
2
1
0
* Signal not required for disassembly .
Á
Section:
channel
A2:7
A2:6
A2:5
A2:4
A2:3
ÁÁÁ
A2:2
A2:1
A2:0
8031, 8032, 8051 and
8052 signal name
P1_7*
P1_6*
P1_5*
P1_4*
P1_3*
БББББ
P1_2*
P1_1*
P1_0*
Derived signal name
P1_7_B
P1_6_B
P1_5_B
P1_4_B
P1_3_B
ББББББ
P1_2_B
P1_1_B
P1_0_B
Table 3–13 shows the probe section and channel assignments for the clock probes
(not part of any group) and the 8031, 8032, 8051 and 8052 signal to which each
channel connects.
These channels are used only to clock in data; they are not acquired or displayed.
To acquire data from any of the signals shown in Table 3–13, you must connect
another channel probe to the signal, a technique called double probing. An equals
sign (=) following a signal name indicates that it is already double probed.
TMS 140 Microcontroller Support Instruction Manual
How Data is Acquired
Specifications
This part of this chapter explains how the module acquires 8031, 8032, 8051 and
8052 signals using the TMS 140 software and probe adapter. This part also
provides additional information on microcontroller signals accessible on or not
accessible on the probe adapter, and on extra acquisition channels available for
you to use for additional connections.
Custom Clocking
A special clocking program is loaded to the module every time you load the 8031
support. This special clocking is called Custom.
With Custom clocking, the module logs in signals from multiple groups of
channels at different times as they become valid on the 8031, 8032, 8051 and
8052 bus. The module then sends all the logged-in signals to the trigger machine
and to the acquisition memory of the module for storage.
In Custom clocking, the module clocking state machine (CSM) generates one
master sample for each microcontroller bus cycle, no matter how many clock
cycles are contained in the bus cycle.
Acquiring Read cycles from External Program Memory. Lower address and data
buses are multiplexed on every version of the 8031, 8032, 8051 and 8052
microcontroller. The first sample point of program memory acquires only address
signals valid on the falling edge of ALE_B. The second sample point acquires
data and control signals on the rising edge of the PSEN_B~ signal.
Figure 3–2 shows the sample point and the master sample point.
TMS 140 Microcontroller Support Instruction Manual
3–9
Specifications
ALE_ B
PSEN_B~
AD0–AD7
A8–A15
Master sample point[
Sample point 1
A0 – A15
[Channels not set up in a channel group by the TMS 140 software are logged with the Master sample.
Sample point 2
ALE_B
PSEN_B~
D0 – D7
P1_0_B – P1_7_B
RXD_B
TXD_B
INT0_B~
INT1_B~
T0_B
T1_B
WR_B~
RD_B~
RST
EA~
Figure 3–2: 8031, 8032, 8051 and 8052 external program memory read timing
Acquiring Read and Write cycles from External Data Memory. The first sample
point of data memory acquires all 16 bits of data memory address signals that are
valid on the falling edge of ALE_B. The second sample point acquires data and
control signals on the rising edge of either RD_B~ or WR_B~.
3–10
Figure 3–3 shows the sample points and the master sample for data memory.
TMS 140 Microcontroller Support Instruction Manual
ALE_ B
PSEN_B~
RD_B~/WR_B~
AD0–AD7
A8–A15
Specifications
Master sample point[
Sample point 1
A0 – A15
[Channels not set up in a channel group by the TMS 140 software are logged with the Master sample.
Sample point 2
D0 – D7
ALE_B
PSEN_B~
P1_0_B – P1_7_B
RXD_B
TXD_B
INT0_B~
INT1_B~
T0_B
T1_B
WR_B~
RD_B
RST
EA~
Figure 3–3: 8031, 8032, 8051 and 8052 external data memory read and write timing
Clocking Options
No variations are available for the clocking algorithm for the 8031, 8032, 8051
and 8052 microcontrollers.
Alternate Microcontroller Connections
You can connect to other signals that are not required by the support so that you
can analyze other signal activity in your system. These signals might or might
not be accessible on the probe adapter board. The following paragraphs and table
list signals that are not accessible on the probe adapter board.
For a list of signals required or not required for disassembly, refer to the channel
assignment tables beginning on page 3–4. Remember that these channels are
already included in a channel group. If you do connect these channels to other
signals, you should set up another channel group for them.
TMS 140 Microcontroller Support Instruction Manual
3–11
Specifications
Signals Not On the Probe
Adapter
Extra Channels
The probe adapter does not provide access for the XTAL1 or XTAL2 signals.
Table 3–14 lists extra sections and channels that are left after you have connected
all the probes used by the support. You can use these extra channels to make
alternate SUT connections.
Channels not defined in a channel group by the TMS 140 software are logged in
with the Master sample point.
These channels are not defined in any channel group and data acquired from
them is not displayed. To display data, you will need to define a channel group.
3–12
TMS 140 Microcontroller Support Instruction Manual
WARNING
The following servicing instructions are for use only by qualified personnel. To
avoid injury, do not perform any servicing other than that stated in the operating
instructions unless you are qualified to do so. Refer to all Safety Summaries
before performing any service.
Maintenance
Maintenance
This chapter contains a circuit description of the probe adapter.
Probe Adapter Circuit Description
The probe adapter contains four buffers, U210, U240, U310, and U340, to reduce
the electrical loading on the microcontroller signals. Another buffer, U230,
suppresses spurious noise on critical clock lines.
Replacing Signal Leads
Information on basic operations describes how to replace signal leads (individual
channel and clock probes).
Replacing Protective Sockets
Information on basic operations describes how to replace protective sockets.
TMS 140 Microcontroller Support Instruction Manual
4–1
Maintenance
4–2
TMS 140 Microcontroller Support Instruction Manual
Replaceable Electrical Parts
Replaceable Electrical Parts
This chapter contains a list of the replaceable electrical components for the
TMS 140 8031, 8032, 8051 and 8052 microcontroller support. Use this list to
identify and order replacement parts.
Parts Ordering Information
Replacement parts are available through your local Tektronix field office or
representative.
Changes to Tektronix products are sometimes made to accommodate improved
components as they become available and to give you the benefit of the latest
improvements. Therefore, when ordering parts, it is important to include the
following information in your order:
HPart number
HInstrument type or model number
HInstrument serial number
HInstrument modification number, if applicable
If you order a part that has been replaced with a different or improved part, your
local Tektronix field office or representative will contact you concerning any
change in part number.
Change information, if any, is located at the rear of this manual.
Using the Replaceable Electrical Parts List
The tabular information in the Replaceable Electrical Parts List is arranged for
quick retrieval. Understanding the structure and features of the list will help you
find all of the information you need for ordering replacement parts. The
following table describes each column of the electrical parts list.
TMS 140 Microcontroller Support Instruction Manual
5–1
Replaceable Electrical Parts
Parts list column descriptions
ColumnColumn nameDescription
1Component numberThe component number appears on diagrams and circuit board illustrations, located in the diagrams
section. Assembly numbers are clearly marked on each diagram and circuit board illustration in the
Diagrams section, and on the mechanical exploded views in the Replaceable Mechanical Parts list
section. The component number is obtained by adding the assembly number prefix to the circuit
number (see Component Number illustration following this table).
The electrical parts list is arranged by assemblies in numerical sequence (A1, with its subassemblies
and parts, precedes A2, with its subassemblies and parts).
Chassis-mounted parts have no assembly number prefix, and they are located at the end of the
electrical parts list.
2T ektronix part numberUse this part number when ordering replacement parts from Tektronix.
3 and 4Serial numberColumn three indicates the serial number at which the part was first effective. Column four indicates
the serial number at which the part was discontinued. No entry indicates the part is good for all serial
numbers.
5Name & descriptionAn item name is separated from the description by a colon (:). Because of space limitations, an item
name may sometimes appear as incomplete. Use the U.S. Federal Catalog handbook H6-1 for
further item name identification.
6Mfr. codeThis indicates the code number of the actual manufacturer of the part.
7Mfr. part numberThis indicates the actual manufacturer’s or vendor’s part number.
Abbreviations
Component Number
List of Assemblies
Chassis Parts
Mfr. Code to Manufacturer
Cross Index
Abbreviations conform to American National Standard ANSI Y1.1–1972.
Component number
A23A2R1234 A23 R1234
Assembly numberCircuit number
Read: Resistor 1234 (of Subassembly 2) of Assembly 23
A2
Subassembly number
(optional)
A list of assemblies is located at the beginning of the electrical parts list. The
assemblies are listed in numerical order. When a part’s complete component
number is known, this list will identify the assembly in which the part is located.
Chassis-mounted parts and cable assemblies are located at the end of the
Replaceable Electrical Parts List.
The table titled Manufacturers Cross Index shows codes, names, and addresses of
manufacturers or vendors of components listed in the parts list.
5–2
TMS 140 Microcontroller Support Instruction Manual
Replaceable Electrical Parts
TMS 140 Microcontroller Support Instruction Manual
5–3
Replaceable Electrical Parts
5–4
TMS 140 Microcontroller Support Instruction Manual
Replaceable Mechanical Parts
Replaceable Mechanical Parts
This chapter contains a list of the replaceable mechanical components for the
TMS 140 8031, 8032, 8051 and 8052 microcontroller support. Use this list to
identify and order replacement parts.
Parts Ordering Information
Replacement parts are available through your local Tektronix field office or
representative.
Changes to Tektronix products are sometimes made to accommodate improved
components as they become available and to give you the benefit of the latest
improvements. Therefore, when ordering parts, it is important to include the
following information in your order:
HPart number
HInstrument type or model number
HInstrument serial number
HInstrument modification number, if applicable
If you order a part that has been replaced with a different or improved part, your
local Tektronix field office or representative will contact you concerning any
change in part number.
Change information, if any, is located at the rear of this manual.
Using the Replaceable Mechanical Parts List
The tabular information in the Replaceable Mechanical Parts List is arranged for
quick retrieval. Understanding the structure and features of the list will help you
find all of the information you need for ordering replacement parts. The
following table describes the content of each column in the parts list.
TMS 140 Microcontroller Support Instruction Manual
6–1
Replaceable Mechanical Parts
Parts list column descriptions
ColumnColumn nameDescription
1Figure & index numberItems in this section are referenced by figure and index numbers to the exploded view illustrations
that follow.
2T ektronix part numberUse this part number when ordering replacement parts from Tektronix.
3 and 4Serial numberColumn three indicates the serial number at which the part was first effective. Column four
indicates the serial number at which the part was discontinued. No entries indicates the part is
good for all serial numbers.
5QtyThis indicates the quantity of parts used.
6Name & descriptionAn item name is separated from the description by a colon (:). Because of space limitations, an
item name may sometimes appear as incomplete. Use the U.S. Federal Catalog handbook H6-1
for further item name identification.
7Mfr. codeThis indicates the code of the actual manufacturer of the part.
8Mfr. part numberThis indicates the actual manufacturer’s or vendor’s part number.
Abbreviations
Chassis Parts
Mfr. Code to Manufacturer
Cross Index
Abbreviations conform to American National Standard ANSI Y1.1–1972.
Chassis-mounted parts and cable assemblies are located at the end of the
Replaceable Electrical Parts List.
The table titled Manufacturers Cross Index shows codes, names, and addresses of
manufacturers or vendors of components listed in the parts list.
6–2
TMS 140 Microcontroller Support Instruction Manual
Replaceable Mechanical Parts
Manufacturers cross index
Mfr.
code
05276ITT POMONA ELECTRONICS DIV1500 E 9TH ST
1Y013ACACIA/DEANCO3101 SW 153RD DRIVEBEAVERTON OR 97006
53387MINNESOTA MINING MFG COPO BOX 2963AUSTIN TX 78769–2963
63058MCKENZIE TECHNOLOGY44370 OLD WARMS SPRINGS BLVDFREMONT CA 94538
80009TEKTRONIX INC14150 SW KARL BRAUN DR
TK007AP PRODUCTS INC72 CORWIN DRIVE
ManufacturerAddressCity , state, zip code
PO BOX 2767
PO BOX 500
PO BOX 110
POMONA CA 91766–3835
BEAVERT ON, OR 97077–0001
PAINESVILLE OH 44077
TMS 140 Microcontroller Support Instruction Manual
6–3
Replaceable Mechanical Parts
Replaceable mechanical parts list
Fig. &
index
number
1–0010–0548–001PROBE ADAPTER,8031/32/51/52, DIP40 SOCKETED,80009010–0548–00
–2131–5267–002CONN,HDR:PCB,MALE,STR,2 X 40,0.1 CTR,0.235 MLG X
–3671–2445–001CIRCUIT BD ASSY:8031/32/51/52,DIP–40,SOCKETED80009671–2445–00
–4136–0916–002SOCKET,DIP:PCB,FEMALE,STR,2 X 20, 0.1 X 0 (U220)63058DIP–640–101B
Subroutine display format, 2–6
support setup, 2–1
SUT, definition, ix
SUT hardware Reset, 1–2
symbol table, Control channel group, 2–2
system file, demonstration, 2–7