Fujitsu Microelectronics Europe Application Note MCU-AN-300006-E-V14 F²MC-16LX/FRLITE FAMILY 16/32-BIT MICROCONTROLLER MB90340 / MB91270 SERIES COMPARISON OF MB90340 AND MB91270 SERIES MCU APPLICATION NOTE Comparison of MB90340 and MB91270 Series MCU Revision History Revision History Date 2005-12-12 2006-01-10 2006-01-13 2006-09-12 2006-10-27 Issue V1.0, PHu: 1st release V1.1, PHu: Include information about Timebase Timer clock source V1.2, PHu: Error corrections V1.3, PHu: Typo corrected V1.4, PHu: Add information regarding power-on reset This document contains 14 pages. MCU-AN-300006-E-V14 -2- © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Warranty and Disclaimer Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for all products delivered free of charge (e.g. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. Note, all these products are intended and must only be used in an evaluation laboratory environment. 1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Microelectronics Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer. 2. Should a Product turn out to be defect, Fujitsu Microelectronics Europe GmbH´s entire liability and the customer´s exclusive remedy shall be, at Fujitsu Microelectronics Europe GmbH´s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer´s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH. 3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated. 4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH´s and its suppliers´ liability is restricted to intention and gross negligence. NO LIABILITY FOR CONSEQUENTIAL DAMAGES To the maximum extent permitted by applicable law, in no event shall Fujitsu Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product. Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect © Fujitsu Microelectronics Europe GmbH -3- MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Contents Contents REVISION HISTORY ............................................................................................................ 2 WARRANTY AND DISCLAIMER ......................................................................................... 3 CONTENTS .......................................................................................................................... 4 1 INTRODUCTION.............................................................................................................. 5 2 OVERVIEW...................................................................................................................... 6 2.1 Features.................................................................................................................. 6 3 HARDWARE .................................................................................................................... 8 3.1 Serial Programming Interface .................................................................................. 8 3.2 Mode Setting ........................................................................................................... 8 3.3 Power-on Reset....................................................................................................... 8 3.4 Pin Overview ........................................................................................................... 9 4 PERIPHERALS.............................................................................................................. 11 4.1 Timebase Timer .................................................................................................... 11 4.2 DMA / EI2OS ......................................................................................................... 11 4.3 Watchdog .............................................................................................................. 11 4.4 AD Converter ........................................................................................................ 12 4.5 LIN-USART ........................................................................................................... 12 5 EXTERNAL BUS ........................................................................................................... 13 5.1 Chip Select............................................................................................................ 13 5.2 Address Latch Enable ........................................................................................... 13 5.3 Bus Operation Frequency...................................................................................... 13 5.4 Hold Function ........................................................................................................ 13 5.5 Endianess ............................................................................................................. 14 MCU-AN-300006-E-V14 -4- © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Chapter 1 Introduction 1 Introduction This application note compares the MB90340 Series MCUs and the MB91270 Series MCUs. The MB90340 Series is a member of the F2MC-16LX family and is available in the M05 and the M06 package. The MB91270 Series is a member of the FRLite family and is available in the M05 package. When looking at the M05 package of both Series, the pin-out of the power pins and the general purpose IO pins is identical. This offers the possibility of designing a target application that can be equipped with either Series. This application note compares both Series so that the application can be designed in such a way as to allow deploying either Series. The emulation chip of the MB91270 Series is the MB91V280. The emulation chip of the MB90340 Series is the MB90V340. © Fujitsu Microelectronics Europe GmbH -5- MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Chapter 2 Overview 2 Overview The principle differences between the two series of MCUs are highlighted in this chapter. Detailed descriptions and support is given in the respective chapter. 2.1 Features The features of the MB90340 Series and the MB91270 Series are compared in the following table. ROM memory MB90V340 MB90(F)34X MB91V280 MB91(F)27X external MB90(F)346: 64 Kbyte external MB91F272: 256 Kbyte 48 Kbyte MB91F272: 10 Kbyte No No MB90341, MB90348: 128 Kbyte Part numbers with ‘F’ have Flash ROM MB90(F)347: 128 Kbyte MB90(F)342, MB90(F)349: 256 Kbyte MB90F343: 384 Kbyte MB90F345: 512 Kbyte RAM 30 Kbyte MB90(F)346: 2 Kbyte MB90(F)347: 6 Kbyte MB90341, MB90(F)342, MB90348, MB90(F)349: 16 Kbyte MB90F343, MB90F345: 20 Kbyte Flash Security No MB90341, MB90(F)342, MB90343, MB90F345, MB90(F)347, MB90348, MB90(F)349: Yes MB90(F)346: No Power-on Reset Yes Yes No No BIROMPLL Yes Yes No No System clock Max. 16 MHz Max. 16 MHz Max. 32 MHz Max. 32 MHz Subclock -101, -103: No MB90(F)34X_S: No Yes MB91F272S: No -102, -104: Yes MB90(F)34X_: Yes MB91F272W: Yes Clock monitor Yes Yes Yes Yes VCC Range 5.0 V +/-10% 3.5 – 5.5 V 3.5 – 5.5 V 3.5 – 5.5 V 4.0 – 5.5 V when using ADC, Flash programming 4.5 – 5.5 V when using ADC 4.5 – 5.5 V when using ADC Not specified -40 – 105 °C in single chip mode 4.5 – 5.5 V when using external bus Temperature Range Not specified -40 – 105 °C -40 – 85 °C in External bus mode Package PGA-299 QFP-100 / M06 / PF PGA-401 LQFP-100 / M05 / PFV 16 16 LQFP-100 / M05 / PFV Interrupt levels 8 Pin Input Levels Port selectable Port selectable Pin selectable Pin selectable Port pin pull-up function Port 0 – 3 Port 0 – 3 All port pins except P44-P47, P56, P57, P76, P77 All port pins except P44-P47, P56, P57, P76, P77 Port pin pulldown function No No All port pins except P44-P47, P56, P57, P76, P77 All port pins except P44-P47, P56, P57, P76, P77 DMA EI2OS / NDMA (16 ch) EI2OS / NDMA (16 ch) 5 ch 5 ch ADC (10 bit) 24 ch, min. 1.9 Ns conversion time 24 ch, min. 1.9 Ns conversion time 32 ch, min. 2.75 Ns conversion time 24 ch, min. 2.75 Ns conversion time DAC 2 ch 0 2 ch 0 MCU-AN-300006-E-V14 8 -6- © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Chapter 2 Overview MB90V340 MB90(F)34X MB91V280 MB91(F)27X PPG 8 ch x 16 bit 8 ch x 16 bit 8 ch x 16 bit 8 ch x 16 bit 16 ch x 8 bit 16 ch x 8 bit 16 ch x 8 bit 16 ch x 8 bit LIN-USART 5 ch 4 ch 7 ch 7 ch 3 C-CAN (128 msg) 1 C-CAN (32 msg) CAN 3 ch F-CAN (16 msg) MB90341, MB90(F)342, MB90F343, MB90F345: 2 ch F-CAN (16 msg) MB90(F)346, MB90(F)347, MB90348, MB90(F)349: 1 ch F-CAN (16 msg) I2C 2 ch 2 ch 3 ch 3 ch OCU (16 bit) 8 ch 8 ch 8 ch 8 ch ICU (16 bit) 8 ch 8 ch 8 ch 8 ch I/O timer (16 bit) 2 ch 2 ch 4 ch 4 ch Reload timer 4 ch (16 bit) 4 ch (16 bit) 3 ch (16 bit) 3 ch (16 bit) Timebase timer 1 1 1 1 Watchdog 1 (main / sub clock driven) 1 (main / sub clock driven) 1 1 Watch Timer / RTC -101, -102: No MB90(F)34X_S: No -103, -104: Yes MB90(F)34X_: Yes Yes (incl. registers for seconds, minutes, and hours) Yes (incl. registers for seconds, minutes, and hours) External bus, shared with IO pins 16 bit data, 24 bit address 16 bit data, 24 bit address, multiplexed 16 bit data, 24 bit address 16 bit data, 24 bit address, multiplexed External IRQ 16 ch 16 ch 16 ch 16 ch 80 (82 for devices without subclock) 126 80 (82 for devices without subclock) IO max Chip select 0 0 4 4 Up/Down counter 0 0 2 ch x 16 bit 2 ch x 16 bit 4 ch x 8 bit 4 ch x 8 bit © Fujitsu Microelectronics Europe GmbH -7- MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Chapter 3 Hardware 3 Hardware 3.1 Serial Programming Interface The following table shows the differences that have to be considered for an application design. MB90340 Series MB91270 Series Burn-in UART UART0 UART1 Mode selection port pins P00, P01 P10, P11 3.2 Mode Setting The external bus mode is set in a two step process. First, the pins MD[2:0] determine, where the mode settings are located. Second, the mode register has to be set correctly. This is done in the start.asm file for the MB90340 Series and in the vectors.c file for the MB91270 Series. Mode MB90340 Series MB91270 Series Single Chip MD[2..0]=’011’ MD[2..0]=’000’ Internal ROM, External Bus, MD[2..0]=’011’ 8 bit access MD[2..0]=’000’ Internal ROM, External Bus, MD[2..0]=’011’ 16 bit access MD[2..0]=’000’ External ROM, External Bus, MD[2..0]=’000’ 8 bit access MD[2..0]=’001’ External ROM, External Bus, MD[2..0]=’001’ 16 bit access MD[2..0]=’001’ Note: The device MB91F272 supports only the Single Chip and the Internal ROM modes. The mode register MODR of the MB91270 Series, located at address 0xFFFF8, has to be set in the vectors.c file as shown in the following table. Mode MB91(F)27X MODR Single Chip 0x07 Internal ROM, External Bus, 8 bit access 0x04 Internal ROM, External Bus, 16 bit access 0x05 External ROM, External Bus, 8 bit access 0x00 External ROM, External Bus, 16 bit access 0x01 Note: The device MB91F272 supports only the Single Chip and the Internal ROM modes. 3.3 Power-on Reset The MB90340 Series MCUs feature a Power-on Reset. This means that after a power-cycle, the MCU performs a reset, reads the Mode Pins and starts according to the Mode Pin settings. MCU-AN-300006-E-V14 -8- © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Chapter 3 Hardware The MB91270 Series MCUs do not feature a Power-on Reset. This means that after a power-cycle, a reset must be applied externally to the INITX pin. 3.4 Pin Overview The following table compares the pin-out of the MB90340 Series to the MB91270 Series. Differences are highlighted. Pin number MB90340 MB91270 Pin Number MB90340 MB91270 1 P26/A22/IN2 P26/A22/IN2 26 P54/AN12/TOT3 P54/AN12/AIN1 2 P27/A23/IN3 P27/A23/IN3 27 P55/AN13 P55/AN13/ZIN1 3 P30/ALE/IN4 P30/ASX/IN4 28 P56/AN14 P56/AN14/DAO0 4 P31/RDX/IN5 P31/RDX/IN5 29 P57/AN15 P57/AN15/DAO1 5 P32/WRLX/WRX/INT10R P32/WR0X/RX2/INT10R 30 AVcc AVcc 6 P33/WRHX P33/WR1X/TX2 31 AVRH AVRH 7 P34/HRQ/OUT4 P34/BRQ/OUT4 32 AVRL AVRL 8 P35/HAKX/OUT5 P35/BGRNTX/OUT5 33 AVss AVss 9 P36/RDY/OUT6 P36/RDY/OUT6 34 P60/AN0/PPG0 P60/AN0/PPG0 10 P37/CLK/OUT7 P37/SYSCLK/OUT7 35 P61/AN1/PPG2 P61/AN1/PPG2 11 P40/X0A P40/X1A 36 P62/AN2/PPG4 P62/AN2/PPG4 12 P41/X1A P41/X0A 37 P63/AN3/PPG6 P63/AN3/PPG6 13 Vcc Vcc 38 P64/AN4/PPG8 P64/AN4/PPG8 14 Vss Vss 39 P65/AN5/PPGA P65/AN5/PPGA 15 C C 40 P66/AN6/PPGC P66/AN6/PPGC 16 P42/IN6/RX1/INT9R P42/IN6/RX1/INT9R 41 P67/AN7/PPGE P67/AN7/PPGE 17 P43/IN7/TX1 P43/IN7/TX1 42 Vss Vss 18 P44/SDA0/FRCK0 P44/SDA0/FRCK0 43 P70/AN16/INT0 P70/AN16/INT0 19 P45/SCL0/FRCK1 P45/SCL0/FRCK1/AIN2 44 P71/AN17/INT1 P71/AN17/INT1 20 P46/SDA1 P46/SDA1/BIN2 45 P72/AN18/INT2 P72/AN18/INT2 21 P47/SCL1 P47/SCL1/ZIN2 46 P73/AN19/INT3 P73/AN19/INT3 22 P50/AN8/SIN2 P50/AN8/SIN2 47 P74/AN20/INT4 P74/AN20/INT4 23 P51/AN9/SOT2 P51/AN9/SOT2 48 P75/AN21/INT5 P75/AN21/INT5 24 P52/AN10/SCK2 P52/AN10/SCK2 49 MD2 MD2 25 P53/AN11/TIN3 P53/AN11/BIN1 50 MD1 MD1 © Fujitsu Microelectronics Europe GmbH -9- MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Chapter 3 Hardware Pin number MB90340 MB91270 Pin number MB90340 MB91270 51 MD0 MD0 76 P01/AD01/INT9 P01/AD01/INT9/SOT5 52 RSTX INITX 77 P02/AD02/INT10 P02/AD02/INT10/SCK5 53 P76/AN22/INT6 P76/AN22/INT6/SDA2 78 P03/AD03/INT11 P03/AD03/INT11/SIN6 54 P77/AN23/INT7 P77/AN23/INT7/SCL2 79 P04/AD04/INT12 P04/AD04/INT12/SOT6 55 P80/TIN0/ADTG/INT12R P80/TIN0/ADTG/INT12R 80 P05/AD05/INT13 P05/AD05/INT13/SCK6 56 P81/TOT0/CKOT/INT13R P81/TOT0/CKOT/INT13R 81 P06/AD06/INT14 P06/AD06/INT14 57 P82/SIN0/TIN2/INT14R P82/SIN0/TIN2/INT14R 82 P07/AD07/INT15 P07/AD07/INT15 58 P83/SOT0/TOT2 P83/SOT0/TOT2 83 P10/AD08/TIN1 P10/AD08/TIN1 59 P84/SCK0/INT15R P84/SCK0/INT15R 84 P11/AD09/TOT1 P11/AD09/TOT1 60 P85/SIN1 P85/SIN1 85 P12/AD10/SIN3/INT11R P12/AD10/SIN3/INT11R 61 P86/SOT1 P86/SOT1 86 P13/AD11/SOT3 P13/AD11/SOT3 62 P87/SCK1 P87/SCK1 87 P14/AD12/SCK3 P14/AD12/SCK3 63 Vcc Vcc 88 Vcc Vcc 64 Vss Vss 89 Vss Vss 65 P90/PPG1 P90/CS0X/PPG1 90 X1 X1 66 P91/PPG3 P91/CS1X/PPG3/AIN3 91 X0 X0 67 P92/PPG5 P92/CS2X/PPG5/BIN3 92 P15/AD13/SIN4 P15/AD13/SIN4 68 P93/PPG7 P93/CS3X/PPG7/ZIN3 93 P16/AD14/SOT4 P16/AD14/SOT4 69 P94/OUT0 P94/OUT0/AIN0 94 P17/AD15/SCK4 P17/AD15/SCK4 70 P95/OUT1 P95/OUT1/BIN0 95 P20/A16/PPG9 P20/A16/PPG9 71 P96/OUT2 P96/OUT2/ZIN0 96 P21/A17/PPGB P21/A17/PPGB 72 P97/OUT3 P97/OUT3 97 P22/A18/PPGD P22/A18/PPGD 73 PA0/RX0/INT8R PA0/RX0/INT8R 98 P23/A19/PPGF P23/A19/PPGF 74 PA1/TX0 PA1/TX0 99 P24/A20/IN0 P24/A20/IN0 75 P00/AD00/INT8 P00/AD00/INT8/SIN5 100 P25/A21/IN1 P25/A21/IN1 MCU-AN-300006-E-V14 - 10 - © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Chapter 4 Peripherals 4 Peripherals This chapter describes the differences of the on-chip peripherals. Note: The register settings of any used peripheral should be checked when porting software of either Series to the other Series. 4.1 Timebase Timer MB90340 Series MB91270 Series Set initial value No Yes Counter width 18 bit 26 bit Interval times 4 8 Clock Sources Main Clock (oscillation clock / 2) Main Clock (oscillation clock / 2) PLL Subclock 4.2 DMA / EI2OS MB90340 Series 2 Automatic data transfer function EI OS Number of channels 16 MB91270 Series DMA NDMA 5 2 Channel assignment to resource EI OS: Free Free Use all resources with interrupt that share an ICR EI2OS: No Trigger EI2OS: All interrupts UART[0:2] NDMA: External interrupt 0, 1 NDMA: Fixed Yes NDMA: Yes • Reload timer [0:2] • External interrupt [0:15] Reload timer [0:2] ADC • ADC • ICU [0:5] • OCU [0:7] • UART [0:4] • I2C 1 4.3 Watchdog Interval MB90340 Series MB91270 Series Main Clock (4 MHz): 3.58 ms – 589.82 ms Typ. 655 ms Subclock (8.192 kHz): 0.457 s – 18.432 s Default Disabled © Fujitsu Microelectronics Europe GmbH Enabled - 11 - MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Chapter 4 Peripherals 4.4 AD Converter MB90340 Series MB91270 Series Analog input port default function Analog input General purpose IO / peripheral function Min. conversion time 1.9 Ns 2.75 Ns ADC triggered by Reload Timer 1 External pin (falling edge) Reload Timer 2 External pin (falling edge) Software Software Note: The conversion time depends on the supply voltage, the machine clock, and the driving impedance. 4.5 LIN-USART For the LIN function of the LIN-USART, the LIN break detection is connected to a fixed ICU. The following table shows the assignments. Differences between the MB90340 Series and the MB91270 Series are highlighted. MB90V340 MB90(F)34X MB91V280 MB91(F)27X USART0 ICU0 ICU0 ICU0 ICU0 USART1 ICU1 ICU1 ICU1 ICU1 USART2 ICU6 ICU6 ICU2 ICU2 USART3 ICU7 ICU7 ICU3 ICU3 USART4 ICU6 n/a ICU4 ICU4 USART5 n/a n/a ICU5 ICU5 USART6 n/a n/a ICU6 (PFR43=1) ICU6 (PFR43=1) ICU7 (PFR42=1) ICU7 (PFR42=1) MCU-AN-300006-E-V14 - 12 - © Fujitsu Microelectronics Europe GmbH Comparison of MB90340 and MB91270 Series MCU Chapter 5 External Bus 5 External Bus This chapter describes the differences between the MB90340 Series and the MB91270 Series with respect to the usage of the external bus. 5.1 Chip Select The chip select signals CSX[3:0] are assigned to the pins P9[3:0] respectively. If these pins are used as general purpose IO by your application, make sure to disable the chip select feature. The chip select feature is disabled by setting the Chip Select Enable Register CSER=0x00. 5.2 Address Latch Enable MB90340 Series MB91270 Series Name Address Latch Enable (ALE) Address Strobe (ASX) Assertion duration (min.) tCP/2 – 10 ns tCP Logic Positive Negative 5.3 Bus Operation Frequency The external bus of the MB91270 Series devices is specified for an operation frequency of up to 16 MHz. Before selecting a PLL setting that results in an internal base clock that exceeds 16 MHz, make sure that the external bus frequency is set to a lower frequency. The clock divider for the external clock is set by Base Clock Division Setting Register 1 (DIVR1) according to the following table. The register bits T[3:0] are located at bits DIVR1[7:4] respectively. T3 T2 T1 T0 Clock divide-by rate Clock frequency: if the source oscillation is 4MHz and the PLL is multiplied by 8 0 0 0 0 R 32.0 MHz (initial value) 0 0 0 1 R/2 16.0 MHz 0 0 1 0 R/3 10.7 MHz 0 0 1 1 R/4 8.00 MHz 0 1 0 0 R/5 6.40 MHz 0 1 0 1 R/6 5.33 MHz 0 1 1 0 R/7 4.57 MHz 0 1 1 1 R/8 4.00 MHz … … … … … … 1 1 1 1 R / 16 R: Interval of the system base clock 5.4 2.00 MHz Hold Function The MB90340 Series supports a Hold Function. In the MB91270 Series, only the evaluation chip MB91V280 supports it at this time. The signal names differ. Please see the table below for the corresponding signal names. © Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-300006-E-V14 Comparison of MB90340 and MB91270 Series MCU Chapter 5 External Bus MB90340 Series MB91V280 MB91F272 Hold request HRQ BRQ No Hold acknowledge HAKX BGRNTX No 5.5 Endianess While the MB90340 Series uses Little Endian mode, the MB91270 Series uses Big Endian mode. MCU-AN-300006-E-V14 - 14 - © Fujitsu Microelectronics Europe GmbH