F MC -8L MB89580B/BW Series HARDWARE MANUAL
Total Page:16
File Type:pdf, Size:1020Kb
FUJITSU SEMICONDUCTOR CM25-10142-3E CONTROLLER MANUAL F2MCTM-8L 8-BIT MICROCONTROLLER MB89580B/BW Series HARDWARE MANUAL F2MCTM-8L 8-BIT MICROCONTROLLER MB89580B/BW Series HARDWARE MANUAL FUJITSU LIMITED PREFACE ■ Objectives and Intended Reader The MB89580B/BW series of products has been developed as one of the general products of F2MC-8L family. The F2MC-8L family is an original 8 bit one-chip microcontroller that can be used for Application Specific ICs (ASICs). The MB89580B/BW series has a wide range of uses in consumer and industrial equipment. This manual covers the functions and operations of the MB89580B/BW series and is designed for engineers who develop products using the MB89580B/BW series of microcontrollers. For information on the microcontroller’s instruction set, refer to the F2MC-8L Programming Manual. ■ Trademarks F2MC is the abbreviation of FUJITSU Flexible Microcontroller. Other system and product names in this manual are trademarks of respective companies or organizations. The symbols TM and ® are sometimes omitted in this manual. ■ Structure of This Manual This manual consists of the following 13 chapters and appendix. CHAPTER 1 "OVERVIEW" This chapter explains the features and basic specifications of the MB89580B/BW series of microcontrollers. CHAPTER 2 "HANDLING DEVICE" This chapter explains the precautions to be taken when using the USB general-purpose one- chip microcontroller. CHAPTER 3 "CENTRAL PROCESSING UNIT (CPU)" This chapter explains the functions and operation of the CPU. CHAPTER 4 "I/O PORTS" This chapter explains the functions and operation of the I/O ports. CHAPTER 5 "TIMEBASE TIMER" This chapter explains the functions and operation of the timebase timer. CHAPTER 6 "WATCHDOG TIMER" This chapter explains the functions and operation of the watchdog timer. CHAPTER 7 "2-CHANNEL 8-BIT PWM TIMER" This chapter explains the functions and operation of the 2-channel 8-bit PWM timer. CHAPTER 8 "EXTERNAL INTERRUPT CIRCUIT (LEVEL)" This chapter explains the functions and operation of the external interrupt circuit (level). CHAPTER 9 "PARALLEL PORTS" This chapter explains the functions and operation of the parallel ports. i CHAPTER 10 "USB FUNCTION" This chapter explains the functions and operation of the USB function circuit. CHAPTER 11 "UART/SIO" This chapter explains the functions and operation of UART/SIO. CHAPTER 12 "CLOCK OUTPUT FUNCTION" This chapter explains the clock output function and the circuit operation. CHAPTER 13 "PULL-UP OPTION" This chapter explains the pull-up option. APPENDIX The appendixes provide the I/O map, instruction lists, and other information. ii • The contents of this document are subject to change without notice. Customers are advised to consult with FUJITSU sales representatives before ordering. • The information, such as descriptions of function and application circuit examples, in this document are presented solely for the purpose of reference to show examples of operations and uses of FUJITSU semiconductor device; FUJITSU does not warrant proper operation of the device with respect to use based on such information. When you develop equipment incorporating the device based on such information, you must assume any responsibility arising out of such use of the information. FUJITSU assumes no liability for any damages whatsoever arising out of the use of the information. • Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of FUJITSU or any third party or does FUJITSU warrant non-infringement of any third-party's intellectual property right or other right by using such information. FUJITSU assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein. • The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible repeater and artificial satellite). Please note that FUJITSU will not be liable against you and/or any third party for any claims or damages arising in connection with above- mentioned uses of the products. • Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. • If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by Japanese government will be required for export of those products from Japan. ©2005 FUJITSU LlMITED Printed in Japan iii iv CONTENTS CHAPTER 1 OVERVIEW ................................................................................................... 1 1.1 MB89580B/BW Series Features ............................................................................................................ 2 1.2 MB89580B/BW Series Models .............................................................................................................. 4 1.3 Differences between Models ................................................................................................................. 6 1.4 Block Diagram of MB89580 B/BW Series .............................................................................................. 8 1.5 Pin Assignments .................................................................................................................................... 9 1.6 Package Dimensions ........................................................................................................................... 10 1.7 Pin Functions ....................................................................................................................................... 12 1.8 I/O Circuit Types .................................................................................................................................. 16 CHAPTER 2 HANDLING DEVICE ................................................................................... 19 2.1 Notes on Handling Devices ................................................................................................................. 20 CHAPTER 3 CENTRAL PROCESSING UNIT (CPU) ...................................................... 21 3.1 Memory Space ..................................................................................................................................... 22 3.1.1 Special-Use Areas ......................................................................................................................... 24 3.1.2 Location of 16-Bit Data in Memory ................................................................................................. 26 3.2 Dedicated Registers ............................................................................................................................ 28 3.2.1 Condition Code Register (CCR) ..................................................................................................... 30 3.2.2 Register Bank Pointer (RP) ............................................................................................................ 33 3.3 General-Purpose Registers ................................................................................................................. 34 3.4 Interrupts ............................................................................................................................................. 36 3.4.1 Interrupt Level Registers (ILR1, ILR2, and ILR3) ........................................................................... 38 3.4.2 Processing During Interrupt Operation ........................................................................................... 40 3.4.3 Multiple Interrupts ........................................................................................................................... 42 3.4.4 Interrupt Processing Time .............................................................................................................. 43 3.4.5 Stack Operation During Interrupt Processing ................................................................................. 44 3.4.6 Stack Area for Interrupt Processing ................................................................................................ 45 3.5 Resets ................................................................................................................................................. 46 3.5.1 External Reset Pin .........................................................................................................................