Home
Using DMACII (Burst Transfer)
Contents
1. REJ05B0639 0100 Rev 1 00 May 2005 Page 4 of 9 ENESAS M320 80 Series Using DMACII Burst Transfer 4 Example of a Sample Program 4 1 C language source RK ok ok ok k e k e kok o oko ko e Ke kok o kok o oko oko k oko o kok k oko k oko k kok k kok kok kok k k kok k kok kok kok k k k k k k FILENAME rej05b0639 src c Ver 1 00 FUNCTION DMACII Burst Transfer x KK IK kok RI ko oko o kok k oko kok oko k A A IRR k k k k k k k k k k k k k k k k k k k k k k kk k kok k kk A ORK kok k oko kok k oko k kok k oko k oko I include file aA ORK IK kok k kok k oko k kok k kok kok I I include lt stdio h gt include sfr32c83 h ORK IK oko k I KK IK I I I I px DMACII o ok k k oko k k oko kok kok k k kok k kok I struet union struct4 char size l Transfer Unit Select Bit char imm 1 Transfer Data Select Bit char upds l Transfer Source Direction Select Bit char updd 1 Transfer Destination Direction Select Bit char oper 1 Calculation Transfer Function Select Bit char brstz1 Burst Transfer Select Bit char inte 1 End of Transfer Interrupt Select Bit char chain 1 Chained Transfer Select Bit char reserve 7 char mult 1 Multiple Transfer Select Bit Veit unsigned short all mod unsigned short count Transfer count unsigned char near sadr Transfer source address unsigned char near dadr Transfer des
2. or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics ENESAS APPLICATION NOTE M32C 80 Series Using DMACII Burst Transfer 1 Abstract This application note describes how to use DMACII in burst transfer 2 Introduction The explanation of this issue is applied to the following condition Applicable MCU M32C 80 Series This program can also be used when operating other microcomputers within the M16C family provided they have DMACII function However some functions may have been modified Refer to the User s Manual for details Use functions covered in this Application Note only after careful evaluation 3 Detailed description The following explains an example use of DMACII transfer for the case where when an interrupt request which has had its priority level set to 7 by the interrupt control register occurs data is transferred from one memory location to another by a DMACII transfer a specified number of times successively During a burst transfer the user program is not executed Nor are interrupts accepted 3 1 DMACII Transfer Mode This application note example offers functions of single transfer mode shown in Table 1 Table 1 Selectable Functions in Single Transfer
3. product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corporation assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation by various means including the Renesas Technology Corporation Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corporation is necessary to reprint or r
4. the source address of transfer 4 Transfer destination address DADR b15 bo 16 bits Set the destination address of transfer REJ05B0639 0100 Rev 1 00 May 2005 M32C 80 Series Using DMACII Burst Transfer Page 3 of 9 RENESAS M320 80 Series Using DMACII Burst Transfer 5 RLVL register b7 bo ojolilolo RLVL2 to RLVLO Stop Wait Mode Exit Minimum Interrupt Priority Level Control Bit FSIT High Speed Interrupt Set Bit Set to 0 DMAC II and high speed interrupts cannot be Nothing is assigned 9 used at the same time gt Set to 0 x DMAII DMAC II Select Bit Set to 1 Nothing is assigned Set to 00b 6 Interrupt Control Register Set all interrupt request registers for the b7 bo interrupts to be used as the cause of DMAC II olol Tol111 1 reguests ILVL2 to ILVLO Interrupt Priority Level Select Bit Set to 111b Set the priority level of the interrupt used as IR Interrupt Request Bit the cause of DMAC II request to 7 Set to 0 POL Polarity Switch Bit INTOIC to INT5IC 0 Selects falling edge or L 1 Selects rising edge or H LVS Level Sensitive Edge Sensitive Switch Bit INTOIC to INT5IC 0 Edge sensitive 1 Level sensitive The POL and LVS bits are accommodated in the INTOIC 3 Nothing is assigned INT5IC registers In other interrupt request registers set it Set to 00b ce
5. Mode Item Definition Selection T ter Block 8 bits Yes ransfer Bloc 16 bits Immediate data Transfer Data Data in memory Yes Fixed address Source Direction Forward address Yes m Fixed address Yes Destination Direction Forward address Calculation Transfer Without Calculation Transfer Yes Function Function With Calculation Transfer Function Interrupts not used Yes End of Transfer Interrupt P Interrupts used Not chai f Ye Chained Transfer Function ote ain Nanette Chain transferred REJ05B0639 0100 Rev 1 00 May 2005 Page 1 of 9 RENESAS M320 80 Series Using DMACII Burst Transfer 3 2 DMAC II Index The DMAC II index is configured with 8 bytes when interrupts and chain transfers are not used in burst transfer mode The DMAC II index must be located on the RAM area Beginning address of DMACII index BASE BASE 2 Transfer mode Transfer counter BASE 4 Transfer source address BASE 6 Transfer destination address Figure 1 DMAC II Index 3 3 DMAC II Transfer The interrupt requests from all peripheral functions whose ILVL2 ILVLO bits in the interrupt control register have been set to 111b constitute the cause of requests to DMAC II In this application note the INTO interrupt is used for the cause of DMAC II request 3 4 Setting Up the Relocatable Vector Table Set the beginning address of the DMAC II index in the interrupt vector for the perip
6. Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the products quality grade as indicated below You must check the guality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product 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 guality 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 eguipment
7. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took 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 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry CENESAS 8 10 11 12 Notice All information included in this document 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 Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is grant
8. communications eguipment test and measurement eguipment audio and visual eguipment home electronic appliances machine tools personal electronic eguipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety eguipment and medical eguipment not specifically designed for life support Specific Aircraft aerospace eguipment submersible repeaters nuclear reactor control systems medical eguipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use con
9. ditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics 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 appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products
10. ed hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your eguipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures reguired by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but
11. eproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corporation for further details on these materials or the products contained therein REJ05B0639 0100 Rev 1 00 May 2005 Page 9 of 9
12. heral function interrupt that constitutes the cause of DMAC II request REJ05B0639 0100 Rev 1 00 May 2005 Page 2 of 9 ENESAS 3 5 Register Setting To enable the operation defined in Section 3 HARDWARE MANUAL 1 Transfer mode MOD SIZE IMM UPDS UPDD OPER BRST INTE CHAIN MULT 2 Transfer count COUNT b15 bo For a burst transfer once the cause of a DMACII transfer occurs a DMACII transfer is performed a number of times as set by the transfer count Detailed description the following register settings must be taken place step by step For detail configuration of each register please refer to M32C 80 Series Transfer Unit Select Bit 0 8 bits 1 16 bits Transfer Data Select Bit 0 Immediate data 1 Memory Transfer Source Direction Select Bit 0 Fixed address 1 Forward address Transfer Destination Direction Select Bit 0 Fixed address 1 Forward address Calculation Transfer Function Select Bit 0 Not used 1 Used Burst Transfer Select Bit 1 Burst transfer End of Transfer Interrupt Select Bit 0 Interrupt not used 1 Use interrupt Chained Transfer Select Bit 0 Chained transfer not used 1 Use chained transfer Nothing is assigned Set to 0000000b Multiple Transfer Select Bit 0 Multiple transfer not used Set the number of times transferred 3 Transfer source address SADR b15 bo Set
13. rd dummy_int INT4 software int 27 lword dummy_int INT3 software int 28 lword dummy_int INT2 software int 29 lword dummy_int INT1 software int 30 glb dm index Iword dm index INTO software int 31 Iword dummy int TIMER B5 software int 32 r F Omission Interrupt priority level 7 is used for DMAC II transfers used for DMACII REJ05B0639 0100 Rev 1 00 May 2005 Page 6 of 9 RENESAS M320 80 Series Using DMACII Burst Transfer 5 Reference Renesas Technology Corporation Home Page http www renesas com E mail Support E mail csc renesas com Hardware Manual M 32C 80 Group Hardware Manual Use the latest version on the home page http www renesas com TECHNICAL UPDATE TECHNICAL NEWS Use the latest information on the home page http www renesas com REJ05B0639 0100 Rev 1 00 May 2005 Page 7 of 9 ENESAS REVISION HISTORY M32C 80 Series Using DMACII Burst Transfer Rev Date Description Summary 1 00 2005 05 20 Page First edition issued REJ05B0639 0100 Rev 1 00 May 2005 Page 8 of 9 ENESAS M320 80 Series Using DMACII Burst Transfer Keep safety first in your circuit designs Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble
14. tination address dm_index Transfer data array static unsigned char near data 5 0x11 0x22 0x33 0x44 0x55 Transfer destination static unsigned char near dest FORK kok k oko oko KK IK I I main RK IKK IK I KK IK I IK I void main void asm felr i w Interrupt disable DMACII setting dm_index mod all 0x0026 Transfer Unit 8bit Transfer Data Memory REJ05B0639 0100 Rev 1 00 May 2005 Page 5 of 9 ENESAS M32C 80 Series Using DMACII Burst Transfer Transfer Source Forward Transfer Destination Fixed Calculation Transfer None Burst Transfer Burst Interrupt None Chained Transfer None Multiple Transfer None dm index count 5 number of transfer 5 dm index sadr data Source of transfer beginning address of the data array dm index dadr adest Destination of transfer dest Set the interrupt used for DMAC II rlvl 0x20 int0ic 0x07 INTO interrupt level 7 while 1 4 2 Relocatable Vector Tables section vector ROMDATA variable vector table org VECTOR ADR lword dummy_int BRK software int 0 lword dummy_int i lword dummy_int p lword dummy_int lword dummy int lword dummy_int lword dummy_int lword dummy_int 7 lword dummy_int DMAO software int 8 r F Omission E 7 lword dummy_int INT5 software int 26 lwo
15. with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation or a third party Renesas Technology Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a
Download Pdf Manuals
Related Search
Related Contents
TuneFM™ for iPod User`s Manual - Used Lab Equipment For Sale 099509-MINISCAN HPE.qxd Betriebsanleitung Spirit 250 - SFM Getting Started with NETServer Plus Reliant Series Floor Scale MANUAL DE UTILIZAÇÃO 小佐々地区公民館だより(PDF:848KB) Copyright © All rights reserved.
Failed to retrieve file