Manual Do Utilizadoríndice analíticoCHAPTER 1 OVERVIEW171.1 Features of MB89202/F202RA Series181.2 MB89202/F202RA Series Product Lineup201.3 Differences between Models221.4 Block Diagram of MB89202/F202RA Series231.5 Pin Assignment241.6 Package Dimensions261.7 Pin Functions Description281.8 I/O Circuit Types30CHAPTER 2 HANDLING DEVICES332.1 Precautions on Handling Devices34CHAPTER 3 CPU373.1 Memory Space383.1.1 Specific-purpose Areas403.1.2 Location of 16-bit Data on Memory423.2 Dedicated Register433.2.1 Condition Code Register (CCR)453.2.2 Register Bank Pointer (RP)473.3 General-Purpose Registers483.4 Interrupts503.4.1 Interrupt Level Setting Registers (ILR1 to ILR4)523.4.2 Steps in the Interrupt Operation533.4.3 Multiple Interrupts553.4.4 Interrupt Processing Time563.4.5 Stack Operation at Interrupt Processing573.4.6 Stack Area for Interrupt Processing583.5 Reset593.5.1 Reset Flag Register (RSFR)613.5.2 External Reset Pin633.5.3 Reset Operation643.5.4 State of Each Pin at Reset663.6 Clock673.6.1 Clock Generator693.6.2 Clock Controller703.6.3 System Clock Control Register (SYCC)723.6.4 Clock Mode743.6.5 Oscillation Stabilization Wait Time763.7 Standby Mode (Low-Power Consumption Mode)783.7.1 Operations in Standby Mode793.7.2 Sleep Mode803.7.3 Stop Mode813.7.4 Standby Control Register (STBC)823.7.5 Diagram for State Transition in Standby Mode843.7.6 Notes on Standby Mode863.8 Memory Access Mode88CHAPTER 4 I/O PORTS914.1 Overview of I/O Ports924.2 Port 0944.2.1 Registers of Port 0 (PDR0, DDR0, and PUL0)964.2.2 Operations of Port 0 Functions984.3 Port 31004.3.1 Registers of Port 3 (PDR3, DDR3, PUL3)1024.3.2 Operations of Port 3 Functions1044.4 Port 41064.4.1 Registers of Port 4 (PDR4)1084.4.2 Operations of Port 4 Functions1094.5 Port 51104.5.1 Registers of Port 5 (PDR5, DDR5, PUL5)1124.5.2 Operations of Port 5 Functions1144.6 Port 61164.6.1 Registers of Port 6 (PDR6, DDR6, PUL6)1194.6.2 Operations of Port 6 Functions1214.7 Port 71234.7.1 Registers of Port 7 (PDR7, DDR7, PUL7)1254.7.2 Operations of Port 7 Functions1274.8 Programming Example of I/O Port129CHAPTER 5 TIME-BASE TIMER1315.1 Overview of Time-base Timer1325.2 Configuration of Time-base Timer1345.3 Time-base Timer Control Register (TBTC)1355.4 Interrupt of Time-base Timer1375.5 Operations of Time-base Timer Functions1385.6 Notes on Using Time-base Timer1405.7 Program Example for Time-base Timer141CHAPTER 6 WATCHDOG TIMER1436.1 Overview of Watchdog Timer1446.2 Configuration of Watchdog Timer1456.3 Watchdog Control Register (WDTC)1466.4 Operations of Watchdog Timer Functions1476.5 Notes on Using Watchdog Timer1486.6 Program Example for Watchdog Timer149CHAPTER 7 8-BIT PWM TIMER1517.1 Overview of 8-bit PWM Timer1527.2 Configuration of 8-bit PWM Timer1557.3 Pin of 8-bit PWM Timer1577.4 Registers of 8-bit PWM Timer1587.4.1 PWM Control Register (CNTR)1597.4.2 PWM Compare Register (COMR)1617.5 Interrupt of 8-bit PWM Timer1637.6 Operations of the Interval Timer Functions1647.7 Operations of the 8-bit PWM Timer Functions1667.8 States in Each Mode During Operation1687.9 Notes on Using 8-bit PWM Timer1717.10 Program Example for PWM Timer173CHAPTER 8 8/16-BIT CAPTURE TIMER/ COUNTER1778.1 Overview of 8/16-bit Capture Timer/Counter1788.2 Configuration of 8/16-bit Capture Timer/Counter1828.3 Pins of 8/16-bit Capture Timer/Counter1848.4 Registers of 8/16-bit Capture Timer/Counter1868.4.1 Capture Control Register (TCCR)1878.4.2 Timer 0 Control Register (TCR0)1898.4.3 Timer 1 Control Register (TCR1)1918.4.4 Timer Output Control Register (TCR2)1938.4.5 Timer 0 Data Register (TDR0)1948.4.6 Timer 1 Data Register (TDR1)1968.4.7 Capture Data Registers H and L (TCPH and TCPL)1988.5 8/16-bit Capture Timer/Counter of Interrupts1998.6 Explanation of Operations of Interval Timer Functions2018.7 Operation of Counter Functions2058.8 Functions of Operations of Capture Functions2098.9 8/16-bit Capture Timer/Counter Operation in Each Mode2138.10 Notes on Using 8/16-bit Capture Timer/Counter2148.11 Program Example for 8/16-bit Capture Timer/Counter216CHAPTER 9 12-BIT PPG TIMER2219.1 Overview of 12-bit PPG Timer2229.2 Configuration of 12-bit PPG Timer Circuit2259.3 Pin of 12-bit PPG Timer2279.4 Registers of 12-bit PPG Timer2299.4.1 12-bit PPG Control Register 1 (RCR21)2309.4.2 12-bit PPG Control Register 2 (RCR22)2319.4.3 12-bit PPG Control Register 3 (RCR23)2329.4.4 12-bit PPG Control Register 4 (RCR24)2349.5 Operations of 12-bit PPG Timer Functions2359.6 Notes on Using 12-bit PPG Timer2379.7 Program Example for 12-bit PPG Timer239CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 (EDGE)24110.1 Overview of External Interrupt Circuit 124210.2 Configuration of External Interrupt Circuit 124310.3 Pins of External Interrupt Circuit 124510.4 Registers of External Interrupt Circuit 124710.4.1 External Interrupt Control Register 1 (EIC1)24810.4.2 External Interrupt Control Register 2 (EIC2)25110.5 Interrupt of External Interrupt Circuit 125310.6 Operations of External Interrupt Circuit 125510.7 Program Example for External Interrupt Circuit 1257CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 (LEVEL)25911.1 Overview of External Interrupt Circuit 226011.2 Configuration of External Interrupt Circuit 226111.3 Pins of External Interrupt Circuit 226211.4 Registers of External Interrupt Circuit 226511.4.1 External Interrupt 2 Control Register (EIE2)26611.4.2 External Interrupt 2 Flag Register (EIF2)26811.5 Interrupt of External Interrupt Circuit 226911.6 Operations of External Interrupt Circuit 227011.7 Program Example for External Interrupt Circuit 2272CHAPTER 12 A/D CONVERTER27512.1 Overview of A/D Converter27612.2 Configuration of A/D Converter27712.3 Pins of A/D Converter27912.4 Registers of A/D Converter28112.4.1 A/D Control Register 1 (ADC1)28212.4.2 A/D Control Register 2 (ADC2)28412.4.3 A/D Data Register (ADDH and ADDL)28612.4.4 A/D Enable Register (ADEN)28712.5 Interrupt of A/D Converter28812.6 Operations of A/D Converter Functions28912.7 Notes on Using A/D Converter29112.8 Program Example for A/D Converter293CHAPTER 13 UART29513.1 Overview of UART29613.2 Configuration of UART30013.3 Pins of UART30313.4 Registers of UART30513.4.1 Serial Mode Control Register (SMC)30613.4.2 Serial Rate Control Register (SRC)30813.4.3 Serial Status and Data Register (SSD)31013.4.4 Serial Input Data Register (SIDR)31313.4.5 Serial Output Data Register (SODR)31413.4.6 Clock Divider Selection Register (UPC)31513.4.7 Serial Switch Register (SSEL)31713.5 Interrupt of UART31913.6 Operations of UART Functions32013.6.1 Transmission Operations (Operating Mode 0, 1, 2, and 3)32213.6.2 Reception Operations (Operating Mode 0, 1, or 3)32313.6.3 Reception Operations (Operating Mode 2 Only)32513.7 Program Example for UART327CHAPTER 14 8-BIT SERIAL I/O32914.1 Overview of 8-Bit Serial I/O33014.2 Configuration of 8-Bit Serial I/O33114.3 Pins of 8-Bit Serial I/O33314.4 Registers of 8-Bit Serial I/O33514.4.1 Serial Mode Register (SMR)33614.4.2 Serial Data Register (SDR)33914.5 Interrupt of 8-Bit Serial I/O34014.6 Operations of Serial Output Functions34114.7 Operations of Serial Input Functions34314.8 8-Bit Serial I/O Operation in Each Mode34514.9 Notes on Using 8-Bit Serial I/O34914.10 Example of 8-Bit Serial I/O Connection35014.11 Program Example for 8-Bit Serial I/O352CHAPTER 15 BUZZER OUTPUT35515.1 Overview of the Buzzer Output35615.2 Configuration of the Buzzer Output35715.3 Pin of the Buzzer Output35815.4 Buzzer Register (BZCR)35915.5 Program Example for Buzzer Output361CHAPTER 16 WILD REGISTER FUNCTION36316.1 Overview of the Wild Register Function36416.2 Configuration of the Wild Register Function36516.3 Registers of the Wild Register Function36616.3.1 Data Setting Registers (WRDR0 and WRDR1)36716.3.2 Higher Address Set Registers (WRARH0 and WRARH1)36816.3.3 Lower Address Set Registers (WRARL0 and WRARL1)36916.3.4 Address Comparison EN Register (WREN)37016.3.5 Data Test Set Register (WROR)37116.4 Operations of the Wild Register Functions372CHAPTER 17 FLASH MEMORY37317.1 Overview of Flash Memory37417.2 Flash Memory Control Status Register (FMCS)37517.3 Starting the Flash Memory Automatic Algorithm37717.4 Confirming the Automatic Algorithm Execution State37817.4.1 Data Polling Flag (DQ7)37917.4.2 Toggle Bit Flag (DQ6)38017.4.3 Timing Limit Exceeded Flag (DQ5)38117.4.4 Toggle Bit-2 Flag (DQ2)38217.5 Detailed Explanation of Writing to Erasing Flash Memory38317.5.1 Setting The Read/Reset State38417.5.2 Writing Data38517.5.3 Erasing All Data (Erasing Chips)38717.6 Flash Security Feature38817.7 Notes on using Flash Memory389APPENDIX391APPENDIX A I/O Map392APPENDIX B Overview of the Instructions396B.1 Addressing399B.2 Special Instructions403B.3 Bit Manipulation Instructions (SETB and CLRB)407B.4 F2MC-8L Instructions List408B.5 Instruction Map415APPENDIX C Mask Options416APPENDIX D Programming EPROM with Evaluation Chip417APPENDIX E Pin State of the MB89202/F202RA Series418Tamanho: 5 MBPáginas: 436Language: EnglishAbrir o manual