English
Language : 

AM186 Datasheet, PDF (53/112 Pages) Advanced Micro Devices – High-Performance, 80C186- and 80C188-Compatible, 16-Bit Embedded Microcontrollers with RAM
REFRESH CONTROL UNIT
The third is an internal interrupt from the asynchronous
The Refresh Control Unit (RCU) automatically generates
serial port.
refresh bus cycles. After a programmable period of time, The five maskable interrupt request pins can be used
the RCU generates a memory read request to the bus in- as direct interrupt requests. Plus, INT3–INT0 can be
terface unit. If the address generated during a refresh bus cascaded with an 82C59A-compatible external inter-
cycle is within the range of a properly programmed chip rupt controller if more inputs are needed. An external
select, that chip select (with the exception of UCS and interrupt controller can be used as the system master
LCS) is activated when the bus interface unit executes the by programming the internal interrupt controller to op-
refresh bus cycle. The ready logic and wait states pro- erate in slave mode. In all cases, nesting can be en-
grammed for the region are also in force. If no chip select abled so that ser vice routines for lower priority
is activated, then external ready is required to terminate interrupts are interrupted by a higher priority interrupt.
the refresh bus cycle.
Programming the Interrupt Control Unit
If the HLDA pin is active when a refresh request is gen-
erated (indicating a bus hold condition), then the
Am186ER and Am188ER microcontrollers deactivate
the HLDA pin in order to perform a refresh cycle. The
external bus master must remove the HOLD signal for
at least one clock in order to allow the refresh cycle to
execute. The sequence of HLDA going inactive while
HOLD is being held active can be used to signal a
pending refresh request.
The Am186ER and Am188ER microcontrollers’ HOLD
latency time, the period between HOLD request and
T HOLD acknowledge, is a function of the activity occur-
ring in the processor when the HOLD request is re-
ceived. A HOLD request is second only to DRAM
refresh requests in priority of activity requests received
F by the processor. For example, in the case of a DMA
transfer, the HOLD latency can be as great as four bus
cycles. This occurs if a DMA word transfer operation is
taking place from an odd address to an odd address
(Am186ER microcontroller only). This is a total of 16 or
A more clock cycles if wait states are required. In addition,
if locked transfers are performed, the HOLD latency
time is increased by the length of the locked transfer.
INTERRUPT CONTROL UNIT
R The Am186ER and Am188ER microcontrollers can re-
ceive interrupt requests from a variety of sources, both
internal and external. The internal interrupt controller
arranges these requests by priority and presents them
D one at a time to the CPU.
The Am186ER and Am188ER microcontrollers provide
two methods for masking and unmasking the maskable
interrupt sources. Each interrupt source has an inter-
rupt control register (offsets 32h–44h) that contains a
mask bit specific to that interrupt. In addition, the Inter-
rupt Mask Register (offset 28h) is provided as a single
source to access all of the mask bits. While changing a
mask bit in either the mask register or the individual
register will change the corresponding mask bit in the
other register, there is a difference in exactly how the
mask is updated.
If the Interrupt Mask Register is written while interrupts
are enabled, it is possible that an interrupt could occur
while the register is in an undefined state. This can
cause interrupts to be accepted even though they were
masked both before and after the write to the Interrupt
Mask Register. Therefore, the Interrupt Mask Register
should only be written when interrupts are disabled.
Mask bits in the individual interrupt control registers
can be written while interrupts are enabled, and there
will be no erroneous interrupt operation.
TIMER CONTROL UNIT
There are three 16-bit programmable timers in the
Am186ER and Am188ER microcontrollers. Timer 0 and
timer 1 are connected to four external pins (each has an
input and an output). These two timers can be used to
count, time external events, or generate nonrepetitive or
variable-duty-cycle waveforms. In addition, timer 1 can
be configured as a watchdog timer interrupt.
There are six external interrupt sources on the
Am186ER/Am188ER microcontrollers—five maskable
interrupt pins and one nonmaskable interrupt pin. In ad-
dition, there are six total internal interrupt sources—
three timers, two DMA channels, and the asynchronous
serial port—that are not connected to external pins.
Note that a hardware watchdog timer (WDT) has been
added to the Am186ER and Am188ER microcontrollers.
Use of the WDT is recommended for applications requir-
ing this reset functionality. To maintain compatibility with
previous versions of the Am186ER and Am188ER mi-
crocontrollers, Timer 1 can be configured as a watchdog
The Am186ER and Am188ER microcontrollers provide timer and can generate a maskable watchdog timer in-
three interrupt sources not present on the Am186 and terrupt. The maskable watchdog timer interrupt provides
Am188 microcontrollers. The first is an additional exter- a mechanism for detecting software crashes or hangs.
nal interrupt pin (INT4), which operates much like the The TMROUT1 output is internally connected to the
already existing interrupt pins (INT3–INT0). The sec- watchdog timer interrupt. The TIMER1 Count Register
ond is an internal maskable watchdog timer interrupt. must then be reloaded at intervals less than the TIMER1
max count to assure the watchdog interrupt is not taken.
Am186TMER and Am188TMER Microcontrollers Data Sheet
53