Professional Documents
Culture Documents
com
80186/80188
HIGH-INTEGRATION 16-BIT MICROPROCESSORS
Y
High-Performance Processor
4 Mbyte/Sec Bus Bandwidth
Interface @ 8 MHz (80186)
5 Mbyte/Sec Bus Bandwidth
Interface @ 10 MHz (80186)
Available in 68 Pin:
Plastic Leaded Chip Carrier (PLCC)
Ceramic Pin Grid Array (PGA)
Ceramic Leadless Chip Carrier (LCC)
Available in EXPRESS
Standard Temperature with Burn-In
Extended Temperature Range
( b 40 C to a 85 C)
272430 1
*Other brands and names are the property of their respective owners.
Information in this document is provided in connection with Intel products. Intel assumes no liability whatsoever, including infringement of any patent or
copyright, for sale and use of Intel products except as provided in Intels Terms and Conditions of Sale for such products. Intel retains the right to make
changes to these specifications at any time, without notice. Microcomputer Products may have minor variations to this specification known as errata.
November 1994
COPYRIGHT INTEL CORPORATION, 1995
DataSheet 4 U .com
www.DataSheet4U.com
PAGE
FUNCTIONAL DESCRIPTION 9
Introduction 9
CLOCK GENERATOR 9
Oscillator 9
Clock Generator 9
READY Synchronization 9
RESET Logic 9
LOCAL BUS CONTROLLER 9
Memory/Peripheral Control 10
Local Bus Arbitration 10
Local Bus Controller and Reset 10
PERIPHERAL ARCHITECTURE 10
Chip-Select/Ready Generation Logic 10
DMA Channels 11
Timers 11
Interrupt Controller 12
CONTENTS
PAGE
2
2
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Contacts Facing Up
272430 2
272430 3
3
3
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Leads Facing Up
272430 4
4
4
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Table 1. Pin Descriptions
Symbol
Pin
No.
Type
VCC
9
43
VSS
26
60
System Ground.
RESET
57
Reset Output indicates that the CPU is being reset, and can be used as a system
reset. It is active HIGH, synchronized with the processor clock, and lasts an
integer number of clock periods corresponding to the length of the RES signal.
X1
X2
59
58
I
O
CLKOUT
56
Clock Output provides the system with a 50% duty cycle waveform. All device
pin timings are specified relative to CLKOUT.
RES
24
TEST
47
I/O
TEST is examined by the WAIT instruction. If the TEST input is HIGH when
WAIT execution begins, instruction execution will suspend. TEST will be
resampled until it goes LOW, at which time execution will resume. If interrupts
are enabled while the processor is waiting for TEST, interrupts will be serviced.
During power-up, active RES is required to configure TEST as an input. This pin
is synchronized internally.
TMR IN 0
TMR IN 1
20
21
I
I
Timer Inputs are used either as clock or control signals, depending upon the
programmed timer mode. These inputs are active HIGH (or LOW-to-HIGH
transitions are counted) and internally synchronized.
TMR OUT 0
TMR OUT 1
22
23
O
O
DRQ0
DRQ1
18
19
I
I
DMA Request is asserted HIGH by an external device when it is ready for DMA
Channel 0 or 1 to perform a transfer. These signals are level-triggered and
internally synchronized.
NMI
46
INT0
INT1/SELECT
INT2/INTA0
INT3/INTA1/IRQ
45
44
42
41
I
I
I/O
I/O
NOTE:
Pin names in parentheses apply to the 80188.
5
5
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Table 1. Pin Descriptions (Continued)
Pin
No.
Type
A19/S6
A18/S5
A17/S4
A16/S3
65
66
67
68
O
O
O
O
AD15 (A15)
AD14 (A14)
AD13 (A13)
AD12 (A12)
AD11 (A11)
AD10 (A10)
AD9 (A9)
AD8 (A8)
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
1
3
5
7
10
12
14
16
2
4
6
8
11
13
15
17
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
Address/Data Bus signals constitute the time multiplexed memory or I/O address (T1)
and data (T2, T3, TW, and T4) bus. The bus is active HIGH. A0 is analogous to BHE for
the lower byte of the data bus, pins D7 through D0. It is LOW during T1 when a byte is
to be transferred onto the lower portion of the bus in memory or I/O operations. BHE
does not exist on the 80188, as the data bus is only 8 bits wide.
BHE/S7
(S7)
64
During T1 the Bus High Enable signal should be used to determine if data is to be
enabled onto the most significant half of the data bus; pins D15 D8. BHE is LOW
during T1 for read, write, and interrupt acknowledge cycles when a byte is to be
transferred on the higher half of the bus. The S7 status information is available during
T2, T3, and T4. S7 is logically equivalent to BHE. BHE/S7 floats during HOLD. On the
80188, S7 is high during normal operation.
Symbol
A0
Value
0
0
1
1
0
1
0
1
Function
Word Transfer
Byte Transfer on upper half of data bus (D15D8)
Byte Transfer on lower half of data bus (D7 D0)
Reserved
ALE/QS0
61
WR/QS1
63
Write Strobe/Queue Status 1 indicates that the data on the bus is to be written into a
memory or an I/O device. WR is active for T2, T3, and TW of any write cycle. It is active
LOW, and floats during HOLD. When the processor is in queue status mode, the ALE/
QS0 and WR/QS1 pins provide information about processor/instruction queue
interaction.
QS1
QS0
Queue Operation
0
0
1
1
0
1
1
0
No queue operation
First opcode byte fetched from the queue
Subsequent byte fetched from the queue
Empty the queue
NOTE:
Pin names in parentheses apply to the 80188.
6
6
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Pin
No.
Type
RD/QSMD
62
I/O
Read Strobe is an active LOW signal which indicates that the processor is
performing a memory or I/O read cycle. It is guaranteed not to go LOW
before the A/D bus is floated. An internal pull-up ensures that RD is HIGH
during RESET. Following RESET the pin is sampled to determine whether
the processor is to provide ALE, RD, and WR, or queue status information.
To enable Queue Status Mode, RD must be connected to GND. RD will
float during bus HOLD.
ARDY
55
SRDY
49
LOCK
48
LOCK output indicates that other system bus masters are not to gain
control of the system bus while LOCK is active LOW. The LOCK signal is
requested by the LOCK prefix instruction and is activated at the beginning
of the first data cycle associated with the instruction following the LOCK
prefix. It remains active until the completion of that instruction. No
instruction prefetching will occur while LOCK is asserted. When executing
more than one LOCK instruction, always make sure there are 6 bytes of
code between the end of the first LOCK instruction and the start of the
second LOCK instruction. LOCK is driven HIGH for one clock during RESET
and then floated.
S0
S1
S2
52
53
54
O
O
O
S1
S0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Interrupt Acknowledge
Read I/O
Write I/O
Halt
Instruction Fetch
Read Data from Memory
Write Data to Memory
Passive (no bus cycle)
7
7
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Type
HOLD
HLDA
50
51
I
O
HOLD indicates that another bus master is requesting the local bus. The
HOLD input is active HIGH. HOLD may be asynchronous with respect to the
processor clock. The processor will issue a HLDA (HIGH) in response to a
HOLD request at the end of T4 or Ti. Simultaneous with the issuance of
HLDA, the processor will float the local bus and control lines. After HOLD is
detected as being LOW, the processor will lower HLDA. When the processor
needs to run another bus cycle, it will again drive the local bus and control
lines.
UCS
34
LCS
33
MCS0
MCS1
MCS2
MCS3
38
37
36
35
O
O
O
O
Mid-Range Memory Chip Select signals are active LOW when a memory
reference is made to the defined mid-range portion of memory (8K 512K).
These lines are not floated during bus HOLD. The address ranges activating
MCS0 3 are software programmable.
PCS0
PCS1
PCS2
PCS3
PCS4
25
27
28
29
30
O
O
O
O
O
Peripheral Chip Select signals 0 4 are active LOW when a reference is made
to the defined peripheral area (64 Kbyte I/O space). These lines are not
floated during bus HOLD. The address ranges activating PCS0 4 are
software programmable.
PCS5/A1
31
PCS6/A2
32
DT/R
40
DEN
39
Symbol
NOTE:
Pin names in parentheses apply to the 80188.
8
8
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
FUNCTIONAL DESCRIPTION
Introduction
The following Functional Description describes the
base architecture of the 80186. The 80186 is a very
high integration 16-bit microprocessor. It combines
1520 of the most common microprocessor system
components onto one chip while providing twice the
performance of the standard 8086. The 80186 is object code compatible with the 8086/8088 microprocessors and adds 10 new instruction types to the
8086/8088 instruction set.
For more detailed information on the architecture,
please refer to the 80C186XL/80C188XL Users
Manual. The 80186 and the 80186XL devices are
functionally and register compatible.
CLOCK GENERATOR
The processor provides an on-chip clock generator
for both internal and external clock generation. The
clock generator features a crystal oscillator, a divideby-two counter, synchronous and asynchronous
ready inputs, and reset circuitry.
Oscillator
The oscillator circuit is designed to be used with a
parallel resonant fundamental mode crystal. This is
used as the time base for the processor. The crystal
frequency selected will be double the CPU clock frequency. Use of an LC or RC circuit is not recommended with this oscillator. If an external oscillator is
used, it can be connected directly to the input pin X1
in lieu of a crystal. The output of the oscillator is not
directly available outside the processor. The recommended crystal configuration is shown in Figure 5.
Clock Generator
The clock generator provides the 50% duty cycle
processor clock for the processor. It does this by
dividing the oscillator output by 2 forming the symmetrical clock. If an external oscillator is used, the
state of the clock generator will change on the falling edge of the oscillator signal. The CLKOUT pin
provides the processor clock signal for use outside
the device. This may be used to drive other system
components. All timings are referenced to the output
clock.
READY Synchronization
The processor provides both synchronous and asynchronous ready inputs. In addition, the processor, as
part of the integrated chip-select logic, has the capability to program WAIT states for memory and
peripheral blocks.
RESET Logic
The processor provides both a RES input pin and a
synchronized RESET output pin for use with other
system components. The RES input pin is provided
with hysteresis in order to facilitate power-on Reset
generation via an RC network. RESET output is
guaranteed to remain active for at least five clocks
given a RES input of at least six clocks.
272430 5
x
80186-10 (10 MHz) 20
80186
(8 MHz) 16
Figure 5. Recommended
Crystal Configuration
9
9
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Memory/Peripheral Control
The processor provides ALE, RD, and WR bus control signals. The RD and WR signals are used to
strobe data from memory or I/O to the processor or
to strobe data from the processor to memory or I/O.
The ALE line provides a strobe to latch the address
when it is valid. The local bus controller does not
provide a memory/I/O signal. If this is required, use
the S2 signal (which will require external latching),
make the memory and I/O spaces nonoverlapping,
or use only the integrated chip-select circuitry.
either memory or I/O space. Internal logic will recognize control block addresses and respond to bus cycles. During bus cycles to internal registers, the bus
controller will signal the operation externally (i.e., the
RD, WR, status, address, data, etc., lines will be driven as in a normal bus cycle), but D150 (D70),
SRDY, and ARDY will be ignored. The base address
of the control block must be on an even 256-byte
boundary (i.e., the lower 8 bits of the base address
are all zeros).
The control block base address is programmed by a
16-bit relocation register contained within the control
block at offset FEH from the base address of the
control block. It provides the upper 12 bits of the
base address of the control block.
In addition to providing relocation information for the
control block, the relocation register contains bits
which place the interrupt controller into Slave Mode,
and cause the CPU to interrupt upon encountering
ESC instructions.
PERIPHERAL ARCHITECTURE
All of the integrated peripherals are controlled by
16-bit registers contained within an internal 256-byte
control block. The control block may be mapped into
UPPER MEMORY CS
The processor provides a chip select, called UCS,
for the top of memory. The top of memory is usually
used as the system memory because after reset the
processor begins executing at memory location
FFFF0H.
LOWER MEMORY CS
The processor provides a chip select for low memory called LCS. The bottom of memory contains the
interrupt vector table, starting at location 00000H.
10
10
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
The lower limit of memory defined by this chip select
is always 0H, while the upper limit is programmable.
By programming the upper limit, the size of the
memory block is defined.
MID-RANGE MEMORY CS
DMA Channels
PERIPHERAL CHIP SELECTS
The processor can generate chip selects for up to
seven peripheral devices. These chip selects are active for seven contiguous blocks of 128 bytes above
a programmable base address. The base address
may be located in either memory or I/O space. Seven CS lines called PCS0 6 are generated by the
processor. PCS5 and PCS6 can also be programmed to provide latched address bits A1 and A2.
If so programmed, they cannot be used as peripheral selects. These outputs can be connected directly
to the A0 and A1 pins used for selecting internal
registers of 8-bit peripheral chips.
Timers
The processor provides three internal 16-bit programmable timers. Two of these are highly flexible
and are connected to four external pins (2 per timer).
They can be used to count external events, time external events, generate nonrepetitive waveforms,
etc. The third timer is not connected to any external
pins, and is useful for real-time coding and time delay applications. In addition, the third timer can be
used as a prescaler to the other two, or as a DMA
request source.
11
11
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Interrupt Controller
The processor can receive interrupts from a number
of sources, both internal and external. The internal
interrupt controller serves to merge these requests
on a priority basis, for individual service by the CPU.
Internal interrupt sources (Timers and DMA channels) can be disabled by their own control registers
or by mask bits within the interrupt controller. The
interrupt controller has its own control register that
sets the mode of operation for the controller.
mode.
#
#
#
#
#
12
12
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
272430 6
NOTE:
Pin names in parenthesis apply to 80188.
(1) BHE does not exist on the 80188, this is only required for a 16-bit data bus.
13
13
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
272430 7
NOTE:
Pin names in parentheses apply to 80188.
(1) BHE does not exist on the 80188, this is only required for a 16-bit data bus.
14
14
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
NOTICE: This is a production data sheet. The specifications are subject to change without notice.
D.C. CHARACTERISTICS
Parameter
Min
Max
Units
b 0.5
a 0.8
2.0
VCC a 0.5
VIH1
3.0
VCC a 0.5
VOL
0.45
Ia e 2.5 mA for S0 S2
Ia e 2.0 mA for all other Outputs
VOH
Ioa e b 400 mA
ICC
VIL
VIH
2.4
Test Conditions
600*
mA
TA e b 40 C
550
mA
T A e 0 C
415
mA
TA e a 70 C
g 10
mA
0V k VIN k VCC
ILO
g 10
mA
VCLO
0.6
Ia e 4.0 mA
VCHO
Ioa e b 200 mA
VCLI
b 0.5
0.6
VCHI
3.9
VCC a 1.0
CIN
Input Capacitance
10
pF
CIO
I/O Capacitance
20
pF
ILI
4.0
15
15
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
A.C. CHARACTERISTICS
Parameter
8 MHz
Min
10 MHz
Max
20
Min
Units
Max
TDVCL
15
ns
TCLDX
TARYHCH
Asynchronous Ready
(ARDY) Active Setup
Time(1)
10
ns
20
15
ns
TARYLCL
35
25
ns
TCLARX
15
15
ns
TARYCHL
Asynchronous Ready
Inactive Hold Time
15
15
ns
TSRYCL
20
20
ns
TCLSRY
15
15
ns
THVCL
HOLD Setup(1)
25
20
ns
TINVCH
25
25
ns
TINVCL
25
20
ns
Test
Conditions
55
44
ns
TCLAX
Address Hold
TCLAZ
35
TCLAX
30
ns
TCHCZ
TCHCV
45
40
ns
55
45
ns
TLHLL
ALE Width
TCHLH
35
30
ns
TCHLL
35
30
ns
10
TCLAX
10
TCLCL b 35
ns
TCLCL b 30
TCHCL b 25
ns
TLLAX
TCLDV
TCLDOX
TWHDX
TCVCTV
50
40
ns
TCHCTV
10
55
10
44
ns
TCVCTX
55
44
ns
TCVDEX
10
70
10
56
ns
10
TCHCL b 20
44
10
CL e 20 pF200 pF
all Outputs
(Except TCLTMV) @
8 MHz and 10 MHz
ns
40
ns
10
10
ns
TCLCL b 40
TCLCL b 34
ns
16
16
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Parameter
8 MHz
Min
10 MHz
Units
Max
Min
Max
10
56
10
44
TAZRL
TCLRL
RD Active Delay
10
70
TCLRH
RD Inactive Delay
10
55
TRHAV
RD Inactive to Address
Active
TCLHAV
TRLRH
RD Width
2TCLCL b 50
2TCLCL b 46
ns
TWLWH
WR Width
2TCLCL b 40
2TCLCL b 34
ns
TAVLL
TCLCH b 25
TCLCH b 19
ns
TCHSV
10
55
10
45
ns
TCLSH
10
65
10
50
ns
TCLTMV
60
48
ns
TCLRO
Reset Delay
60
48
ns
TCHQSV
35
28
ns
TCHDX
10
10
ns
TAVCH
10
10
ns
TCLLV
TCLCL b 40
5
ns
TCLCL b 40
50
65
Test
Conditions
ns
ns
ns
40
ns
60
ns
45
ns
100 pF max
@ 8 & 10 MHz
TCXCSX
35
66
TCHCSX
35
32
62.5
250
50
250
ns
10
ns
3.5 to 1.0V
10
35
ns
ns
CLKIN Requirements
TCKIN
CLKIN Period
TCKHL
TCKLH
ns
1.0 to 3.5V
TCLCK
25
20
ns
1.5V
TCHCK
25
20
ns
1.5V
10
10
TCLCL
CLKOUT Period
50
125
500
100
25
ns
500
ns
TCLCH
TCHCL
ns
1.5V
ns
1.5V
TCH1CH2
15
12
ns
1.0 to 3.5V
TCL2CL1
15
12
ns
3.5 to 1.0V
17
17
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Address
Asynchronous Ready Input
Clock Output
Clock Input
Chip Select
Control (DT/R, DEN, . . . )
Data Input
DEN
Logic Level High
IN:
L:
O:
QS:
R:
S:
SRY:
V:
W:
X:
Z:
Examples:
TCLAV Time from Clock low to Address valid
TCHLH Time from Clock high to ALE high
TCLCSV Time from Clock low to Chip Select valid
18
18
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS
MAJOR CYCLE TIMING
272430 8
NOTE:
Pin names in parentheses apply to the 80188.
19
19
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS (Continued)
MAJOR CYCLE TIMING (Continued)
NOTES:
1. INTA occurs one clock later in slave mode.
2. Status inactive just prior to T4.
3. If latched A1 and A2 are selected instead of PCS5 and PCS6, only TCLCSV is applicable.
4. Pin names in parentheses apply to the 80188.
272430 9
20
20
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS (Continued)
272430 10
272430 11
272430 12
21
21
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS (Continued)
272430 13
272430 14
22
22
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS (Continued)
READY TIMING
272430 15
23
23
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
272430 16
NOTE:
Pin names in parentheses apply to the 80188.
24
24
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
WAVEFORMS (Continued)
272430 17
EXPRESS
The Intel EXPRESS system offers enhancements to
the operational specifications of the microprocessor.
EXPRESS products are designed to meet the needs
of those applications whose operating requirements
exceed commercial standards.
Temperature
Range
Burn-In
PGA
Commercial
No
PLCC
Commercial
No
Prefix
LCC
Commercial
No
TA
PGA
Extended
No
QA
PGA
Commercial
Yes
QR
LCC
Commercial
Yes
NOTE:
Not all package/temperature range/speed combinations
are available.
25
25
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
EXECUTION TIMINGS
A determination of program execution timing must
consider the bus cycles necessary to prefetch instructions as well as the number of execution unit
cycles necessary to execute instructions. The following instruction timings represent the minimum execution time in clock cycles for each instruction. The
timings given are based on the following assumptions:
26
26
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
2/12
2/12*
Comments
DATA TRANSFER
MOV e Move:
Register to Register/Memory
1000100w
Register/memory to register
1000101w
Immediate to register/memory
1100011w
data
Immediate to register
1 0 1 1 w reg
data
Memory to accumulator
1010000w
Accumulator to memory
Register/memory to segment register
Segment register to register/memory
2/9
2/9*
12/13
12/13
8/16-bit
data if w e 1
3/4
3/4
8/16-bit
addr-low
addr-high
8*
1010001w
addr-low
addr-high
9*
10001110
2/9
2/13
10001100
2/11
2/15
Memory
11111111
mod 1 1 0 r/m
16
20
Register
0 1 0 1 0 reg
10
14
Segment register
0 0 0 reg 1 1 0
13
Immediate
011010s0
10
14
01100000
36
68
20
24
10
14
12
51
83
4/17
4/17*
10
10*
8*
data if w e 1
PUSH e Push:
data
data if s e 0
POP e Pop:
Memory
10001111
Register
0 1 0 1 1 reg
Segment register
0 0 0 reg 1 1 1
01100001
mod 0 0 0 r/m
(reg i 01)
XCHG e Exchange:
Register/memory with register
1000011w
1 0 0 1 0 reg
IN e Input from:
Fixed port
1110010w
Variable port
1110110w
port
1110011w
Variable port
1110111w
11010111
10001101
port
9*
7*
11
15
18
26
18
26
11000101
(mod i 11)
11000100
(mod i 11)
10011111
10011110
10011100
13
10011101
12
27
27
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
Comments
00101110
SS
00110110
DS
00111110
ES
00100110
3/10
3/10*
4/16
4/16*
3/4
3/4
3/10
3/10*
4/16
4/16*
3/4
3/4
3/15
3/15*
3/10
3/10*
4/16
4/16*
3/4
3/4
3/10
3/10*
4/16
4/16*
3/4
3/4
3/15
3/15*
ARITHMETIC
ADD e Add:
Reg/memory with register to either
000000dw
Immediate to register/memory
100000sw
mod 0 0 0 r/m
data
Immediate to accumulator
0000010w
data
data if w e 1
data if s w e 01
8/16-bit
000100dw
Immediate to register/memory
100000sw
mod 0 1 0 r/m
data
Immediate to accumulator
0001010w
data
data if w e 1
Register/memory
1111111w
mod 0 0 0 r/m
Register
0 1 0 0 0 reg
data if s w e 01
8/16-bit
INC e Increment:
SUB e Subtract:
Reg/memory and register to either
001010dw
100000sw
mod 1 0 1 r/m
data
0010110w
data
data if w e 1
data if s w e 01
8/16-bit
000110dw
100000sw
mod 0 1 1 r/m
data
0001110w
data
data if w e 1
Register/memory
1111111w
mod 0 0 1 r/m
Register
0 1 0 0 1 reg
data if s w e 01
8/16-bit
DEC e Decrement
CMP e Compare:
Register/memory with register
0011101w
3/10
3/10*
0011100w
3/10
3/10*
100000sw
mod 1 1 1 r/m
data
3/10
3/10*
0011110w
data
data if w e 1
1111011w
mod 0 1 1 r/m
data if s w e 01
3/4
3/4
3/10
3/10*
00110111
00100111
00111111
00101111
1111011w
2628
3537
3234
4143
2628
3537
3234
4143*
8/16-bit
Register-Byte
Register-Word
Memory-Byte
Memory-Word
28
28
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
2528
3437
3134
4043
2528
3437
3134
4043*
2225/
2932
2225/
2932
29
38
35
44
29
38
35
44*
4452
5361
5058
5967
4452
5361
5058
5967*
Comments
ARITHMETIC (Continued)
IMUL e Integer multiply (signed):
1111011w
mod 1 0 1 r/m
Register-Byte
Register-Word
Memory-Byte
Memory-Word
IMUL e Integer Immediate multiply
(signed)
011010s1
1111011w
mod 1 1 0 r/m
data
data if s e 0
Register-Byte
Register-Word
Memory-Byte
Memory-Word
IDIV e Integer divide (signed):
1111011w
mod 1 1 1 r/m
Register-Byte
Register-Word
Memory-Byte
Memory-Word
AAM e ASCII adjust for multiply
11010100
00001010
19
19
11010101
00001010
15
15
10011000
10011001
2/15
2/15
LOGIC
Shift/Rotate Instructions:
Register/Memory by 1
1101000w
Register/Memory by CL
1101001w
Register/Memory by Count
1100000w
5 a n/17 a n 5 a n/17 a n
count
5 a n/17 a n 5 a n/17 a n
TTT Instruction
000
ROL
001
ROR
010
RCL
011
RCR
1 0 0 SHL/SAL
101
SHR
111
SAR
AND e And:
Reg/memory and register to either
001000dw
Immediate to register/memory
1000000w
mod 1 0 0 r/m
data
Immediate to accumulator
0010010w
data
data if w e 1
data if w e 1
3/10
3/10*
4/16
4/16*
3/4
3/4
3/10
3/10*
4/10
4/10*
3/4
3/4
3/10
3/10*
4/16
4/16*
3/4
3/4
8/16-bit
1000010w
1111011w
mod 0 0 0 r/m
data
1010100w
data
data if w e 1
data if w e 1
8/16-bit
OR e Or:
Reg/memory and register to either
000010dw
Immediate to register/memory
1000000w
mod 0 0 1 r/m
data
Immediate to accumulator
0000110w
data
data if w e 1
data if w e 1
8/16-bit
29
29
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
3/10
3/10*
4/16
4/16*
Comments
LOGIC (Continued)
XOR e Exclusive or:
Reg/memory and register to either
001100dw
Immediate to register/memory
1000000w
mod 1 1 0 r/m
data
Immediate to accumulator
0011010w
data
data if w e 1
1111011w
mod 0 1 0 r/m
3/4
3/4
3/10
3/10*
8/16-bit
STRING MANIPULATION
MOVS e Move byte/word
1010010w
14
14*
1010011w
22
22*
1010111w
15
15*
1010110w
12
12*
1010101w
10
10*
0110110w
14
14
0110111w
14
14
11110010
1010010w
8 a 8n
8 a 8n*
1111001z
1010011w
5 a 22n
5 a 22n*
1111001z
1010111w
5 a 15n
5 a 15n*
1010110w
6 a 11n
6 a 11n*
11110010
11110010
1010101w
6 a 9n
6 a 9n*
11110010
0110110w
8 a 8n
8 a 8n*
11110010
0110111w
8 a 8n
8 a 8n*
CONTROL TRANSFER
CALL e Call:
Direct within segment
11101000
disp-low
Register/memory
indirect within segment
11111111
mod 0 1 0 r/m
Direct intersegment
10011010
disp-high
segment offset
15
19
13/19
17/27
23
31
38
54
14
14
segment selector
Indirect intersegment
11111111
mod 0 1 1 r/m
Short/long
11101011
disp-low
11101001
disp-low
Register/memory
indirect within segment
11111111
mod 1 0 0 r/m
Direct intersegment
11101010
(mod
11)
disp-high
segment offset
14
14
11/17
11/21
14
14
26
34
segment selector
Indirect intersegment
11111111
mod 1 0 1 r/m
(mod
11)
30
30
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
16
20
Comments
11000011
11000010
Intersegment
11001011
11001010
data-low
01110100
disp
data-low
data-high
data-high
18
22
22
30
25
33
4/13
4/13
01111100
disp
4/13
4/13
01111110
disp
4/13
4/13
01110010
disp
4/13
4/13
01110110
disp
4/13
4/13
01111010
disp
4/13
4/13
JO e Jump on overflow
01110 000
disp
4/13
4/13
JS e Jump on sign
01111000
disp
4/13
4/13
01110101
disp
4/13
4/13
01111101
disp
4/13
4/13
01111111
disp
4/13
4/13
01110011
disp
4/13
4/13
01110111
disp
4/13
4/13
01111011
disp
4/13
4/13
01110001
disp
4/13
4/13
01111001
disp
4/13
4/13
11100011
disp
5/15
5/15
11100010
disp
6/16
6/16
11100001
disp
6/16
6/16
11100000
disp
6/16
6/16
11001000
data-low
15
25
22 a 16(n b 1)
19
29
26 a 20(n b 1)
data-high
Le0
Le1
Ll1
LEAVE e Leave Procedure
11001001
JMP not
taken/JMP
taken
LOOP not
taken/LOOP
taken
INT e Interrupt:
Type specified
11001101
47
47
Type 3
11001100
type
45
45
if INT. taken/
11001110
48/4
48/4
if INT. not
taken
11001111
28
28
01100010
3335
3335
31
31
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
Format
80186
Clock
Cycles
80188
Clock
Cycles
Comments
PROCESSOR CONTROL
CLC e Clear carry
11111000
11110101
11111001
11111100
11111101
11111010
11111011
HLT e Halt
11110100
WAIT e Wait
10011011
11110000
11011TTT
if TEST e 0
10010000
FOOTNOTES
The Effective Address (EA) of the memory operand
is computed according to the mod and r/m fields:
if mod e 11 then r/m is treated as REG field
if mod e 00 then DISP e 0*, disp-low and disp-high are absent
if mod e 01 then DISP e disp-low sign-extended to 16-bits, disp-high
is absent
if mod e 10 then DISP e disp-high: disp-low
if r/m e 000 then EA e (BX) a (SI) a DISP
if r/m e 001 then EA e (BX) a (DI) a DISP
if r/m e 010 then EA e (BP) a (SI) a DISP
if r/m e 011 then EA e (BP) a (DI) a DISP
if r/m e 100 then EA e (SI) a DISP
if r/m e 101 then EA e (DI) a DISP
if r/m e 110 then EA e (BP) a DISP*
if r/m e 111 then EA e (BX) a DISP
reg
reg
00
01
10
11
Segment
Register
ES
CS
SS
DS
8-Bit (w e 0)
000 AL
001 CL
010 DL
011 BL
100 AH
101 CH
110 DH
111 BH
32
32
DataSheet 4 U .com
www.DataSheet4U.com
80186/80188
REVISION HISTORY
This data sheet replaces the following data sheets:
210706-011 80188
210451-011 80186
33
33
DataSheet 4 U .com