Home
M16C/80 Series Searching Array
Contents
1. of array ROH Column element of coincidence data R1L Search data R1L Does not change R1H R1H Indeterminate gt R2 R2 Unused R30 R3 Unused AO Start address of array AO Address of coincidence data Al A1 Indeterminate SECTION PROGRAM CODE ORG VromTOP ROM area ARRANGE CMP B 0 ROL JEQ ARRANGE_NG gt No rows of array are set MOV B ROH R1H Saves columns JEQ ARRANGE_NG gt No columns of array are set MOV W A0 A1 MULU B ROH ROL Calculates array size ARRANGE_10 CMP B R1L A0 JEQ ARRANGE_20 gt Coincidence data found ADD L S 1 A0 ADJNZ W 1 RO ARRANGE_10 gt Checks next data ARRANGE_NG FSET Z Search failed JMP ARRANGE_ EXIT ARRANGE_ 20 PUSH W AO Saves address of coincidence data SUB W A1 A0 Creates address difference from start to coincidence data MOV W AO RO i DIVU B R1H Decomposes coincidence data into row and column elements INC B ROL Corrects rows INC B ROH Corrects columns POP W AO Restores address of coincidence data FCLR Z Search succeeded ARRANGE_ EXIT RTS f END MAEC MCU M16C 69 0207 R1 0 3 tENESAS M16C 80 Series Renesas Technology Corp Searching Array 5 0 Reference MCU Technical Information Homepage http www infomicom maec co jp indexe htm or http www mdece com http www mitsubishichips com products mcu index html or your local Web Site Technical Support E mail support ap
2. 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 product s quality grade as indicated below You must check the quality 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 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
3. 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
4. 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 Mitsubishi Electric Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Mitsubishi Electric 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 Mitsubishi Electric Corporation by various means including the Mitsubishi Semiconductor home page http www mitsubishichips 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 Mitsubishi Electric Corporation assumes no responsibility for any damage liability or other loss resulting from th
5. ata 1 RiL Search data Does not change R1H Indeterminate Used to save column size R2 gt Unused R3 iz Unused AO Start address of array Address of coincidence data A1 Indeterminate Used to save start address Z flag Search succeeded failed Usage precautions MAEC MCU M16C 69 0207 R1 0 1 tENESAS M16C 80 Series Renesas Technology Corp Searching Array 3 0 Flowchart ENTER Yes Row setting of array 0 No Column setting of Yes array 0 No Calculate entire area of array Coincidence data Yes Set address difference from start to coincidence data Decompose coincidence data into row and column elements Yes Search succeeded Clear Z flag Search failed Set Z flag I EXIT Move to next data Search finished MAEC MCU M16C 69 0207 R1 0 2 tENESAS M16C 80 Series Renesas Technology Corp Searching Array 4 0 Programming Code M16C Program Collection CPU M16C 80 series skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk VromTOP EQU OFE0000H Declares start address of ROM Title Searching array Outline Searches for data from two dimensional array of given size within 255 x 255 bytes Stack amount used 2 bytes Notes Success or failure of search is returned by Z flag Input 9 gt Output ROL Row size of array ROL Row element of coincidence data ROH Column size
6. e information contained herein Mitsubishi Electric 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 Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor 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 Mitsubishi Electric Corporation is necessary to reprint or reproduce 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 Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein
7. 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 equipment 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 required 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
8. equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment 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 ce
9. ics products 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 To all our customers Regarding the change of names mentioned in the document such as Mitsubishi Electric and Mitsubishi XX to Renesas Technology Corp The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas Technology Corporation on April 1st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMSs etc Accordingly although Mitsubishi Electric Mitsubishi Electric Corporation Mitsubishi Semiconductors and other Mitsubishi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Note Mitsubishi Electric will continue the business operations of high frequency amp optical devices and power devices Renesas Technology Corp Customer Support Dept April 1 2003 tENESAS Renesas Techno
10. l maec co jp or your local support E mail address A private e mail address should NOT be used Data Sheet M16C 80 group Use the latest version on the Homepage http www infomicom maec co jp indexe htm User s Manual M16C 80 group Use the latest version on the Homepage http www infomicom maec co jp indexe htm MAEC MCU M16C 69 0207 R1 0 4 2tENESAS Renesas Technology Corp Keep safety first in your circuit designs Mitsubishi Electric 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 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 non flammable 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 Mitsubishi semiconductor 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 Mitsubishi Electric Corporation or a third party Mitsubishi Electric Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of
11. logy Corp tENESAS Renesas Technology Corp APPLICATION NOTE M16C 80 Series Searching Array 1 0 Abstract This program searches for specified data from a two dimensional array of a given size maximum 255 x 255 bytes 2 0 Introduction This program searches for specified data from a two dimensional array of a given size maximum 255 x 255 bytes Set the start address of the array in AO the row size of the array in ROL the column size of the array in ROH and the search datain RiL The address the row element and the column element of the coincidence data are output to AO ROL and ROH respectively Information on whether the search has succeeded or failed is output to the Z flag In this program the overall size of the array is calculated the specified data is searched from the entire array region and a difference from the start address to the search address is obtained before decomposing the coincidence data into row and column elements Z Meaning 0 Search succeeded Search failed no coincidence data found row setting of array 0 or column setting of array 0 1 Subroutine name ARRANGE ROM capacity 41byte Interrupt during execution Accepted Number of stacks used 2byte Register memory Input Output Usage condition ROL Row size of array Row element of coincidence data 1 ROH Column size of array Column element of coincidence d
12. rtain use conditions 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 Electron
Download Pdf Manuals
Related Search
Related Contents
Lenovo ThinkStation S30 user manual BM-150-web [ 1870 Ko ] AMF VersaPak Series HV User's Manual Benutzerhandbuch [Deutsch] N° 04-089-V32 du 28/12/2004 様式第1号(第5条関係) 年 月 日 桶 川 市 長 申請者(団体・代表者名等 ATB 31890-33111 Odyssey brakes groan.fm Copyright © All rights reserved.
Failed to retrieve file