cp3bt13 National Semiconductor Corporation, cp3bt13 Datasheet - Page 42

no-image

cp3bt13

Manufacturer Part Number
cp3bt13
Description
Cp3bt13 Reprogrammable Connectivity Processor With Bluetooth-r And Can Interfaces
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
9.0
The DMA Controller (DMAC) has a register-based program-
ming interface, as opposed to an interface based on I/O
control blocks. After loading the registers with source and
destination addresses, as well as block size and type of op-
eration, a DMAC channel is ready to respond to DMA trans-
fer requests. A request can only come from on-chip
peripherals or software, not external peripherals. On receiv-
ing a DMA transfer request, if the channel is enabled, the
DMAC performs the following operations:
Each DMAC channel can be programmed for direct (flyby)
or indirect (memory-to-memory) data transfers. Once a
DMAC transfer cycle is in progress, the next transfer request
is sampled when the DMAC acknowledge is de-asserted,
then on the rising edge of every clock cycle.
The configuration of either address freeze or address up-
date (increment or decrement) is independent of the num-
ber of transferred bytes, transfer direction, or number of
bytes in each DMAC transfer cycle. All these can be config-
ured for each channel by programming the appropriate con-
trol registers.
Each DMAC channel has eight control registers. DMAC
channels are described hereafter with the suffix n, where n
= 0 to 3, representing the channel number in the register-
names.
9.1
Table 19 shows the assignment of the DMA channels to dif-
ferent tasks. Four channels can be shared by a primary and
an secondary function. However, only one source at a time
can be enabled. If a channel is used for memory block trans-
fers, other resources must be disabled.
1. Arbitrates to become master of the CPU bus.
2. Determines priority among the DMAC channels, one
3. Executes data transfer bus cycle(s) selected by the val-
4. If the transfer of a block is terminated, the DMAC does
5. If DMRQn is still active, and the Bus Policy is “continu-
6. Returns mastership of the CPU bus to the CPU.
clock cycle before T1 of the DMAC transfer cycle. (T1
is the first clock cycle of the bus cycle.) Priority among
the DMAC channels is fixed in descending order, with
Channel 0 having the highest priority.
ues held in the control registers of the channel being
serviced, and according to the accessed memory ad-
dress. The DMAC acknowledges the request during the
bus cycle that accesses the requesting device.
the following:
Updates the termination bits.
Generates an interrupt (if enabled).
Goes to step 6.
ous”, returns to step 3.
DMA Controller
CHANNEL ASSIGNMENT
42
DMACK[3:0]
9.2
The DMAC uses two data transfer modes, Direct (Flyby)
and Indirect (Memory-to-Memory). The choice of mode de-
pends on the required bus performance and whether direct
mode is available for the transfer. Indirect mode must be
used when the source and destination have differing bus
widths, when both the source and destination are in memo-
ry, and when the destination does not support direct mode.
9.2.1
In direct mode each data item is transferred using a single
bus cycle, without reading the data into the DMAC. It pro-
vides the fastest transfer rate, but it requires identical source
and destination bus widths. The DMAC cannot use Direct
cycles between two memory devices. One of the devices
must be an I/O device that supports the Direct (Flyby) mech-
anism, as shown in Figure 2.
Direct mode supports two bus policies: intermittent and con-
tinuous. In intermittent mode, the DMAC gives bus master-
ship back to the CPU after every cycle. In continuous mode,
the DMAC remains bus master until the transfer is complet-
DMRQ[3:0]
Figure 2. Direct DMA Cycle Followed by a CPU Cycle
0 (Primary)
0 (Second-
1 (Primary)
1 (Second-
2 (Primary)
2 (Second-
3 (Primary)
3 (Second-
Channel
ADDR
CLK
ary)
ary)
ary)
ary)
TRANSFER TYPES
Direct (Flyby) Transfers
Table 19 DMA Channel Assignment
Audio Interface
Audio Interface
CVSD/PCM
CVSD/PCM
Peripheral
Transcoder
Transcoder
Reserved
unused
UART
UART
T1
ADCA
Trans-
action
R/W
N/A
W
W
W
R
R
R
T2
Bus State
Tidle
RX/TX FIFO
PCMOUT
Register
RXBUF
ARDR0
TXBUF
PCMIN
ATDR0
N/A
T1
DS005

Related parts for cp3bt13