0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MB90F823APFM

MB90F823APFM

  • 厂商:

    FUJITSU(富士通)

  • 封装:

  • 描述:

    MB90F823APFM - 16-bit Proprietary Microcontroller - Fujitsu Component Limited.

  • 数据手册
  • 价格&库存
MB90F823APFM 数据手册
FUJITSU SEMICONDUCTOR DATA SHEET DS07-13738-2E 16-bit Proprietary Microcontroller CMOS F2MC-16LX MB90820 Series MB90822/823/F822A/F823A/V820 ■ DESCRIPTION The MB90820 series is a line of general-purpose, Fujitsu 16-bit microcontrollers designed for process control applications which require high-speed real-time processing, such as consumer products. While inheriting the AT architecture of the F2MC* family, the instruction set for the F2MC-16LX CPU core of the MB90820 series incorporates additional instructions for high-level languages, supports extended addressing modes, and contains enhanced multiplication and division instructions as well as a substantial collection of improved bit manipulation instructions. In addition, the MB90820 series has an on-chip 32-bit accumulator which enables processing of long-word data. The peripheral resources integrated in the MB90820 series include : an 8/10-bit A/D converter, 8-bit D/A converters, UARTs (SCI) 0, 1, multi-functional timer (16-bit free-running timer, input capture units (ICUs) 0 to 3, output compare units (OCUs) 0 to 5, 16-bit PPG timer 0, waveform generator), 16-bit PPG timer 1, 2, PWC 0, 1, 16-bit reload timer 0, 1 and DTP/external interrupt. *: F2MC stands for FUJITSU Flexible Microcontroller, a registered trademark of FUJITSU LIMITED. ■ FEATURES • Minimum execution time of instruction : 42 ns / 4 MHz oscillation (uses PLL clock multiplication) maximum multiplier = 6 • Maximum memory space 16M bytes Linear/bank access (Continued) ■ PACKAGES 80-pin plastic QFP 80-pin plastic LQFP 80-pin plastic LQFP (FPT-80P-M06) (FPT-80P-M05) (FPT-80P-M11) MB90820 Series (Continued) • Instruction set optimized for controller applications Supported data types : bit, byte, word, and long-word types Standard addressing modes : 23 types 32-bit accumulator enhancing high-precision operations Enhanced multiplication/division and RETI instructions • Enhanced high level language (C) and multi-tasking support instructions Use of a system stack pointer Symmetrical instruction set and barrel shift instructions • Program patch function (for two address pointers) • Increased execution speed : 4-byte instruction queue • Powerful interrupt function Up to eight priority levels programmable External interrupt inputs : 8 channels • Automatic data transmission function independent of CPU operation Up to 16 channels for the extended intelligent I/O service DTP request inputs : 8 channels • Internal ROM Flash memory : 64K/128K bytes with flash security Mask ROM : 64K/128K bytes • Internal RAM EVA : 16K bytes Flash memory : 4K bytes Mask ROM : 4K bytes • General-purpose ports Up to 66 channels (pull-up resistor settable port for : 32 channels) • A/D Converter (RC) : 16 channels 8/10-bit resolution selectable Conversion time : Min 3 µs (24 MHz operation, including sampling time) • 8-bit D/A Converter : 2 channels • UART : 2 channels • 16-bit PPG timer : 3 channels Mode switching function provided (PWM mode or one-shot mode) ch0 can be worked with multi-functional timer or independently • 16-bit reload timer : 2 channels • 16-bit PWC timer : 2 channels • Multi-functional timer Input capture : 4 channels Output compare with selectable buffer : 6 channels Free-running timer with up or up-down mode selection and selectable buffer: 1 channel 16-bit PPG timer : 1 channel Waveform generator : (16-bit timer : 3 channels, 3-phase waveform or dead time) • Timebase counter/watchdog timer : 18-bit • Low-power consumption mode : Sleep mode Stop mode CPU intermittent operation mode (Continued) 2 MB90820 Series (Continued) • Package : LQFP-80 (FPT-80P-M05 : 0.50 mm pitch) LQFP-80 (FPT-80P-M11 : 0.65 mm pitch) QFP-80 (FPT-80P-M06 : 0.80 mm pitch) • CMOS technology 3 MB90820 Series ■ PRODUCT LINEUP Part number Item MB90V820 Evaluation product — 16K bytes MB90F822A MB90F823A MB90822 MB90823 Classification ROM size RAM size Flash memory product with flash security 64K bytes 128K bytes 4K bytes Mask ROM product 64K bytes 128K bytes CPU function Number of instruction : 351 Minimum execution time : 42 ns / 4 MHz (PLL × 6) Addressing mode : 23 Data bit length : 1, 8, 16 bits Maximum memory space: 16M bytes I/O port (CMOS) : 66 Pulse width counter timer : 2 channels Timer function (select the counter timer from three internal clocks) Various pulse width measuring function (“H” pulse width, “L” pulse width, rising edge to falling edge period, falling edge to rising edge period, rising edge to rising edge period and falling edge to falling edge period) UART : 2 channels With full-duplex double buffer (8-bit length) Clock asynchronized or clock synchronized transmission (with start and stop bits) can be selected and used. Transmission can be one-to-one (bidirectional communication) or one-to-n (master-slave communication). Reload timer : 2 channels Reload mode, single-shot mode or event count mode selectable PPG timer : 3 channels PWM mode or single-shot mode selectable Ch0 can be worked with multi-functional timer or independently. I/O port PWC UART 16-bit reload timer 16-bit PPG timer 16-bit free-running timer with up or up-down mode selection and buffer : 1 channel Multi-functional 16-bit output compare : 6 channels timer 16-bit input capture : 4 channels (for AC/DC 16-bit PPG timer : 1 channel motor control) Waveform generator (16-bit timer : 3 channels, 3-phase waveform or dead time) 8/10-bit A/D converter 8-bit D/A converter DTP/External interrupt Low-power consumption 8/10-bit resolution (16 channels) Conversion time : Min 3 µs (24 MHz internal clock, including sampling time) 8-bit resolution (2 channels) 8 independent channels Interrupt factors : Rising edge, falling edge, “L” level or “H” level Stop mode / Sleep mode / CPU intermittent operation mode (Continued) 4 MB90820 Series (Continued) Part number Item MB90V820 MB90F822A MB90F823A MB90822 MB90823 Package PGA-299 LQFP-80 (FPT-80P-M05 : 0.50 mm pitch) LQFP-80 (FPT-80P-M11 : 0.65 mm pitch) QFP-80 (FPT-80P-M06 : 0.80 mm pitch) 3.5 V to 5.5 V : Normal operation when A/D converter and D/A converter are not used 4.0 V to 5.5 V : Normal operation when D/A converter is not used 4.5 V to 5.5 V : Normal operation when A/D converter and D/A converter are used CMOS Power supply voltage for operation*1 Process Emulator power supply*2 4.5 V to 5.5 V*1 Included ⎯ *1 : MB90V820 is operating guaranteed temperature 0 °C to + 25 °C. *2 : It is setting of Jumper switch (TOOL VCC) when emulator (MB2147-01) is used. Please refer to the MB2147-01 or MB2147-20 hardware manual (3.3 Emulator-dedicated Power Supply switching) about details. ■ PACKAGE AND CORRESPONDING PRODUCTS Package PGA-299 FPT-80P-M05 FPT-80P-M11 FPT-80P-M06 : Available X : Not available Note: For more information about each package, see “■ PACKAGE DIMENSIONS”. X X X MB90V820 MB90F822A MB90F823A X X MB90822 X MB90823 X 5 MB90820 Series ■ DIFFERENCES AMONG PRODUCTS Memory Size In evaluation with an evaluation product, note the difference between the evaluation product and the product actually used. The following items must be taken into consideration. • The MB90V820 does not have an internal ROM, however, operations equivalent to chips with an internal ROM can be evaluated by using a dedicated development tool, enabling selection of ROM size by settings of the development tool. • In the MB90V820, images from FF8000H to FFFFFFH are mapped to bank 00, and FE0000H to FF7FFFH are mapped to bank FE and bank FF only. (This setting can be changed by configuring the development tool.) • In the MB90822/F822A, images from FF8000H to FFFFFFH are mapped to bank 00, and FF0000H to FF7FFFH are mapped to bank FF only. In the MB90823/F823A, images from FF8000H to FFFFFFH are mapped to bank 00, and FE0000H to FF7FFFH are mapped to bank FE and bank FF only. 6 MB90820 Series ■ PIN ASSIGNMENT (TOP VIEW) P70/DA0/AN8 P71/DA1/AN9 P72/SIN1/AN10 P73/SOT1/AN11 P74/SCK1/AN12 P75/FRCK/AN13 P76/IN0/AN14 P77/IN1/AN15 P80/IN2 P81/IN3 P82/RTO0(U) * P83/RTO1(X) * P84/RTO2(V) * P85/RTO3(Y) * P86/RTO4(W) * P87/RTO5(Z) * 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 AVR AVcc AVss P67/AN7 P66/AN6 P65/AN5 P64/AN4 P63/AN3 P62/AN2 P61/AN1 P60/AN0 P51/INT7 P50/PPG2 P47/PWO1 P46/PWI1 P45/SIN0 P44/SOT0 P43/SCK0 RST P42/TO0 P41/TIN0 Vss X0 X1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 C Vss Vcc P00 * P01 * P02 * P03 * P04 * P05 * P06/PWI0 * P07/PWO0 * P10/INT0/DTTI P11/INT1 P12/INT2 P13/INT3 P14/INT4 P15/INT5 P16/INT6 P17 P20/TIN1 P21/TO1 P22 Vcc P23 * : High current pin. (Continued) MD0 MD1 MD2 P40/PPG1 P37/PPG0 P36 P35 P34 P33 P32 P31 P30 P27 P26 P25 P24 (FPT-80P-M06) 7 MB90820 Series (Continued) (TOP VIEW) AVcc AVR P70/DA0/AN8 P71/DA1/AN9 P72/SIN1/AN10 P73/SOT1/AN11 P74/SCK1/AN12 P75/FRCK/AN13 P76/IN0/AN14 P77/IN1/AN15 P80/IN2 P81/IN3 P82/RTO0(U) * P83/RTO1(X) * P84/RTO2(V) * P85/RTO3(Y) * P86/RTO4(W) * P87/RTO5(Z) * C Vss 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 AVss P67/AN7 P66/AN6 P65/AN5 P64/AN4 P63/AN3 P62/AN2 P61/AN1 P60/AN0 P51/INT7 P50/PPG2 P47/PWO1 P46/PWI1 P45/SIN0 P44/SOT0 P43/SCK0 RST P42/TO0 P41/TIN0 Vss 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 Vcc P00 * P01 * P02 * P03 * P04 * P05 * P06/PWI0 * P07/PWO0 * P10/INT0/DTTI P11/INT1 P12/INT2 P13/INT3 P14/INT4 P15/INT5 P16/INT6 P17 P20/TIN1 P21/TO1 P22 * : High current pin. 8 X0 X1 MD0 MD1 MD2 P40/PPG1 P37/PPG0 P36 P35 P34 P33 P32 P31 P30 P27 P26 P25 P24 P23 Vcc (FPT-80P-M11) (FPT-80P-M05) MB90820 Series ■ PIN DESCRIPTION Pin no. LQFP *1 21, 22 17 59 to 54 53 52 QFP *2 23, 24 19 61 to 56 55 54 Pin name X0,X1 RST P00 to P05 P06 PWI0 P07 PWO0 P10 INT0 51 53 DTTI P11 to P16 50 to 45 44 43 42 41, 39 to 35 34 to 28 27 26 19 18 52 to 47 46 45 44 43, 41 to 37 36 to 30 29 28 21 20 INT1 to INT6 P17 P20 TIN1 P21 TO1 P22 to P27 P30 to P36 P37 PPG0 P40 PPG1 P41 TIN0 P42 TO0 D D D D D E E F F F Port input D I/O circuit *3 A B C C C Pin status during reset Oscillating Oscillation pins. Reset input External reset input pin. General-purpose I/O ports. General-purpose I/O ports. PWC ch0 signal input pin. General-purpose I/O ports. PWC ch0 signal output pin. General-purpose I/O ports. External interrupt request input ch0 pin. RTO0 to RTO5 pins for fixed-level input. This function is enabled when the waveform generator specifies its input bits. General-purpose I/O ports. External interrupt request input ch1 to ch6 pins. General-purpose I/O ports. General-purpose I/O ports. External clock input pin for reload timer ch1. General-purpose I/O ports. Event output pin for reload timer ch1. General-purpose I/O ports. General-purpose I/O ports. General-purpose I/O ports. Output pins for PPG timer ch0. General-purpose I/O ports. Output pins for PPG timer ch1. General-purpose I/O ports. External clock input pin for reload timer ch0. General-purpose I/O ports. Event output pin for reload timer ch0. Function *1: FPT-80P-M05, FPT-80P-M11 *2: FPT-80P-M06 *3: See “■ I/O CIRCUIT TYPE”. (Continued) 9 MB90820 Series Pin no. LQFP *1 16 15 14 13 12 11 10 9 to 2 QFP *2 18 17 16 15 14 13 12 11 to 4 Pin name P43 SCK0 P44 SOT0 P45 SIN0 P46 PWI1 P47 PWO1 P50 PPG2 P51 INT7 P60 to P67 AN0 to AN7 P70, P71 78, 77 80, 79 DA0, DA1 AN8, AN9 P72 76 78 SIN1 AN10 P73 75 77 SOT1 AN11 P74 74 76 SCK1 AN12 P75 73 75 FRCK AN13 *1: FPT-80P-M05, FPT-80P-M11 *2: FPT-80P-M06 *3: See “■ I/O CIRCUIT TYPE”. I/O circuit *3 F F G F F F F H Pin status during reset Function General-purpose I/O ports. Serial clock I/O pin for UART ch0. General-purpose I/O ports. Serial data output pin for UART ch0. General-purpose I/O ports. Serial data input pin for UART ch0. General-purpose I/O ports. PWC ch1 signal input pin. General-purpose I/O ports. PWC ch1 signal output pin. General-purpose I/O ports. Output pins for PPG timer ch2. General-purpose I/O ports. External interrupt request input ch7 pin. General-purpose I/O ports. A/D converter analog input pins. General-purpose I/O ports. D/A converter analog output pins. A/D converter analog input pins. General-purpose I/O ports. Port Input I J Analog input K Serial data input pin for UART ch1. A/D converter analog input pins. General-purpose I/O ports. Serial data output pin for UART ch1. A/D converter analog input pins. General-purpose I/O port. K Serial clock I/O pin for UART ch1. A/D converter analog input pins. General-purpose I/O ports. K External clock input pin for free-running timer. A/D converter analog input pins. (Continued) 10 MB90820 Series (Continued) Pin no. LQFP *1 QFP *2 Pin name P76, P77 72, 71 74, 73 IN0, IN1 AN14, AN15 70, 69 72, 71 P80, P81 IN2, IN3 P82 to P87 Port input 68 to 63 70 to 65 RTO0 (U) to RTO5 (Z) MD2 MD1, MD0 AVCC AVR AVSS Vss Vcc C L F K Analog input I/O circuit *3 Pin status during reset Function General-purpose I/O ports. Trigger input pins for input capture ch0, ch1. A/D converter analog input pins. General-purpose I/O ports. Trigger input pins for input capture ch2, ch3. General-purpose I/O ports. Waveform generator output pins. These pins output the waveforms specified at the waveform generator. Output is generated when waveform generator output is enabled. Input pin for operation mode specification. Input pin for operation mode specification. Analog power supply pin. Vref + pin for the A/D converter. Vref - is fixed to AVss internally. Analog power supply (Ground) pin. Power (Ground) pin. Power pin. Connect pin for smoothing capacitor to stabilize internal power supply. 25 24, 23 80 79 1 20, 61 40, 60 62 27 26, 25 2 1 3 22, 63 42, 62 64 M N – – – – – – Mode input – – – *1: FPT-80P-M05, FPT-80P-M11 *2: FPT-80P-M06 *3: See “■ I/O CIRCUIT TYPE”. 11 MB90820 Series ■ I/O CIRCUIT TYPE Classification X1 P-ch N-ch Type Clock input Remarks Main clock (main clock crystal oscillator) • Oscillation feedback resistor : approx. 1 MΩ X0 A Standby control signal B R • Hysteresis input • Pull-up resistor : approx. 50 kΩ • CMOS output • Hysteresis input • Selectable pull-up resistor : approx. 50 kΩ • IOL = 12 mA R P-ch Pull-up control P-ch Digital output Digital output C N-ch Hysteresis input Standby mode control R P-ch Pull-up control P-ch Digital output Digital output D • CMOS output • Hysteresis input • Selectable pull-up resistor : approx. 50 kΩ • IOL = 4 mA N-ch Hysteresis input Standby mode control R P-ch Pull-up control P-ch Digital output Digital output • • • • CMOS output CMOS input With pull-up control IOL = 4 mA E N-ch CMOS input Standby mode control (Continued) 12 MB90820 Series Classification P-ch Type Digital output Digital output Remarks • CMOS output • Hysteresis input • IOL = 4 mA F N-ch Hysteresis input Standby mode control P-ch Digital output Digital output N-ch • CMOS output • Hysteresis input • CMOS input (selectable for UART ch0 data input pin) • IOL = 4 mA G Hysteresis input CMOS input Standby mode control P-ch Pout Nout • • • • CMOS output CMOS input Analog input IOL = 4 mA H N-ch CMOS input Analog input control Analog input P-ch Digital output Digital output N-ch • • • • • CMOS output Hysteresis input Analog output Analog input IOL = 4 mA I Hysteresis input Analog I/O control Analog output Analog input (Continued) 13 MB90820 Series (Continued) Classification P-ch Type Digital output Digital output Remarks • CMOS output • Hysteresis input • CMOS input (selectable for UART ch1 data input pin) • IOL = 4 mA N-ch J Hysteresis input CMOS input Analog input control Analog input P-ch Digital output Digital output • • • • CMOS output Hysteresis input Analog input IOL = 4 mA K N-ch Hysteresis input Analog input control Analog input P-ch Digital output Digital output • CMOS output • Hysteresis input • IOL = 12 mA L N-ch Hysteresis input Standby mode control M R Mask ROM / evaluation product • Hysteresis input • Pull-down resistor : approx. 50 kΩ Flash memory product • CMOS input • No pull-down resistor Mask ROM / evaluation product • Hysteresis input Flash memory product • CMOS input N 14 MB90820 Series ■ HANDLING DEVICES Special care is required for the following when handling the device : • Preventing latch-up • Stabilization of supply voltage • Treatment of unused pins • Using external clock • Power supply pins (VCC /VSS ) • Pull-up/pull-down resistors • Crystal Oscillator Circuit • Turning-on Sequence of Power Supply to A/D Converter and D/A Converter, and Analog Inputs • Connection of Unused Pins of A/D Converter and D/A Converter if A/D Converter and D/A Converter are unused • Notes on energization • Notes on During Operation of PLL Clock Mode 1. Preventing latch-up CMOS IC chips may suffer latch-up under the following conditions : • A voltage higher than VCC or lower than VSS is applied to an input or output pin. • A voltage higher than the rated voltage is applied between VCC and VSS. • The AVCC power supply is applied before the VCC voltage. Latch-up may increase the power supply current drastically, causing thermal damage to the device. In using the devices, take sufficient care to avoid exceeding maximum ratings. For the same reason, also be careful not to let the analog power-supply voltage (AVCC, AVR) exceed the digital power-supply voltage. 2. Stabilization of supply voltage A sudden change in the supply voltage may cause the device to malfunction even within the specified VCC supply voltage operation range. Therefore, the VCC supply voltage should be stabilized. For reference, the supply voltage should be controlled so that VCC ripple variations (peak-to-peak values) at commercial frequencies (50 Hz to 60 Hz) fall below 10% of the standard VCC supply voltage and the coefficient of fluctuation does not exceed 0.1 V/ms at instantaneous power switching. 3. Treatment of unused pins Leaving unused input pins open may result in misbehavior or latch up and possible permanent damage of the device. Therefore they must be pulled up or pulled down through resistors. In this case those resistors should be more than 2 kΩ. Unused bidirectional pins should be set to the output state and can be left open, or the input state with the above described connection. 4. Using external clock To use external clock, drive the X0 pin and leave X1 pin open. MB90820 series X0 Open X1 15 MB90820 Series 5. Power supply pins (VCC/VSS) • If there are multiple VCC and VSS pins, from the point of view of device design, pins to be of the same potential are connected the inside of the device to prevent such malfunctioning as latch up. To reduce unnecessary radiation, prevent malfunctioning of the strobe signal due to the rise of ground level, and observe the standard for total output current, be sure to connect the VCC and VSS pins to the power supply and ground externally. • Connect VCC and VSS to the device from the current supply source at a low impedance. • As a measure against power supply noise, connect a capacitor of about 0.1 µF as a bypass capacitor between VCC and VSS in the vicinity of VCC and VSS pins of the device. VCC VSS VCC VSS VCC VSS MB90820 Series VCC VCC VSS VSS 6. Pull-up/pull-down resistors The MB90820 series does not support internal pull-up/pull-down resistors option (Port 0 to Port 3 : built-in pullup resistors) . Use external components where needed. 7. Crystal oscillator circuit Noises around X0 or X1 pins may be possible causes of abnormal operations. Make sure to provide bypass capacitors via shortest distance from X0, X1 pins, crystal oscillator (or ceramic oscillator) and ground lines, and make sure, to the utmost effort, that lines of oscillation circuit do not cross the lines of other circuits while you design a printed circuit board. It is highly recommended to provide a printed circuit board art work surrounding X0 and X1 pins with a ground area for stabilizing the operation. 8. Turning-on sequence of power supply to A/D converter and D/A converter, and analog inputs Make sure to turn on the A/D converter power supply, D/A converter power supply (AVCC, AVRH, AVR) and analog inputs (AN0 to AN15) after turning-on the digital power supply (VCC). Turn-off the digital power after turning off the A/D converter power supply, D/A converter power supply, and analog inputs. In this case, make sure that the voltage not exceed AVR or AVCC (turning on/off the analog and digital power supplies simultaneously is acceptable). 9. Connection of unused pins of A/D converter and D/A converter if A/D converter and D/A converter are unused Connect unused pins of A/D converter and D/A converter to AVCC = VCC, AVSS = AVRH = AVRL = VSS. 10. Notes on energization To prevent the internal regulator circuit from malfunctioning, set the voltage rise time during energization at 50 µs or more (0.2 V to 2.7 V) . 16 MB90820 Series 11. Notes on During Operation of PLL Clock Mode If the PLL clock mode is selected, the microcontroller attempts to be working with the self-oscillating circuit even when there is no external oscillator or external clock input is stopped. Performance of this operation, however, cannot be guaranteed. 17 MB90820 Series ■ BLOCK DIAGRAM X0 X1 Clock control circuit Reset circuit (Watchdog timer) Interrupt controller CPU F2MC-16LX core Other pins Vss × 2, Vcc × 2, MD0 to MD2, C RST Timebase timer Delayed interrupt generator 7 Multi-functional timer P51/INT7 P16/INT6 to P11/INT1 P45/SIN0 P44/SOT0 P43/SCK0 P72/SIN1/AN10 P73/SOT1/AN11 P74/SCK1/AN12 6 8 P30 to P36 P37/PPG0 DTP/External interrupt 16-bit PPG timer (ch0) 16-bit input capture (ch0 to ch3) 16-bit free-running timer 16-bit output compare (ch0 to ch5) 4 4 UART (ch0) UART (ch1) 16-bit PPG (ch1) 16-bit PPG (ch2) PWC (ch1) P76/IN0/AN14 P77/IN1/AN15 P80/IN2 P81/IN3 P75/FRCK/AN13 P40/PPG1 F2MC-16LX bus P82/RTO0 (U) * P83/RTO1 (X) * P84/RTO2 (V) * P85/RTO3 (Y) * P86/RTO4 (W) * P87/RTO5 (Z) * P10/INT0/DTTI P17 P50/PPG2 Waveform generator PWC (ch0) 6 P46/PWI1 P47/PWO1 P06/PWI0 * P07/PWO0 * P00 to P05 * P42/TO0 P41/TIN0 16-bit reload timer (ch0) 16-bit reload timer (ch1) 6 CMOS I/O port 0, 1, 3, 7, 8 CMOS I/O port 6 P21/TO1 P20/TIN1 P22 to P27 A/D converter (8/10-bit) 16 CMOS I/O port 1, 2, 4, 5, 7 RAM ROM 8-bit D/A converter ROM correction ROM mirroring CMOS I/O port 7 P60/AN0 P61/AN1 P62/AN2 P63/AN3 P64/AN4 P65/AN5 P66/AN6 P67/AN7 AVR AVCC AVSS P70/DA0/AN8 P71/DA1/AN9 Note : P00 to P07, P10 to P17, P20 to P27 and P30 to P37: With build-in resistors that can be used as input pull-up resistors. * : High current drive pin. 18 MB90820 Series ■ MEMORY MAP FFFFFFH Address #1 Address #1 - 1H ROM area 010000H 00FFFFH Address #2 Address #2 - 1H ROM area* (FF bank image) : Internal access memory : Access not allowed Address #3 + 1H Address #3 000100H 0000FFH 0000F0H 0000EFH 000000H RAM Register area Peripheral area * : In Single chip mode, the mirror function is supported. Parts no. MB90822 MB90823 MB90F822A MB90F823A MB90V820 Address#1 FF0000H FE0000H FF0000H FE0000H (FE0000H) Address#2 008000H 008000H 008000H 008000H 008000H Address#3 0010FFH 0010FFH 0010FFH 0010FFH 0040FFH Note: The ROM data of bank FF is reflected to the upper address of bank 00, realizing effective use of the C compiler small model. The lower 16-bit is assigned to the same address, enabling reference of the table on the ROM without stating “far”. For example, if an attempt has been made to access 00C000H, the contents of the ROM at FFC000H are accessed actually. Since the ROM area of the FF bank exceeds 32K bytes, the whole area cannot be reflected in the image for the 00 bank. The ROM data at FF8000H to FFFFFFH looks, therefore, as if it were the image for 008000H to 00FFFFH. Thus, it is recommended that the ROM data table be stored in the area of FF8000H to FFFFFFH. 19 MB90820 Series ■ F2MC-16LX CPU PROGRAMMING MODEL • Dedicated registers AH AL : Accumulator (A) Dual 16-bit register used for storing results of calculation etc. The two 16-bit registers can be combined to be used as a sequence of 32-bit register. : User stack pointer (USP) The 16-bit pointer indicating the user stack address. : System stack pointer (SSP) The 16-bit pointer indicating the system stack address. : Processor status (PS) The 16-bit register indicating the system status. : Program counter (PC) The 16-bit register indicating storing location of the current instruction code. : Direct page register (DPR) The 8-bit register indicating bit 8 through 15 of the operand address in executing of the short direct addressing. : Program bank register (PCB) The 8-bit register indicating the program space. : Data bank register (DTB) The 8-bit register indicating the data space. : User stack bank register (USB) The 8-bit register indicating the user stack space. : System stack bank register (SSB) The 8-bit register indicating the system stack space. : Additional data bank register (ADB) The 8-bit register indicating the additional USP SSP PS PC DPR PCB DTB USB SSB ADB 8 bit 16 bit 32 bit 20 MB90820 Series • General-purpose registers Maximum of 32 banks R7 R5 R3 R1 RW3 R6 R4 R2 R0 RW7 RL3 RW6 RW5 RL2 RW4 RL1 RW2 RW1 RL0 000180H + (RP × 10H) RW0 16-bit • Processor status (PS) ILM RP CCR bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PS Initial value ⎯ X ILM2 ILM1 ILM0 0 0 0 B4 0 B3 0 B2 0 B1 0 B0 0 ⎯ ⎯ I 0 S 1 T X N X Z X V X C X : Unused : Undefined 21 MB90820 Series ■ I/O MAP Address Abbreviation Register Byte access Word access Resource name Initial value 000000H 000001H 000002H 000003H 000004H 000005H 000006H 000007H 000008H 000009H to 00000FH 000010H 000011H 000012H 000013H 000014H 000015H 000016H 000017H 000018H 000019H to 00001FH 000020H 000021H 000022H 000023H 000024H 000025H 000026H 000027H 000028H 000029H 00002AH 00002BH 00002CH PDR0 PDR1 PDR2 PDR3 PDR4 PDR5 PDR6 PDR7 PDR8 Port 0 data register Port 1 data register Port 2 data register Port 3 data register Port 4 data register Port 5 data register Port 6 data register Port 7 data register Port 8 data register R/W R/W R/W R/W R/W R/W R/W R/W R/W Prohibited area R/W R/W R/W R/W R/W R/W R/W R/W R/W Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 Port 8 XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB DDR0 DDR1 DDR2 DDR3 DDR4 DDR5 DDR6 DDR7 DDR8 Port 0 data direction register Port 1 data direction register Port 2 data direction register Port 3 data direction register Port 4 data direction register Port 5 data direction register Port 6 data direction register Port 7 data direction register Port 8 data direction register R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 Port 8 0 00 00 00 0 B 0 00 00 00 0 B 0 00 00 00 0 B 0 00 00 00 0 B 0 00 00 00 0 B XXXXXX00B 0 00 00 00 0 B 0 00 00 00 0 B 0 00 00 00 0 B Prohibited area SMR0 SCR0 SIDR0 / SODR0 SSR0 SMR1 SCR1 SIDR1 / SODR1 SSR1 PWCSL1 PWCSH1 PWC1 DIV1 Serial mode register ch0 Serial control register ch0 Serial input data register ch0 / Serial output data register ch0 Serial status register ch0 Serial mode register ch1 Serial control register ch1 Serial input data register ch1 / Serial output data register ch1 Serial status register ch1 PWC control status register ch1 PWC data buffer register ch1 Divide ratio control register ch1 R/W R/W UART ch0 00000000B 0 00 00 10 0 B XXXXXXXXB 0 00 01 00 0 B 00000000B 0 00 00 10 0 B UART ch1 XXXXXXXXB 0 00 01 00 0 B 00000000B 0 00 00 00 0 B PWC timer ch1 XXXXXXXXB XXXXXXXXB XXXXXX00B (Continued) W, R/W W, R/W R/W R/W R, R/W R, R/W R/W R/W W, R/W W, R/W R/W R/W R, R/W R, R/W R/W R/W R, R/W R, R/W ⎯ R/W R/W R/W 22 MB90820 Series Address Abbreviation Register Byte ac- Word access cess Resource name Initial value 00002DH, 00002EH 00002FH 000030H 000031H 000032H 000033H 000034H 000035H 000036H 000037H 000038H 000039H 00003AH 00003BH 00003CH 00003DH 00003EH 00003FH 000040H 000041H 000042H 000043H 000044H 000045H 000046H 000047H 000048H 000049H 00004AH 00004BH 00004CH 00004DH 00004EH 00004FH CDCR1 PDCR0 PCSR0 PDUT0 PCNTL0 PCNTH0 PDCR1 PCSR1 PDUT1 PCNTL1 PCNTH1 PDCR2 PCSR2 PDUT2 PCNTL2 PCNTH2 CDCR0 PCKCR ENIR EIRR ELVRL ELVRH PLL clock control register Prohibited area W R/W R/W R/W R/W Prohibited area Clock division ratio control register ch0 Clock division ratio control register ch1 PPG down counter register ch0 PPG period setting register ch0 PPG duty setting register ch0 PPG control status register ch0 PPG down counter register ch1 PPG period setting register ch1 PPG duty setting register ch1 PPG control status register ch1 PPG down counter register ch2 PPG period setting register ch2 PPG duty setting register ch2 PPG control status register ch2 R/W R/W Communication prescaler ch0 Communication prescaler ch1 00XXX000 B W R/W R/W R/W R/W DTP/ external interrupt ch0 to ch7 PLL XXXX0000 B 00000000B XXXXXXXXB 00000000B 00000000B DTP / Interrupt enable register DTP / Interrupt cause register Request level setting register (lower byte) Request level setting register (higher byte) Prohibited area R/W ⎯ ⎯ ⎯ R/W R/W ⎯ ⎯ ⎯ R/W R/W ⎯ ⎯ ⎯ R/W R/W R/W R W 16-bit PPG timer ch0 W R/W R/W R W 16-bit PPG timer ch1 W R/W R/W R W 16-bit PPG timer ch2 W R/W R/W 00XXX000 B 11111111B 11111111B XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XX000000 B 00000000B 11111111B 11111111B XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XX000000 B 00000000B 11111111B 11111111B XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XX000000 B 00000000B (Continued) 23 MB90820 Series Address Abbreviation Register Byte Word access access Resource name Initial value 000050H 000051H 000052H 000053H 000054H 000055H 000056H 000057H 000058H 000059H 00005AH 00005BH 00005CH 00005DH 00005EH 00005FH 000060H 000061H 000062H 000063H 000064H 000065H 000066H 000067H 000068H 000069H 00006AH 00006BH 00006CH to 00006EH TMRR0 TMRR1 TMRR2 DTCR0 DTCR1 DTCR2 SIGCR CPCLRB / CPCLR TCDT TCCSL TCCSH IPCP0 IPCP1 IPCP2 IPCP3 PICSL01 PICSH01 ICSL23 ICSH23 16-bit timer register ch0 16-bit timer register ch1 16-bit timer register ch2 16-bit timer control register ch0 16-bit timer control register ch1 16-bit timer control register ch2 Waveform control register Compare clear buffer register/ Compare clear register Timer data register Timer control status register (lower) Timer control status register (upper) Input capture data register ch0 Input capture data register ch1 Input capture data register ch2 Input capture data register ch3 Input capture control status register ch0,ch1 (lower) PPG output control / Input capture control status register ch0,ch1 (upper) Input capture control status register ch2,ch3 (lower) Input capture control status register ch2,ch3 (upper) ⎯ ⎯ ⎯ R/W R/W R/W R/W ⎯ ⎯ R/W R/W ⎯ ⎯ ⎯ ⎯ R/W R/W R/W R R/W R/W R/W R/W R/W R/W R/W R/W 16-bit free-running timer R/W R/W R/W R R R R R/W R/W R/W R Waveform generator XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB 0 00 0 00 00 B 0 00 0 00 00 B 0 00 0 00 00 B 0 00 0 00 00 B 11111111B 11111111B 00000000B 00000000B 16-bit free-running timer X0000000B 00000000B XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB 16-bit input capture (ch0 to ch3) XXXXXXXXB 00000000B 00000000B 00000000B XXXXXX00 B Prohibited area (Continued) 24 MB90820 Series Address Abbreviation Register Byte Word access access Resource name Initial value 00006FH 000070H 000071H 000072H 000073H 000074H 000075H 000076H 000077H 000078H 000079H 00007AH 00007BH 00007CH 00007DH 00007EH 00007FH 000080H 000081H 000082H 000083H 000084H 000085H 000086H 000087H 000088H 000089H 00008AH, 00008BH 00008CH 00008DH ROMM OCCPB0 / OCCP0 OCCPB1 / OCCP1 OCCPB2 / OCCP2 OCCPB3 / OCCP3 OCCPB4 / OCCP4 OCCPB5 / OCCP5 OCS0 OCS1 OCS2 OCS3 OCS4 OCS5 TMCSRL0 TMCSRH0 TMR0 / TMRD0 TMCSRL1 TMCSRH1 TMR1 / TMRD1 ROM mirroring function selection register Output compare buffer register / Output compare register ch0 Output compare buffer register / Output compare register ch1 Output compare buffer register / Output compare register ch2 Output compare buffer register / Output compare register ch3 Output compare buffer register / Output compare register ch4 Output compare buffer register / Output compare register ch5 Compare control register ch0 Compare control register ch1 Compare control register ch2 Compare control register ch3 Compare control register ch4 Compare control register ch5 Timer control status register ch0 (lower) Timer control status register ch0 (upper) 16 bit timer register ch0 / 16-bit reload register ch0 Timer control status register ch1 (lower) Timer control status register ch1 (upper) 16 bit timer register ch1 / 16-bit reload register ch1 W ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ R/W R/W R/W R/W R/W R/W R/W R/W ⎯ R/W R/W ⎯ Prohibited area W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W ROM mirroring function XXXXXXX1B XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB Output compare (ch0 to ch5) XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB 0 00 01 10 0 B X 1 10 00 00 B 0 00 01 10 0 B X 1 10 00 00 B 0 00 01 10 0 B X 1 10 00 00 B 00000000B 16-bit reload timer (ch0) XXX1 0000 B XXXXXXXXB XXXXXXXXB 00000000B 16-bit reload timer (ch1) XXX1 0000 B XXXXXXXXB XXXXXXXXB RDR0 RDR1 Port 0 pull-up resistor setting register Port 1 pull-up resistor setting register R/W R/W R/W R/W Port 0 Port 1 00000000B 00000000B (Continued) 25 MB90820 Series Address Abbreviation Register Byte ac- Word cess access Resource name Initial value 00008EH 00008FH 000090H to 00009DH 00009EH 00009FH 0000A0H 0000A1H 0000A2H to 0000A7H 0000A8H 0000A9H 0000AAH to 0000ADH 0000AEH 0000AFH 0000B0H 0000B1H 0000B2H 0000B3H 0000B4H 0000B5H 0000B6H 0000B7H 0000B8H 0000B9H 0000BAH 0000BBH 0000BCH 0000BDH 0000BEH 0000BFH RDR2 RDR3 Port 2 pull-up resistor setting register Port 3 pull-up resistor setting register R/W R/W R/W R/W Port 2 Port 3 00000000B 00000000B Prohibited area PACSR DIRR LPMCR CKSCR Program address detection control status register Delayed interrupt cause / clear register R/W R/W R/W R/W Address match detection XXXX00 00 B Delayed interrupt XXXXXXX0 B Low-power consumption control register 00011000B 1 11 11 10 0 B Low-power consumption mode W, R/W W, R/W control register Clock selection register R, R/W R, R/W Prohibited area WDTC TBTC Watchdog timer control register R, R/W R, R/W Timebase timer control register W, R/W W, R/W Prohibited area Watchdog timer Timebase timer XXXXX111 B 1 XX0 0 10 0 B FMCS Flash memory control status register Interrupt control register 00 Interrupt control register 01 Interrupt control register 02 Interrupt control register 03 Interrupt control register 04 Interrupt control register 05 Interrupt control register 06 Interrupt control register 07 Interrupt control register 08 Interrupt control register 09 Interrupt control register 10 Interrupt control register 11 Interrupt control register 12 Interrupt control register 13 Interrupt control register 14 Interrupt control register 15 R, R/W R, R/W Flash memory interface circuit 000X0000 B Prohibited area ICR00 ICR01 ICR02 ICR03 ICR04 ICR05 ICR06 ICR07 ICR08 ICR09 ICR10 ICR11 ICR12 ICR13 ICR14 ICR15 R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Interrupt controller 00000111B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B 0 00 00 11 1 B (Continued) 26 MB90820 Series (Continued) Address Abbreviation Register Byte ac- Word cess access Resource name Initial value 0000C0H 0000C1H 0000C2H 0000C3H 0000C4H 0000C5H 0000C6H 0000C7H 0000C8H 0000C9H 0000CAH 0000CBH 0000CCH 0000CDH 0000CEH 0000CFH 0000D0H 0000D1H to 0000EFH 0000F0H to 0000FFH 001FF0H 001FF1H 001FF2H 001FF3H 001FF4H 001FF5H PWCSL0 PWCSH0 PWC0 DIV0 ADER0 ADCS0 ADCS1 ADCR0 ADCR1 ADSR0 ADSR1 DAT0 DAT1 DACR0 DACR1 ADER1 PWC control status register ch0 PWC data buffer register ch0 Divide ratio control register ch0 A/D input enable register 0 A/D control status register 0 A/D data register 0 A/D data register 1 A/D setting register 0 A/D setting register 1 D/A data register 0 D/A data register 1 D/A control register 0 D/A control register 1 A/D input enable register 1 R/W R/W 00000000B 0 00 00 00 0 B PWC timer (ch0) XXXXXXXXB XXXXXXXXB XXXXXX00B Port 6, A/D 1 11 11 11 1 B 000XXXX0 B 00 00 00 0 X B 8/10-bit A/D converter XXXXXXXXB XXXXXXXXB 0 00 00 00 0 B 0 00 00 00 0 B XXXXXXXXB 8-bit D/A converter XXXXXXXXB XXXXXXX0B XXXXXXX0B Port 7, A/D 1 11 11 11 1 B R, R/W R, R/W ⎯ R/W R/W R/W R R R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R R R/W R/W R/W R/W R/W R/W R/W A/D control status register 1 W, R/W W, R/W Prohibited area External area PADRL0 PADRM0 PADRH0 PADRL1 PADRM1 PADRH1 Program address detection register 0 (lower) Program address detection register 0 (middle) Program address detection register 0 (higher) Program address detection register 1 (lower) Program address detection register 1 (middle) Program address detection register 1 (higher) R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB Address match detection • Meaning of abbreviations used for reading and writing R/W: Read and write enabled R : Read-only W : Write-only • Explanation of initial values 0 : The bit is initialized to “0”. 1 : The bit is initialized to “1”. X : The initial value of the bit is undefined. 27 MB90820 Series ■ INTERRUPT FACTORS, INTERRUPT VECTORS, INTERRUPT CONTROL REGISTER Interrupt cause Reset INT9 instruction Exception processing A/D converter conversion termination Output compare ch0 match End of measurement by PWC timer ch0 / PWC timer ch0 overflow 16-bit PPG timer ch0 Output compare ch1 match 16-bit PPG timer ch1 Output compare ch2 match 16-bit reload timer ch1 underflow Output compare ch3 match DTP/ext. interrupt ch0/ch1 detection DTTI Output compare ch4 match DTP/ext. interrupt ch2/ch3 detection Output compare ch5 match End of measurement by PWC timer ch1 / PWC timer ch1 overflow DTP/ext. interrupt ch4 detection DTP/ext. interrupt ch5 detection DTP/ext. interrupt ch6 detection DTP/ext. interrupt ch7 detection Waveform generator 16-bit timers ch0/ch1/ ch2 underflow 16-bit reload timer ch0 underflow 16-bit free-running timer zero detect 16-bit PPG timer ch2 Input capture ch0/ch1 16-bit free-running timer compare clear Input capture ch2/ch3 Timebase timer UART ch1 receive UART ch1 send UART ch0 receive UART ch0 send Flash memory status Delayed interrupt generator module EI2OS support × × × Interrupt vector Number #08 #09 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32 #33 #34 #35 #36 #37 #38 #39 #40 #41 #42 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH 10H 11H 12H 13H 14H 15H 16H 17H 18H 19H 1AH 1BH 1CH 1DH 1EH 1FH 20H 21H 22H 23H 24H 25H 26H 27H 28H 29H 2AH Address FFFFDCH FFFFD8H FFFFD4H FFFFD0H FFFFCCH FFFFC8H FFFFC4H FFFFC0H FFFFBCH FFFFB8H FFFFB4H FFFFB0H FFFFACH FFFFA8H FFFFA4H FFFFA0H FFFF9CH FFFF98H FFFF94H FFFF90H FFFF8CH FFFF88H FFFF84H FFFF80H FFFF7CH FFFF78H FFFF74H FFFF70H FFFF6CH FFFF68H FFFF64H FFFF60H FFFF5CH FFFF58H FFFF54H Interrupt control register ICR Address ⎯ ⎯ ⎯ ICR00 ⎯ ⎯ ⎯ 0000B0H Priority High ICR01 0000B1H ICR02 ICR03 0000B2H 0000B3H ICR04 0000B4H ICR05 0000B5H ICR06 0000B6H ICR07 ICR08 0000B7H 0000B8H ICR09 0000B9H ICR10 ICR11 ICR12 ICR13 ICR14 ICR15 0000BAH 0000BBH 0000BCH 0000BDH 0000BEH 0000BFH Low : Can be used and support the EI2OS stop request. : Can be used and interrupt request flag is cleared by EI2OS interrupt clear signal. × : Cannot be used. : Usable when an interrupt cause that shares the ICR is not used. 28 MB90820 Series ■ PERIPHERAL RESOURCES 1. Low-power Consumption Control Circuit The MB90820 series has the following CPU operating mode configured by selection of an operating clock and clock operation control. • Clock mode PLL clock mode : A PLL clock that is a multiple of the oscillation clock (HCLK) frequency is used to operate the CPU and peripheral functions. Main clock mode : The main clock, with a frequency one-half that of the oscillation clock (HCLK), is used to operate the CPU and peripheral functions. In main clock mode, the PLL divide circuit is inactive. • CPU intermittent operation mode CPU intermittent operation mode causes the CPU to operate intermittently, while high-speed clock pulses are supplied to peripheral functions, reducing power consumption. In CPU intermittent operation mode, clock pulses are supplied intermittently to the CPU when it is accessing a register, internal memory, a peripheral function, or an external unit. • Standby mode In standby mode, the low power consumption control circuit reduces power consumption by stopping; • The supply of the clock to CPU (sleep mode) • CPU and peripheral functions (timebase timer mode) • The oscillation clock itself (stop mode) • PLL sleep mode PLL sleep mode is activated to stop the CPU operating clock when the microcontroller enters PLL clock mode; other components continue to operate on the PLL clock. • Main sleep mode Main sleep mode is activated to stop the CPU operating clock when the microcontroller enters main clock mode; other components continue to operate on the main clock. • PLL timebase timer mode PLL timebase timer mode causes microcontroller operation, with the exception of the oscillation clock, PLL clock and timebase timer, to stop. All functions other than the timebase timer are deactivated. • Main timebase timer mode Main timebase timer mode causes microcontroller operation, with the exception of the oscillation clock, main clock and the timebase timer, to stop. All functions other than the timebase timer are deactivated. • Stop mode Stop mode causes the source oscillation to stop. All functions are deactivated. 29 MB90820 Series (1) Register configuration Clock Selection Register Address: 00000A1H Read/write Initial value 15 14 MCM R 1 14 13 WS1 R/W 1 13 12 WS0 R/W 1 12 11 Reserved 10 MCS R/W 1 10 9 CS1 R/W 0 9 8 CS0 R/W 0 8 CS2 W 0 Bit CKSCR Reserved R/W 1 15 R/W 1 11 PLL Clock Control Register Address: 000002FH Read/write Initial value Bit PCKCR − − X − − X − − X − − X Reserved Reserved Reserved W 0 W 0 W 0 Low-power Consumption Mode Control Register 7 Address: 0000A0H Read/write Initial value STP W 0 6 SLP W 0 5 SPL R/W 0 4 RST W 1 3 TMD W 1 2 CG1 R/W 0 1 CG0 R/W 0 0 Reserved Bit LPMCR R/W 0 30 MB90820 Series (2) Block diagram Low power mode control register (LPMCR) STP SLP SPL RST TMD CG1 CG0 RESV Pin high impedance control circuit Internal reset generation circuit CPU intermittent operation selecter Pin Hi-z control RST Pin Internal reset Select intermittent cycles CPU clock control circuit CPU clock Release reset 3 Standby control circuit Stop and sleep signals Cancel interruption Stop signal Clock generator Clock selector Machine clock Peripheral clock control circuit Oscillation stabilization waiting time is passed Peripheral clock 3 2 ×1 ×2 ×3 ×4 ×6 Oscillation stabilization waiting time interval selector PLL multiplier circuit Reserved MCM WS1 WS0 Reserved MCS CS1 CS0 CS2 PLL clock control register (PCKCR) Clock selection register (CKSCR) X0 Pin System clock generation circuit Divided by 2 Divided by 512 Divided by 2 Divided by 4 Divided by 2 Divided by 2 Main clock Timebase timer X1 Pin 31 MB90820 Series 2. I/O Ports (1) Outline of I/O ports Each I/O port outputs data from CPU to I/O pins or inputs signals from I/O pins to CPU through port data register (PDR). Direction of the data flow (input or output) for each I/O pin can be designated in bit unit by port data direction register (DDR). The function of each port and the resource I/O multiplexed with it are described below: • • • • • • • • General-purpose I/O port/resource (PWC timer) General-purpose I/O port/resources (DTP / Multi-functional timer) General-purpose I/O port/resource (16-bit reload timer) General-purpose I/O port/resource (16-bit PPG timer) General-purpose I/O port/resources (16-bit PPG timer / 16-bit reload timer / UART / PWC) General-purpose I/O port/resources (16-bit PPG timer / DTP) General-purpose I/O port/resource (8/10-bit A/D converter) General-purpose I/O port/resources (8/10-bit A/D converter / 8-bit D/A converter / UART/ 16-bit free-running timer / 16-bit input capture) • Port 8 : General-purpose I/O port/resources (16-bit input capture / Multi-functional timer) (2) Register configuration Register Port 0 data register (PDR0) Port 1 data register (PDR1) Port 2 data register (PDR2) Port 3 data register (PDR3) Port 4 data register (PDR4) Port 5 data register (PDR5) Port 6 data register (PDR6) Port 7 data register (PDR7) Port 8 data register (PDR8) Port 0 data direction register (DDR0) Port 1 data direction register (DDR1) Port 2 data direction register (DDR2) Port 3 data direction register (DDR3) Port 4 data direction register (DDR4) Port 5 data direction register (DDR5) Port 6 data direction register (DDR6) Port 7 data direction register (DDR7) Port 8 data direction register (DDR8) A/D input enable register (ADER0) A/D input enable register (ADER1) Port 0 pull-up resistor setting register (RDR0) Port 1 pull-up resistor setting register (RDR1) Port 2 pull-up resistor setting register (RDR2) Port 3 pull-up resistor setting register (RDR3) Read/Write R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Address 000000H 000001H 000002H 000003H 000004H 000005H 000006H 000007H 000008H 000010H 000011H 000012H 000013H 000014H 000015H 000016H 000017H 000018H 0000C5H 0000D0H 00008CH 00008DH 00008EH 00008FH Initial value XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB 00000000 B 00000000 B 00000000 B 00000000 B 00000000 B XXXXXX00B 00000000 B 00000000 B 00000000 B 11111111 B 11111111 B 00000000 B 00000000 B 00000000 B 00000000 B Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 : : : : : : : : R/W: Read/write enabled X : Undefined 32 MB90820 Series (3) Block diagram • Block diagram of Port 0 (P00 to P06), Port 1 (P17) and Port 2 (excluding P21) pins Standby control (SPL=1) RDR Port data register (PDR) Pull-up resistor PDR read Output latch Resource input Internal data bus PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) • Block diagram of Port 0 (P07) and Port 2 (P21) pins Standby control (SPL=1) RDR Port data register (PDR) Resource output Resource input Pull-up resistor PDR read Output latch Resource output enable Internal data bus PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 33 MB90820 Series • Block diagram of Port 1 (P10 to P16) pins Standby control (SPL=1) RDR Port data register (PDR) Pull-up resistor PDR read Internal data bus Output latch Resource input PDR write Pin Port data direction register (DDR) Direction latch DDR write External interrupt enable Standby control (SPL=1) DDR read • Block diagram of Port 3 (excluding P37) pins Standby control (SPL=1) RDR Port data register (PDR) Pull-up resistor PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 34 MB90820 Series • Block diagram of Port 3 (P37) pin Standby control (SPL=1) RDR Resource output Port data register (PDR) Resource output enable Pull-up resistor PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) • Block diagram of Port 4 pins (excluding P41, P45 and P46) pins Resource output Port data register (PDR) Resource input Resource output enable PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 35 MB90820 Series • Block diagram of Port 4 (P41 and P46) pins Resource input Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) • Block diagram of P45 pin UART ch0 data input UART ch0 data input level selection bit Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 36 MB90820 Series • Block diagram of Port 5 (P50) pin Resource output Port data register (PDR) Resource input Resource output enable PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) • Block diagram of Port 5 (P51) pin Resource input Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write External interrupt enable Standby control (SPL=1) DDR read 37 MB90820 Series • Block diagram of Port 6 pins A/D converter input A/D converter channel selection bit Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) ADER • Block diagram of Port 7 (P70 and P71) pins A/D converter channel selection bit A/D converter input Port data register (PDR) D/A converter output PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read ADER D/A converter output enable bit Standby control (SPL=1) 38 MB90820 Series • Block diagram of P72 pin A/D converter channel selection bit A/D converter input UART ch1 data input UART ch1 data input level selection bit Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) ADER • Block diagram of Port 7(P73 and P74) pins A/D converter input A/D converter channel selection bit Resource input Resource output Port data register (PDR) Resource output enable PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) ADER 39 MB90820 Series • Block diagram of Port 7 (P75 to P77) pins A/D converter input A/D converter channel selection bit Resource input Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) ADER • Block diagram of Port 8 (P80 and P81) pins Resource input Port data register (PDR) PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 40 MB90820 Series • Block diagram of Port 8 (P82 to P87) pins Resource output Port data register (PDR) Resource input Resource output enable PDR read Internal data bus Output latch PDR write Pin Port data direction register (DDR) Direction latch DDR write DDR read Standby control (SPL=1) 41 MB90820 Series 3. Timebase Timer The timebase timer is an 18-bit free-running counter (timebase counter) that counts up in synchronization with the internal count clock (divided by 1/2 of oscillation clock). Features of timebase timer : • Generates the interruption at counter-overflow • Supports for EI2OS • Interval timer function: Generates an interrupt at four different time intervals • Clock supply function: Four different clock can be selected as watchdog timer’s count clock Supply clock for oscillation stabilization (1) Register configuration Timebase Timer Control Register 15 Address: 0000A9H Read/write Initial value Reserved 14 13 12 TBIE R/W 0 11 TBOF R/W 0 10 TBR W 1 9 TBC1 R/W 0 8 TBC0 R/W 0 Bit number TBTC − − X − − X R/W 1 (2) Block diagram To watchdog timer Timebase timer counter Divided by 2 of HCLK × 2 1 × 22 × 2 3 . . . ... × 28 × 29 × 210 × 211 × 212 × 213 × 214 × 215 × 216 × 217 × 218 OF Counter clear OF OF OF ⎞ To the oscillation ⎟ setting time selector ⎠ in the clock control section Interval timer selector TBOF set Power-on reset Stop mode start CKSCR: MCS = 1, 0*1 Counter clear circuit TBOF clear Timebase timer interrupt signal #36 (24H)*2 Reserved — — TBIE TBOF Timebase timer TBR TBC1 TBC0 control register (TBTC) OF: Overflow HCLK: Oscillation clock *1: Switching of the machine clock from the oscillation clock to the PLL clock *2: Interrupt number 42 MB90820 Series 4. Watchdog Timer The watchdog timer is a 2-bit counter that uses the timebase timer’s supply clock as the count clock. After activation, if the watchdog timer is not cleared within a given period, the CPU will be reset. • Features of watchdog timer : Reset CPU at four different time intervals Indicate the reset causes by status bits (1) Register configuration Watchdog Timer Control Register 7 Address: 0000A8H Read/write Initial value PONR R X 6 5 WRST R X 4 ERST R X 3 SRST R X 2 WTE W 1 1 WT1 W 1 0 WT0 W 1 Bit WDTC − − X (2) Block diagram Watchdog timer control register (WDTC) PONR WRST ERST SRST WTE WT1 WT0 Watchdog timer 2 Activation with CLR CLR Over flow Watchdog reset generator Start of sleep mode Start of hold status mode Start of stop mode Counter clear control circuit Count clock selector 2-bit counter To the internal reset generator CLR Clear 4 Timebase timer counter Divided by 1/2 of HCLK ×21 ×22 … ×28 ×29 ×210 ×211 ×212 ×213 ×214 ×215 ×216 ×217 ×218 HCLK : Oscillation clock frequency 43 MB90820 Series 5. 16-bit reload timer ( × 2) The 16-bit reload timer provides two operating mode, internal clock mode and event count mode. In each operating mode, the 16-bit down counter can be reloaded (reload mode) or stopped by underflow (one-shot mode). Output pins TO1 and TO0 are able to output different waveform according to the counter operating mode. TO1 and TO0 toggles when counter underflows if counter is operated as reload mode. TO1 and TO0 output specified level (H or L) during counting if the counter is in one-shot mode. Features of the 16-bit reload timer : • Interrupt when timer underflows • Supports for EI2OS • Internal clock operating mode : Three internal count clocks can be selected. Counter can be activated by software or external trigger (signal at TIN1 and TIN0 pins). Counter can be reloaded or stopped when underflow after activated. • Event count operating mode : Counter counts down one by one with specified edge at TIN1 and TIN0 pins. Counter can be reloaded or stopped when underflow. (1) Register configuration 16-bit Timer Register (Upper)/16-bit Reload Timer Register (Upper) 15 14 13 12 11 Address: ch0 000085H ch1 000089H Read/write Initial value D15 R/W X D14 R/W X D13 R/W X D12 R/W X D11 R/W X D10 R/W X 3 D02 R/W X 10 D09 R/W X 2 9 D08 R/W X 1 8 Bit TMR0, TMR1 / TMRD0, TMRD1 16-bit Timer Register (Lower)/16-bit Reload Timer Register (Lower) 7 6 5 4 Address: ch0 000084H ch1 000088H Read/write Initial value D07 R/W X D06 R/W X D05 R/W X D04 R/W X D03 R/W X 0 Bit TMR0, TMR1 / TMRD0, TMRD1 D01 R/W X D00 R/W X Timer Control Status Register (Upper) 15 Address: ch0 000083H ch1 000087H Read/write Initial value 14 13 12 CSL1 R/W 0 4 11 10 9 8 Bit TMCSRH0, TMCSRH1 − − X − − X 7 − − X 6 FSEL R/W 1 5 CSL0 MOD2 MOD1 R/W 0 3 UF R/W 0 R/W 0 2 CNTE R/W 0 R/W 0 1 TRG R/W 0 0 Timer Control Status Register (Lower) Address: ch0 000082H ch1 000086H Read/write Initial value Bit TMCSRL0, TMCSRL1 MOD0 OUTE OUTL RELD R/W 0 R/W 0 R/W 0 R/W 0 INTE R/W 0 Note : Registers TMR0, TMR1/TMRD0, TMRD1 are word access only. 44 MB90820 Series (2) Block diagram Internal data bus TMRD0*1 16-bit reload register TMR0*1 16-bit timer register (down-counter) CLK Clock 1 selector 0 1-bit down-counter Gate input 3 Clear Internal clock Pin P41/TIN0*1 Input control circuit External clock 2 Select signal Operation control circuit Clock selector Clock judgement circuit CLK Output control circuit Output signal generation circuit Reload signal Reload control circuit UF FSEL: Initial value "1" Machine clock φ Prescaler Wait signal to UART ch0, ch1*1 Reversed Pin EN P42/TO0*1 Count clock generation circuit 3 Function select _ _ _ FSEL CSL1 CSL0 MOD2 MOD1 MOD0 OUTE OUTL RELD INTE Timer control status register (TMCSR0) *1 UF CNTE TRG *1: Used for ch0/1. indicates ch1. *2: Interrupt number Interrupt request signal #30*2 45 MB90820 Series 6. 16-bit PPG Timer ( × 3) The 16-bit PPG timer consists of a 16-bit down counter, prescaler, 16-bit period setting register, 16-bit duty setting register, 16-bit control register and a PPG output pin. This module can be used to output pulses synchronized by software trigger or GATE signal from Multi-functional timer, refer to “7. Multi-functional Timer”. Features of 16-bit PPG timer : • Two operating mode : PWM and One-shot mode • 8 types of counter operation clock (φ, φ/2, φ/4, φ/8, φ/16, φ/32, φ/64, φ/128) can be selected • Interrupt is generated when trigger signal or counter borrow occurs, or when PPG output is changed • Supports for EI2OS (1) Register configuration PPG Control Status Register (Upper) Address: ch0 00003FH ch1 000047H ch2 00004FH Read/write Initial value 15 14 13 12 11 10 9 8 Bit PCNTH0 to PCNTH2 CNTE STGR MDSE RTRG CKS2 R/W 0 7 R/W 0 6 R/W 0 5 IRQF R/W 0 R/W 0 4 IRS1 R/W 0 R/W 0 3 CKS1 CKS0 PGMS R/W 0 2 R/W 0 1 R/W 0 0 PPG Control Status Register (Lower) Bit PCNTL0 to PCNTL2 Address: ch0 00003EH ch1 000046H ch2 00004EH Read/write Initial value − − X − − X IREN R/W 0 IRS0 R/W 0 POEN OSEL R/W 0 R/W 0 PPG Duty Setting Register (Upper) 15 14 13 12 11 10 9 8 Address: ch0 00003DH ch1 000045H DU15 DU14 DU13 DU12 DU11 DU10 DU09 DU08 ch2 00004DH Read/write Initial value W X W X 7 DU06 W X 6 DU05 W X 5 DU04 W X 4 W X 3 W X 2 DU01 W X 1 DU00 0 Bit PDUT0 to PDUT2 PPG Duty Setting Register (Lower) Address: ch0 00003CH ch1 000044H ch2 00004CH Read/write Initial value Bit PDUT0 to PDUT2 DU07 DU03 DU02 W W W W W W W W X X X X X X X X PPG Period Setting Register (Upper) 15 14 13 12 11 10 9 8 Address: ch0 00003BH ch1 000043H CS15 CS14 CS13 CS12 CS11 CS10 CS09 CS08 ch2 00004BH Read/write Initial value W X W X W X W X W X W X W X W X Bit PCSR0 to PCSR2 (Continued) 46 MB90820 Series (Continued) PPG Period Setting Register (Lower) Address: ch0 00003AH ch1 000042H ch2 00004AH Read/write Initial value 7 6 5 4 3 CS02 W X 2 CS01 W X 1 CS00 W X 0 Bit PCSR0 to PCSR2 CS07 W X CS06 CS05 W X W X CS04 CS03 W X W X PPG Down Counter Register (Upper) 15 14 13 12 11 10 Address: ch0 000039H ch1 000041H DC15 DC14 DC13 DC12 DC11 DC10 DC09 ch2 000049H Read/write Initial value R 1 R 1 7 Address: ch0 000038H ch1 000040H ch2 000048H Read/write Initial value R 1 6 R 1 5 DC04 R 1 R 1 4 DC03 R 1 R 1 3 DC02 R 1 R 1 2 9 DC08 R 1 1 8 Bit PDCR0 to PDCR2 PPG Down Counter Register (Lower) 0 Bit PDCR0 to PDCR2 DC07 DC06 DC05 R 1 R 1 R 1 DC01 R 1 DC00 R 1 Note : Registers PDCR0 to PDCR2, PCSR0 to PCSR2 and PDUT0 to PDUT2 are word access only. 47 MB90820 Series (2) Block diagram P eriod S etting B uffer R egister 0/1/2 D uty S etting B uffer R egister 0/1/2 Prescaler CKS2 CKS1 CKS0 Period Setting Register 0/1/2 Duty Setting Register 0/1/2 1/1 1/2 1/4 1/8 1/16 1/32 1/64 1/128 CLK LOAD 16-bit down counter MDSE PGMS OSEL POEN Comparator STOP START BORROW P37/PPG0 or P40/PPG1 or P50/PPG2 P in F2MC-16LX bus Machine clock φ S Down Counter Register 0/1/2 Q PPG0 (multi-functional timer) or PPG1 (multi-pulse generator) or PPG2 R Interrupt selection GATE - from multi-functional timer (for PPG0 only) Interrupt #14, #16, #32 Edge detection IRS1 IRS0 IRQF IREN (for PPG1 & PPG2) STGR CNTE RTRG 48 MB90820 Series 7. Multi-functional Timer The 16-bit multi-functional timer module consists of one 16-bit free-running timer, four input capture circuits, six output comparators and one channel of 16-bit PPG timer. This module allows six independent waveforms generated by PPG timer or waveform generator to be outputted. With the 16-bit free-running timer and the input capture circuit, input pulse width and external clock period measurement can be done. (1) 16-bit free-running timer (1 channel) • The 16-bit free-running timer consists of a 16-bit up counter, 16-bit up-down counter, timer control status register, 16-bit compare clear register (with buffer register) and a prescaler. • 8 types of counter operation clock (φ, φ/2, φ/4, φ/8, φ/16, φ/32, φ/64, φ/128) can be selected. (φ is the machine clock.) • Two types of interrupt causes : - Compare clear interrupt is generated when there is a comparing match with compare clear register and 16bit free-running timer. - Zero detection interrupt is generated while 16-bit free-running timer is detected as zero in count value. • EI2OS supported. • Compare-clear register buffer provided : The selectable buffer enables the 16-bit free-running timer update its compare-clear register automatically without stop the timer operation. User can read the next compare-clear value to the compare-clear register when the timer is running. The compare-clear register will be updated when the timer value is “0000H” • Reset, software clear, compare match with compare clear register in up-count mode will reset the counter value to “0000H”. • Supply clock to output compare module : The prescaler output is acted as the count clock of the output compare. (2) Output compare module ( 6 channels) • The output compare module consists of six 16-bit output compare registers (with selectable buffer register), compare output latch and compare control registers. An interrupt is generated and output level is inverted when the value of 16-bit free-running timer and output compare register are matched. • 6 output compare registers can be operated independently. • Output pins and interrupt flag are corresponding to each output compare register. • 2 output compare registers can be paired to control the output pins. • Inverts output pins by using 2 output compare registers together. • Setting the initial value for each output pin is possible. • Interrupt is generated when there is a comparing match with output compare register and 16-bit free-running timer. • EI2OS supported. (3) Input capture module (4 channels) Input capture consists of 4 independent external input pins, the corresponding input capture data register and input capture control status register. By detecting any edge of the input signal from the external pin, the value of the 16-bit free-running timer can be stored in the capture register and an interrupt is generated simultaneously. • Operations synchronized with the 16-bit free-running timer’s count clock. • 3 types of trigger edge (rising edge, falling edge and both edge) of the external input signal can be selected and there is indication bit to show the trigger edge is rising or falling. • 4 input captures can be operated independently. • Two independent interrupts are generated when detecting a valid edge from external input. • EI2OS supported. 49 MB90820 Series (4) 16-bit PPG timer (1 channel) The 16-bit PPG timer 0 is used to provide a PPG signal for waveform generator. (See section “6. 16-bit PPG Timer (× 3) ”.) (5) Waveform generator module The waveform generator consists of three 16-bit timer registers, three 16-bit timer control registers and a waveform control register. With waveform generator, it is possible to generate real time output, 16-bit PPG waveform output, non-overlap 3-phase waveform output for inverter control and DC chopper waveform output. • It is possible to generate a non-overlap waveform output based on dead-time of 16-bit timer. (Dead-time timer function) • It is possible to generate a non-overlap waveform output when realtime output is operated in 2-channel mode. (Dead-time timer function) • By detecting realtime output compare match, GATE signal of the PPG timer operation will be generated to start or stop PPG timer operation. (GATE function) • When a match is detected by real time output compare, the 16-bit timer is activated. The PPG timer can be started or stopped easily by generating a GATE signal for PPG operation until the 16-bit timer stops. (GATE function) • Force to stop output waveform using DTTI pin input. • Interrupt is generated when DTTI active or 16-bit timer underflow. • EI2OS is supported. (6) Register configuration • 16-bit free-running timer registers Timer Control Status Register (Upper) 15 14 Address: 00005FH Read/write Initial value 13 12 MSI2 R/W 0 4 11 MSI1 R/W 0 3 SCLR R/W 0 11 T11 R/W 0 3 T03 R/W 0 10 MSI0 R/W 0 2 CLK2 R/W 0 10 T10 R/W 0 2 T02 R/W 0 9 ICLR R/W 0 1 CLK1 R/W 0 9 T09 R/W 0 1 T01 R/W 0 8 ICRE R/W 0 0 CLK0 R/W 0 8 T08 R/W 0 0 T00 R/W 0 Bit TCDT Bit TCDT Bit TCCSL Bit TCCSH ECKE IRQZF IRQZE R/W 0 R/W 0 R/W 0 5 Timer Control Status Register (Lower) 7 6 Address: 00005EH Read/write Initial value Timer Data Register (Upper) Address: 00005DH Read/write Initial value Timer Data Register (Lower) Address: 00005CH Read/write Initial value − − X 15 T15 R/W 0 7 T07 R/W 0 BFE R/W 0 14 T14 R/W 0 6 T06 R/W 0 STOP MODE R/W 1 13 T13 R/W 0 5 T05 R/W 0 R/W 0 12 T12 R/W 0 4 T04 R/W 0 (Continued) 50 MB90820 Series (Continued) Compare Clear Buffer Register / Compare Clear Register (Upper) 15 14 13 12 11 Address: 00005BH Read/write Initial value CL15 R/W 1 CL14 R/W 1 CL13 R/W 1 CL12 R/W 1 CL11 R/W 1 10 CL10 R/W 1 9 CL09 R/W 1 8 CL08 R/W 1 Bit CPCLRB/CPCLR Compare Clear Buffer Register / Compare Clear Register (Lower) 7 6 5 4 3 Address: 00005AH Read/write Initial value CL07 R/W 1 CL06 R/W 1 CL05 R/W 1 CL04 R/W 1 CL03 R/W 1 2 CL02 R/W 1 1 CL01 R/W 1 0 CL00 R/W 1 Bit CPCLRB/CPCLR Note : Registers TCDT, CPCLRB/CPCLR are word access only. • Output compare registers Compare Control Register (Upper) 15 Address: ch1 00007DH ch3 00007FH ch5 000081H Read/write Initial value 14 13 12 11 10 9 OTD0 R/W 0 8 Bit OCS1/3/5 BTS1 R/W 1 BTS0 CMOD OTE1 R/W 1 R/W 0 R/W 0 OTE0 OTD1 R/W 0 R/W 0 − − X Compare Control Register (Lower) 7 Address: ch0 00007CH ch2 00007EH ch4 000080H Read/write Initial value IOP1 R/W 0 IOP0 R/W 0 6 IOE1 R/W 0 5 IOE0 R/W 0 4 BUF1 R/W 1 3 BUF0 R/W 1 2 1 0 Bit OCS0/2/4 CST1 CST0 R/W 0 R/W 0 Output Compare Buffer Register / Output Compare Register (Upper) Address: ch0 000071H ch1 000073H ch2 000075H 15 14 13 12 11 10 9 8 ch3 000077H ch4 000079H ch5 00007BH OP15 OP14 OP13 OP12 OP11 OP10 OP09 OP08 Read/write Initial value R/W X R/W X R/W X R/W X R/W X R/W X R/W X R/W X Bit OCCPB0 to OCCPB5/ OCCP0 to OCCP5 Output Compare Buffer Register / Output Compare Register (Lower) Address: ch0 000070H ch1 000072H ch2 000074H ch3 000076H ch4 000078H ch5 00007AH Read/write Initial value 7 OP07 R/W X OP06 R/W X 6 OP05 R/W X 5 OP04 R/W X 4 OP03 R/W X 3 2 1 OP00 R/W X 0 Bit OCCPB0 to OCCPB5/ OP02 OP01 R/W X R/W X OCCP0 to OCCP5 Note : Register OCCPB0 to OCCPB5 and OCCP0 to OCCP5 are word access only. 51 MB90820 Series • Input capture registers Input Capture Control Status Register (2/3) (Upper) 15 Address: 00006BH Read/write Initial value 14 13 12 11 10 9 IEI3 R 0 8 IEI2 R 0 Bit ICSH23 − − X − − X − − X − − X − − X − − X Input Capture Control Status Register (2/3) (Lower) 7 Address: 00006AH Read/write Initial value ICP3 R/W 0 6 ICP2 R/W 0 5 ICE3 R/W 0 4 ICE2 R/W 0 3 EG31 R/W 0 2 EG30 R/W 0 1 EG21 R/W 0 0 EG20 R/W 0 Bit ICSL23 PPG output control/ Input Capture Control Status Register (0/1) (Upper) 15 14 13 12 11 10 Address: 000069H Read/write Initial value PGEN5 PGEN4 PGEN3 PGEN2 PGEN1 PGEN0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 9 IEI1 R 0 8 IEI0 R 0 Bit PICSH01 Input Capture Control Status Register (0/1) (Lower) 7 Address: 000068H Read/write Initial value ICP1 R/W 0 6 ICP0 R/W 0 5 ICE1 R/W 0 4 ICE0 R/W 0 3 EG11 R/W 0 2 EG10 R/W 0 1 EG01 R/W 0 0 EG00 R/W 0 Bit PICSL01 Input Capture Data Register (Upper) Address: ch0 000061H ch1 000063H ch2 000065H ch3 000067H Read/write Initial value 15 CP15 R X CP14 R X 14 CP13 R X 13 CP12 R X 12 CP11 R X 11 CP10 R X 10 CP09 R X 9 CP08 R X 8 Bit IPCP0 to IPCP3 Input Capture Data Register (Lower) Address: ch0 000060H ch1 000062H ch2 000064H ch3 000066H Read/write Initial value 7 CP07 R X CP06 R X 6 CP05 R X 5 CP04 R X 4 CP03 R X 3 CP02 R X 2 CP01 R X 1 CP00 R X 0 Bit IPCP0 to IPCP3 Note : Registers IPCP0 to IPCP3 are word access only. 52 MB90820 Series • Waveform generator registers Waveform Control Register 15 Address: 000059H Read/write Initial value DTIE R/W 0 14 DTIF R/W 0 7 13 NRSL R/W 0 6 12 DCK2 R/W 0 5 11 DCK1 R/W 0 4 3 10 DCK0 R/W 0 2 9 8 Bit SIGCR NWS1 NWS0 R/W 0 1 R/W 0 0 16-bit Timer Control Register Bit DTCR0, DTCR2 DMOD GTEN1 GTEN0 TMIF R/W 0 R/W 0 R/W 0 R/W 0 TMIE TMD2 TMD1 TMD0 R/W 0 R/W 0 R/W 0 R/W 0 Address: ch0 000056H ch2 000058H Read/write Initial value 16-bit Timer Control Register 15 Address: ch1 000057H Read/write Initial value 14 13 12 11 TMIE R/W 0 10 9 8 Bit DTCR1 DMOD GTEN1 GTEN0 TMIF R/W 0 R/W 0 R/W 0 R/W 0 TMD2 TMD1 TMD0 R/W 0 R/W 0 R/W 0 16-bit Timer Register (Upper) 15 Address: ch0 000051H ch1 000053H ch2 000055H Read/write Initial value 16-bit Timer Register (Lower) Address: ch0 000050H ch1 000052H ch2 000054H Read/write Initial value TR15 R/W X TR14 R/W X 7 TR07 R/W X TR06 R/W X 14 TR13 R/W X 6 TR05 R/W X 13 TR12 R/W X 5 TR04 R/W X 12 TR11 R/W X 4 TR03 R/W X 11 TR10 R/W X 3 TR02 R/W X 10 TR09 R/W X 2 TR01 R/W X 9 TR08 R/W X 1 TR00 R/W X 0 8 Bit TMRR0 to TMRR2 Bit TMRR0 to TMRR2 Note : Registers TMRR0 to TMRR2 are word access only. 53 MB90820 Series • MCU to 3-phase Motor Interface Circuit VCC RTO0(U) RTO2(V) (U) RTO4(W) (V) RTO5(Z) (W) RTO1(X) RTO3(Y) RTO0 (U) , RTO2 (V) , RTO4 (W) are called “UPPER ARM”. RTO1 (X) , RTO3 (Y) , RTO5 (Z) are called “LOWER ARM”. RTO0 (U) and RTO1 (X) are called “non-overlapping output pair”. RTO2 (V) and RTO3 (Y) are called “non-overlapping output pair”. RTO4 (W) and RTO5 (Z) are called “non-overlapping output pair”. (U) , (V) , (W) are the 3-phase coil connection. • 3-phase Motor Coil Connection Circuit (U) Star Connection Circuit (W) (V) Delta Connection Circuit (U) (W) (V) 54 MB90820 Series (7) Block diagram • Block diagram of Multi-functional timer Real time I/O RTO0 Interrupt #12 Interrupt #15 Interrupt #17 Interrupt #19 Interrupt #21 Interrupt #23 Output compare 0 Output compare 1 Output compare 2 Output compare 3 Output compare 4 Output compare 5 Pin P82/RTO0 (U) RTO1 Pin P83/RTO1 (X) RTO2 Pin P84/RTO2 (V) 16-bit output compare RTO3 RT0 to RT5 RT0 to 5 Pin P85/RTO3 (Y) Waveform generator Buffer transfer Counter value RTO4 Pin P86/RTO4 (W) RTO5 Pin P87/RTO5 (Z) DTTI Pin P10/INT0/DTTI F2MC-16LX bus Interrupt #31 Interrupt #34 Zero detect Compare clear Interrupt #29 16-bit timer 0/1/2 underflow DTTI falling edge detect PPG0 GATE 16-bit free-running timer Interrupt #20 A/D trigger A/D trigger PPG0 GATE EXCK Pin P75/FRCK/AN13 Counter value Interrupt #33 Interrupt #35 Input capture 0/1 Input capture 2/3 P76/IN0/AN14 16-bit input capture IN0 Pin IN1 Pin P77/IN1/AN15 IN2 Pin P80/IN2 IN3 Pin P81/IN3 Interrupt #12 Interrupt #15 Interrupt #17 Interrupt #19 Interrupt #21 Interrupt #23 Output compare 0 Output compare 1 Output compare 2 Output compare 3 Output compare 4 Output compare 5 Interrupt #31 Interrupt #34 Interrupt #33 Interrupt #35 Zero detect Compare clear input compare 0/1 input compare 2/3 55 MB90820 Series • Block diagram of 16-bit free-running timer φ STOP MODE SCLR CLK2 CLK1 CLK0 Prescaler STOP UP/ CLR UP-Down 16-bit free-running timer CK Zero detect circuit Zero detect (to output compare) To input compare & output compare Transfer F2MC-16LX bus 16-bit compare clear register compare circuit Compare clear match to output compare 16-bit compare clear buffer register I0 I1 Selector O Mask circuit I0 O I1 Selector Interrupt #34 (22H) I0 O I1 Selector Interrupt #31 (1FH) A/D trigger MSI2 MSI1 MSI0 ICLR ICRE IRQZF IRQZE I1 O I0 Selector 56 MB90820 Series • Block diagram of 16-bit output compare Count value from free-running timer BUF0 BTS0 I0 O I1 Output compare buffer register 0/2/4 Transfer Output compare register 0/2/4 F2MC-16LX bus Selector Zero detect from free-running timer Compare clear match from free-running timer BUF1 Compare circuit BTS1 I0 O Output compare buffer register 1/3/5 Transfer I1 Selector Output compare register 1/3/5 CMOD T Q RT0/2/4 (Waveform generator) RT1/3/5 (Waveform generator) Interrupt #12, #17, #21 #15, #19, #23 Compare circuit T IOP1 IOP0 IOE1 IOE0 Q • Block diagram of 16-bit input capture Count value from free-running timer Input capture data register 0/2 Edge detect IN0/2 F2MC-16LX bus EG11 EG10 EG01 EG00 IEI1 IEI0 Input capture data register 1/3 Edge detect IN1/3 ICP0 ICP1 ICE0 ICE1 Interrupt #33, #35 #33, #35 57 MB90820 Series • Block diagram of waveform generator φ DCK2 DCK1 DCK0 NRSL DTIF DTIE NWS1 NWS0 DTTI control circuit PICSH01 PGEN1 PGEN0 DTCR0 TMD2 TMD1 TMD0 GTEN1 GTEN0 GATE 0/1 SIGCR DTTI Divider Noise cancellation TO0 RT0 RT1 GATE (to PPG0) Waveform control Output control Output control Output control TO1 Selector 16-bit timer 0 Compare circuit RTO0 (U) Selector U RTO1 (X) 16-bit timer register 0 DTCR1 TMD2 TMD1 TMD0 GTEN1 GTEN0 Dead time generator X GATE 2/3 F2MC-16LX bus PICSH01 PGEN3 PGEN2 RT2 RT3 TO2 Waveform control TO3 Selector 16-bit timer 1 Compare circuit RTO2 (V) Selector V RTO3 (Y) 16-bit timer register 1 DTCR2 TMD2 TMD1 TMD0 GTEN1 GTEN0 PICSH01 PGEN5 PGEN4 RT4 RT5 Dead time generator Y GATE 4/5 TO4 Waveform control TO5 Selector 16-bit timer 2 Compare circuit RTO4 (W) Selector W RTO5 (Z) 16-bit timer register 2 Dead time generator Z 58 PPG0 MB90820 Series 8. PWC Timer ( × 2) The PWC (pulse width count) timer is a 16-bit multi-functional up counter with reload timer functions and input signal pulse width count functions. The PWC timer consists of a 16-bit counter, an input pulse divider, a division ratio control register, a count input pin, a pulse output pin, and a 16-bit control register. The PWC timer has the following features: • Interruption is generated when timer overflow or end of PWC measurement. • EI2OS is supported. • Timer functions : - Generates an interrupt request at set time intervals. - Outputs pulse signals synchronized with the timer cycle. - Selects the counter clock from three internal clocks. • Pulse-width count functions: - Counts the time between external pulse input events. - Selects the counter clock from three internal clocks. - Count mode: • H pulse width (rising edge to falling edge) / L pulse width (falling edge to rising edge) • Rising-edge cycle (rising edge to falling edge) / Falling-edge cycle (falling edge to rising edge) • Count between edges (rising or falling edge to falling or rising edge) Capable of counting cycles by dividing input pulses by 22, 24, 26, 28 using an 8-bit input divider. Generates an interrupt request upon the completion of count operation. Selects single or consecutive count operation. (1) Register configuration Division Ratio Control Register Address: ch0 0000C4H ch1 00002CH Read/write Initial value Bit DIV0, DIV1 DIV1 R/W 0 DIV0 R/W 0 Bit PWC0, PWC1 PW15 PW14 PW13 PW12 PW11 PW10 Read/write Initial value R/W X R/W X 7 R/W X 6 R/W X 5 R/W X 4 R/W X 3 PW09 PW08 R/W X 2 R/W X 1 0 Bit PWC0, PWC1 7 6 5 4 3 2 1 0 − − X − − X − − X − − X − − X − − X PWC Data Buffer Register (Upper) 15 Address: ch0 0000C3H ch1 00002BH 14 13 12 11 10 9 8 PWC Data Buffer Register (Lower) Address: ch0 0000C2H ch1 00002AH Read/write Initial value PW07 PW06 PW05 PW04 PW03 PW02 PW01 PW00 R/W X R/W X R/W X R/W X R/W X R/W X R/W X R/W X Note : Registers PWC0, PWC1 are word access only. (Continued) 59 MB90820 Series (Continued) PWC Control Status Register (Upper) 15 Address: ch0 0000C1H ch1 000029H STRT Read/write Initial value R/W 0 STOP R/W 0 7 CKS0 R/W 0 6 EDIR R 0 EDIE R/W 0 5 OVIR R/W 0 4 S/C R/W 0 OVIE R/W 0 3 2 ERR R 0 POUT R/W 0 1 0 Bit PWCSL0, PWCSL1 14 13 12 11 10 9 8 Bit PWCSH0, PWCSH1 PWC Control Status Register (Lower) Address: ch0 0000C0H ch1 000028H Read/write Initial value CKS1 R/W 0 Reserved Reserved MOD2 MOD1 MOD0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 Note : Registers PWC0, PWC1 are word access only. (2) Block diagram PWC read 16 PWC 16 16 Write enabled Reload Data transfer 16 Overflow Clock 16-bit up counter Timer clear F2MC-16LX bus Count enabled Control circuit Flag setting Start edge selection Count end edge End edge selection Divider ON/OFF Error detection ERR Overflow F.F. P07/PWO0, P47/PWO1 22 23 CKS1, CKS0 Divider clear Clock Clock divider Count bit output Internal clock (machine clock / 4) P06/PWI0, P46/PWI1 8-bit divider Edge detection Count start edge Count end interrupt request Overflow interrupt request CKS1, ERR CKS0 Division ratio selection 2 DIVR 15 PWCS 60 MB90820 Series 9. UART ( × 2) The UART is a serial I/O port for asynchronous (start-stop) communication or clock-synchronous communication. The UART has the following features : • Full-duplex double buffering • Capable of asynchronous (start-stop bit) and CLK-synchronous communications • Support for the multiprocessor mode • Various method of baud rate generation : - External clock input possible - Internal clock (a clock supplied from 16-bit reload timer can be used.) - Embedded dedicated baud rate generator Operation Baud rate Asynchronous 31250/9615/4808/2404/1202 bps CLK synchronous 2 M/1 M/500 K/250 K/125 K/62.5K bps Note : Assuming internal machine clock frequencies of 6 MHz, 8 MHz, 10 MHz, 12 MHz, and 16 MHz. • Error detection functions (parity, framing, overrun) • NRZ (Non Return to Zero) signal format • Interrupt request : - Receive interrupt (receive complete, receive error detection) - Transmit interrupt (transmission complete) - Transmit / receive conforms to extended intelligent I/O service (EI2OS). 61 MB90820 Series (1) Register configuration Serial Status Register 15 Address: ch0 000023H ch1 000027H PE Read/write Initial value R 0 ORE R 0 FRE R 0 RDRF TDRE R 0 R 1 BDS R/W 0 RIE R/W 0 TIE R/W 0 14 13 12 11 10 9 8 Bit SSR0, SSR1 Serial Input Data Register / Serial Output Data Register 7 6 5 Address: ch0 000022H ch1 000026H D7 D6 D5 D4 Read/write Initial value Serial Control Register 15 Address: ch0 000021H ch1 000025H PEN Read/write Initial value Serial Mode Register Address: ch0 000020H ch1 000024H Read/write Initial value R/W 0 P R/W 0 7 MOD1 MOD0 R/W 0 R/W 0 SBL R/W 0 6 CS2 R/W 0 CL R/W 0 5 CS1 R/W 0 14 13 R/W X R/W X R/W X R/W X 4 D3 R/W X 3 D2 R/W X 2 D1 R/W X 1 D0 R/W X 0 Bit SIDR0, SIDR1/ SODR0, SODR1 12 A/D R/W 0 4 CS0 R/W 0 11 REC W 1 3 RST R/W 0 10 RXE R/W 0 2 SCKE R/W 0 9 TXE R/W 0 1 SOE R/W 0 8 Bit SCR0, SCR1 0 Bit SMR0, SMR1 Clock Division Control Register 15 Address: ch0 000035H ch1 000037H Read/write Initial value MD R/W 0 ILS R/W 0 14 13 12 11 DIV2 R/W 0 10 DIV1 R/W 0 9 DIV0 R/W 0 8 Bit CDCR0, CDCR1 − − X − − X − − X 62 MB90820 Series (2) Block diagram Reception interrupt #39 (27H)* Transmission interrupt #40 (28H)* From communication prescaler Baud rate generator Transmission clock 16-bit reload timer P43/SCK0 External clock P45/SIN0 Clock selector Reception clock Reception control circuit Start bit detection circuit Reception bit counter Reception parity counter End of reception Transmission control circuit Transmission start circuit Transmission bit counter Transmission parity counter P44/SOT0 Shift register for transmission Reception state judgment circuit Shift register for reception SIDR0/1 Reception error generating circuit for EI2OS F2MC-16LX bus SODR0/1 SMR0/1 register MD1 MD0 CS2 CS1 CS0 RST SCKE SOE SCR0/1 register PEN P SBL CL A/D REC RXE TXE SSR0/1 register PE ORE FRE RDRF TDRE BDS RIE TIE Control signal *: Interrupt number Start of transmission Control bus 63 MB90820 Series 10. DTP/External Interrupts The DTP/external interrupt circuit is activated by the signal supplied to a DTP/external interrupt pin. The CPU accepts the signal using the same procedure it uses for normal hardware interrupts and generates external interrupts or activates the extended intelligent I/O service (EI2OS). Features of DTP/External Interrupt : • Total 8 external interrupt channels. • Two request levels (“H” and “L”) are provided for the intelligent I/O service. • Four request levels (rising edge, falling edge, “H” level and “L” level) are provided for external interrupt requests. (1) Register configuration DTP/Interrupt Source Register 15 Address: 0000031H Read/write Initial value ER7 R/W 0 14 ER6 R/W 0 13 ER5 R/W 0 12 ER4 R/W 0 11 ER3 R/W 0 10 ER2 R/W 0 9 ER1 R/W 0 8 ER0 R/W 0 Bit EIRR DTP/Interrupt Enable Register 7 Address: 000030H Read/write Initial value EN7 R/W 0 6 EN6 R/W 0 5 EN5 R/W 0 4 EN4 R/W 0 3 EN3 R/W 0 2 EN2 R/W 0 1 EN1 R/W 0 0 EN0 R/W 0 Bit ENIR Request Level Setting Register (Upper) 15 Address: 0000033H Read/write Initial value LB7 R/W 0 14 LA7 R/W 0 13 LB6 R/W 0 12 LA6 R/W 0 11 LB5 R/W 0 10 LA5 R/W 0 9 LB4 R/W 0 8 LA4 R/W 0 Bit ELVRH Request Level Setting Register (Lower) 7 6 Address: 000032H Read/write Initial value LB3 R/W 0 LA3 R/W 0 5 LB2 R/W 0 4 LA2 R/W 0 3 LB1 R/W 0 2 LA1 R/W 0 1 LB0 R/W 0 0 LA0 R/W 0 Bit ELVRL 64 MB90820 Series (2) Block diagram Request level setting register (ELVR) LB7 LA7 LB6 LA6 LB5 LA5 LB4 LA4 LB3 LA3 LB2 LA2 LB1 LA1 LB0 LA0 2 2 2 2 2 2 2 2 Pin P51/INT7 Selector Selector Pin P10/INT0/DTTI Pin P16/INT6 Selector Selector Pin P11/INT1 Internal data bus Pin P15/INT5 Selector Selector Pin P12/INT2 Pin P14/INT4 Selector Selector Pin P13/INT3 ER7 ER6 ER5 ER4 ER3 ER2 ER1 ER0 Interrupt request number #20(14H) #22(16H) #25(19H) #26(1AH) #27(1BH) #28(1CH) EN7 EN6 EN5 EN4 EN3 EN2 EN1 EN0 65 MB90820 Series 11. Delayed Interrupt Generation Module The delayed interrupt generation module is used to generate a task switching interrupt. Interrupt requests to the F2MC-16LX CPU can be generated and cleared by software using this module. (1) Register configuration Delay interrupt cause/clear register 15 Address: 00009FH Read/write Initial value 14 13 12 11 10 9 8 R0 R/W 0 Bit DIRR − − X − − X − − X − − X − − X − − X − − X (2) Block diagram F2MC-16LX bus Delayed interrupt cause generating/cancellation decoder Interrupt cause latch 66 MB90820 Series 12. A/D Converter The A/D converter converts the analog voltage input (input voltage) to an analog input pin to a digital value. It has the following features : • The minimum conversion time is 3 µs (for a machine clock of 24 MHz; including sampling time). • The converter uses the RC-type successive approximation conversion method with a sample and hold circuit. • A resolution of 10 bits or 8 bits can be set. • Up to 16 channels for analog input pins can be selected by a program. • Various conversion mode : - Single conversion mode : Selectively convert one channel. - Scan conversion mode : Continuously convert multiple channels. Maximum of 16 selectable channels. - Continuous conversion mode : Repeatedly convert specified channels. - Stop conversion mode : Convert one channel then halt until the next activation (enables synchronization of the conversion start timing). • At the end of A/D conversion, an interrupt request can be generated and EI²OS can be activated. • In the interrupt-enabled state, the conversion data protection function prevents any part of the data from being lost through continuous conversion. • The conversion can be activated by software, 16-bit reload timer 1 (rising edge) and 16-bit free-running timer zero detection edge. (1) Register configuration A/D Control Status Register 1 (upper) 15 Address: 00000C7H Read/write Initial value BUSY R/W 0 14 INT R/W 0 13 INTE R/W 0 12 PAUS R/W 0 11 STS1 R/W 0 10 STS0 R/W 0 9 STRT W 0 8 Bit ADCS1 − − X A/D Control Status Register 0 (lower) 7 6 Address: 0000C6H Read/write Initial value A/D Data Register 1 (upper) 15 Address: 00000C9H Read/write Initial value A/D Data Register 0 (lower) 7 Address: 0000C8H Read/write Initial value D7 R X 6 D6 R X 14 MD1 R/W 0 MD0 R/W 0 5 S10 R/W 0 4 3 2 1 0 Reserved Bit ADCS0 − − X − − − X − − X − X − 0 13 12 11 10 9 D9 R X 8 D8 R X Bit ADCR1 − − X − − X − − X − − X − − X − − X 5 D5 R X 4 D4 R X 3 D3 R X 2 D2 R X 1 D1 R X 0 D0 R X Bit ADCR0 (Continued) 67 MB90820 Series (Continued) A/D Setting Register 1 (upper) 15 Address: 00000CBH Read/write Initial value ST2 R/W 0 14 ST1 R/W 0 13 ST0 R/W 0 12 CT2 R/W 0 11 CT1 R/W 0 10 CT0 R/W 0 9 Reserved 8 ANS3 R/W 0 Bit ADSR1 R/W 0 A/D Setting Register 0 (lower) 7 Address: 0000CAH Read/write Initial value A/D Input Enable Register 0 15 Address: 00000C5H Read/write Initial value ADE7 R/W 1 ANS2 R/W 0 6 ANS1 R/W 0 5 ANS0 R/W 0 4 Reserved 3 ANE3 R/W 0 2 ANE2 R/W 0 1 ANE1 R/W 0 0 ANE0 R/W 0 Bit ADSR0 R/W 0 14 ADE6 R/W 1 13 ADE5 R/W 1 12 ADE4 R/W 1 11 ADE3 R/W 1 10 ADE2 R/W 1 9 ADE1 R/W 1 8 ADE0 R/W 1 Bit ADER0 A/D Input Enable Register 1 7 Address: 0000D0H Read/write Initial value 6 5 4 3 2 1 ADE9 R/W 1 0 ADE8 R/W 1 ADE15 ADE14 ADE13 ADE12 ADE11 ADE10 R/W 1 R/W 1 R/W 1 R/W 1 R/W 1 R/W 1 Bit ADER1 68 MB90820 Series (2) Block diagram AVCC AVR AVSS D/A converter MPX AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 Input circuit Port 6 Sequential compare register Comparator Sample and hold circuit F2MC-16LX bus Data register ADCR0/1 A/D setting register 0 A/D setting register 1 ADSR0/1 Operation clock AN8 AN9 AN10 AN11 AN12 AN13 AN14 AN15 Input circuit φ Decorder Port 7 Prescaler A/D input enable register 0 A/D input enable register 1 ADER0/1 A/D control status register 0 A/D control status register 1 ADCS0/1 16-bit reload timer 1 16-bit free-running timer zero detection φ : Machine clock 69 MB90820 Series 13. D/A Converter The D/A converter is used to generate an analog output from an 8-bit digital input. By setting the enable bit in the D/A control register (DACR) to 1, it will enable the corresponding D/A output channel. Hence, setting this bit to 0 will disable that channel. If D/A output is disabled, the analog switch inserted to the output of each D/A converter channel in series is turned off. In the D/A converter, the bit is cleared to 0 and the direct-current path is shut off. The above is also true in the stop mode. The output voltage of the D/A converter ranges from 0 V to 255/256 × AVCC. To change the output voltage range, adjust the AVCC voltage externally. The D/A converter output does not have the internal buffer amplifier. The analog switch (= 100 Ω) is inserted to the output in series. To apply load to the output externally, estimate a sufficient stabilization time. Table below lists the theoretical values of output voltage of the D/A converter. Value written to DA07 to DA00 and DA17 to DA10 00H 01H 02H : FDH FEH FFH Theoretical value of output voltage 0/256 × AVCC (= 0 V) 1/256 × AVCC 2/256 × AVCC : 253/256 × AVCC 254/256 × AVCC 255/256 × AVCC 70 MB90820 Series (1) Register configuration D/A data register 1 Bit Address:0000CDH Read/write Initial value 15 R/W X 14 R/W X 13 R/W X 12 R/W X 11 DA13 R/W X 10 DA12 R/W X 9 R/W X 8 R/W X DA17 DA16 DA15 DA14 DA11 DA10 DAT1 D/A data register 0 Bit Address:0000CCH Read/write Initial value 7 DA07 R/W X 6 5 4 3 DA03 R/W X 2 DA02 R/W X 1 0 DA06 DA05 DA04 R/W X R/W X R/W X DA01 DA00 DAT0 R/W X R/W X D/A control register 1 Bit Address:0000CFH Read/write Initial value 15 X 14 X 13 X 12 X 11 X 10 X 9 X 8 DAE1 DACR1 R/W 0 D/A control register 0 Bit Address:0000CEH Read/write Initial value 7 X 6 X 5 X 4 X 3 X 2 X 1 X 0 DAE0 DACR0 R/W 0 71 MB90820 Series (2) Block diagram F 2 MC-16LX bus DA DA DA DA DA DA DA DA 17 16 15 14 13 12 11 10 DA DA DA DA DA DA DA DA 07 06 05 04 03 02 01 00 AVCC DA17 2R R DA16 2R R DA15 DA05 DA06 DA07 AVCC 2R R 2R R DA11 2R R DA10 2R 2R DAE1 DA01 2R R DA00 2R 2R DAE0 Standby control Standby control DA output ch1 DA output ch0 72 MB90820 Series 14. ROM Correction Function When the corresponding address matches the value set in the address detection register, the instruction code to be loaded into the CPU is forced to be replaced with the INT9 instruction code (01H). When executing a set instruction, the CPU executes the INT9 instruction. The address detection function is implemented by processing using the INT9 instruction routine. The device contains two address detection registers, each provided with a compare enable bit. When the value set in the address detection register matches an address and the interrupt enable bit is “1”, the instruction code to be loaded into the CPU is forced to be replaced with the INT9 instruction code. (1) Register configuration Program Address Detection Control Status Register 7 6 5 4 Address: 00009EH Read/write Initial value 3 AD1E R/W 0 2 AD1D R/W 0 1 AD0E R/W 0 0 AD0D R/W 0 Bit PACSR − − X − − X − − X − − X Program Address Detection Register 0 (Upper Byte) 7 Address: 001FF2H Read/write Initial value R/W X R/W X R/W X R/W X R/W X R/W X R/W X R/W X 6 5 4 3 2 1 0 Bit PADRH0 Program Address Detection Register 0 (Middle Byte) 15 14 13 12 Address: 001FF1H Read/write Initial value R/W X R/W X R/W X R/W X 11 10 9 8 Bit PADRM0 R/W X R/W X R/W X R/W X Program Address Detection Register 0 (Lower Byte) 7 Address: 001FF0H Read/write Initial value R/W X R/W X R/W X R/W X R/W X R/W X R/W X R/W X 6 5 4 3 2 1 0 Bit PADRL0 Program Address Detection Register 1 (Upper Byte) 15 Address: 001FF5H Read/write Initial value R/W X R/W X R/W X R/W X R/W X R/W X R/W X R/W X 14 13 12 11 10 9 8 Bit PADRH1 (Continued) 73 MB90820 Series (Continued) Program Address Detection Register 1 (Middle Byte) 7 6 5 4 Address: 001FF4H Read/write Initial value R/W X R/W X R/W X R/W X 3 2 1 0 Bit PADRM1 R/W X R/W X R/W X R/W X Program Address Detection Register 1 (Lower Byte) 15 14 13 12 Address: 001FF3H Read/write Initial value R/W X R/W X R/W X R/W X 11 10 9 8 Bit PADRL1 R/W X R/W X R/W X R/W X (2) Block diagram Address latch Comparator Program address detection register 0/1 F2MC-16LX bus INT9 command F2MC-16LX CPU AD0E/AD1E AD0D/AD1D PACSR 74 MB90820 Series 15. ROM Mirroring Function Selection Module The ROM mirror function selection module sets the data in ROM assigned to FF bank so that the data is read by access to 00 bank. (1) Register configuration ROM Mirror Function Selection Register 15 Address : 00006FH Read/write Initial value 14 13 12 11 10 9 8 M1 R/W Bit ROMM − − X − − X − − X − − X − − X − − X − − X 1 (2) Block diagram ROM mirroring function selection register F2MC-16LX bus Address area FF bank 00 bank ROM 75 MB90820 Series 16. 512K/1024K bits Flash Memory The 512K bits flash memory is allocated in the FFH banks on the CPU memory map. The 1024K bits flash memory is allocated in the FEH and FFH banks on the CPU memory map. Like Mask ROM, flash memory is read-accessible and program-accessible to the CPU using the flash memory interface circuit. The flash memory can be programmed/erased by the instruction from the CPU via the flash memory interface circuit. The flash memory can therefore be reprogrammed (updated) while still on the circuit board under integrated CPU control, allowing program code and data to be improved efficiently. Note that sector operations such as “enable sector protect” cannot be used. Features of 512K/1024K bits flash memory • 64K × 8 bits/32K × 16 bits (32K + 8K × 2 + 16K) sector configuration for 512K bits flash memory • 128K × 8 bits/64K × 16 bits (64K + 32K + 8K × 2 + 16K) sector configuration for 1024K bits flash memory • Automatic program algorithm (same as the Embedded Algorithm* : MBM29F400TA) • Installation of the deletion temporary stop/delete restart function • Write/delete completion detected by the data polling or toggle bit • Write/delete completion detected by the CPU interrupt • Compatibility with the JEDEC standard-type command • Each sector deletion can be executed (sectors can be freely combined) • Flash security function • Number of write/delete operations are guaranteed 10,000 times. * : Embedded Algorithm is a trademark of Advanced Micro Devices, Inc. (1) Register configuration Flash Memory Control Status Register 7 6 Address: 0000AEH Read/write Initial value INTE RDYINT R/W 0 R/W 0 5 WE R/W 0 4 RDY R X 3 2 1 0 Bit FMCS Reserved Reserved Reserved Reserved − 0 0 − 0 − 0 − 76 MB90820 Series (2) Sector configuration of flash memory The flash memory has the sector configuration illustrated below. The addresses in the illustration are the upper and lower addresses of each sector. When 512K bits flash memory is accessed from the CPU, SA0 to SA3 are allocated in the FF bank. Flash memory SA3 (16K bytes) CPU address FFFFFFH FFC000H FFBFFFH FFA000H *Writer address 7FFFFH 7C000H 7BFFFH 7A000H 79FFFH 78000H 77FFFH 70000H SA2 (8K bytes) SA1 (8K bytes) FF9FFFH FF8000H SA0 (32K bytes) FF7FFFH FF0000H When 1024K bits flash memory is accessed from the CPU, SA0 to SA4 are allocated in the FE and FF bank. Flash memory SA4 (16K bytes) CPU address FFFFFFH FFC000H FFBFFFH FFA000H *Writer address 7FFFFH 7C000H 7BFFFH 7A000H 79FFFH 78000H 77FFFH 70000H 6FFFFH 60000H SA3 (8K bytes) SA2 (8K bytes) FF9FFFH FF8000H SA1 (32K bytes) FF7FFFH FF0000H FE7FFFH FE0000H SA0 (64K bytes) * : The writer address is the address corresponding to the CPU address when writing data from a parallel flash memory writer. Use the writer address when programming or erasing using a general-purpose parallel writer. 77 MB90820 Series ■ ELECTRICAL CHARACTERISTICS 1. Absolute Maximum Ratings Parameter Symbol VCC Power supply voltage* Input voltage* 1 1 1 Rating Min VSS − 0.3 VSS − 0.3 VSS − 0.3 VSS − 0.3 VSS − 0.3 − 2.0 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ −40 −55 Max VSS + 6.0 VSS + 6.0 VSS + 6.0 VSS + 6.0 VSS + 6.0 + 2.0 20 15 4 12 100 50 −15 −4 −100 −50 430 +85 +150 Unit V V V V V mA mA mA mA mA mA mA mA mA mA mA mW °C °C *4 Remarks AVCC AVR VI VO ICLAMP Σ | ICLAMP | IOL IOLAV1 IOLAV2 ΣIOL ΣIOLAV IOH IOHAV ΣIOH ΣIOHAV PD TA Tstg VCC = AVCC *2 AVCC ≥ AVR, AVR ≥ AVss *3 *3 *5 *5 *4 Except for P00 to P07, P82 to P87 P00 to P07, P82 to P87 Output voltage* Maximum clamp current Total maximum clamp current “L” level maximum output current “L” level average output current “L” level total maximum output current “L” level total average output current “H” level maximum output current “H” level average output current “H” level total maximum output current “H” level total average output current Power consumption Operating temperature Storage temperature *1 : This parameter is based on VSS = AVSS = 0.0 V. *2 : AVCC must never exceed VCC when the power is turned on. *3 : VI and VO must never exceed VCC + 0.3 V. However if the maximum current to/from an input is limited by some means with external components, the ICLAMP rating supersedes the VI rating. *4 : The maximum output current is a peak value for a corresponding pin. *5 : • • • • Applicable to pins: P00 to P07, P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50, P51, P80 to P87. Use within recommended operating conditions. Use at DC voltage (current). The +B signal is an input signal exceeding VCC voltage. The +B signal should always be applied a limiting resistance placed between the +B signal and the microcontroller. • The value of the limiting resistance should be set so that when the +B signal is applied the input current to the microcontroller pin does not exceed rated values, either instantaneously or for prolonged periods. • Note that when the microcontroller drive current is low, such as in the power saving modes, the +B input potential may pass through the protective diode and increase the potential at the Vcc pin, and this may affect other devices. 78 MB90820 Series • Note that if a +B signal is input when the microcontroller power supply is off (not fixed at 0 V), the power supply is provided from the pins, so that incomplete operation may result. • Note that if the +B input is applied during power-on, the power supply is provided from the pins and the resulting supply voltage may not be sufficient to operate the power-on reset. • Care must be taken not to leave the +B input pin open. • Note that analog system input/output pins (LCD drive pins and comparator input pins, etc.) other than the A/D input pins cannot accept +B input. • Sample recommended circuits: Input/output equivalent circuits Protective diode Vcc Limiting resistance +B input (0 V to 16 V) N-ch P-ch R WARNING: Semiconductor devices can be permanently damaged by application of stress (voltage, current, temperature, etc.) in excess of absolute maximum ratings. Do not exceed these ratings. 79 MB90820 Series 2. Recommended Operating Conditions (VSS = AVSS = 0.0 V) Parameter Symbol Pin name ⎯ ⎯ Power supply voltage VCC AVCC ⎯ ⎯ 3.5 5.5 V Condition ⎯ ⎯ Value Min 4.5 Max 5.5 Unit V Remarks At normal operation TA = −40 °C to +85 °C Normal operation when D/A converter is not used TA = −40 °C to +85 °C Normal operation when A/D converter and D/A converter are not used TA = −40 °C to +85 °C Maintains state in stop mode CMOS input 4.0 5.5 V ⎯ VIH P30 to P37, P60 to P67 P00 to P07, P10 to P17 P20 to P27, P40 to P44, P45*1, P46, P47, P50, P51, P70, P71, P72*1, P73 to P77, P80 to P87, RST MD0, MD1, MD2 ⎯ 3.0 0.7 VCC 5.5 VCC + 0.3 V V “H” level input voltage VIHS 0.8 VCC VCC + 0.3 V CMOS hysteresis input VIHM VIL VCC = 5 V VCC − 0.3 VCC + 0.3 P30 to P37, P60 to P67 ± 10% VSS − 0.3 0.3 VCC P00 to P07, P10 to P17 P20 to P27, P40 to P44, P45*1, P46, P47, P50, P51, P70, P71, P72*1, P73 to P77, P80 to P87 RST MD0, MD1, MD2 ⎯ ⎯ V V MD input CMOS input “L” level input voltage VILS VSS − 0.3 0.2 VCC V CMOS hysteresis input VILM Smoothing capacitor Reference input voltage of A/D converter Operating temperature CS VSS − 0.3 VSS + 0.3 0.1 1.0 V µF MD input *2 AVR ⎯ ⎯ 2.7 AVCC V TA ⎯ ⎯ −40 +85 °C *1 : UART ch0/1 data input pins P45/SIN0, P72/SIN1/AN10 can be used as CMOS input by the communication prescaler control register (CDRR). *2 : Use a ceramic capacitor or a capacitor with equivalent frequency characteristics. On the VCC pin, connect a bypass capacitor that has a larger capacity than that of CS. Refer to the following figure for connection of smoothing capacitor CS. 80 MB90820 Series • C pin connection circuit C CS WARNING: The recommended operating conditions are required in order to ensure the normal operation of the semiconductor device. All of the device’s electrical characteristics are warranted when the device is operated within these ranges. Always use semiconductor devices within their recommended operating condition ranges. Operation outside these ranges may adversely affect reliability and could result in device failure. No warranty is made with respect to uses, operating conditions, or combinations not represented on the data sheet. Users considering application outside the listed conditions are advised to contact their FUJITSU representatives beforehand. 81 MB90820 Series 3. DC Characteristics Parameter “H” level output voltage Symbol VOH VOL1 VOL2 Input leakage current Pull-up resistance Pull-down resistance IIL Pin name All output pins (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Condition Unit Remarks Min Typ Max VCC = 4.5 V, IOH = −4.0 mA VCC − 0.5 ⎯ ⎯ −5 ⎯ ⎯ ⎯ ⎯ ⎯ 0.4 0.4 5 V V V µA At pull-up disabled “L” level output voltage All pins except VCC = 4.5 V, P00 to P07 IOL1 = 4.0 mA P82 to P87 P00 to P07 P82 to P87 All input pins P00 to P07 P10 to P17 P20 to P27 P30 to P37 RST MD2 VCC = 4.5 V, IOL2 = 12.0 mA VCC = 5.5 V, VSS < VI< VCC RUP ⎯ 25 50 100 kΩ RDOWN ⎯ 25 50 100 kΩ Mask ROM product (Continued) 82 MB90820 Series (Continued) (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Symbol Pin name Condition VCC = 5.0 V, Internal frequency: 24 MHz, At normal operation VCC = 5.0 V, Internal frequency: 24 MHz, At writing in flash memory VCC = 5.0 V, Internal frequency: 24 MHz, At erasing memory Power supply current* ICCS VCC VCC = 5.0 V, Internal frequency: 24 MHz, At sleep mode VCC = 5.0 V, Internal frequency: 2 MHz, At main timer mode VCC = 5.0 V, Internal frequency: 8 MHz, At timer mode, TA = +25 °C In stop mode, TA = +25 °C Except AVCC, AVSS, AVR, C, VCC and VSS ⎯ Value Min ⎯ ⎯ Typ 35 45 Max 50 60 Unit Remarks Parameter mA Mask ROM product mA Flash memory product ICC ⎯ 60 75 mA Flash memory product ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 65 80 mA Flash memory product mA Mask ROM product 15 25 mA Flash memory product mA Mask ROM product 0.3 0.8 mA Flash memory product ICTS mA Mask ROM product 3 7 µA Flash memory product ICCT mA Mask ROM product 5 20 µA pF Flash memory product ICCH Input capacitance CIN 5 15 * : The power supply current is regulated with an external clock. 83 MB90820 Series 4. AC Characteristics (1) Clock Timings (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Symbol Pin name Unit Remarks Min Typ Max 3 3 Clock frequency FC X0, X1 4 4 4 4 4 62.5 Clock cycle time tHCYL X0, X1 41.67 PWH PWL tCR tCF fCP tCP ⎯ ⎯ ⎯ ⎯ ⎯ 333 ⎯ 5 24 666 ns ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 16 24 24 12 8 6 4 333 ns When using oscillation circuit When using external clock MHz 1 multiplied PLL 2 multiplied PLL 3 multiplied PLL 4 multiplied PLL 6 multiplied PLL When using oscillation circuit When using external clock When using external clock, duty ratio is about 30% to 70%. When using external clock Parameter Input clock pulse width X0 10 ⎯ 1.5 41.67 ns Input clock rise/fall time Internal operating clock frequency frequency Internal operating clock cycle time X0 ⎯ ⎯ ns MHz ns tHCYL X0 PWH tCF PWL tCR 0.8 VCC 0.2 VCC 84 MB90820 Series Relationship between internal operating clock frequency and power supply voltage Power supply voltage VCC (V) Guaranteed D/A Converter operating range 5.5 4.5 4.0 3.5 Normal operation guarantee range Operation guarantee range of PLL Guaranteed A/D Converter operating range 1.5 4 Internal operating clock frequency fCp (MHz) 24 Relationship between clock frequency and internal operating clock frequency Internal operating clock frequency fCp (MHz) X6 24 X4 X3 X2 X1 16 12 8 4 1.5 34 8 12 16 Clock frequency FC (MHz) 24 Not multiplied The AC ratings are measured for the following measurement reference voltages • Input signal waveform • Output signal waveform Hysteresis input pin 0.8 VCC 0.2 VCC Output pin 2.4 V 0.8 V Pins other than hysteresis input/MD input 0.7 VCC 0.3 VCC 85 MB90820 Series (2) External Reset (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Unit Remarks Min Max 500 Reset input time tRSTL RST Oscillation time of oscillator* + 100 100 ⎯ ⎯ ⎯ ns µs µs In normal operation In stop mode In timebase timer mode Parameter Symbol Pin name * : Oscillation time of oscillator is the time to reach to 90% of the oscillation amplitude from stand still. In the crystal oscillator, the oscillation time is between several ms to tens of ms. In FAR/ceramic oscillator, the oscillation time is between hundreds of µs to several ms. In the external clock, the oscillation time is 0 ms. • In normal operation mode tRSTL RST 0.2 VCC 0.2 VCC • In stop mode, at power on tRSTL RST 0.2 VCC 0.2 VCC 90% of the oscillation amplitude X0 Internal operation clock Oscillation time of oscillator 100 µs Oscillator stabilization time Instruction execution Internal reset 86 MB90820 Series (3) Power-on Reset (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Symbol Pin name Condition Unit Remarks Min Max tR tOFF VCC VCC ⎯ 0.05 1 30 ⎯ ms ms Waiting time for power supply on Parameter Power supply rising time Power supply cut-off time tR VCC 2.7 V 0.2 V 0.2 V tOFF 0.2 V Note : Sudden changes in the power supply voltage may cause a power-on reset. To change the power supply voltage while the device is in operation, be sure to set the slope of rising within 50 mV/ms or less as shown below. VCC 3.0 V VSS RAM data hold time Be sure to set the slope of rising within 50mV/ms or less. 87 MB90820 Series (4) UART0 and UART1 (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Pin name Condition Unit Remarks Min Max SCK0 to SCK1 SCK0 to SCK1 SOT0 to SOT1 SCK0 to SCK1 SIN0 to SIN1 SCK0 to SCK1 SIN0 to SIN1 SCK0 to SCK1 SCK0 to SCK1 SCK0 to SCK1 SOT0 to SOT1 SCK0 to SCK1 SIN0 to SIN1 SCK0 to SCK1 SIN0 to SIN1 CL = 80 pF + 1 TTL for an output pin of external shift clock mode CL = 80 pF + 1 TTL for an output pin of internal shift clock mode 8 tCP −80 100 60 4 tCP 4 tCP ⎯ 60 60 ⎯ + 80 ⎯ ⎯ ⎯ ⎯ 150 ⎯ ⎯ ns ns ns ns ns ns ns ns ns Parameter Serial clock cycle time SCK ↓ → SOT delay time Valid SIN → SCK ↑ SCK ↑ → valid SIN hold time Serial clock “H” pulse width Serial clock “L” pulse width SCK ↓ → SOT delay time Valid SIN → SCK ↑ SCK ↑ → valid SIN hold time Symbol tSCYC tSLOV tIVSH tSHIX tSHSL tSLSH tSLOV tIVSH tSHIX Notes : • These are AC ratings in the CLK synchronous mode. • CL is the load capacitance value connected to pins while testing. • tCP is machine cycle time (unit : ns). 88 MB90820 Series • Internal shift clock mode SCK 0.8 V tSLOV 2.4 V tSCYC 2.4 V 0.8 V SOT 0.8 V tIVSH 0.8 VCC tSHIX 0.8 VCC 0.2 VCC SIN 0.2 VCC • External shift clock mode SCK 0.2 VCC tSLOV tSLSH 0.2 VCC tSHSL 0.8 VCC 0.8 VCC 2.4 V SOT 0.8 V tIVSH 0.8 VCC tSHIX 0.8 VCC 0.2 VCC SIN 0.2 VCC 89 MB90820 Series (5) Resources Input Timing (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Pin name Condition Unit Remarks Min Max IN0 to IN3, TIN0 to TIN1, PWI0 to PWI1, DTTI ⎯ ⎯ Parameter Symbol Input pulse width tTIWH tTIWL 4 tCP ns 0.8 VCC 0.8 VCC 0.2 VCC tTIWH tTIWL 0.2 VCC (6) Trigger Input Timing (VCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Pin name Condition Unit Remarks Min Max INT0 to INT7 ⎯ 5 tCP ⎯ ns Parameter Input pulse width Symbol tTRGH tTRGL 0.8 VCC 0.8 VCC 0.2 VCC tTRGH tTRGL 0.2 VCC 90 MB90820 Series 5. A/D Converter Electrical Characteristics Parameter Resolution Total error Non-linearity error Differential linearity error Zero transition voltage Full-scale transition voltage Compare time Sampling time Analog port input current Analog input voltage Reference voltage Power supply current Reference voltage supply current Offset between channels (3.0 V ≤ AVR − AVSS, VCC = AVCC = 5.0 V±10%, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Pin Unit Remarks Symbol name Min Typ Max ⎯ ⎯ ⎯ ⎯ VOT VFST ⎯ ⎯ IAIN VAIN ⎯ IA IAH IR IRH — ⎯ ⎯ ⎯ ⎯ AN0 to AN15 AN0 to AN15 ⎯ ⎯ AN0 to AN15 AN0 to AN15 AVR AVCC AVR AN0 to AN15 ⎯ ⎯ ⎯ ⎯ AVSS − 1.5 LSB AVR − 3.5 LSB 1.0 2.0 0.5 1.2 - 0.3 AVSS AVSS + 2.7 ⎯ ⎯ ⎯ ⎯ ⎯ 10 ⎯ ⎯ ⎯ AVSS + 0.5 LSB AVR − 1.5 LSB ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 2.4 ⎯ 600 ⎯ ⎯ ⎯ ±3.0 ±2.5 ±1.9 AVSS + 2.5 LSB AVR + 0.5 LSB ⎯ ⎯ ⎯ ⎯ + 0.3 AVR AVCC 4.7 5 900 5 4 bit LSB LSB LSB mV mV µs µs µs µs µA V V mA µA * µA µA * LSB 4.5 V < AVcc < 5.5 V 4.0 V < AVcc < 4.5 V 4.5 V < AVcc < 5.5 V 4.0 V < AVcc < 4.5 V * : The current when the A/D converter is not operating or the CPU is in stop mode (for VCC = AVCC = AVR = 5.0 V) Note : The error increases proportionally as |AVR - AVSS| decreases. 91 MB90820 Series 6. A/D Converter Glossary : Analog variation that is recognized by an A/D converter. : Deviation between a line across zero-transition line (“00 0000 0000”↔ “00 0000 0001”) and full-scale transition line (“11 1111 1110”↔“11 1111 1111”) and actual conversion characteristics. Differential linearity error : Deviation of input voltage, which is required for changing output code by 1 LSB, from an ideal value Total error : Difference between an actual value and an ideal value. A total error includes zero transition error, full-scale transition error, and linear error. Resolution Non linearity error Total error 3FFH 3FEH 3FDH Actual conversion characteristics 0.5 LSB Digital output {1 LSB × (N − 1) + 0.5 LSB} 004H 003H 002H 001H AVRL VNT (Measurement value) Actual conversion characteristics Ideal characteristics 0.5 LSB AVRH Analog input VNT − {1 LSB × (N − 1) + 0.5 LSB} 1 LSB AVR − AVss [V] 1024 Total error for digital output N = 1 LSB = (Ideal value) [LSB] N : A/D converter digital output value VOT(Ideal value) = AVss + 0.5 LSB [V] VFST(Ideal value) = AVR − 1.5 LSB [V] VNT : Voltage at which of digital output transitions from (N − 1) to N. (Continued) 92 MB90820 Series (Continued) Linearity error 3FFH 3FEH 3FDH Differential linearity error Ideal characteristics N+1 VFST (Measurement value) Actual conversion characteristics {1 LSB × (N − 1) + VOT } Actual conversion characteristics Digital output Digital output N 004H 003H 002H 001H AVss VNT (Measurement value) V(N + 1)T N−1 VNT Actual conversion characteristics Ideal characteristics VOT (Measurement value) AVR (Measurement value) (Measurement value) N−2 Actual conversion characteristics AVR AVss Analog input Linearity error of = digital output N Analog input VNT − {1 LSB × (N − 1) + VOT} 1 LSB − 1 [LSB] [V] [LSB] Differential linearity error V (N + 1) T − VNT = 1 LSB of digital output N 1 LSB = N VFST − VOT 1022 : A/D converter digital output value VOT : Voltage at which of digital output transmissions from “000H” to “001H”. VFST : Voltage at which of digital output transmissions from “3FEH” to “3FFH”. 93 MB90820 Series 7. Notes on Using A/D Converter • About the external impedance of the analog input and its sampling time • A/D converter with sample and hold circuit. If the external impedance is too high to keep sufficient sampling time, the analog voltage charged to the internal sample and hold capacitor is insufficient, adversely affecting A/D conversion precision. Therefore, to satisfy the A/D conversion precision standard, consider the relationship between the external impedance and minimum sampling time and either adjust the resistor value and operating frequency or decrease the external impedance so that the sampling time is longer than the minimum value. And if the sampling time cannot be sufficient, connect a capacitor of about 0.1 mF to the analog input pin. • Analog input circuit model R Analog input Comparator C During sampling : ON R 2.0 kΩ (Max) 2.0 kΩ (Max) C 14.4 pF (Max) 16.0 pF (Max) MB90822/823 MB90F822A/F823A Note : The values are reference values. • The relationship between the external impedance and minimum sampling time (External impedance = 0 kΩ to 100 kΩ) 100 90 20 18 (External impedance = 0 kΩ to 20 kΩ) External impedance [kΩ] External impedance [kΩ] 80 70 60 50 40 30 20 10 0 0 MB90822/ 823 16 14 12 10 8 6 4 2 0 0 MB90F822A/F823A MB90822/ 823 MB90F822A/F823A 5 10 15 20 25 30 35 1 2 3 4 5 6 7 8 Minimum sampling time [µs] Minimum sampling time [µs] • About the error The accuracy gets worse as | AVR−AVSS | becomes smaller. 94 MB90820 Series 8. Electrical Characteristics of D/A convertor Parameter Resolution Differential linearity error Conversion time Analog output impedance Power supply current (VCC = AVCC = 4.5 V to 5.5 V, VSS = AVSS = 0.0 V, TA = −40 °C to +85 °C) Value Symbol Pin name Condition Unit Remarks Min Typ Max ⎯ ⎯ ⎯ ⎯ IDVR IDVRS ⎯ ⎯ ⎯ ⎯ AVCC ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 8 ⎯ 0.45 2.9 160 0.1 ⎯ ±0.5 ⎯ 3.8 920 ⎯ bit LSB µs kΩ µA µA D/A stops * * : With load capacitance 20 pF. 95 MB90820 Series 9. Flash Memory Program/Erase Characteristics Parameter Sector erase time Chip erase time Word (16 bit width) programing time Program/Erase cycle Flash data retention time ⎯ Average TA = +85 °C TA = +25 °C VCC = 5.0 V Condition Value Min ⎯ ⎯ ⎯ 10,000 20 Typ 1 9 16 ⎯ ⎯ Max 15 ⎯ 3,600 ⎯ ⎯ Unit s s µs cycle year * Remarks Excludes programming prior to erasure Excludes programming prior to erasure Except for the overhead time of the system * : This value comes from the technology qualification (using Arrhenius equation to translate high temperature measurements into normalized value at + 85 °C) . ■ ORDERING INFORMATION Part number MB90F823APFV MB90F822APFV MB90822PFV MB90823PFV MB90F823APFM MB90F822APFM MB90822PFM MB90823PFM MB90F823APF MB90F822APF MB90822PF MB90823PF Package 80-pin Plastic LQFP (FPT-80P-M05) Remarks 80-pin Plastic LQFP (FPT-80P-M11) 80-pin Plastic QFP (FPT-80P-M06) 96 MB90820 Series ■ PACKAGE DIMENSIONS 80-pin plastic QFP (FPT-80P-M06) Note 1) * : These dimensions do not include resin protrusion. Note 2) Pins width and pins thickness include plating thickness. Note 3) Pins width do not include tie bar cutting remainder. 23.90±0.40(.941±.016) * 20.00±0.20(.787±.008) 64 41 65 40 0.10(.004) 17.90±0.40 (.705±.016) * 14.00±0.20 (.551±.008) INDEX Details of "A" part 80 25 0.25(.010) +0.30 3.05 –0.20 +.012 .120 –.008 (Mounting height) 1 24 0.80(.031) 0~8˚ M 0.37±0.05 (.015±.002) 0.16(.006) 0.17±0.06 (.007±.002) 0.80±0.20 (.031±.008) 0.88±0.15 (.035±.006) 0.30 –0.25 +0.10 +.004 "A" .012 –.010 (Stand off) C 2002 FUJITSU LIMITED F80010S-c-6-5 Dimensions in mm (inches) Note : The values in parentheses are reference values. (Continued) 97 MB90820 Series 80-pin plastic LQFP (FPT-80P-M11) 16.00±0.20(.630±.008)SQ Note 1) * : These dimensions do not include resin protrusion. Note 2) Pins width and pins thickness include plating thickness. Note 3) Pins width do not include tie bar cutting remainder. * 14.00±0.10(.551±.004)SQ 60 41 0.145±0.055 (.006±.002) 61 40 0.10(.004) Details of "A" part 1.50 –0.10 .059 –.004 (Mounting height) 0.25(.010) INDEX 0~8˚ 21 +0.20 +.008 80 1 20 "A" 0.13(.005) M 0.65(.026) 0.50±0.20 (.020±.008) 0.60±0.15 (.024±.006) 0.10±0.10 (.004±.004) (Stand off) 0.32±0.05 (.013±.002) C 2003 FUJITSU LIMITED F80016S-c-3-6 Dimensions in mm (inches) Note : The values in parentheses are reference values. (Continued) 98 MB90820 Series (Continued) 80-pin plastic LQFP (FPT-80P-M05) 14.00±0.20(.551±.008)SQ * 12.00±0.10(.472±.004)SQ 60 41 Note 1) * : These dimensions do not include resin protrusion. Note 2) Pins width and pins thickness include plating thickness. Note 3) Pins width do not include tie bar cutting remainder. 0.145±0.055 (.006±.002) 61 40 0.08(.003) Details of "A" part 1.50 –0.10 .059 –.004 +0.20 +.008 (Mounting height) INDEX 80 21 0˚~8˚ 0.10±0.10 (.004±.004) (Stand off) "A" LEAD No. 1 20 0.50(.020) 0.50±0.20 (.020±.008) 0.60±0.15 (.024±.006) 0.25(.010) 0.20±0.05 (.008±.002) 0.08(.003) M C 2003 FUJITSU LIMITED F80008S-c-4-8 Dimensions in mm (inches) Note : The values in parentheses are reference values. 99 MB90820 Series The information for microcontroller supports is shown in the following homepage. http://www.fujitsu.com/global/services/microelectronics/product/micom/support/index.html FUJITSU LIMITED All Rights Reserved. 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. F0510 © 2005 FUJITSU LIMITED Printed in Japan
MB90F823APFM 价格&库存

很抱歉,暂时无法提供与“MB90F823APFM”相匹配的价格&库存,您可以联系我们找货

免费人工找货