Renesas REJ06B0732-0100 Скачать руководство пользователя страница 3

SH7211 Group 

Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode)

 

REJ06B0732-0100/Rev.1.00 

March 2008 

Page 3 of 13 

2.  Description of Sample Application 

In this sample application, the direct memory access controller (DMAC) is set to auto request mode to transfer 512-
Kbtyte data stored in the on-chip RAM to another address. 

 

2.1 

Operation of Modules Used 

When a DMA transfer request is made, the DMAC starts to transfer data in accordance with the priority order of 
channels and continues the transfer operation until the transfer end condition is met. Transfer requests for the DMAC 
are of three kinds: auto requests, external requests, and on-chip peripheral module requests. The bus mode is selectable 
as burst mode or cycle-stealing mode. 

For details on the DMAC, refer to the section on the direct memory access controller in the SH7211 Group Hardware 
Manual. 

An overview of the DMAC is given in table 1. Examples of DMA transfer in cycle-stealing mode and burst mode are 
shown in figures 1 and 2, respectively. In addition, a block diagram of the DMAC is shown in figure 3. 

Table 1  Overview of DMAC 

Item Description 

Number of channels 

8 (CH0 to CH7) 
Only 4 (CH0 to CH3) can receive external requests. 

Address space 

4 Gbytes 

Length of transfer data 

Byte, word (2 bytes), longword (4 bytes), and 16 bytes (longword 

×

 4) 

Maximum transfer count 

16,777,216 (24 bits) transfers 

Address mode 

Single address mode and dual address mode 

Transfer request 

External request, on-chip peripheral module request, and auto request 
(SCIF: 8 sources, IIC3: two sources, A/D converter: one source, MTU2: 
five sources, CMT: two sources) 

Bus mode 

Cycle-stealing mode (normal mode and intermittent mode) and burst 
mode 

Priority level 

Channel priority fixed mode and round-robin mode 

Interrupt request 

An interrupt request to the CPU is made when half or all of a transfer 
process is completed. 

External request detection 

DREQ input low/high level detection, rising/falling edge detection 

Transfer request acknowledge 
signal/transfer end signal 

Active levels for DACK and TEND can be set independently 

 
 

Содержание REJ06B0732-0100

Страница 1: ...On chip RAM Areas with DMAC Cycle Stealing Mode Introduction This application note describes the operation of the DMAC and is intended for reference to help in the design of user software Target Devic...

Страница 2: ...st mode is used as the interrupt source for activating DMA transfer Cycle stealing mode is used as the bus mode 1 2 Used Module Direct memory access controller DMAC channel 0 1 3 Applicable Conditions...

Страница 3: ...DMA transfer in cycle stealing mode and burst mode are shown in figures 1 and 2 respectively In addition a block diagram of the DMAC is shown in figure 3 Table 1 Overview of DMAC Item Description Num...

Страница 4: ...atisfied The cycle stealing normal mode can be used in transfer across any interval regardless of the requesting source source and destination of the transfer Figure 1 DMA Transfer Example in Cycle St...

Страница 5: ...3 Peripheral bus Internal bus DMAC module Iteration control Register control Start up control Request priority control Bus interface Bus state controller Legend RDMATCR DMA reload transfer count regis...

Страница 6: ...est mode Channel CH0 Length of transfer data 4 bytes Maximum transfer count 128 transfers 128 data length of 4 bytes 512 byte data Address mode Dual address mode Bus mode Cycle stealing mode Priority...

Страница 7: ...typically handled by interrupts polling is used in this sample application A flowchart of the sample program is shown in figure 5 In addition a flowchart of DMAC initialization is shown in figure 6 Fo...

Страница 8: ...he count specified in DMATCR Set RLD to B 0 disable the reload function Set RS 3 0 resource selector to B 0100 auto request Set DM 1 0 to B 01 increment the destination address Set SM 1 0 to B 00 fix...

Страница 9: ...ster Name Address Setting Value Description Frequency control register FRQCR H FFFE0010 H 1303 CKOEN B 1 output clocks STC 1 0 B 00 frequency multiplication ratio of PLL circuit 1 IFC 2 0 B 000 intern...

Страница 10: ...TCR H FFFE1008 D 128 DMA transfer count 128 transfers H 0000 0000 Before DMA initialization DE B 0 disables DMA transfer H 8000 4410 DMA initialization TC B 1 transfers data for the count specified in...

Страница 11: ...8 Page 11 of 13 3 Documents for Reference Software Manual SH 2A SH2A FPU Software Manual The most up to date version of this document is available on the Renesas Technology Website Hardware Manual SH7...

Страница 12: ...2008 Page 12 of 13 Website and Support Renesas Technology Website http www renesas com Inquiries http www renesas com inquiry csc renesas com Revision Record Description Rev Date Page Summary 1 00 Ma...

Страница 13: ...e especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or underse...

Отзывы: