AM186ED AMD [Advanced Micro Devices], AM186ED Datasheet - Page 46

no-image

AM186ED

Manufacturer Part Number
AM186ED
Description
High Performance, 80C186- and 80C188-Compatible, 16-Bit Embedded Microcontrollers
Manufacturer
AMD [Advanced Micro Devices]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AM186ED-20VC
Manufacturer:
AMD
Quantity:
219
Part Number:
AM186ED-25KC
Manufacturer:
AMD
Quantity:
220
Part Number:
AM186ED-25KC
Manufacturer:
AMD
Quantity:
8 000
Part Number:
AM186ED-25KI
Manufacturer:
AMD
Quantity:
850
Part Number:
AM186ED-25VC
Manufacturer:
AMD
Quantity:
220
Part Number:
AM186ED-33KC
Manufacturer:
AMD
Quantity:
220
Part Number:
AM186ED-40KC
Manufacturer:
AMD
Quantity:
20 000
Part Number:
AM186EDLV-20KC
Manufacturer:
AMD
Quantity:
8 000
The following diagram shows the behavior of a system
for a typical waveform.
The interrupt service routine (ISR) for the INT2 and
INT4 interrupts should examine the current count of the
associated timer, timer 1 for INT2, and timer 0 for INT4,
in order to determine the pulse width. The ISR should
then reset the timer count register in preparation for the
next pulse.
Since the timers count at one quarter of the processor
clock rate, this determines the maximum resolution that
can be obtained. Further, in applications where the
pulse width may be short, it may be necessary to poll
the INT2 and INT4 request bits in the interrupt request
register in order to avoid the overhead involved in tak-
ing and returning from an interrupt. Overflow condi-
tions, where the pulse width is greater than the
maximum count of the timer, can be detected by moni-
toring the Maximum Count (MC) bit in the associated
timer or by setting the INT bit to enable timer interrupt
requests.
DIRECT MEMORY ACCESS
Direct memory access (DMA) permits transfer of data
between memory and peripherals without CPU involve-
ment. The DMA unit shown in Figure 10, provides two
high-speed DMA channels. Data transfers can occur
between memory and I/O spaces (e.g., memory to I/O)
or within the same space (e.g., memory to memory or
I/O to I/O). Table 9 shows maximum DMA transfer
rates.
The DMA channels can be directly connected to the
asynchronous serial ports. DMA and serial port transfer
is accomplished by programming the DMA controller to
perform transfers between a data source in memory or
I/O space and a serial port transmit or receive register.
The two DMA channels can support one serial port in
full-duplex mode or two serial ports in half-duplex
mode.
Either bytes or words can be transferred to or from
even or odd addresses. However, word DMA transfers
to or from memory configured for 8-bit accesses are
not supported. Only two bus cycles (a minimum of eight
clocks) are necessary for each data transfer.
Each channel accepts a DMA request from one of four
sources: the channel request pin (DRQ1–DRQ0),
Timer 2, a serial port, or the system software. The
channels can be programmed with different priorities in
46
INT2
INT4
INT2 Ints generated
Am186ED/EDLV Microcontrollers
TMR1 enabled
TMR0 enabled
P R E L I M I N A R Y
the event of a simultaneous DMA request or if there is
a need to interrupt transfers on the other channel.
DMA Operation
Each channel has six registers in the peripheral control
block that define specific channel operations. The DMA
registers consist of a 20-bit source address (two regis-
ters), a 20-bit destination address (two registers), a 16-
bit transfer count register, and a 16-bit control register.
The DMA Transfer Count Register (DTC) specifies the
number of DMA transfers to be performed. Up to 64K
of byte or word transfers can be performed with auto-
matic termination. The DMA control registers define the
channel operation. All registers can be modified dur-
ing any DMA activity. Any changes made to the DMA
registers are reflected immediately in DMA operation.
Type of
Synchronization
Selected
Unsynchronized
Source Synchronized
Destination Synchronized
(CPU needs bus)
Destination Synch
(CPU does not need bus)
Table 9. Am186ED/EDLV Microcontrollers
Maximum DMA Transfer Rates
MHz
6.6
10
10
40
Transfer Rate (Mbytes)
8
Maximum DMA
MHz
8.25
8.25
5.5
6.6
33
MHz
6.25
6.25
4.16
25
5
MHz
3.3
20
5
5
4

Related parts for AM186ED