Renesas REJ06B0732-0100 Application Note
REJ06B0732-0100 Renesas Computer Hardware PDF Application Note (13 pages)
Text of Renesas REJ06B0732-0100 Application Note
Page 1 of 13
SH7211 Group
Data Transfer between 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 Device
SH7211
Contents
1.
Introduction .........................................................................................................................
Renesas REJ06B0732-0100 Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode)
REJ06B0732-0100/Rev.1.00
March 2008
Page 2 of 13
1. Introduction
1.1
Specification
• DMAC channel 0 is used.
• Auto-request 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
• Microcontroller:
SH7211
• Opera
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 w
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 4 of 13
DREQ
Bus mastership returned to CPU once
Bus cycle
Write
Read
Write
Read
CPU
CPU
CPU
DMAC
DMAC
DMAC
DMAC
CPU
CPU
In the normal mode of cycle stealing, bus mastership is given to another bus master after each DMA
transfer of one transfer unit (byte, word, longword, or 16-byte unit). When a subsequent transfer
request occurs,
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 5 of 13
DMATCR_n
SAR_n
CHCR_n
DAR_n
DMAOR
DMARS0 to DMARS3
HEIn
DACK0 to DACK3,
TEND0, TEND1
DEIn
RDMATCR_n
RSAR_n
RDAR_n
On-chip
memory
On-chip
peripheral
module
DMA transfer
request signal
DMA transfer acknowledge signal
Interrupt controller
External ROM
External RAM
External device
(memory mapped)
External device
(with acknowledg
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 6 of 13
2.2
Operational Description of Sample Program
The settings of the DMAC for the sample program are listed in table 4. Also, the operation of the sample program is
illustrated in figure 4.
Table 4
Settings of DMAC
DMA transfer condition
Auto request mode
Channel
CH0
Length of transfer data
4 bytes
Maximum transfer count
128 tr
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 7 of 13
2.3
Procedure for Setting Modules
This section describes the procedure for making initial settings when the DMAC is to be used to transfer data between
locations within the on-chip RAM. Auto request mode is used for the transfer requests.
By default, the on-chip peripheral modules of this MCU are in module standby mode. When
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 8 of 13
DMAC_init
END
[3]
[4]
[5]
[6]
[1]
[2]
[1] Disable DMA transfer
Set the DE (DMA enable) bit to 0
Disable DMA transfer
[2] Set the DMA transfer source address (SAR_0)
Specify the DMA transfer source address
[3] Set the DMA transfer destination address (DAR_0)
Specify the DMA transfer destination address
[4] Specify the DMA tra
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 9 of 13
2.4
Register Settings for Sample Program
2.4.1
Clock Pulse Generator (CPG)
The settings of the clock pulse generator for the sample program are described in table 5.
Table 5
Settings of Clock Pulse Generator
Register Name
Address
Setting Value
Description
Frequency control
register (FRQCR)
H’FFFE0010
H’1303
CKOEN = “B�
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 10 of 13
2.4.3
Direct Memory Access Controller (DMAC)
The settings of DMAC registers for the sample program are described in table 7.
Table 7
Settings of DMAC Registers
Register Name
Address
Setting Value
Description
DMA source address
register 0 (SAR)
H’FFFE1000
H’FFF81000
Transfer source start address
DMA destination address
r
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
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
SH7211 Group Hardware Manual
The most up-to-date version of this document is available on the Renesas Technology Website.
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 12 of 13
Website and Support
Renesas Technology Website
http://www.renesas.com/
Inquiries
http://www.renesas.com/inquiry
[email protected]
Revision Record
Description
Rev.
Date
Page
Summary
1.00
Mar.21.08
—
First edition issued
All trademarks and registered trademarks are the property of their respective owners.
Data Transfer between On-chip RAM Areas with DMAC (Cycle-Stealing Mode) REJ06B0732-0100/Rev.1.00
March 2008
Page 13 of 13
1.
This document is provided for reference purposes only so that Renesas customers may select the appropriate
Renesas products for their use. Renesas neither makes warranties or representations with respect to the
accuracy or completeness of the information contained in this document nor grants any license to any intellect
Renesas Computer Hardware Owners Instructions:
| Device Model | Type of Document | Pages | Size | Views | Downloads | Updated |
|---|---|---|---|---|---|---|
R8C/25 |
27 | 0.36 Mb | 355 | 68 | 01-09-2026 | |
RSKM16C62P |
3 | 0.14 Mb | 210 | 34 | 04-05-2026 | |
RX24U |
27 | 1447 | 304 | 08-10-2026 | ||
RX23T Series |
23 | 428 | 90 | 31-05-2026 |