background image

SH7263/SH7203 Group 

Data Transfer to On-chip Peripheral Modules with DMAC

 

REJ06B0734-0101/Rev.1.01 

December 2008 

Page 17 of 17 

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  intellectual 
property rights or any other rights of Renesas or any third party with respect to the information in  this document. 

2.  Renesas shall have no liability  for damages or infringement of any intellectual property or other rights arising  out 

of the use of any information in this document, including, but not limited to, product data, diagrams, charts,  
programs, algorithms, and application circuit examples.

3.  You should not use the products or the technology described in this document for the purpose of military 

applications such as the development of weapons of mass destruction or for the purpose of any other military  
use. When exporting the products or technology described herein, you should follow the applicable export  
control laws and regulations, and procedures required by such laws and regulations.

4.  All information included in this document such as product data, diagrams, charts, programs, algorithms, and  

application circuit examples, is current as of the date this document is issued. Such information, however,  is  
subject to change without any prior notice. Before purchasing or using any Renesas products listed in this  
document, please confirm the latest product information  with a Renesas sales office. Also, please pay regular  
and careful attention to additional and different information to be disclosed by Renesas such as that disclosed  
through our website. (http://www.renesas.com)

5.  Renesas has used reasonable care in compiling the information included in this document, but Renesas  

assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information  
included in this document.

6.  When using or otherwise relying on the information in this document, you should evaluate the information in  light 

of the total system before deciding about the applicability of such information to the intended application. 
Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any  
particular application and specifically disclaims any liability arising out of the application and use of the  
information in this document or Renesas products.

7.  With the exception of products specified by Renesas as suitable for automobile applications, Renesas  products 

are not designed, manufactured or tested for applications or otherwise in systems the failure or  malfunction of 
which may cause a direct threat to human life or create a risk of human injury or which require  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 undersea communication  transmission. If you 
are considering the use of our products for such purposes, please contact a Renesas  sales office beforehand. 
Renesas shall have no liability for damages arising out of the uses set forth above.

8.  Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below:
 

 

(1) artificial life support devices or systems

 

 

(2) surgical implantations

 

 

(3) healthcare intervention (e.g., excision, administration of medication, etc.)

 

 

(4) any other purposes that pose a direct threat to human life

 

Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who 
elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas  
Technology Corp., its affiliated companies and their officers, directors, and employees against any and all  
damages arising out of such applications.

9.  You should use the products described herein within the range specified by Renesas, especially with respect  to 

the maximum rating, operating supply voltage range, movement power voltage range, heat radiation  
characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or  
damages arising out of the use of Renesas products beyond such specified ranges.

10.  Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific  

characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use  conditions. 
Please be sure to implement safety measures to guard against the possibility of physical injury, and  injury or 
damage caused by fire in the event of the failure of a Renesas product, such as safety design for  hardware and 
software including but not limited to redundancy, fire control and malfunction prevention,  appropriate treatment 
for aging degradation or any other applicable measures.  Among others, since the  evaluation of microcomputer 
software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.

11.  In case Renesas products listed in this document are detached from the products to which the Renesas  products 

are attached or affixed, the risk of accident such as swallowing by infants and small children is very  high. You 
should implement safety measures so that Renesas products may not be easily detached from your  products. 
Renesas shall have no liability for damages arising out of such detachment.

12.  This document may not be reproduced or duplicated, in any form, in  whole or in part, without prior written  

approval from Renesas.

13.  Please contact a Renesas sales office if you have any questions regarding the information contained in this 

document, Renesas semiconductor products, or if you have any other inquiries.

Notes regarding these materials

 

©

 2008. Renesas Technology Corp., all rights reserved. 

Summary of Contents for REJ06B0734-0100

Page 1: ...ook over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1st 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ...

Page 2: ...ct for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipment communications equipment test and meas...

Page 3: ...dules with DMAC Introduction This application note provides an example of transferring data to on chip peripheral modules with the direct memory access controller DMAC of the SH7263 SH7203 Target Device SH7263 SH7203 Contents 1 Introduction 2 2 Description of Sample Application 3 3 Sample Program 9 4 Documents for Reference 15 ...

Page 4: ...erating Frequency Internal clock 200 MHz Bus clock 66 67 MHz Peripheral clock 33 33 MHz C Compiler SuperH RISC engine family C C compiler package Ver 9 01 from Renesas Technology Compile Option cpu sh2afpu fpu single include WORKSPDIR inc object CONFIGDIR FILELEAF obj debug gbr auto chgincpath errorpath global_volatile 0 opt_range all infinite_loop 0 del_vacant_loop 0 struct_alloc 1 nologo 1 4 Rel...

Page 5: ... 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 Auto request external request and on chip peripheral module request SH7203 SH7263 SCIF 8 sources I2 C3 8 sources ADC 1 source MTU2 5 so...

Page 6: ...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 register CHCR DMA channel control register DMATCR DMA transfer count register DMAOR DMA operation register RSAR DMA reload source address register DMARS0 to DMARS3 DMA extension resource selectors 0 to 3 SAR...

Page 7: ...the DMA transfer count to be reloaded Setting the DMA transfer mode CHCRn Set the TC transfer count mode bit Function 0 Transfer data once for each transfer request When the SCIF or IIC3 is selected as the transfer request source 1 Transfer data for the count specified in DMATCRn for each transfer requests Set the RLDSAR SAR reload function enable disable bit Function Enables disables reload funct...

Page 8: ...ng SCIF transmit FIFO data empty transfer requests Timing of requesting data transfer from external memory to the SCIF transmit FIFO data register a transfer request is made when the number of data in transmit FIFO becomes 0 One data transfer One data transfer One data transfer Bus mastership Read Read Read Read Read Read Read Read Write Write Write Write Write Write Write Write Internal signal In...

Page 9: ...isables SAR reload function RLDDAR 0 Disables DAR reload function DM B 00 Fixes destination address SM B 01 Increments source address RS B 1000 Extension resource selector TB 0 Cycle stealing mode TS B 00 Byte transfer IE 0 Disables interrupt request DMA channel control register 1 CHCR1 H FFFE 101C H 0000 1801 DE 1 Enables DMA transfer DMA source address register_1 SAR1 H FFFE 1010 Address where c...

Page 10: ...yte transfer DMA_SIZE_WORD H 0001 Word transfer DMA_SIZE_LONG H 0002 Longword transfer DMA_SIZE_LONGx4 H 0003 16 byte transfer DMA_INT_DISABLE H 0000 DMA transfer end interrupt disabled DMA_INT_ENABLE H 0010 DMA transfer end interrupt enabled START END No Yes DMA transfer completed Initialize DMAC enable transfer io_init_dma1 Initialize SCIF enable transmission and transmission interrupts io_init_...

Page 11: ...ion and Renesas Solutions 20 assume no responsibility for any damage liability or other loss rising 21 from these inaccuracies or errors 22 23 Copyright C 2007 Renesas Technology Corp All Rights Reserved 24 AND Renesas Solutions Corp All Rights Reserved 25 26 history 2007 12 27 ver 1 00 00 27 FILE COMMENT END 28 include string h 29 include iodefine h iodefine h is automatically created by HEW 30 3...

Page 12: ...o be transmitted 80 const signed char data SCIF request DMAC Sample Software SH7203 r n 81 82 FUNC COMMENT 83 Outline Sample Program Main UART transmission with use of DMAC 84 85 Include include string h 86 87 Declaration void main void 88 89 Function The character string data stored in external memory is DMA transferred 90 to the SCIF transmit FIFO data register The DMAC is activated 91 by an SCI...

Page 13: ...pt used not used 129 130 Argument void src Source address 131 void dst Destination address 132 size_t size Transfer size byte 133 unsigned int mode Transfer mode specifies the following with logical OR 134 DMA_SIZE_BYTE 0x0000 Byte transfer 135 DMA_SIZE_WORD 0x0001 Word transfer 136 DMA_SIZE_LONG 0x0002 Longword transfer 137 DMA_SIZE_LONGx4 0x0003 16 byte transfer 138 DMA_INT_DISABLE 0x0000 DMA tr...

Page 14: ...R0 LONG size 1u 184 break 185 case DMA_SIZE_LONG 186 DMAC DMATCR0 LONG size 2u Specify transfer count 1 4 187 DMAC RDMATCR0 LONG size 2u 188 break 189 case DMA_SIZE_LONGx4 190 DMAC DMATCR0 LONG size 4u Specify transfer count 1 16 191 DMAC RDMATCR0 LONG size 4u 192 break 193 default 194 break 195 196 197 Setting DMA channel control register 198 DMAC CHCR1 LONG 0x00001800ul ts 3u ie 2u 199 200 bit31...

Page 15: ...MAC DMAOR BIT DME 0ul Enable DMA transfer on all channels 233 DMAC DMAOR BIT DME 1ul 234 235 236 DMA transfer execution 237 DMAC CHCR1 BIT DE 1ul Enable DMA transfer 238 239 FUNC COMMENT 240 Outline DMAC stop 241 242 Include include iodefine h 243 244 Declaration void io_dma1_stop void 245 246 Function Detects the end of DMA transfer and disables DMA transfer 247 248 Argument void 249 250 Return V...

Page 16: ...ssion reception by SCIF0 294 295 Setting FIFO control register SCFCRi 296 SCIF0 SCFCR BIT TFRST 1 Reset transmit FIFO 297 298 Setting serial control register SCSCRi 299 SCIF0 SCSCR BIT CKE 0x0 B 00 Internal clock 300 301 Setting serial mode register SCSMRi 302 SCIF0 SCSMR WORD scif_baud bps scsmr 303 Communication mode 0 Asynchronous mode 304 Character length 0 8 bit data 305 Parity enable 0 Disab...

Page 17: ... 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 SH7203 Group Hardware Manual SH7263 Group Hardware Manual The most up to date version of this document is available on the Renesas Technology Website ...

Page 18: ...ebsite 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 Apr 17 08 First edition issued 1 01 Dec 17 08 Source file is updated All trademarks and registered trademarks are the property of their respective owners ...

Page 19: ...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 undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of ...

Reviews: