FUJITSU SEMICONDUCTOR DATA SHEET DS07-13607-5E 16-bit Proprietary Microcontrollers CMOS F2MC-16L MB90650A Series MB90652A/653A/654A/F654A/V650A DESCRIPTION The MB90650A series are 16-bit microcontrollers designed for high speed real-time processing in consumer product applications such as controlling cellular phones, CD-ROMs, or VTRs. Based on the F2MC*1-16L CPU core, an F2MC-16L is used as the CPU. This CPU includes high-level language-support instructions and robust task switching instructions, and additional addressing modes. In order to reduce the consumption current, dualclock (main/sub) is used. Furthermore, low consumption power supply is achieved by using stop mode, sleep mode, watch mode, pseudo-watch mode, CPU intermittent operation mode. Microcontrollers in this series have built-in peripheral resources including 10-bit A/D converter, 8-bit D/A converter, UART, 8/16-bit PPG, 8/16-bit up/down counter/timer, I2C interface*2, 8/16-bit I/O timer (input capture, output compare, and 16-bit free-run timer). *1:F2MC stands for FUJITSU Flexible Microcontroller. *2:Purchase of Fujitsu I2C components conveys a license under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips. FEATURES F2MC-16L CPU * Minimum execution time: 83.3 ns/3 MHz oscillation (Uses PLL clock multiplication) maximum multiplier = 4 * Instruction set optimized for controller applications Object code compatibility with F2MC-16(H) (Continued) PACKAGES 100-pin plastic LQFP 100-pin plastic QFP (FPT-100P-M05) (FPT-100P-M06) MB90650A Series (Continued) Wide range of data Types (bit, byte, word, and long word) Improved instruction cycles provide increased speed Additional addressing modes: 23 modes High code efficiency Access methods (bank access, linear pointer) High precision operations are enhanced by use of a 32-bit accumulator Extended intelligent I/O service (access area extended to 64 Kbytes) Maximum memory space: 16 Mbytes * Enhanced high level language (C) and multitasking support instructions Use of a system stack pointer Enhanced pointer indirect instructions Barrel shift instructions * Improved execution speed: Four byte instruction queue * Powerful interrupt function * Automatic data transfer function that does not use instruction (extended I2OS) 2 MB90650A Series PRODUCT LINEUP Part number Item Classification MB90652A MB90653A Mask ROM product MB90654A MB90F654A MB90V650A* Mask ROM product FLASH product For evaluation ROM size 64 Kbytes 128 Kbytes 256 Kbytes -- RAM size 3 Kbytes 5 Kbytes 8 Kbytes 6 Kbytes 2.2 V to 3.6 V 2.4 V to 3.6 V 2.7 V to 5.5 V Power supply voltage 2.2 V to 3.6 V CPU functions The number of instructions Instruction bit length Instruction length Data bit length Minimum execution time Interrupt processing time Ports I/O ports (N-channel open-drain) : 4 I/O ports (CMOS) : 75 (Input pull-up resistors available: 24/ Can be set as N-channel open-drain: 8) Total : 79 A/D converter D/A converter 8/16-bit up/down counter/timer : 340 : 8/16 bits : 1 to 7 bytes : 1/4/8/16/32 bits : 83.3 ns/3 MHz (PLL multiplier = 4) : 2 s/12 MHz (minimum) Analog inputs: 8 channels 10-bit resolution Conversion time: minimum 8.17 s/12 MHz 2 channels (independent), 8-bit resolution, R-2R type 16 bits x 1 channel/8 bits x 2 channels selectable Includes reload and compare functions. I2C interface 1 channel Master mode/slave mode available UART 1 channel Clock synchronous communication Clock asynchronous communication I/O extended serial interface 8/16-bit PPG 16-bit I/O timer DTP/external interrupt Analog inputs: 8 channels 10-bit resolution Conversion time: minimum 8.17 s/12 MHz 8 bits x 2 channels LSB-first or MSB-first operation selectable 8 bits x 2 channels/16 bits x 1 channel selectable 1 channel (Input capture x 2 channels, output compare x 4 channels, and free-run timer x 1 channel) 8 inputs Timer functions Timebase timer (18-bit)/watchdog timer (18-bit)/watch timer (15-bit) DTMF generator Supports every ITU-T (CCITT) tone for output (Internal 12 MHz shall be used for DTMF generator). Low-power consumption modes CPU intermittent operation mode, sub clock mode, stop mode, sleep mode, watch mode, pseudo-watch mode (Continued) 3 MB90650A Series (Continued) Part number MB90652A Item PLL function MB90653A MB90654A MB90V650A* Selectable multiplier: 1/2/3/4 (Set a multiplier that does not exceed the assured operation frequency range.) Other Package MB90F654A -- FPT-100P-M05, FPT-100P-M06 PGA-256C-A02 * : MB90V650A has products of single clock power supply and dual clock power supply. Model : Single clock system MB90V650ACR-ES Dual clock system MB90V650ACR-ES-H Note : MB90V650A device is assured only when operate with the tools, under the condition of power supply voltage : 2.7 V to 3.3 V, operating temperature: 0C to 70C and operating frequency: 1.5 MHz to 12 MHz For more information about each package, see section "PACKAGE DIMENSIONS". 4 MB90650A Series PIN ASSIGNMENTS 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 P21/A17 P20/A16 P17/AD15 P16/AD14 P15/AD13 P14/AD12 P13/AD11 P12/AD10 P11/AD09 P10/AD08 P07/AD07 P06/AD06 P05/AD05 P04/AD04 P03/AD03 P02/AD02 P01/AD01 P00/AD00 VCC1 X1 X0 VSS X0A X1A PA2/OUT2 (Top view) 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 RST PA1/OUT1 PA0/OUT0 P97/IN1 P96/IN0 P95/ZIN1 P94/BIN1 P93/AIN1/IRQ7 P92/ZIN0 P91/BIN0 P90/AIN0/IRQ6 P67/PPG11 P66/PPG10 P65/CKOT P64/PPG01 P63/PPG00 P62/SCK2 P61/SOT2 P60/SIN2 DTMF P86/OUT3 P85/IRQ5 P84/IRQ4 P83/IRQ3 P82/IRQ2 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 P71/SCL P72 DVRH DVSS P73/DA00 P74/DA01 AVCC AVRH AVRL AVSS P50/AN0 P51/AN1 P52/AN2 P53/AN3 VSS P54/AN4 P55/AN5 P56/AN6 P57/AN7 P80/IRQ0 P81/IRQ1 MD0 MD1 MD2 TEST P22/A18 P23/A19 P24/A20 P25/A21 P26/A22 P27/A23 P30/ALE P31/RD VSS P32/WRL P33/WRH P34/HRQ P35/HAK P36/RDY P37/CLK P40/SIN0 P41/SOT0 P42/SCK0 P43/SIN1 P44/SOT1 VCC2 P45/SCK1 P46/ADTG P47 P70/SDA (FPT-100P-M05) (Continued) 5 MB90650A Series (Continued) 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 DVSS P73/DA00 P74/DA01 AVCC AVRH AVRL AVSS P50/AN0 P51/AN1 P52/AN2 P53/AN3 VSS P54/AN4 P55/AN5 P56/AN6 P57/AN7 P80/IRQ0 P81/IRQ1 MD0 MD1 P20/A16 P21/A17 P22/A18 P23/A19 P24/A20 P25/A21 P26/A22 P27/A23 P30/ALE P31/RD VSS P32/WRL P33/WRH P34/HRQ P35/HAK P36/RDY P37/CLK P40/SIN0 P41/SOT0 P42/SCK0 P43/SIN1 P44/SOT1 VCC2 P45/SCK1 P46/ADTG P47 P70/SDA P71/SCL P72 DVRH 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 P17/AD15 P16/AD14 P15/AD13 P14/AD12 P13/AD11 P12/AD10 P11/AD09 P10/AD08 P07/AD07 P06/AD06 P05/AD05 P04/AD04 P03/AD03 P02/AD02 P01/AD01 P00/AD00 VCC1 X1 X0 VSS (Top view) (FPT-100P-M06) 6 X0A X1A PA2/OUT2 RST PA1/OUT1 PA0/OUT0 P97/IN1 P96/IN0 P95/ZIN1 P94/BIN1 P93/AIN1/IRQ7 P92/ZIN0 P91/BIN0 P90/AIN0/IRQ6 P67/PPG11 P66/PPG10 P65/CKOT P64/PPG01 P63/PPG00 P62/SCK2 P61/SOT2 P60/SIN2 DTMF P86/OUT3 P85/IRQ5 P84/IRQ4 P83/IRQ3 P82/IRQ2 TEST MD2 MB90650A Series PIN DESCRIPTION Pin no. Pin name Circuit type Function LQFP*1 QFP*2 80 82 X0 A Crystal oscillator pin 81 83 X1 A Crystal oscillator pin 77 79 X1A B Crystal oscillator pins (32 kHz) 78 80 X0A B Crystal oscillator pins (32 kHz) 47 to 49 49 to 51 MD0 to MD2 D Operating mode selection pins Connect directly to VCC or VSS. 50 52 TEST D Test input pin This pin must always be fixed to "H". 75 77 RST C Reset input pin P00 to P07 83 to 90 85 to 92 AD00 to AD07 P10 to P17 91 to 98 99, 100, 1 to 6 93 to 100 P20, P21, P22 to P27 General-purpose I/O ports In external bus mode, pins for which the corresponding bit in the external address output control register (HACR) is "1" function as the general-purpose I/O pots. P30 ALE 8 10 P31 RD 10 12 General-purpose I/O ports Pull-up resistors can be set (RD17 to RD10 = "1") using the pull-up resistor setting register (RDR1). E The setting does not apply for ports set as outputs (D17 to D10 (STBC) = "1": invalid at the output setting). In 16-bit external bus mode, the pins function as the upper data I/O or middle address outputs (AD08 to AD15). 1, 2, 3 to 8 9 In external bus mode, the pins function as the lower data I/O or lower address outputs (AD00 to AD07). AD08 to AD15 A16, A17, A18 to A23 7 General-purpose I/O ports Pull-up resistors can be set (RD07 to RD00 = "1") using the pull-up resistor setting register (RDR0). E The setting does not apply for ports set as outputs (D07 to D00 (STBC) = "1": invalid at the output setting). P32 WRL I (STBC) External address bus output pins (A16 to A23) In external bus mode, pins for which the corresponding bit in the external address output control register (HACR) is "0" function as the upper address output pins (A16 to A23). General-purpose I/O port I Functions as the ALE pin in external bus mode. (STBC) Functions as the address latch enable signal. General-purpose I/O port I Functions as the RD pin in external bus mode. (STBC) Functions as the read strobe output (RD). General-purpose I/O port Functions as the WRL pin in external bus mode if the WRE bit I (STBC) in the ECSR register is "1". Functions as the lower data write strobe output (WRL). (Continued) 7 MB90650A Series Pin no. 1 LQFP* 11 2 QFP* 13 Pin name P33 WRH 12 14 P34 HRQ 13 15 P35 HAK 14 16 P36 RDY 15 17 P37 CLK 16 18 P40 SIN0 17 19 P41 SOT0 8 Circuit type Function General-purpose I/O port Functions as the WRH pin in 16-bit external bus mode if the I WRE bit in the ECSR register is "1". (STBC) Functions as the upper data write strobe output (WRH). General-purpose I/O port Functions as the HRQ pin in external bus mode if the HDE bit I (STBC) in the ECSR register is "1". Functions as the hold request input pin (HRQ). General-purpose I/O port Functions as the HAK pin in external bus mode if the HDE bit in I the ECSR register is "1". (STBC) Functions as the hold acknowledge output (HAK) pin. General-purpose I/O port Functions as the RDY pin in external bus mode if the RYE bit in I (STBC) the ECSR register is "1". Functions as the external ready input (RDY) pin. General-purpose I/O port Functions as the CLK pin in external bus mode if the CKE bit in I (STBC) the ECSR register is "1". Functions as the machine cycle clock output (CLK) pin. General-purpose I/O port When UART0 is operating, the data at the pin is used as the serial input (SIN0). Can be set as an open-drain output port (OD40 = "1") by the H (STBC) open-drain control register (ODR4). The setting does not apply for ports set as inputs (D40 = "0": invalid at the input setting). Functions as the UART0 serial input (SIN0). General-purpose I/O port Functions as the SOT0 pin if the SOE bit in the UMC register is "1". Can be set as an open-drain output port (OD41 = "1") by the G (STBC) open-drain control register (ODR4). The setting does not apply for ports set as inputs (D41 = "0": invalid at the input setting). Functions as the UART0 serial data output pin (SOT0). (Continued) MB90650A Series Pin no. LQFP*1 18 19 20 22 23 QFP*2 20 21 Pin name P42 P43 General-purpose I/O port When I/O extended serial is operating, the data at the pin is used as the serial input (SIN1). Can be set as an open-drain output port (OD43 = "1") by the open-drain control register (ODR4). The setting does not apply for ports set as inputs (D43 = "0": invalid at the input setting). H (STBC) SIN1 Functions as the serial input for I/O extended serial data. P44 General-purpose I/O port Functions as the SOT1 pin if the SOE bit in the UMC register is "1". Can be set as an open-drain output port (OD44 = "1") by the open-drain control register (ODR4). The setting does not apply for ports set as inputs (D44 = "0": invalid at the input setting). G (STBC) SOT1 Functions as the output pin (SOT1) for I/O extended serial data. P45 General-purpose I/O port When I/O extended serial is operating in external shift clock mode, the data at the pin is used as the clock input (SCK1). Also, functions as the SCK1 pin if the SOE bit in the UMC register is "1". Can be set as an open-drain output port (OD45 = "1") by the open-drain control register (ODR4). The setting does not apply for ports set as inputs (D45 = "0": invalid at the input setting). H (STBC) SCK1 Functions as the I/O extended serial clock I/O pin (SCK1). P46 General-purpose I/O port Can be set as an open-drain output port (OD46 = "1") by the open-drain control register (ODR4). The setting does not apply for ports set as inputs (D46 = "0": invalid at the input setting). 25 26 General-purpose I/O port When UART0 is operating in external shift clock mode, the data at the pin is used as the clock input (SCK0). Also, functions as the SCK0 pin if the SOE bit in the UMC register is "1". Can be set as an open-drain output port (OD42 = "1") by the open-drain control register (ODR4). The setting does not apply for ports set as inputs (D42 = "0": invalid at the input setting). Functions as the UART0 serial clock I/O pin (SCK0). ADTG 24 H (STBC) Function SCK0 22 24 Circuit type P47 G (STBC) Functions as the external trigger input pin for the A/D converter. K Open-drain type general-purpose I/O port (NMOS/H) (STBC) (Continued) 9 MB90650A Series Pin no. LQFP*1 36 to 39, 41 to 44 57 QFP*2 Pin name P50 to P53, 38 to 41, P54 to P57 43 to 46 AN0 to AN3, AN4 to AN7 59 P60 SIN2 58 60 P61 SOT2 59 61 P62 SCK2 60 62 P63 PPG00 61 63 P64 PPG01 Circuit type Function General-purpose I/O ports L (STBC) The pins are used as analog inputs (AN0 to AN7) when the A/D converter is operating. General-purpose I/O port A pull-up resistor can be set (RD60 = "1") using the pull-up resistor setting register (RDR6). F (STBC) The setting does not apply for ports set as outputs (D60 = "1": invalid at the output setting). Functions as a data input pin (SIN2) for I/O extended serial. General-purpose I/O port Function as the SOT2 pin if the SOE bit in the UMC register is "1". A pull-up resistor can be set (RD61 = "1") using the pull-up E (STBC) resistor setting register (RDR6). The setting does not apply for ports set as outputs (D61 = "1": invalid at the output setting). Functions as an output pin (SOT2) for I/O extended serial data. General-purpose I/O port When I/O extended serial is operating in external shift clock mode, the data at the pin is used as the clock input (SCK2). Also, functions as the SCK2 pin if the SOE bit in the UMC register is "1". F (STBC) A pull-up resistor can be set (RD62 = "1") using the pull-up resistor setting register (RDR6). The setting does not apply for ports set as outputs (D62 = "1": invalid at the output setting). Functions as the I/O extended serial clock I/O pin (SCK2). General-purpose I/O port A pull-up resistor can be set (RD63 = "1") using the pull-up resistor setting register (RDR6). E (STBC) The setting does not apply for ports set as outputs (D63 = "1": invalid at the output setting). Functions as the PPG00 output when PPG output is enabled. General-purpose I/O port A pull-up resistor can be set (RD64 = "1") using the pull-up resistor setting register (RDR6). E (STBC) The setting does not apply for ports set as outputs (D64 = "1": invalid at the output setting). Functions as the PPG01 output when PPG output is enabled. (Continued) 10 MB90650A Series Pin no. LQFP*1 62 63 64 25 QFP*2 64 65 66 27 Pin name P65 Circuit type E (STBC) 28 27 29 30 32 Functions as the CKOT output when CKOT is operating. P66 General-purpose I/O port A pull-up resistor can be set (RD66 = "1") using the pull-up resistor setting register (RDR6). The setting does not apply for ports set as outputs (D66 = "1": invalid at the output setting). E (STBC) PPG10 Functions as the PPG10 output when PPG output is enabled. P67 General-purpose I/O port A pull-up resistor can be set (RD67 = "1") using the pull-up resistor setting register (RDR6). The setting does not apply for ports set as outputs (D67 = "1": invalid at the output setting). E (STBC) PPG11 Functions as the PPG11 output when PPG output is enabled. P70 Open-drain type I/O port SDA I2C interface data I/O pin K 2 (NMOS/H) This function is valid when I C interface operations are enabled. (STBC) Set port output to Hi-Z (PDR = 1) during I2C interface operations. SCL P72 P73 Open-drain type I/O port I2C interface clock I/O pin K 2 (NMOS/H) This function is valid when I C interface operations are enabled. (STBC) Set port output to Hi-Z (PDR = 1) during I2C interface operations. K (STBC) M (STBC) DA00 31 33 P74 47 P80 IRQ0 Open-drain type I/O port Open-drain type I/O port Functions as a D/A output pin when DAE0 = "1" in the D/A control register (DACR). Functions as D/A output 0 when the D/A converter is operating. M (STBC) DA01 45 General-purpose I/O port A pull-up resistor can be set (RD65 = "1") using the pull-up resistor setting register (RDR6). The setting does not apply for ports set as outputs (D65 = "1": invalid at the output setting). CKOT P71 26 Function General-purpose I/O port Functions as a D/A output pin when DAE1 = "1" in the D/A control register (DACR). Functions as D/A output 1 when the D/A converter is operating. J General-purpose I/O port Functions as external interrupt request I/O 0. (Continued) 11 MB90650A Series Pin no. LQFP*1 QFP*2 46 48 51 53 52 54 53 55 54 56 55 57 Pin name P81 IRQ1 P82 IRQ2 P83 IRQ3 P84 IRQ4 P85 IRQ5 P86 OUT3 Circuit type J J J J J 67 AIN0 68 67 69 P91 BIN0 P92 ZIN0 J 70 AIN1 IRQ7 69 71 70 72 71 73 72 74 73 75 P94 BIN1 P95 ZIN1 P96 IN0 P97 IN1 PA0 OUT0 General-purpose I/O port Functions as external interrupt request I/O 2. General-purpose I/O port Functions as external interrupt request I/O 3. General-purpose I/O port Functions as external interrupt request I/O 4. General-purpose I/O port Functions as external interrupt request I/O 5. Input to channel 0 of the 8/16-bit up/down counter/timer Functions as an interrupt request input. General-purpose I/O port J (STBC) Input to channel 0 of the 8/16-bit up/down counter/timer General-purpose I/O port J (STBC) Input to channel 0 of the 8/16-bit up/down counter/timer P93 68 Functions as external interrupt request I/O 1. General-purpose I/O port IRQ6 66 General-purpose I/O port General-purpose I/O port I This applies in all cases. (STBC) Event output for channel 3 of the output compare P90 65 Function General-purpose I/O port J Input to channel 1 of the 8/16-bit up/down counter/timer Functions as an interrupt request input. General-purpose I/O port J (STBC) Input to channel 1 of the 8/16-bit up/down counter/timer General-purpose I/O port J (STBC) Input to channel 1 of the 8/16-bit up/down counter/timer General-purpose I/O port J (STBC) Trigger input for channel 0 of the input capture General-purpose I/O port J (STBC) Trigger input for channel 1 of the input capture General-purpose I/O port I (STBC) Event output for channel 0 of the output compare (Continued) 12 MB90650A Series (Continued) Pin no. Pin name Circuit type Function LQFP*1 QFP*2 74 76 76 78 82 84 VCC1 -- Power supply (3.0 V) input pin 21 23 VCC2 -- Power supply (3.0 V/5.0 V) input pin 9, 40, 79 11, 42, 81 VSS -- 32 34 AVCC -- A/D converter power supply pin 33 35 AVRH -- A/D converter external reference power supply pin 34 36 AVRL -- A/D converter external reference power supply pin 35 37 AVSS -- A/D converter power supply pin 28 30 DVRH -- D/A converter external reference power supply pin 29 31 DVSS -- D/A converter power supply pin 56 58 DTMF N DTMF output pin PA1 OUT1 PA2 OUT2 General-purpose I/O port I (STBC) Event output for channel 1 of the output compare General-purpose I/O port I (STBC) Event output for channel 2 of the output compare Power supply (0.0 V) input pin *1: FPT-100P-M05 *2: FPT-100P-M06 Note : STBC = Incorporates standby control NMOS = N-ch open-drain output 13 MB90650A Series I/O CIRCUIT TYPE Type Circuit Remarks * Oscillation feedback resistance: Approx. 1 M X1 X0 A Standby control signal * Oscillation feedback resistance: Approx. 10 M X1A X0A B Standby control signal C * Hysteresis input with pull-up Resistance approx. 50 k R Hysteresis input R * Hysteresis input port Hysteresis input D R CTL * Incorporates pull-up resistor control (for input) * CMOS level I/O Resistance approx. 50 k E CMOS R CTL F * Incorporates pull-up resistor control (for input) * CMOS level output * Hysteresis input Resistance approx. 50 k Hysteresis input R (Continued) 14 MB90650A Series Type Circuit Remarks Open-drain control signal * CMOS level I/O * Incorporates open-drain control G CMOS R Open-drain control signal * CMOS level output * Hysteresis input * Incorporates open-drain control H Hysteresis input R * CMOS level I/O I CMOS R * CMOS level output * Hysteresis input J Hysteresis input R * Hysteresis input * N-ch open-drain output Digital output K Hysteresis input R * CMOS level I/O * Analog input L CMOS R Analog input (Continued) 15 MB90650A Series (Continued) Type Circuit Remarks * CMOS level I/O * Analog output * Shared with D/A outputs M D/A output CMOS R * DTMF analog output R N R R 16 MB90650A Series HANDLING DEVICES 1. Preventing Latch-up Latch-up occurs in a CMOS IC if a voltage greater than VCC or less than VSS is applied to an input or output pin or if the voltage applied between VCC and VSS exceeds the rating. If latch-up occurs, the power supply current increases rapidly resulting in thermal damage to circuit elements. Therefore, ensure that maximum ratings are not exceeded in circuit operation. For the same reason, also ensure that the analog supply voltage does not exceed the digital supply voltage. 2. Treatment of Unused Pins Leaving unused input pins unconnected can cause misoperation. Always pull-up or pull-down unused pins. 3. External Reset Input To reliably reset the controller by inputting an "L" level to the RST pin, ensure that the "L" level is applied for at least five machine cycles. Take particular note when using an external clock input. 4. VCC and VSS Pins Ensure that all VCC pins are at the same voltage. The same applies for the VSS pins. 5. Precautions when Using an External Clock Drive the X0 pin only when using an external clock. * Using an external clock MB90650A Series X0 X1 6. A/D Converter Power Supply and the Turn-on Sequence for Analog Inputs Always turn off the A/D converter power supply (AVCC, AVRH, AVRL) and analog inputs (AN0 to AN7) before turning off the digital power supply (VCC). When turning the power on or off, ensure that AVRH does not exceed AVCC. Also, when using the analog input pins as input ports, ensure that the input voltage does not exceed AVCC. 7. Turn-on Sequence for D/A Converter Power Supply Always turn on the D/A converter power supply (DVR), after turning off the digital power supply (VCC). And in the turning off the power supply sequence always turn off the digital power supply (VCC) after turning off the D/A converter power supply (DVR). 17 MB90650A Series 8. Initializing In this device there are some kinds of inner resisters which are initialized only by power on reset. It is possible to initialize these resisters by turning on the power supply again. 9. Power Supply Pins When there are several VCC and VSS pins, those pins that should have the same electric potential are connected within the device when the device is designed in order to prevent misoperation, such as latchup. However, all of those pins must be connected to the power supply and ground externally in order to reduce unnecessary emissions, prevent misoperation of strobe signals due to an increase in the ground level, and to observe the total output current standards. In addition, give a due consideration to the connection in that current supply be connected to VCC and VSS with the lowest possible impedance. Finally, it is recommended to connect a capacitor of about 0.1 F between VCC and VSS near this device as a bypass capacitor. 10. Crystal Oscillation Circuit Noise in the vicinity of the X0 and X1 pins will cause this device to operate incorrectly. Design the printed circuit board so that the bypass capacitor connecting X0, X1 and the crystal oscillator (or ceramic oscillator) to ground is located as close to the device as possible, and that the wiring does not cross the other wirings. In addition, because printed circuit board artwork in which the area around the X0 and X1 pins is surrounded by ground provides stable operation, such an arrangement is strongly recommended. 11. About 2 Power Supplies The MB90650A series usually uses the 3-V power supply as the main power source. With Vcc1 = 3 V and Vcc2 = 5 V, however, it can interface with P20/A16 to P27/A23, P30/ALE to P37/CLK, P40/SIN0 to P47, and P70/SDA to P72 for the 5-V power supply separately from the 3-V power supply at all operation mode. Note, however, that the analog power supplies such as A/D and D/A can be used only as 3-V power supplies. 12. When not Using a Sub Clock Signal Also when the sub-clock is not used, X0A and X1A pins should be connected to an oscillator. 13. Caution on Operations during PLL Clock Mode If the PLL clock mode is selected, the microcontroller attempt 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. 18 MB90650A Series BLOCK DIAGRAM X0, X1 RST X0A, X1A CPU F2MC-16L family core Clock control circuit 5 Interrupt controller RAM 2 8/16-bit PPG 2 (Output switching) x 1 channel ROM 8/16-bit up/down counter/timer 8 bits x 2 channels (16 bits x 1 channel) SIN0 SOT0 SCK0 Internal data bus Communications prescaler UART SIN1, SIN2 SOT1, SOT2 SCK1, SCK2 2 2 2 DA00, DA01 DVRH DVSS 2 2 2 DTP/external interrupt I/O extended serial interface x 2 channels 16-bit input capture x 2 channels 2 16-bit output compare x 4 channels A/D converter (10 bits) AIN0, AIN1 BIN0, BIN1 ZIN0, ZIN1 CKOT Prescaler 16-bit I/O timers AVCC AVRH, AVRL AVSS ADTG AN0 to AN7 PPG00, PPG01 PPG10, PPG11 6 2 2 4 IRQ0 to IRQ5 IRQ6, IRQ7 IN0, IN1 OUT1 to OUT3 16-bit free-run timer x 1 channel 8 DTMF DTMF 2 D/A converter (8 bits) I2C interface SCL SDA I/O ports Other pins TEST, AD00 to AD15, A16 to A23, ALE, RD, WRL, WRH, HRQ, HAK, RDY, CLK, N.C., MD0 to MD2, VCC, VSS 8 8 8 8 8 8 8 5 7 8 3 P00 to P07 P10 to P17 P20 to P27 P30 to P37 P40 to P47 P50 to P57 P60 to P67 P70 to P74 P80 to P86 P90 to P97 PA0 to PA2 P00 to P07 (8 pins) : Incorporates a pull-up resistor setting register (for input) P10 to P17 (8 pins) : Incorporates a pull-up resistor setting register (for input) P60 to P67 (8 pins) : Incorporates a pull-up resistor setting register (for input) P40 to P46 (7 pins) : Incorporates an open-drain setting register P47, P70 to P72 (4 pins) : Open-drain 19 MB90650A Series MEMORY MAP * MB90652A, MB90653A, MB90V650A FFFFFFH Single chip mode Internal ROM/external bus mode ROM area ROM area ROM area (FF bank image) ROM area (FF bank image) RAM RAM External ROM/external bus mode Address #1 FE0000H 010000H Address #2 004000H 002000H Address #3 Registers Registers RAM Registers 000100H 0000C0H Peripherals Peripherals Peripherals 000000H Type MB90652A MB90653A MB90V650A Address #1 * FF0000H FE0000H (FE0000H) Address #2 * 004000H 004000H 004000H Address #3 * 000CFFH 0014FFH 0018FFH : Internal access memory : External access memory : No access * : Address #1, #2, and #3 are different owing to their devices respectively. Note : While the ROM data image of bank FF can be seen in the upper portion of bank 00, this is done only to permit effective use of the C compiler's small model. Because the lower 16 bits are the same, it is possible to reference tables in ROM without declaring the "far" specification in the pointer. For example, to access to 00C000H is to access to the ROM content of FFC000H in practice. Because the ROM area of FF bank exceeds 48 Kbytes, all the area can be seen in bank 00. So, the image for FF4000H to FFFFFFH can be seen in bank 00, while FE0000H to FF3FFFH can only be seen in bank FF and FE. 20 MB90650A Series * MB90654A, MB90F654A FFFFFFH ROM area 010000H ROM area (FF bank image) ROM area (FF bank image) 002100H RAM Registers RAM Registers RAM Registers 000100H 0000C0H Peripherals Peripherals Peripherals 000000H Type MB90654A* MB90F654A* Address #1 FC0000H FC0000H Address #2 004000H 004000H Address #3 0020FFH 0020FFH : Internal access memory : External access memory : No access * : In the MB90654A and MB90F654A, RAM area 2000H is 2100H. Note : While the ROM data image of bank FF can be seen in the upper portion of bank 00, this is done only to permit effective use of the C compiler's small model. Because the lower 16 bits are the same, it is possible to reference tables in ROM without declaring the "far" specification in the pointer. For example, to access to 00C000H is to access to the ROM content of FFC000H in practice. Because the ROM area of FF bank exceeds 48 Kbytes, all the area can be seen in bank 00. So, the image for FF4000H to FFFFFFH can be seen in bank 00, while FE0000H to FF3FFFH can only be seen in bank FF and FE. 21 MB90650A Series F2MC-16L CPU PROGRAMMING MODEL * Dedicated registers AH Accumulator AL USP User stack pointer SSP System stack pointer PS Processor status PC Program counter DPR Direct page register PCB Program bank register DTB Data bank register USB User stack bank register SSB System stack bank register ADB Additional data bank register 8 bits 16 bits 32 bits * General-purpose registers Maximum 32 banks R7 R6 RW7 R5 R4 RW6 R3 R2 RW5 R1 R0 RW4 RL3 RL2 RW3 RL1 RW2 RW1 RL0 RW0 000180H + RP x 10H 16 bits * Processor status (PS) ILM RP -- I S T N CCR 22 Z V C MB90650A Series I/O MAP Address Register Register name Read/ write Resource name Initial value 00H Port 0 data register PDR0 R/W Port 0 XXXXXXXXB 01H Port 1 data register PDR1 R/W Port 1 XXXXXXXXB 02H Port 2 data register PDR2 R/W Port 2 XXXXXXXXB 03H Port 3 data register PDR3 R/W Port 3 XXXXXXXXB 04H Port 4 data register PDR4 R/W Port 4 1XXXXXXXB 05H Port 5 data register PDR5 R/W Port 5 XXXXXXXXB 06H Port 6 data register PDR6 R/W Port 6 XXXXXXXXB 07H Port 7 data register PDR7 R/W Port 7 ---XX111 B 08H Port 8 data register PDR8 R/W Port 8 -XXXXXXXB 09H Port 9 data register PDR9 R/W Port 9 XXXXXXXXB 0AH Port A data register PDRA R/W Port A -----XXX B 0BH to 0FH (Reserved area) 10H Port 0 direction register DDR0 R/W Port 0 0 00 0 00 00 B 11H Port 1 direction register DDR1 R/W Port 1 0 00 0 00 00 B 12H Port 2 direction register DDR2 R/W Port 2 0 00 0 00 00 B 13H Port 3 direction register DDR3 R/W Port 3 0 00 0 00 00 B 14H Port 4 direction register DDR4 R/W Port 4 - 00 0 00 00 B 15H Port 5 direction register DDR5 R/W Port 5 0 00 0 00 00 B 16H Port 6 direction register DDR6 R/W Port 6 0 00 0 00 00 B 17H Port 7 direction register DDR7 R/W Port 7 - -- 0 0- -- B 18H Port 8 direction register DDR8 R/W Port 8 - 00 0 00 00 B 19H Port 9 direction register DDR9 R/W Port 9 0 00 0 00 00 B 1AH Port A direction register DDRA R/W Port A - -- - -0 00 B 1BH Port 4 pin register ODR4 R/W Port 4 - 00 0 00 00 B 1CH Port 0 resistance register RDR0 R/W Port 0 0 00 0 00 00 B 1DH Port 1 resistance register RDR1 R/W Port 1 0 00 0 00 00 B 1EH Port 6 resistance register RDR6 R/W Port 6 0 00 0 00 00 B 1FH Analog input enable register ADER R/W Port 5, A/D 1 11 1 11 11 B 20H Serial mode register 0 SMR0 R/W 21H Serial control register 0 SCR0 R/W 22H Serial input register/ serial output register 0 SIDR/ SODR0 R/W 00000000B UART0 00000100B XXXXXXXXB (Continued) 23 MB90650A Series Address Register 23H Serial status register 0 24H Serial mode control status register 0 25H Serial mode control status register 0 26H Register name Read/ write Resource name Initial value SSR0 R/W UART0 0 00 0 1- 00 B SMCS0 R/W SMCS0 R/W Serial data register 0 SDR0 R/W 27H Clock division control register CDCR R/W 28H Serial mode control status register 1 SMCS1 R/W 29H Serial mode control status register 1 2AH Serial data register 1 2BH to 2FH SMCS1 R/W SDR1 R/W Interrupt/DTP enable register ENIR R/W 31H Interrupt/DTP source register EIRR R/W Request level setting register ELVR R/W 33H 0 00 0 00 10 B XXXXXXXXB Communications prescaler 0---1111B ----0000B I/O extended serial interface 1 0 00 0 00 10 B XXXXXXXXB (Reserved area) 30H 32H ----0000B I/O extended serial interface 0 34H to 35H 00000000B DTP/external interrupts 0 00 0 00 00 B 00000000B 00000000B (Reserved area) 36H Control status register 1 ADCS1 37H Control status register 2 ADCS2 38H Data register 1 ADCR1 39H Data register 2 ADCR2 3AH D/A converter data register 0 DAT0 R/W 3BH D/A converter data register 1 DAT1 R/W 3CH D/A control register channel 0 DACR0 R/W 3DH D/A control register channel 1 DACR1 R/W 3EH Clock control register CLKR R/W 3FH 00000000B R/W A/D converter R 0 00 0 00 00 B XXXXXXXXB XXXXXXXXB XXXXXXXXB D/A converter XXXXXXXXB -------0B -------0B Clock output control register ----0000B (Reserved area) 40H Reload register lower channel 0 PRLL0 R/W XXXXXXXXB 41H Reload register upper channel 0 PRLH0 R/W XXXXXXXXB 42H Reload register lower channel 1 PRLL1 R/W XXXXXXXXB 43H Reload register upper channel 1 PRLH1 R/W XXXXXXXXB 44H PPG0 operation mode control register channel 0 PPGC0 R/W 45H PPG1 operation mode control register channel 1 PPGC1 R/W 0X 0 0 0 0 0 1 B 46H PPG0, PPG1 output control register channel 0, channel 1 PPGOE R/W 00000000B 47H to 4FH 50H 8/16-bit PPG 0X000XX1 B (Reserved area) Lower compare register channel 0 OCCP0 R/W 16-bit I/O timer output compare (channel 0 to channel 3) XXXXXXXXB (Continued) 24 MB90650A Series Address Register 51H Upper compare register channel 0 52H Lower compare register channel 1 53H Upper compare register channel 1 54H Lower compare register channel 2 55H Upper compare register channel 2 56H Lower compare register channel 3 57H Upper compare register channel 3 58H Register name Read/ write OCCP0 R/W OCCP1 R/W OCCP2 R/W Resource name Initial value XXXXXXXXB XXXXXXXXB XXXXXXXXB XXXXXXXXB 16-bit I/O timer Output compare (channel 0 to channel 3) XXXXXXXXB XXXXXXXXB OCCP3 R/W Compare control status register channel 0 OCS0 R/W 0000--00B 59H Compare control status register channel 1 OCS1 R/W ---00000B 5AH Compare control status register channel 2 OCS2 R/W 0000--00B 5BH Compare control status register channel 3 OCS3 R/W ---00000B 5CH to 5FH (Reserved area) 60H Lower input capture register channel 0 61H Upper input capture register channel 0 62H Lower input capture register channel 1 63H Upper input capture register channel 1 64H Input capture control status register 65H 66H IPCP0 IPCP1 ICS0, 1 Lower timer data register Upper timer data register 68H Timer control status register 69H to 6FH TCDTL R XXXXXXXXB 16-bit I/O timer Input capture (channel 0, channel 1) R/W XXXXXXXXB XXXXXXXXB XXXXXXXXB 0 00 00 0 00 B R/W TCCS R/W 00000000B 16-bit I/O timer Free-run timer 00000000B 0 00 00 0 00 B (Reserved area) UDCR0 71H Up/down count register channel 1 UDCR1 72H Reload compare register channel 0 RCR0 73H Reload compare register channel 1 RCR1 74H Counter status register channel 0 CSR0 75H 00000000B R W 0 00 00 0 00 B 8/16-bit up/down counter/timer 00000000B 0 00 00 0 00 B R/W 0 00 00 0 00 B (Reserved area) Counter control register channel 0 Counter status register channel 1 79H 7AH R R/W Up/down count register channel 0 78H R TCDTH 70H 77H R (Reserved area) 67H 76H XXXXXXXXB CCRL0 CCRH0 CSR1 R/W 00001000B 8/16-bit up/down counter/timer R/W 0 00 00 0 00 B 0 00 00 0 00 B (Reserved area) Counter control register channel 1 CCRL1 R/W 8/16-bit up/down counter/timer 00000000B (Continued) 25 MB90650A Series Address 7BH Register Counter control register channel 1 7CH to 7FH 80H 81H 82H 83H 84H Register name Read/ write Resource name Initial value CCRH1 R/W 8/16-bit up/down counter/timer X0001000B (Reserved area) 00000000B 2 IBSR R 2 IBCR R/W 2 ICCR R/W 2 IADR R/W - XXXXXXXB 2 IDAR R/W XXXXXXXXB I C bus status register I C bus control register I C bus clock control register I C bus address register I C bus data register 85H to 87H 0 00 00 0 00 B 2 I C interface -- 0XXXXXB (Reserved area) 88H DTMF control register DTMC -- -- 00000000B 89H DTMF data register DTMD -- -- 0 0 0 X0 0 0 0 B 8A to 9EH (Reserved area) (Accessing 90H to 9EH is prohibited) DIRR R/W Delayed interrupt generation module -------0B Low-power consumption mode control register LPMCR R/W Low-power consumption mode 00011000B Clock selection register CKSCR R/W Low-power consumption mode 11111100B 9FH Delayed interrupt generation/ release register A0H A1H A2H to A4H (Reserved area) A5H Auto-ready function selection register ARSR W External bus pin control circuit 0011--00B A6H External address output control register HACR W External bus pin control circuit 00000000B A7H Bus control signal selection register ECSR W External bus pin control circuit 0000*00-B A8H Watchdog timer control register WDTC R/W Watchdog timer XXXXX111 B A9H Timebase timer control register TBTC R/W Timebase timer 1- - 00 0 00 B AAH Watch timer control register WTC R/W Watch timer 1X- 00000 B ABH to AFH (Reserved area) (Continued) 26 MB90650A Series (Continued) Address Register Register name Read/ write Resource name Initial value B0H Interrupt control register 00 ICR00 R/W 00000111B B1H Interrupt control register 01 ICR01 R/W 0 00 00 1 11 B B2H Interrupt control register 02 ICR02 R/W 0 00 00 1 11 B B3H Interrupt control register 03 ICR03 R/W 0 00 00 1 11 B B4H Interrupt control register 04 ICR04 R/W 0 00 00 1 11 B B5H Interrupt control register 05 ICR05 R/W 0 00 00 1 11 B B6H Interrupt control register 06 ICR06 R/W 0 00 00 1 11 B B7H Interrupt control register 07 ICR07 R/W B8H Interrupt control register 08 ICR08 R/W B9H Interrupt control register 09 ICR09 R/W 0 00 00 1 11 B BAH Interrupt control register 10 ICR10 R/W 0 00 00 1 11 B BBH Interrupt control register 11 ICR11 R/W 0 00 00 1 11 B BCH Interrupt control register 12 ICR12 R/W 0 00 00 1 11 B BDH Interrupt control register 13 ICR13 R/W 0 00 00 1 11 B BEH Interrupt control register 14 ICR14 R/W 0 00 00 1 11 B BFH Interrupt control register 15 ICR15 R/W 0 00 00 1 11 B C0H to FFH Interrupt controller 0 00 00 1 11 B 0 00 00 1 11 B (External area) About Programming R/W : Readable and writable R : Read only W : Write only Explanation of initial values 0: The initial value of this bit is "0". 1: The initial value of this bit is "1". * : The initial value of this bit is "0" or "1". X: The initial value of this bit is undefined. -: This bit is not used. The initial value is undefined. Note : Areas below address 0000FFH not listed in the table are reserved areas. These addresses are accessed by internal access. No access signals are output on the external bus. 27 MB90650A Series INTERRUPT VECTOR AND INTERRUPT CONTROL REGISTER ASSIGNMENTS TO INTERRUPT SOURCES Interrupt vector Interrupt control register I2OS support Number Address Number Address Reset x #08 FFFFDCH -- -- INT 9 instruction x #09 FFFFD8H -- -- Exception x #10 FFFFD4H -- -- #11 FFFFD0H #12 FFFFCCH ICR00 0000B0H DTP/external interrupt 0 (External interrupt 0) #13 FFFFC8H 16-bit free-run timer (I/O timer) overflow #14 FFFFC4H ICR01 0000B1H ICR02 0000B2H ICR03 0000B3H ICR04 0000B4H ICR05 0000B5H ICR06 0000B6H ICR07 0000B7H ICR08 0000B8H ICR09 0000B9H ICR10 0000BAH ICR11 0000BBH ICR12 0000BCH Interrupt source A/D converter Timebase timer interval interrupt x I/O extended serial interface 1 #15 FFFFC0H DTP/external interrupt 1 (External interrupt 1) #16 FFFFBCH I/O extended serial interface 2 #17 FFFFB8H DTP/external interrupt 2 (External interrupt 2) #18 FFFFB4H DTP/external interrupt 3 (External interrupt 3) #19 FFFFB0H 8/16-bit PPG 0 counter borrow #20 FFFFACH 8/16-bit up/down counter/timer 0 compare #21 FFFFA8H 8/16-bit up/down counter/timer 0 underflow/overflow, up/down invert #22 FFFFA4H 8/16-bit PPG 1 counter borrow #23 FFFFA0H DTP/external interrupt 4/5 (External interrupt 4/5) #24 FFFF9CH Output compare (channel 2) match (I/O timer) #25 FFFF98H Output compare (channel 3) match (I/O timer) #26 FFFF94H Watch prescaler x #27 FFFF90H DTP/external interrupt 6 (External interrupt 6) #28 FFFF8CH 8/16-bit up/down counter/timer 1 compare #29 FFFF88H 8/16-bit up/down counter/timer 1 underflow/overflow, up/down invert #30 FFFF84H Input capture (channel 0) read (I/O timer) #31 FFFF80H Input capture (channel 1) read (I/O timer) #32 FFFF7CH Output compare (channel 0) match (I/O timer) #33 FFFF78H Output compare (channel 1) match (I/O timer) #34 FFFF74H #35 FFFF70H DTP/external interrupt 7 (External interrupt 7) #36 FFFF6CH UART0 receive complete #37 FFFF68H ICR13 0000BDH UART0 transmit complete #39 FFFF60H ICR14 0000BEH ICR15 0000BFH Completion of flash memory write/erase x I C interface x #41 FFFF58H Delayed interrupt generation module x #42 FFFF54H 2 : Indicates that the interrupt request flag is cleared by the I2OS interrupt clear signal. : Indicates that the interrupt request flag is cleared by the I2OS interrupt clear signal (stop request present). : Indicates that the interrupt request flag is not cleared by the I2OS interrupt clear signal. Note: For resources in which two interrupt sources share the same interrupt number, the I2OS interrupt clear signal clears both interrupt request flags. 28 MB90650A Series PERIPHERAL RESOURCES 1. Parallel Ports (1) I/O Ports Each port pin can be specified as either an input or output by its corresponding direction register when the pin is not set for use by a peripheral. When a port is set as an input, reading the data register always reads the value corresponding to the pin level. When a port is set as an output, reading the data register reads the data register latch value. The same applies when reading using a read-modify-write instruction. When used as control outputs, reading the data register reads the control output value, irrespective of the direction register value. Note that if a read-modify-write instruction (set bit or similar instruction) is used to set output data in the data register before switching a pin from input to output, the instruction reads the input level at the pin and not the data register latch value. * Block diagram Internal data bus Data register read Data register Pin Data register write Direction register Direction register write Direction register read 29 MB90650A Series (2) Port Direction Registers * Port 0 data register (PDR0) Address : 000000H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P07 P06 P05 P04 P03 P02 P01 P00 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P17 P16 P15 P14 P13 P12 P11 P10 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P27 P26 P25 P24 P23 P22 P21 P20 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P37 P36 P35 P34 P33 P32 P31 P30 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P47 P46 P45 P44 P43 P42 P41 P40 1XXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P57 P56 P55 P54 P53 P52 P51 P50 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P67 P66 P65 P64 P63 P62 P61 P60 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- -- -- P74 P73 P72 P71 P70 - - - XX111B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- P86 P85 P84 P83 P82 P81 P80 - XXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access P97 P96 P95 P94 P93 P92 P91 P90 XXXXXXXXB R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- -- -- -- -- PA2 PA1 PA0 - - - - - XXXB R/W* * Port 1 data register (PDR1) Address : 000001H * Port 2 data register (PDR2) Address : 000002H * Port 3 data register (PDR3) Address : 000003H * Port 4 data register (PDR4) Address : 000004H * Port 5 data register (PDR5) Address : 000005H * Port 6 data register (PDR6) Address : 000006H * Port 7 data register (PDR7) Address : 000007H * Port 8 data register (PDR8) Address : 000008H * Port 9 data register (PDR9) Address : 000009H * Port A data register (PDRA) Address : 00000AH R/W : Readable and writable -- : Unused X : Indeterminate * : The operation of reading or writing to I/O ports is slightly different from reading or writing to memory, as follows. * Input mode Read: Reads the corresponding pin level. Write: Writes to the output latch. * Output mode Read: Reads the value of the data register latch. Write: The value is output from the corresponding pin. 30 MB90650A Series (3) Port Direction Registers * Port 0 direction register (DDR0) Address : 000010H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D07 D06 D05 D04 D03 D02 D01 D00 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D17 D16 D15 D14 D13 D12 D11 D10 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D27 D26 D25 D24 D23 D22 D21 D20 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D37 D36 D35 D34 D33 D32 D31 D30 00000000B R/W* * Port 1 direction register (DDR1) Address : 000011H * Port 2 direction register (DDR2) Address : 000012H * Port 3 direction register (DDR3) Address : 000013H * Port 4 direction register (DDR4) Address : 000014H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- D46 D45 D44 D43 D42 D41 D40 -0000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D57 D56 D55 D54 D53 D52 D51 D50 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D67 D66 D65 D64 D63 D62 D61 D60 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- -- -- D74 D73 -- -- -- ---00---B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- D86 D85 D84 D83 D82 D81 D80 -0000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access D97 D96 D95 D94 D93 D92 D91 D90 00000000B R/W* bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access -- -- -- -- -- DA2 DA1 DA0 -----000B R/W* * Port 5 direction register (DDR5) Address : 000015H * Port 6 direction register (DDR6) Address : 000016H * Port 7 direction register (DDR7) Address : 000017H * Port 8 direction register (DDR8) Address : 000018H * Port 9 direction register (DDR9) Address : 000019H * Port A direction register (DDRA) Address : 00001AH R/W : Readable and writable -- : Unused (Continued) 31 MB90650A Series (Continued) * : The operation of reading or writing to I/O ports is slightly different from reading or writing to memory, as follows. * Input mode Read: Reads the corresponding pin level. Write: Writes to the output latch. * Output mode Read: Reads the value of the data register latch. Write: The value is output from the corresponding pin. When pins are used as ports, the register bits control the corresponding pins as follows. 0: Input mode 1: Output mode Bits are set to "0" by a reset. * P47, P70 to P72 No DDR for this port. Data is always available in this port, so when using P70 and P71 as I2C pin, set PDR value to "1". (Otherwise when using P70 and P71 by themselves, turn off the I2C.) As this port is open-drain output style, so when using this port as an input port, in order to turn off the output transistor, set the output data resister value to "1" and add the pull up resister to the external pin. 32 MB90650A Series (4) Port Resistance Registers * Register configuration * Port 0 resistance register (RDR0) Address : 00001CH bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access RD07 RD06 RD05 RD04 RD03 RD02 RD01 RD00 00000000B R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access RD17 RD16 RD15 RD14 RD13 RD12 RD11 RD10 00000000B R/W * Port 1 resistance register (RDR1) Address : 00001DH * Port 6 resistance register (RDR6) Address : 00001EH bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value Access RD67 RD66 RD65 RD64 RD63 RD62 RD61 RD60 00000000B R/W R/W : Readable and writable * Block diagram Internal data bus Pull-up resistor (approx. 50 k) Data register Port I/O Direction register Resistance register Notes : * Input resistance register R/W Controls the pull-up resistor in input mode. 0: Pull-up resistor disconnected in input mode. 1: Pull-up resistor connected in input mode. The setting has no meaning in output mode (pull-up resistor disconnected). The direction register (DDR) sets input or output mode. * The pull-up resistor is disconnected in hardware standby or stop mode (SPL = 1) (high impedance). * This function is disabled when using an external bus mode. In this case, do not write to this register. 33 MB90650A Series (5) Port Pin Register * Register configuration * Port 4 pin register (ODR4) bit 7 Address : 00001BH -- bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 OD46 OD45 OD44 OD43 OD42 OD41 OD40 Initial value Access -0000000B R/W R/W : Readable and writable -- : Unused Internal data bus * Block diagram Port I/O Data register Direction register Pin register Notes: * Pin register R/W Performs open-drain control in output mode. 0: Operate as a standard output port in output mode. 1: Operate as an open-drain output port in output mode. The setting has no meaning in input mode (output Hi-z). * The direction register (DDR) sets input or output mode. * This function is disabled when using an external bus mode. In this case, do not write to this register. (6) Analog Input Enable Register * Register configuration * Analog input enable register (ADER) bit 7 Address : 00001FH R/W : Readable and writable 34 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ADE7 ADE6 ADE5 ADE4 ADE3 ADE2 ADE1 ADE0 R/W Controls each port 5 pin as follows. 0: Port input mode 1: Analog input mode Set to "1" by a reset. bit 6 R/W R/W R/W R/W R/W R/W R/W Initial value Access 11111111B R/W MB90650A Series 2. UART The UART is a serial I/O port that can be used for CLK asynchronous (start-stop synchronization) or CLK synchronous communications. The UART has the following features. * * * * Full duplex, double buffered Supports asynchronous (start-stop synchronization) and CLK synchronous data transfer Supports multi-processor mode Built-in dedicated baud rate generator Asynchronous: 9615 bps, 31250 bps, 4808 bps, 2404 bps and 1202 bps CLK synchronous : 1 Mbps, 500 Kbps, 250 Kbps, 125 Kbps and 62.5 Kbps * * * * For a 6, 8, 10 or 12 MHz clock. Supports flexible baud rate setting using an external clock Error detect function (parity, framing, and overrun) NRZ type transmission signal Intelligent I/O service support 35 MB90650A Series (1) Register Configuration bit 15 bit 8 bit 7 bit 0 CDCR -- SCR SMR SSR SIDR (R) /SODR (W) 8 bits 8 bits * Serial mode register 0 (SMR0) bit 7 Address : 000020H * Serial control register 0 (SCR0) Address : 000021H bit 6 bit 5 Address : 000023H * Clock division control register (CDCR) Address : 000027H R/W : R : W : -- : X : 36 bit 2 bit 1 bit 0 Initial value 00000000B MD1 MD0 CS2 CS1 CS0 Reserved SCKE SOE R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value PEN P 00000100B bit 7 * Serial status register 0 (SSR0) bit 3 R/W R/W R/W * Serial input register/serial output register 0 (SIDR/SODR0) Address : 000022H bit 4 bit 6 SBL CL A/D REC RXE TXE R/W R/W R/W W R/W R/W bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value XXXXXXXXB D7 D6 D5 D4 D3 D2 D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value PE ORE FRE RDRF TDRE -- RIE TIE 00001-00B R R R R R -- R R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value MD -- -- -- DIV3 DIV2 DIV1 DIV0 0---1111B R/W -- -- -- R/W R/W R/W R/W Readable and writable Read only Write only Unused Indeterminate MB90650A Series (2) Block Diagram Control signals Reception interrupt (to CPU) SCK0, SCK1 Dedicated baud rate generator 16-bit timer 0 (Connected internally) Transmission clock pulses Clock select circuit Transmission interrupt (to CPU) Reception clock pulses External clock SIN0 Reception control circuit Transmission control circuit Start bit detection circuit Transmission start circuit Reception bit counter Transmission bit counter Reception parity counter Transmission parity counter SOT0, SOT1 Reception status determination circuit Reception error occurrence signal for I2OS (to CPU) Reception shifter Transmission shifter Start of transmission End of reception SODR SIDR Internal data bus SMR register MD1 MD0 CS2 CS1 CS0 SCKE SOE SCR register PEN P SBL CL A/D REC RXE TXE SSR register PE ORE FRE RDRF TDRE RIE TIE Control signals 37 MB90650A Series 3. I/O Extended Serial Interface I/O extended serial interface consists of an 8-bit serial I/O interface that can perform clock synchronous data transfer. Either LSB-first or MSB-first data transfer can be selected. The following two serial I/O operation modes are available. * Internal shift clock mode: Data transfer is synchronized with the internal clock. * External shift clock mode: Data transfer is synchronized with the clock input from the external pin (SCK). By manipulating the general-purpose port that shares the external pin (SCK), this mode also enables the data transfer operation to be driven by CPU instructions. (1) Register Details * Serial mode control status register 0, 1 (SMCS0, SMCS1) bit 15 Address : 000025H 000029H Address : 000024H 000028H bit 14 bit 13 SMD2 SMD1 SMD0 bit 12 bit 11 bit 10 bit 9 bit 8 SIE SIR BUSY STOP STRT Initial value 00000010B R/W R/W R/W R/W R/W*1 R R/W R/W*2 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value -- -- -- -- MODE BDS SOE SCOE ----0000B -- -- -- -- R/W R/W R/W R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value D7 D6 D5 D4 D3 D2 D1 D0 XXXXXXXXB R/W R/W R/W R/W R/W R/W R/W R/W * Serial data register 0, 1 (SDR0, SDR1) Address : 000026H 00002AH R/W : R : -- : X : Readable and writable Read only Unused Indeterminate *1: Only "0" can be written. *2: Only "1" can be written. Reading always returns "0". This register controls the transfer operation mode of the serial I/O. The following describes the function of each bit. bit 3: Serial mode selection bit (MODE) This bit selects the conditions for starting operation from the halted state. Changing the mode during operation is prohibited MODE Operation 0 Start when STRT is set to "1". [Initial value] 1 Start on reading from or writing to the serial data register. The bit is initialized to "0" by a reset. The bit is readable and writable. Set to "1" when using the intelligent I/O bit 2: Transfer direction selection bit (BDS: Bit Direction Select) Selects as follows at the time of serial data input and output whether the data are to be transferred in the order from LSB to MSB or vice versa. MODE Operation 38 0 LSB-first [Initial value] 1 MSB-first MB90650A Series (2) Block Diagram Internal data bus (MSB-first) D0 to D7 D7 to D0 (LSB-first) Transfer direction selection SIN1, SIN2 Read Write SDR (Serial data register) SOT1, SOT2 SCK1, SCK2 Control circuit Shift clock counter Internal clock 2 1 0 SMD2 SMD1 SMD0 SIE SIR BUSY STOP STRT MODE BDS SOE SCOE Interrupt request Internal data bus 39 MB90650A Series 4. A/D Converter The A/D converter converts analog input voltages to digital values. The A/D converter has the following features. Conversion time: Minimum of 8.167 s per channel (for a 12 MHz machine clock) Uses RC-type successive approximation conversion with a sample and hold circuit. 10-bit resolution Eight program-selectable analog input channels Single conversion mode: Selectively convert a one channel. Scan conversion mode: Continuously convert multiple channels. Maximum of 8 programselectable 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.) * An A/D conversion completion interrupt request to the CPU can be generated on the completion of A/D conversion. This interrupt can activate I2OS to transfer the result of A/D conversion to memory and is suitable for continuous operation. * Activation by software, external trigger (falling edge), or timer (rising edge) can be selected. * * * * (1) Register Configuration bit 15 bit 8 bit 7 bit 0 ADCS2 ADCS1 ADCR2 ADCR1 8 bits 8 bits * Control status register 1 (ADCS1) Address : 000036H * Control status register 2 (ADCS2) Address : 000037H * Data register 1 (ADCR1) Address : 000038H * Data register 2 (ADCR2) Address : 000039H bit 7 bit 6 MD1 MD0 R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value BUSY INT INTE PAUS STS1 STS0 STRT DA 00000000B R/W R/W R/W R/W R/W R/W R/W R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value 7 6 5 4 3 2 1 0 XXXXXXXXB R R R R R R R R bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value -- -- -- -- -- -- 9 8 XXXXXXXXB R R R R R R R R R/W : Readable and writable R : Read only X : Indeterminate 40 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ANS2 ANS1 ANS0 ANE2 ANE1 ANE0 Initial value 00000000B MB90650A Series (2) Block Diagram AVCC AVRH AVRL AVSS D/A converter MPX Input circuit AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 Successive approximation register Internal data bus Comparator Decoder Sample and hold circuit Data register ADCR1, ADCR2 A/D control register 1 A/D control register 2 ADCS1, ADCS2 Trigger activation ADTG Timer activation PPG01 Operating clock Prescaler 41 MB90650A Series 5. D/A Converter D/A converter is an R-2R type D/A converter with 8-bit resolution. The device contains two D/A converters. The D/A control register controls the output of the two D/A converters independently. (1) Register Configuration * D/A converter data register 0 (DAT0) Address : 00003AH * D/A converter data register 1 (DAT1) Address : 00003BH * D/A control register channel 0 (DACR0) Address : 00003CH * D/A control register channel 1 (DACR1) Address : 00003DH bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value DA07 DA06 DA05 DA04 DA03 DA02 DA01 DA00 XXXXXXXXB R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value DA17 DA16 DA15 DA14 DA13 DA12 DA11 DA10 XXXXXXXXB R/W R/W R/W R/W R/W R/W R/W R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value -- -- -- -- -- -- -- DAE0 -------0B -- -- -- -- -- -- -- R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value -- -- -- -- -- -- -- DAE1 -------0B -- -- -- -- -- -- -- R/W R/W : Readable and writable -- : Unused X : Indeterminate 42 MB90650A Series (2) Block Diagram Internal data 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 DVR DVR DA07 DA17 2R DA16 2R DA15 R R R 2R R 2R R DA05 DA01 DA11 2R DA10 2R DA06 R DA00 2R 2R DAE1 Standby control 2R 2R DAE0 Standby control DA output channel 1 DA output channel 0 43 MB90650A Series 6. 8/16-bit PPG 8/16-bit PPG is an 8-bit reload timer module. The block performs PPG output in which the pulse output is controlled by the operation of the timer. The hardware consists of two 8-bit down-counters, four 8-bit reload registers, one 16-bit control register, two external pulse output pins, and two interrupt outputs. The PPG has the following functions. * 8-bit PPG output in two channels independent operation mode: Two independent PPG output channels are available. * 16-bit PPG output operation mode: One 16-bit PPG output channel is available. * 8 + 8-bit PPG output operation mode: Variable-period 8-bit PPG output operation is available by using the output of channel 0 as the clock input to channel 1. * PPG output operation: Outputs pulse waveforms with variable period and duty ratio. Can be used as a D/A converter in conjunction with an external circuit. (1) Register Configuration * PPG0 operation mode control register channel 0 (PPGC0) Address : 000044H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value PEN0 -- PE00 PIE0 PUF0 -- -- Reserved 0X000XX1 B R/W -- R/W R/W R/W -- -- -- bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 PEN1 -- PE10 PIE1 PUF1 MD1 MD0 Reserved R/W -- R/W R/W R/W R/W R/W -- bit 4 bit 3 bit 2 bit 1 bit 0 Initial value PCS2 PCS1 PCS0 PCM2 PCM1 PCM0 PE11 PE01 00000000B * PPG1 operation mode control register channel 1 (PPGC1) Address : 000045H Initial value 0X000001B * PPG0, PPG1 output control register channel 0, channel 1 (PPGOE) bit 7 Address : 000046H R/W bit 6 R/W bit 5 R/W R/W R/W R/W R/W R/W bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 * Reload register upper channel 0, channel 1 (PRLH0, PRLH1) bit 15 bit 14 Address : 000041H 000043H Initial value XXXXXXXXB R/W R/W R/W R/W R/W R/W R/W R/W bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 * Reload register lower channel 0, channel 1 (PRLL0, PRLL1) bit 7 bit 6 Address : 000040H 000042H XXXXXXXXB R/W R/W : Readable and writable X : Indeterminate 44 Initial value R/W R/W R/W R/W R/W R/W R/W MB90650A Series (2) Block Diagram * 8/16-bit PPG (channel 0) PPG00 output enable Peripheral clock divided by 16 Peripheral clock divided by 8 Peripheral clock divided by 4 Peripheral clock divided by 2 Peripheral clock PPG00 PPG01 output enable PPG01 A/D converter PPG0 output latch Invert Clear PEN0 S R Q PCNT (Down-counter) Count clock selection Timebase counter output Main clock divided by 512 L/H select IRQ Reload Channel 1-borrow L/H selector PRLL0 PRLBH0 PIE0 PRLH0 PUF0 L-side data bus H-side data bus PPGC0 (Operation mode control) 45 MB90650A Series * 8/16-bit PPG (channel 1) PPG10 output enable Peripheral clock divided by 16 Peripheral clock divided by 8 Peripheral clock divided by 4 Peripheral clock divided by 2 Peripheral clock PPG11 output enable PPG10 PPG11 UART PPG1 output latch Invert Clear Count clock selection PEN1 S R Q PCNT (Down-counter) IRQ Channel 0-borrow Timebase counter output Main clock divided by 512 L/H select Reload L/H selector PRLL1 PRLBH1 PIE PRLH1 PUF L-side data bus H-side data bus PPGC1 (Operation mode control) 46 MB90650A Series 7. 8/16-bit Up/Down Counter/Timer 8/16-bit up/down counter/timer is an up/down counter/timer and consists of six event input pins, two 8-bit up/ down counters, two 8-bit reload/compare registers, and their control circuits. (1) Main Functions * The 8-bit count register can count in the range 0 to 256 (or 0 to 65535 in 1 x 16-bit operation mode). * The count clock selection can select between four different count modes. Count modes Timer mode Up/down counter mode Phase difference count mode (x 2) Phase difference count mode (x 8) * Two different internal count clocks are available in timer mode. Count clock (at 12 MHz operation) 166 ns (6 MHz: Divide by 2) 0.67 s (1.5 MHz: Divide by 8) * In up/down count mode, you can select which edge to detect on the external pin input signal. Detected edge Detect falling edges Detect rising edges Detect both rising and falling edges Edge detection disabled * Phase difference count mode is suitable for motor encoder counting. By inputting the A, B, and Z phase outputs from the encoder, a high-precision rotational angle, speed, or similar count can be implemented simply. * Two different functions can be selected for the ZIN pin. ZIN pin Counter clear function Gate function * Compare and reload functions are available and can be used either independently or together. A variablewidth up/down count can be performed by activating both functions. Compare/reload function Compare function (Output an interrupt when a compare occurs.) Compare function (Output an interrupt and clear the counter when a compare occurs.) Reload function (Output an interrupt and reload when an underflow occurs.) Compare/reload function (Output an interrupt and clear the counter when a compare occurs. Output an interrupt and reload when an underflow occurs.) Compare/reload disabled * Whether or not to generate an interrupt when a compare, reload (underflow), or overflow occurs can be set independently. * The previous count direction can be determined from the count direction flag. * An interrupt can be generated when the count direction changes. 47 MB90650A Series (2) Register Configuration bit 15 bit 8 bit 7 bit 0 UDCR1 UDCR0 RCR1 RCR0 (Reversed area) CSR0 CCRH0 CCRL0 (Reversed area) CSR1 CCRH1 CCRL1 8 bits 8 bits * Up/down count register channel 0 (UDCR0) Address : 000070H * Up/down count register channel 1 (UDCR1) Address : 000071H * Reload compare register channel 0 (RCR0) Address : 000072H * Reload compare register channel 1 (RCR1) Address : 000073H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value D07 D06 D05 D04 D03 D02 D01 D00 00000000B R R R R R R R R bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value D17 D16 D15 D14 D13 D12 D11 D10 00000000B R R R R R R R R bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value D07 D06 D05 D04 D03 D02 D01 D00 00000000B W W W W W W W W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value D17 D16 D15 D14 D13 D12 D11 D10 00000000B W W W W W W bit 4 bit 3 bit 2 bit 1 bit 0 Initial value CMPF OVFF UDFF UDF1 UDF0 00000000B W W * Counter status register channel 0, channel 1 (CSR0, CSR1) bit 7 bit 6 bit 5 CSTR CITE UDIE R/W R/W * Counter control register channel 0, channel 1 (CCRL0, CCRL1) R/W R/W R/W R/W R R bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Address : 000074H 000078H bit 7 Address : 000076H 00007AH * Counter control register channel 0 (CCRH0) Address : 000077H * Counter control register channel 1 (CCRH1) Address : 00007BH R/W : R : W : - : X : 48 - bit 6 CTUT UCRE RLDE UDCC CGSC CGE1 CGE0 - R/W bit 15 bit 14 M16E CDCF R/W Initial value 00001000B 00000000B R/W R/W R/W R/W R/W bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value CFIE CLKS CMS1 CMS0 CES1 CES0 00000000B R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value - CDCF CFIE CLKS CMS1 CMS0 CES1 CES0 X0001000B - R/W R/W Readable and writable Read only Write only Unused Indeterminate R/W R/W R/W R/W R/W MB90650A Series (3) Block Diagram * 8/16-bit up/down counter/timer (channel 0) Internal data bus 8 bits RCR0 (Reload/compare register 0) CGE1 CGE0 C/GS ZIN0 Edge or level detection UDCC CTUT Reload control UCRE RLDE Counter clear 8 bits UDCR0 (Up/down count register 0) Carry CES1 CES0 UDFF OVFF CMS1 CMS0 CITE AIN0 BIN0 Up/down count clock selection Prescaler CMPF UDIE Count clock UDF1 UDF0 CDCF CFIE CSTR Interrupt output CLKS 49 MB90650A Series * 8/16-bit up/down counter/timer (channel 1) Internal data bus 8 bits RCR1 (Reload/compare register 1) CGE1 CGE0 C/GS ZIN1 Edge or level detection CTUT Reload control UCRE RLDE Counter clear UDCC 8 bits UDCR1 (Up/down count register 1) CMPF UDFF OVFF CMS1 CMS0 CES1 CES0 EN16 CITE Carry Count clock AIN1 BIN1 Up/down count clock selection UDF1 UDF0 CDCF CFIE Prescaler CSTR CLKS 50 Interrupt output UDIE MB90650A Series 8. Clock Output Control Register Clock output control register outputs the divided machine clock. (1) Register Configuration * Clock control register (CLKR) Address : 00003EH bit 7 bit 6 bit 5 bit 4 -- -- -- -- bit 0 Initial value CKEN FRQ2 FRQ1 FRQ0 ----0000B bit 3 R/W bit 2 R/W bit 1 R/W R/W R/W : Readable and writable -- : Unused bit 3: Clock output enable bit (CKEN) MODE Operation 0 Operate as a standard port. 1 Operate as the clock output. bit 2 to bit 0: Clock output frequency select bit (FRQ2 to FRQ0) FRQ2 FRQ1 FRQ0 Output clock = 12 MHz = 8 MHz = 4 MHz 0 0 0 1 /2 167 ns 250 ns 500 ns 0 0 1 /22 333 ns 500 ns 1 s 0 1 0 /23 667 ns 1 s 2 s 0 1 1 4 /2 1.33 s 2 s 4 s 1 0 0 /25 2.67 s 4 s 8 s 1 0 1 /26 5.33 s 8 s 16 s 1 1 0 7 /2 10.67 s 16 s 32 s 1 1 1 /28 21.33 s 32 s 64 s 51 MB90650A Series 9. DTP/External Interrupts The DTP (Data Transfer Peripheral) is a peripheral block that interfaces external peripherals to the F2MC-16L CPU. The DTP receives DMA and interrupt processing requests from external peripherals and passes the requests to the F2MC-16L CPU to activate the intelligent I/O service or interrupt processing. Two request levels ("H" and "L") are provided for the intelligent I/O service. For external interrupt requests, generation of interrupts on a rising or falling edge as well as on "H" and "L" levels can be selected, giving a total of four types. (1) Register Configuration * Interrupt/DTP enable register (ENIR) Address : 000030H * Interrupt/DTP source register (EIRR) Address : 000031H * Request level setting register (ELVR) Address : 000032H Address : 000033H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value EN7 EN6 EN5 EN4 EN3 EN2 EN1 EN0 00000000B R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value ER7 ER6 ER5 ER4 ER3 ER2 ER1 ER0 00000000B R/W R/W R/W R/W R/W R/W R/W R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value LB3 LA3 LB2 LA2 LB1 LA1 LB0 LA0 00000000B R/W R/W R/W R/W R/W R/W R/W R/W bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value LB7 LA7 LB6 LA6 LB5 LA5 LB4 LA4 00000000B R/W R/W R/W R/W R/W R/W R/W R/W R/W : Readable and writable (2) Block Diagram 4 Internal data bus Interrupt/DTP enable register 4 Gate Request F/F 4 Interrupt/DTP source register 8 Request level setting register 52 Edge detect circuit 4 Request input MB90650A Series 10. 16-bit I/O Timer The 16-bit I/O timer consists of one 16-bit free-run timer, two output compare, and two input capture modules. Based on the 16-bit free-run timer, these functions can be used to generate two independent waveform outputs and to measure input pulse widths and external clock periods. * Register configuration * 16-bit free-run timer bit 15 bit 0 TCDTL : 000066H TCDTH : 000067H TCDT Timer data register lower, upper (TCDTL, TCDTH) TCCS : 000068H Timer control status register (TCCS) TCCS * 16-bit output compare OCCP0 OCCP1 OCCP2 OCCP3 : : : : OCS0 OCS1 OCS2 OCS3 000058H 000059H 00005AH 00005BH : : : : 000050H, 51H 000052H, 53H 000054H, 55H 000056H, 57H bit 15 bit 0 OCCP Compare register channel 0 to channel 3 lower, upper (OCCP0 to OCCP3) OCS Compare control status register channel 0 to channel 3 (OCS0 to OCS3) * 16-bit input capture bit 15 bit 0 IPCP0 : 000060H, 61H IPCP1 : 000062H, 63H Input capture register channel 0, channel 1 lower, upper (IPCP0, IPCP1) IPCP ICS0, 1 : 000064H ICS Input capture control status register (ICS0, 1) * Block diagram To each block Control logic Interrupt 16-bit free-run timer 16-bit timer Internal data bus Clear Output compare 0 Compare register 0 TQ OUT0 TQ OUT1 TQ OUT2 TQ OUT3 Output compare 1 Compare register 1 Output compare 2 Compare register 2 Output compare 3 Compare register 3 Input capture 0 Capture register 0 Edge selection IN0 Capture register 1 Edge selection IN1 53 MB90650A Series (1) 16-bit Free-run Timer The 16-bit free-run timer consists of a 16-bit up-counter, a control register, and a prescaler. The output of the timer/counter is used as the base time for the input capture and output compare. * The operating clock for the counter can be selected from four different clocks. Four internal clocks (/4, /16, /32, /64) * Interrupts can be generated when a counter value overflow or compare match with compare register 0 occurs (the appropriate mode must be set for a compare match). * The counter can be initialized to 0000H by a reset, software clear, or compare match with compare register 0. * Register details * Upper timer data register (TCDTH) Address : 000067H bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value T15 T14 T13 T12 T11 T10 T09 T08 00000000B R/W R/W R/W R/W R/W R/W R/W R/W * Lower timer data register (TCDTL) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value T07 T06 T05 T04 T03 T02 T01 T00 00000000B R/W R/W R/W R/W R/W R/W R/W R/W Address : 000066H R/W : Readable and writable The count value of the 16-bit free-run timer can be read from this register. The count is cleared to "0000 B" by a reset. Writing to this register sets the timer value. However, only write to the register when the timer is halted (STOP = "1"). Always use word access. The 16-bit free-run timer is initialized by the following. * Reset * The clear bit (CLR) of the control status register * A match between the timer/counter value and compare register 0 of the output compare (if the appropriate mode is set) * Block diagram Interrupt request Internal data bus IVF IVFE STOP MODE CLR CLK1 CLK0 Divider Comparator 0 16-bit up-counter Clock Count value output T15 to T00 54 MB90650A Series (2) Output Compare The output compare consists of two 16-bit compare registers, compare output latches, and control registers. The modules can invert the output level and generate an interrupt when the 16-bit free-run timer value matches the compare register value. * The four compare registers can be operated independently. Each compare register has a corresponding output pin and interrupt flag. * The four compare registers can be paired to control the output pins. Invert the output pins using the four compare registers. * Initial values can be set for the output pins. * An interrupt can be generated when a compare match occurs. * Register configuration * Upper compare register channel 0 to channel 3 (OCCP0 to OCCP3) OCCP0 OCCP1 OCCP2 OCCP3 : : : : 000051H 000053H 000055H 000057H bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value C15 C14 C13 C12 C11 C10 C09 C08 XXXXXXXXB R/W R/W R/W R/W R/W R/W R/W R/W bit 4 bit 3 bit 2 bit 1 bit 0 Initial value C04 C03 C02 C01 C00 XXXXXXXXB R/W R/W R/W R/W R/W bit 12 bit 11 bit 10 bit 9 bit 8 Initial value CMOD OTE1 OTE0 OTDI OTD0 ---00000B * Lower compare register channel 0 to channel 3 (OCCP0 to OCCP3) bit 7 bit 6 bit 5 OCCP0 : 000050H OCCP1 : 000052H C07 C06 C05 OCCP2 : 000054H OCCP3 : 000056H R/W R/W R/W * Compare control status register channel 0 to channel 3 (OCS0 to OCS3) bit 15 bit 14 bit 13 -- -- -- -- -- -- R/W R/W R/W R/W R/W bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value -- CST1 CST0 0000--00B -- OCS1 : 000059H OCS3 : 00005BH OCS0 : 000058H OCS2 : 00005AH ICP1 ICP0 ICE1 ICE0 -- R/W R/W R/W R/W -- R/W R/W R/W : Readable and writable -- : Unused X : Indeterminate 55 MB90650A Series * Block diagram 16-bit timer/counter value (T15 to T00) TQ Compare control OTEO OUT0 (OUT2) OTE1 OUT1 (OUT3) Compare register 0 (2) Internal data bus CMOD 16-bit timer/counter value (T15 to T00) TQ Compare control Compare register 1 (3) ICP1 Controller Control blocks 56 ICP0 ICE1 ICE0 Compare 1 interrupt (3) Compare 0 interrupt (2) MB90650A Series (3) Input Capture The input capture consists of two independent external input pins, their corresponding capture registers, and a control register. The value of the 16-bit free-run timer can be stored in the capture register and an interrupt generated when the specified edge is detected on the signal from the external input pin. * The edge to detect on the external input signal is selectable. Detection of rising edges, falling edges, or either edge can be specified. * The two input capture channels can operate independently. * An interrupt can be generated on detection of the specified edge on the external input signal. The input capture interrupt can activate the intelligent I/O service. * Register details * Input capture register channel 0, channel 1 (IPCP0, IPCP1) IPCP0 : 000061H IPCP1 : 000063H bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value CP15 CP14 CP13 CP12 CP11 CP10 CP09 CP08 XXXXXXXXB R R R R R R R R IPCP0 : 000060H IPCP1 : 000062H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value CP07 CP06 CP05 CP04 CP03 CP02 CP01 CP00 XXXXXXXXB R R R R R R R R * Input capture control status register (ICS0, 1) 000064H bit 7 bit 6 bit 5 bit 4 ICP1 ICP0 ICE1 ICE0 R/W R/W R/W R/W bit 0 Initial value EG11 EG10 EG01 EG00 00000000B bit 3 R/W bit 2 R/W bit 1 R/W R/W R/W : Readable and writable R : Read only X : Indeterminate The 16-bit free-run timer value is stored in these registers when the specified edge is detected on the input waveform from the corresponding external pin. (Always use word access. Writing is prohibited.) 57 MB90650A Series * Block diagram Internal data bus Capture data register 0 Edge detection EG11 EG10 EG01 EG00 16-bit timer/counter value (T15 to T00) Capture data register 1 ICP1 Edge detection ICP0 IN0 ICE1 IN1 ICE0 Interrupt Interrupt 58 MB90650A Series 11. Watchdog Timer, Timebase Timer, and Watch Timer The watchdog timer consists of a 2-bit watchdog counter that uses the carry signal from the 18-bit timebase timer or the 15-bit watch timer as a clock source, a control register, and a watchdog reset controller. The timebase timer consists of an 18-bit timer and a circuit that controls interval interrupts. Note that the timebase timer uses the main clock, regardless of the setting of the MCS bit and SCS bit in CKSCR. The watch timer consists of a 15-bit timer and a circuit that controls interval interrupts. Note that the watch timer uses the sub clock, regardless of the setting of the MCS bit SCS bit in CKSCR. (1) Register Configuration * Watchdog timer control register (WDTC) Address : 0000A8H bit 3 bit 2 bit 1 bit 0 Initial value WRST ERST SRST WTE WT1 WT0 XXXXX111B R W W W bit 12 bit 11 bit 10 -- TBIE TBOF TBR -- R/W R/W W bit 7 bit 6 bit 5 bit 4 PONR -- R -- R R bit 15 bit 14 bit 13 -- -- * Timebase timer control register (TBTC) Address : 0000A9H Reserved -- bit 8 Initial value TBC1 TBC0 1--00000B bit 9 R/W R/W * Watch timer control register (WTC) bit 7 Address : 0000AAH WDCS SCE R/W R/W : R : W : -- : X : bit 6 R bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value WTIE WTOF WTR WTC2 WTC1 WTC0 1 X 0 0 0 0 0 0 B R/W R/W R R/W R/W R/W Readable and writable Read only Write only Unused Indeterminate 59 MB90650A Series (2) Block Diagram Main clock TBTC TBC1 Selector TBC0 212 214 216 219 TBTRES Clock input Timebase timer 212 214 216 219 TBR TBIE AND Q S R TBOF Timebase interrupt WDTC WT1 Selector WT0 2-bit counter OF CLR Watchdog reset generator CLR WDGRST To internal reset generator Internal data bus WTE WTC AND SCM WDCS SCE Power-on reset sub clock stops S Q R WTC1 WTC0 Selector WTR WTIE 210 213 214 215 210 213 214 215 Watch timer Clock input WTRES AND Q S R Sub clock WTOF Timer interrupt WDTC PONR From power-on generation WRST 60 ERST RST pin SRST From RST bit in the STBYC register MB90650A Series 12. I2C Interface The I2C interface is a serial I/O port that supports the Inter-IC bus and operates as a master/slave device on the I2C bus. This module has the following features: * * * * * * * Master/slave transmission/reception Arbitration function Clock synchronization function Slave address/general call address detection function Transfer direction detection function Start condition repeat generation and detection function Bus error detection function (1) Register Configuration * I2C bus status register (IBSR) Address : 000080H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value BB RSC AL LRB TRX AAS GCA FBT 00000000B R R R R R R R R * I2C bus control register (IBCR) Address : 000081H bit 15 bit 14 bit 13 bit 12 bit 11 BER BEIE SCC MSS ACK R/W R/W R/W R/W R/W bit 9 bit 8 Initial value GCAA INTE INT 00000000B bit 10 R/W R/W R/W * I2C bus clock control register (ICCR) Address : 000082H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value -- -- EN CS4 CS3 CS2 CS1 CS0 --0XXXXXB -- -- R/W R/W R/W R/W R/W R/W * I2C bus address register (IADR) Address : 000083H bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value -- A6 A5 A4 A3 A2 A1 A0 -XXXXXXXB -- R/W R/W R/W R/W R/W R/W R/W * I2C bus data register (IDAR) Address : 000084H R/W R -- X : : : : bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 D7 D6 D5 D4 D3 D2 D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W Initial value XXXXXXXXB Readable and writable Read only Unused Indeterminate 61 MB90650A Series (2) Block Diagram ICCR I2C enable EN Peripheral clock Clock divider 1 ICCR 5 6 7 8 CS4 Clock selection 1 CS3 Clock divider 2 CS2 2 4 8 CS1 CS0 16 32 Sync 64 128 256 Clock selection 2 Shift clock edge change timing IBSR Bus busy BB Repeat start RSC Last bit LRB TRX Error First byte AL Internal data bus Start/stop condition generation Transmit/receive FBT Arbitration lost detection IBCR BER SCL BEIE Interrupt request INTE INT End IBCR SCC MSS ACK GCAA Start Master ACK enable Start/stop condition generation GC-ACK enable IDAR IBSR Slave AAS GCA Global call Slave address comparison IADR 62 Shift clock generation IRQ SDA MB90650A Series 13. External Bus Pin Control Circuit The external bus pin control circuit controls the external bus pins required to extend the CPU's address/data bus outside the device. (1) Register Configuration * Auto-ready function selection register (ARSR) Address : 0000A5H bit 15 bit 14 ICR1 ICR0 HMR1 HMR0 W bit 13 W bit 12 W bit 11 bit 10 -- -- -- -- W bit 8 Initial value LMR1 LMR0 0011--00B bit 9 W W * External address output control register (HACR) Address : 0000A6H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Initial value E23 E22 E21 E20 E19 E18 E17 E16 00000000 B W W W W W W W W * Bus control signal selection register (ECSR) bit 15 bit 14 bit 13 bit 12 CKE RYE HDE ICBS HMBS WRE W W W Address : 0000A7H W bit 11 W bit 10 W bit 9 bit 8 Initial value LMBS -- 0000*00- B W -- W : Write only -- : Unused * : "1" or "0" (2) Block Diagram P0 P0 data P1 P2 P3 P3 P0 P0 direction RB Data control Address control Access control Access control 63 MB90650A Series 14. Low-power Consumption Mode (CPU Intermittent Operation Function, Oscillation Stabilization Delay Time, Clock Multiplier Function) The following are the operating modes: PLL clock mode, PLL sleep mode, PLL watch mode, pseudo-watch mode, main clock mode, main sleep mode, main watch mode, main stop mode, sub clock mode, sub sleep mode, sub watch mode, and sub stop mode. Aside from the PLL clock mode, all of the other operating modes are low-power consumption modes. In main clock mode and main sleep mode, the main clock (main OSC oscillation clock) and the sub clock (sub OSC oscillation clock) operate. In these modes, the main clock divided by 2 is used as the operation clock, the sub clock (sub OSC oscillation clock) is used as the timer clock, and the PLL clock (VCO oscillation clock) is stopped. In sub clock mode and sub sleep mode, only the sub clock operates. In these modes, the sub clock is used as the operation clock, and the main clock and PLL clock are stopped. In PLL sleep mode and main sleep mode, only the CPU's operation clock is stopped; all clocks other than the CPU clock operate. In pseudo-watch mode, only the watch timer and timebase timer operate. In PLL watch mode, main watch mode, and sub watch mode, only the watch timer operates. In this mode, only the sub clock is used for operation, while the main clock and the PLL clock are stopped (the difference between the PLL watch mode, the main watch mode and the sub watch mode is that it resumes operation after an interrupt in the PLL clock mode, the main clock mode, and the sub clock mode respectively, and there is no reference concerning about clock mode operation). The main stop mode, sub stop mode, and hardware standby mode stop oscillation, making it possible to retain data while consuming the least amount of power. (The difference between the main stop mode and the sub stop mode is that it resumes operation in the main clock mode and the sub clock mode respectively, and there is no reference concerning about stop mode operation). The CPU intermittent operation function intermittently runs the clock supplied to the CPU when accessing registers, on-chip memory, on-chip resources, and the external bus. Processing is possible with lower power consumption by reducing the execution speed of the CPU while supplying a high-speed clock and using on-chip resources. The PLL clock multiplier can be selected as either 2, 4, 6, or 8 by setting the CS1 and CS0 bits. These clocks are divided by 2 to be used as a machine clock. The WS1 and WS0 bits can be used to set the main clock oscillation stabilization delay time for when stop mode is woken up. 64 MB90650A Series (1) Register Configuration * Low-power consumption mode control register (LPMCR) Address : 0000A0H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 STP SLP SPL RST TMD CG1 CG0 W W R/W W W R/W R/W bit 0 Initial value Reserved 0 0 0 1 1 0 0 0 B ( ) * Clock selection register (CKSCR) Address : 0000A1H R/W R W N : : : : bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value SCM MCM WS1 WS0 SCS MCS CS1 CS0 11111100B R R R/W R/W R/W R/W R/W R/W Readable and writable Read only Write only Unused 65 MB90650A Series (2) Block Diagram * Low-power consumption control circuit and clock generator CKSCR Sub clock divided by 4 (OSC oscillation) SCM Sub clock SCS switching control CKSCR MCM MCS Main clock (OSC oscillation) PLL multiplier circuit 1 2 3 4 CPU system clock generation CKSCR CS1 CPU CS0 Clock selector 1/2 S CPU clock 0/9/17/33 intermittent cycle selection LPMCR CG1 Internal data bus CG0 LPMCR CPU intermittent operation function Cycle count selection circuit Peripheral clock generation SCM SLP STP Peripheral clock SLEEP Standby controller TMD RST MSTP Main OSC stop STOP Sub OSC stop cancel Interrupt request or RST CKSCR WS1 WS0 Oscillation stabilization delay time selector 24 213 215 218 Clock input Timebase timer LPMCR SPL LPMCR RST Pin high-impedance controller Internal reset generator 212 214 216 219 Pin Hi-Z RST pin Internal RST To watchdog timer WDGRST 66 MB90650A Series * State transition diagram for clock selection (1) Power-on Main PLLx SCS = 1, MSC = 0 SCM = 1, MCM = 1 CS1/0 = xx Main SCS = 1, MCS = 1 <1> SCM = 1, MCM = 1 CS1/0 = xx <2> <3> <7> PLL1 Main SCS = 0 or MCS = 0 SCM = 1, MCM = 0 <7> CS1/0 = 00 <4> PLL 1 multiplier SCS = 1, MSC = 0 <6> SCM = 1, MCM = 0 CS1/0 = 00 <7> Sub PLLx SCS = 1, MCS = 0 SCM = 0, MCM = 1 <9> CS1/0 = xx <8> PLL2 Main SCS = 0 or MCS = 1 SCM = 1, MCM = 0 <6> CS1/0 = 01 <7> PLL3 Main SCS = 0 or MCS = 1 SCM = 1, MCM = 0 CS1/0 = 10 <8> PLL 2 multiplier SCS = 1, MSC = 0 SCM = 1, MCM = 0 CS1/0 = 01 <5> PLL 3 multiplier SCS = 1, MSC = 0 SCM = 1, MCM = 0 <6> CS1/0 = 10 <8> Main Sub SCS = 0, MCS = x MCM = 1 SCM = 1 <8> PLL4 Main SCS = 0 or MCS = 1 SCM = 1, MCM = 0 CS1/0 = 11 <6> PLL 4 multiplier SCS = 1, MSC = 0 SCM = 1, MCM = 0 CS1/0 = 11 <1> MCS bit cleared and SCS bit set <2> PLL clock oscillation stabilization delay complete and CS1/0 = 00 <3> PLL clock oscillation stabilization delay complete and CS1/0 = 01 <4> PLL clock oscillation stabilization delay complete and CS1/0 = 10 <5> PLL clock oscillation stabilization delay complete and CS1/0 = 11 <6> MCS bit set or SCS bit cleared <7> PLL clock and main clock synchronized timing and SCS = 1 <8> PLL clock and main clock synchronized timing and SCS = 0 <9> Main clock oscillation stabilization delay complete and MCS = 0 67 MB90650A Series * State transition diagram for clock selection (2) Power-on Main Sub SCS = 0 SCM = 1 MCM = 1 <1> Main SCS = 1, MCS = 1 SCM = 1 MCM = 1 <2> <4> PLLx Sub SCS = 0, MCS = x SCM = 1, MCM = 0 CS1/0 = xx <5> Main PLLx SCS = 1, MCS = 0 SCM = 1, MCM = 1 CS1/0 = xx <6> Sub Main SCS = 1 SCM = 0 MCM = 1 <3> Sub SCS = 0 SCM = 0 MCM = 1 <1> SCS bit cleared <2> Sub clock edge detection timing <3> SCS bit set <4> Main clock oscillation stabilization delay complete and MCS = 1 <5> PLL clock and main clock synchronized timing and SCS = 0 <6> Main clock ascillation stabilization delay complete and MCS = 0 68 MB90650A Series 15. Delayed Interrupt Generation Module The delayed interrupt generation module is used to generate the task switching interrupt. Interrupt requests to the F2MC-16L CPU can be generated and cleared by software using this module. (1) Register Details * Delayed interrupt generation /release register (DIRR) Address : 00009FH bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 Initial value -- -- -- -- -- -- -- R0 -------0B R/W R/W : Readable and writable -- : Unused The DIRR register controls generation and clearing of delayed interrupt requests. Writing "1" to the register generates a delayed interrupt request. Writing "0" to the register clears the delayed interrupt request. The register is set to the interrupt cleared state by a reset. Either "0" or "1" can be written to the reserved bits. However, considering possible future extensions, it is recommended that the set bit and clear bit instructions are used for register access. Internal data bus (2) Block Diagram Delayed interrupt generation/release decoder Interrupt latch 69 MB90650A Series 16. DTMF Generator The DTMF (dual tone multifrequency) generator is a module that can generate a series of audio tones as heard from a push-button telephone or a radio transceiver with a keypad. It has the following features: Capable of generating DTMF tones continuously (or even a single tone) Capable of generating all CCITT tones: 0 to 9, *, #, A to D (1) Register list * DTMF control register (DTMC) * DTMF data register (DTMD) -- 00000000B bit 5 bit 4 bit 3 -- CSL2 CSL1 CSL0 CDIS RDIS OUTE -- R/W R/W R/W R/W R/W R/W -- bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 -- -- -- -- -- -- -- -- Address : 000089H bit 1 Initial value bit 6 Address : 000088H bit 2 bit 0 bit 7 DDAT3 DDAT2 DDAT1 DDAT0 R/W R/W R/W Initial value 000X0000B R/W R/W : Read/write enabled -- : Unused X : Undefined (2) Block diagram Clock pulse Frequency divider Frequency select COL staircase generator Voltage data DTMF ROW/COL decoder ROW staircase generator Adder Frequency select Preset counter Count clock Terminate Frequency divider Internal clock Control signal generator DTMF control register (DTMC) DTMF data register (DTMD) Internal bus 70 Frequency select MB90650A Series ELECTRICAL CHARACTERISTICS 1. Absolute Maximum Ratings (VSS = AVSS = 0.0 V) Symbol Parameter Rating Unit Remarks Min Max VCC1 VSS - 0.3 VSS + 4.0 V VCC2 VSS - 0.3 VSS + 7.0 V AVCC VSS - 0.3 VSS + 4.0 V without MB90V650A *1 AVRH AVRL VSS - 0.3 VSS + 4.0 V without MB90V650A DVRH VSS - 0.3 VSS + 4.0 V without MB90V650A VI VSS - 0.3 VSS + 4.0 V without MB90V650A *2 VIC VSS - 0.3 VSS + 7.0 V P47, P70/SDA, P71/SLC, P72 (N-ch open-drain pins) Output voltage VO VSS - 0.3 VSS + 4.0 V without MB90V650A *2 Maximum clamp current ICLAMP -2.0 +2.0 mA *6 Total maximum clamp current ICLAMP -- +20 mA *6 "L" level maximum output current IOL -- 10 mA without MB90V650A *3 "L" level average output current IOLAV -- 3 mA without MB90V650A *4 "L" level total maximum output current IOL -- 60 mA without MB90V650A "L" level total average output current IOLAV -- 30 mA without MB90V650A *5 "H" level maximum output current IOH -- -10 mA without MB90V650A *3 "H" level average output current IOHAV -- -3 mA without MB90V650A "H" level total maximum output current IOH -- -60 mA without MB90V650A "H" level total average output current IOHAV -- -30 mA Power consumption PD -- 200 mW Operating temperature TA -40 +85 C Storage temperature Tstg -55 +150 C Power supply voltage Input voltage without MB90V650A *4 *5 *1 : AVCC, AVRH, AVRL and DVRH shall never exceed VCC (VCC1 and VCC2 are contained). AVRH, AVRL shall never exceed AVCC. Also, AVRL shall never exceed AVRH. *2 : VI and VO must not exceed VCC (VCC1 and VCC2 are contained) + 0.3 V. *3 : Maximum output current specifies the peak value or one corresponding pin. *4 : The average output current is the rating for the current from an individual pin averaged over 100 ms. *5 : The average total output current is the rating for the current from all pins averaged over 100 ms. (Continued) 71 MB90650A Series (Continued) *6 : * Applicable to pins : P00 to P07, P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50 to P57, P60 to P67, P70 to P74, P80 to P86, P90 to P97, PA0 to PA2 * Use within recommended operating conditions. * Use at DC voltage (current). * The +B signal should always be applied with 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. * Note that if a +B signal is input when the microcontroller current 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 other than the A/D input pins (LCD drive pins, comparator input pins, etc.) cannot accept +B signal input. * Sample recommended circuits : * Input/Output Equivalent circuits Protective diode VCC +B input (0 V to 16 V) P-ch Limiting resistance N-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. 72 MB90650A Series 2. Recommended Operating Conditions (VSS = AVSS = 0.0 V) Parameter Value Symbol Unit Max 2.2 3.6 V For normal operation (MB90652A/653A/654A) 2.4 3.6 V For normal operation (MB90F654A) 2.2 5.5 V For normal operation (MB90652A/653A/654A) 2.4 5.5 V For normal operation (MB90F654A) 1.8 3.6 V To maintain statuses in stop mode (MB90652A/653A/654A) 1.8 3.6 V To maintain statuses in stop mode (MB90F654A) 1.8 5.5 V To maintain statuses in stop mode (MB90652A/653A/654A) 1.8 5.5 V To maintain statuses in stop mode (MB90F654A) VIH 0.7 VCC VCC + 0.3 V Pins other than VIHS and VIHM VIH2 0.7 VCC VCC + 0.3 V P70/SDA, P71/SLC (only I2C pin) VIHS 0.8 VCC VCC + 0.3 V Hysteresis input pins VIHM VCC - 0.3 VCC + 0.3 V MD pin input VIHT 2.4 VCC + 0.3 V TTL input pins VIL VSS - 0.3 0.3 VCC V PIns other than VILS and VILM VIL2 VSS - 0.3 0.3 VCC V P70/SDA, P71/SLC (only I2C pin) VILS VSS - 0.3 0.2 VCC V Hysteresis input pins VILM VSS - 0.3 VSS + 0.3 V MD pin input VILT VSS - 0.3 0.8 V TTL input pins TA -40 +85 C VCC1 VCC2 Power supply voltage VCC1 VCC2 "H" level input voltage "L" level input voltage Operating temperature Remarks Min Note : I2C must be used at above 2.7 V. 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. 73 MB90650A Series 3. DC Characteristics Parameter "H" level output voltage*2 (MB90652A/653A/654A: VCC = 2.2 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) (MB92F654A: VCC = 2.4 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Symbol Pin name Condition Unit Remarks Min Typ Max VCC2 = 4.5 V, Pins except IOH = -4.0 mA P47, P70 to P72 VCC = 2.7 V, IOH = -1.6 mA VCC2- 0.5 -- -- V When the 5-V power supply is used VCC1- 0.3 -- -- V When the 3-V power supply is used *1 VCC2 = 4.5 V, IOL = 4.0 mA -- -- 0.4 V When the 5-V power supply is used VCC = 2.7 V, IOL = 2.0 mA -- -- 0.4 V When the 3-V power supply is used -10 -- 10 A 20 65 200 k without MB90V650A -- 0.1 10 A -- 10 20 mA MB90652A/653A/654A: During normal operation -- 17 24 mA MB90652A/653A/654A: In A/D operation -- 19 26 mA MB90652A/653A/654A: In D/A operation ICCS -- 2.5 5 mA MB90652A/653A/654A: During sleep ICC -- 16 31 mA MB90652A/653A/654A: During normal operation ICC -- 21 39 mA MB90F654A: During normal operation ICC -- 37 44 mA MB90F654A: Flash write/erase -- 27 37 mA MB90652A/653A/654A: In A/D operation ICC -- 32 42 mA MB90F654A: In A/D operation ICC -- 30 38 mA MB90652A/653A/654A: In D/A operation ICC -- 30 38 mA VOH "L" level output VOL voltage*2 All output pins Input leakage IIL current Except P50 VCC = 3.3 V, to P57, VSS < VI < VCC P90, P91 Pull-up resistor RPULL Open-drain output leakage Ileak current -- P40 to P47, P70 to P72 When VCC = 3.0 V, TA = +25C -- ICC ICC -- ICC Power supply current ICC 74 -- When VCC = 3.0 V Internal 8 MHz operation When VCC = 3.0 V Internal 12 MHz operation MB90F654A: In D/A operation (Continued) MB90650A Series (Continued) Parameter Symbol (MB90652A/653A/654A: VCC = 2.2 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) (MB90F654A: VCC = 2.4 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Pin name Condition Unit Remarks Min Typ Max ICCS -- ICCS ICCH -- ICCH Power supply current ICCL -- -- VCC = 3.0 V, TA = +25C External 32 kHz operation ICCT CIN TA = +25C When VCC = 3.0 V VCC = 3.0 V, TA = +25C External 32 kHz operation (Internal 8 MHz operation) ICCT Input capacitance When VCC = 3.0 V Internal 12 MHz operation Except AVCC, AVSS, VCC, VSS -- -- 3.5 9 mA MB90652A/653A/654A: During sleep -- 4.8 10 mA MB90F654A: During sleep -- 0.1 20 A MB90652A/653A/654A: During stop -- 0.2 40 A MB90F654A: During stop -- 16 140 A without MB90V650A: In sub operation -- 10 30 A MB90652A/653A/654A: In watch mode -- 15 30 A MB90F654A: In watch mode -- 5 15 pF * 1 : P40 to P46 are N-ch open-drain pins to be controlled and are usually used as CMOS devices. * 2 : When the device is used with dual power supplies, the P20 to P27, P30 to P37, P40 to P47, and P70 to P72 are the 5 V pins and the rest are the 3 V pins. Note : VCC = VCC1 = VCC2 75 MB90650A Series 4. AC Characteristics (1) Clock Timing Parameter Clock frequency Clock cycle time Symbol Pin name Condition (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Unit Remarks Min Typ Max FCH X0, X1 -- 3 -- 24 MHz FCL X0A, X1A -- -- 32.768 -- kHz tC X0, X1 -- 41.67 -- 333 ns tCL X0A, X1A -- -- 30.5 -- s X0 -- 5 -- -- ns * X0A -- -- 15.2 -- s * X0 -- -- -- 5 ns External clock PWH P Input clock pulse WL width PWLH PWLL Input clock rise tcr time and fall time tcf Internal operating clock frequency fCP -- -- 1.5 -- 12 MHz fCPL -- -- -- 8.192 -- kHz Internal operating clock cycle time tCP -- -- 83.3 -- 666 ns tCPL -- -- -- 122.1 -- s Because the PLL frequency fluctuates around the set frequency with a certain cycle [approximately CLK x (1 CYC to 50 CYC)], the worst value is not maintained for long. (The pulse, if featured with the long period, would produce practically no error.) * : The duty ratio should be in the range 30% to 70%. Note : VCC = VCC1 = VCC2 76 MB90650A Series *Main clock timing condition (X0, X1) tC 0.8 VCC 0.2 VCC X0 PWL PWH tcf tcr * Subclock timing condition (X0A, X1A) tCL 0.8 VCC 0.2 VCC X0A PWHL PWLL 77 MB90650A Series * PLL operation assurance range Power supply voltage (VCC) Relationship between the internal operating clock frequency and power supply voltage (MB90652A/653A/654A, MB90F654A) (V) Normal operation range 3.6 PLL operation assurance range 2.7 2.5 2.2 1.5 5 3 12 (MHz) Internal clock (fCP) Power supply voltage (VCC) Relationship between the internal oprating clock frequency and power supply voltage (MB90PV650A) (V) Normal operation range 3.6 PLL operation assurance range 2.7 3 1.5 12 (MHz) Internal clock (fCP) Relationship between the oscillation frequency and internal operating clock frequency (MHz) Multiply by 2 Multiply by 4 Multiply by 3 Internal clock (fCP) 12 No multiplier 9 8 6 4 3 4 78 Multiply by 1 6 8 12 Oscillation clock (FC) 24 (MHz) MB90650A Series The AC characteristics are for the following measurement reference voltages. * Input signal waveform Hysteresis input pins * Output signal waveform Output pins 0.8 VCC 2.4 V 0.2 VCC 0.2 V Other than hysteresis or MD input pins 0.7 VCC 0.3 VCC 79 MB90650A Series (2) Clock Output Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max Pin Symbol name Parameter Cycle time tCYC CLK CLK CLK tCHCL -- tCP* VCC = 3.0 V 10% CLK -- ns tCP* / 2 - 20 tCP* / 2 + 20 ns tCP* / 2 - 64 tCP* / 2 + 64 ns In the external frequency of 5 MHz * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 tCYC tCHCL 2.4 V 2.4 V CLK 0.8 V (3) Reset Input Specifications Parameter Reset input time Symbol tRSTL (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max Pin name RST -- 16 tCP* -- ns * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 t RSTL RST 0.2 VCC 0.2 VCC * AC characteristics measurement conditions Pin CL : Load capacitance at testing CL 80 CLK, ALE: CL = 30 pF AD15 to AD00 (address/data bus), RD, WR: CL = 80 pF MB90650A Series (4) Power on Supply Specifications (Power-on Reset) Symbol Parameter (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max Pin name Power supply rising time tR VCC -- -- 30 ms * Power supply cut-off time tOFF VCC -- 1 -- ms Due to repeat operation * : When the power rising, VCC must be less than 0.2 V. Notes : * The above standards are the values needed in order to activate a power-on reset. * Activate a power-on reset by turning on the power supply again this in device. * VCC = VCC1 = VCC2 tR VCC 2.7 V 0.2 V tOFF Abrupt changes in the power supply voltage may cause a power-on reset. When changing the power supply voltage during operation, suppress variations in the voltage and ensure that the voltage rises smoothly, as shown in the following figure. Main power supply voltage VCC Sub-power supply voltage Holding RAM data It is recommended that the rate of increase in the voltage be kept to no more than 50 mV/ms. VSS 81 MB90650A Series (5) Bus Read Timing Parameter ALE pulse width Symbol tLHLL ALE -- tCP* /2 - 20 -- ns MASK/FLASH Valid address ALE time tAVLL Multiplexed address -- tCP* / 2 - 25 -- ns MASK/FLASH ALE address valid time tLLAX Multiplexed address -- tCP* / 2 - 15 -- ns Valid address RD time tAVRL Multiplexed address -- tCP* - 15 -- ns Valid address valid data input tAVDV Multiplexed address -- -- 5 tCP* / 2 - 60 ns RD pulse width tRLRH RD -- 3 tCP* / 2 - 20 -- ns RD valid data input tRLDV D15 to D00 -- -- 5 tCP* / 2 - 60 ns RD data hold time tRHDX D15 to D00 -- 0 -- ns RD ALE time tRHLH RD, ALE -- tCP* / 2 - 15 -- ns RD address valid time tRHAX Address, RD -- tCP* / 2 - 10 -- ns Valid address CLK time tAVCH Address, CLK -- tCP* / 2 -20 -- ns RD CLK time RD, CLK -- tCP* / 2 - 20 -- ns tRLCH * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 82 Pin name (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max MASK/FLASH MASK/FLASH MB90650A Series tAVCH tRLCH 2.4 V CLK tAVLL 2.4 V ALE 2.4 V tRHLH tLLAX 2.4 V 2.4 V 0.8 V tLHLL tAVRL tRLRH 2.4 V RD 0.8 V tRHAX A23 to A16 2.4 V 0.8 V 2.4 V 0.8 V tRLDV tAVDV D15 to D00 2.4 V 0.8 V Address tRHDX 2.4 V 0.8 V 0.7 VCC 0.3 VCC Read data 0.7 VCC 0.3 VCC 83 MB90650A Series (6) Bus Write Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Parameter Symbol Pin name Condition Value Min Max Unit Valid address WR time tAVWL A23 to A00 -- tCP* - 15 -- ns WR pulse width tWLWH WR -- 3 tCP* / 2 - 20 -- ns Valid data output WR time tDVWH D15 to D00 -- 3 tCP* / 2 - 20 -- ns WR data hold time tWHDX D15 to D00 -- 20 -- ns WR address valid time tWHAX A23 to A00 -- tCP* / 2 - 10 -- ns WR ALE time tWHLH WR, ALE -- tCP* / 2 - 15 -- ns WR CLK time tWLCH WR, ALE -- tCP* / 2 - 20 -- ns Remarks MASK/FLASH * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 tWLCH 2.4 V CLK tWHLH 2.4 V ALE tAVWL tWLWH 2.4 V WR (WRL, WRH) 0.8 V tWHAX A23 to A16 2.4 V 2.4 V 0.8 V 0.8 V tDVWH D15 to D00 84 2.4 V 0.8 V 2.4 V Address 0.8 V tWHDX Write data 2.4 V 0.8 V MB90650A Series (7) Ready Input Timing Parameter Symbol (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max Pin name RDY setup time tRYHS RDY -- 45 -- ns RDY hold time tRYHH RDY -- 0 -- ns MASK/FLASH Notes: * Use the auto-ready function if the RDY setup time is too short * VCC = VCC1 = VCC2. 2.4 V CLK 2.4 V ALE RD/WR RDY (When wait states are not inserted) RDY (When one wait states are inserted) tRYHS tRYHH 0.8 VCC 0.8 VCC 0.2 VCC 0.2 VCC tRYHS 85 MB90650A Series (8) Hold Timing Parameter Symbol Pin name (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max Pin floating HAK time tXHAL HAK -- 30 tCP* ns HAK pin valid time tHAHV HAK -- tCP* 2 tCP* ns * : For tCP see "(1) Clock Timing." Notes: * After reading HRQ, more than one cycle is required before changing HAK. * VCC = VCC1 = VCC 2 2.4 V HAK 0.8 V tHAHV tXHAL Pin 86 High impedance MB90650A Series (9) UART Timing Parameter Serial clock cycle time Symbol Pin name tSCYC -- SCK SOT delay time tSLOV -- Valid SIN SCK tIVSH -- SCK valid SIN hold time tSHIX -- Serial clock "H" pulse width tSHSL -- Serial clock "L" pulse width tSLSH -- SCK SOT delay time tSLOV -- Valid SIN SCK tIVSH -- SCK valid SIN hold time tSHIX -- (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max CL = 80 pF + 1 TTL for the internal shift clock mode output pin CL = 80 pF + 1 TTL for the external shift clock mode output pin 8 tCP* -- ns -80 +80 ns MASK/FLASH 100 -- ns MASK/FLASH tCP* -- ns 4 tCP* -- ns 4 tCP* -- ns -- 150 ns MASK/FLASH 60 -- ns MASK/FLASH 60 -- ns MASK/FLASH * : For tCP see "(1) Clock Timing." Notes: * These are the AC characteristics for CLK synchronous mode. * CL is the load capacitance connected to the pin at testing. * VCC = VCC1 = VCC 2 87 MB90650A Series * Internal shift clock mode tSCYC 2.4 V SCK 0.8 V tSLOV 0.8 V 2.4 V 0.8 V SOT tIVSH tSHIX 0.8 VCC 0.2 VCC SIN 0.8 VCC 0.2 VCC * External shift clock mode tSLSH tSHSL 0.2 VCC tSLOV SOT 0.2 VCC 2.4 V 0.8 V tIVSH SIN 88 0.8 VCC 0.8 VCC SCK 0.8 VCC 0.2 VCC tSHIX 0.8 VCC 0.2 VCC MB90650A Series (10) I/O Extended Serial Timing Parameter Serial clock cycle time Symbol Pin name tSCYC -- SCK SOT delay time tSLOV -- Valid SIN SCK tIVSH -- SCK valid SIN hold time tSHIX -- Serial clock "H" pulse width tSHSL -- Serial clock "L" pulse width tSLSH -- SCK SOT delay time tSLOV -- Valid SIN SCK tIVSH -- SCK valid SIN hold time tSHIX -- (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Value Condition Unit Remarks Min Max CL = 80 pF + 1 TTL for the internal shift clock mode output pin CL = 80 pF + 1 TTL for the external shift clock mode output pin 8 tCP* -- ns -80 +80 ns MASK/FLASH 100 -- ns MASK/FLASH tCP* -- ns 4 tCP* -- ns 4 tCP* -- ns -- 150 ns MASK/FLASH 60 -- ns MASK/FLASH 60 -- ns MASK/FLASH * : For tCP see "(1) Clock Timing." Notes: * These are the AC characteristics for CLK synchronous mode. * CL is the load capacitance connected to the pin at testing. * VCC = VCC1 = VCC 2 89 MB90650A Series * Internal shift clock mode tSCYC 2.4 V SCK 0.8 V tSLOV 0.8 V 2.4 V 0.8 V SOT tIVSH tSHIX 0.8 VCC 0.2 VCC SIN 0.8 VCC 0.2 VCC * External shift clock mode tSLSH tSHSL SCK 0.2 VCC tSLOV SOT 0.2 VCC 2.4 V 0.8 V tIVSH SIN 90 0.8 VCC 0.8 VCC 0.8 VCC 0.2 VCC tSHIX 0.8 VCC 0.2 VCC MB90650A Series (11) I2C Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Symbol Pin name Condition fSCL -- Bus free time between stop tBUS and start conditions -- Parameter SCL clock frequency Value Unit Min Max -- 0 100 kHz -- 4.7 -- s -- -- 4.0 -- s SCL clock L state hold time tLOW -- -- 4.7 -- s SCL clock H state hold time tHIGH -- -- 4.0 -- s Re-send start condition setup time tSUSTA -- -- 4.7 -- s Data hold time tHDDAT -- -- 0 -- s Data setup time tSUDAT -- -- 40 -- ns SDA and SCL signal rising tR time -- -- -- 1000 ns SDA and SCL signal falling tF time -- -- -- 300 ns Stop condition setup time -- -- 4.0 -- s Hold time (re-send) start tHDSTA tSUSTO Remarks The first clock pulse is generated after this period. Note : VCC = VCC1 = VCC2 0.8 VCC SDA 0.2 VCC tBUS tLOW tR tHDSTA tF 0.8 VCC SCL 0.2 VCC tHDSTA tHDDAT tHIGH tSUDAT tSUSTA tSUSTO 91 MB90650A Series (12) Timer Input Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Parameter Input pulse width Symbol Pin name Condition tTIWH, tTIWL IN0, IN1 -- Value Min Max 4 tCP* -- Unit Remarks ns * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 0.8 VCC 0.8 VCC IN0 , IN1 0.2 VCC 0.2 VCC tTIWH tTIWL (13) Timer Output Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Parameter Symbol Pin name Condition tTO PPG00 to PPG11 OUT0 to OUT3 80 pF load CLK TOUT change time Value Min Max 30 -- Unit Remarks ns Note : VCC = VCC1 = VCC2 0.7 VCC CLK tTO 0.7 VCC 0.3 VCC TOUT (14) Trigger Input Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Parameter Input pulse width Symbol Pin name Condition tTRGH tTRGL ADTG, IRQ0 to IRQ7 -- Value Unit Remarks Min Max 5 tCP* -- ns During normal operation 1 -- ms During stop * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 0.8 VCC 0.8 VCC IRQ2 to IRQ7 0.2 VCC tTRGH 92 0.2 VCC tTRGL MB90650A Series (15) Up/down Counter Timing (VCC = 2.7 V to 3.6 V, VSS = 0.0 V, TA = -40C to +85C) Parameter Symbol Pin name Condition Value Min Max Unit AIN input "H" pulse width tAHL 8 tCP* -- ns AIN input "L" pulse width tALL 8 tCP* -- ns BIN input "H" pulse width tBHL 8 tCP* -- ns BIN input "L" pulse width tBLL 8 tCP* -- ns AIN BIN time tAUBU 4 tCP* -- ns BIN AIN time tBUAD 4 tCP* -- ns AIN BIN time tADBD 4 tCP* -- ns BIN AIN time tBDAU 4 tCP* -- ns BIN AIN time tBUAU 4 tCP* -- ns AIN BIN time tAUBD 4 tCP* -- ns BIN AIN time tBDAD 4 tCP* -- ns AIN BIN time tADBU 4 tCP* -- ns ZIN input "H" pulse width tZHL 4 tCP* -- ns ZIN input "L" pulse width tZLL 4 tCP* -- ns AIN0, AIN1 BIN0, BIN1 80 pF load ZIN0, ZIN1 Remarks * : For tCP see "(1) Clock Timing." Note : VCC = VCC1 = VCC2 93 MB90650A Series tAHL 0.8 VCC tALL 0.8 VCC AIN 0.2 VCC tAUBU tBUAD tADBD 0.8 VCC 0.2 VCC tBDAU 0.8 VCC BIN 0.2 VCC tBHL 0.8 VCC 0.2 VCC tBLL 0.8 VCC BIN 0.2 VCC tBUAU tAUBD tBDAD 0.2 VCC tADBU 0.8 VCC AIN 0.2 VCC 0.8 VCC ZIN 0.8 VCC tZHL tZLL 0.2 VCC 94 0.2 VCC MB90650A Series 5. A/D Converter Electrical Characteristics (MB90652A/653A/654A: VCC = 2.2 V to 3.6 V, VSS = AVSS =0.0V, 2.7 V AVRH - AVRL, TA = -40C to +85C) (MB90F654A: VCC = 2.4 V to 3.6 V, VSS = AVSS = 0.0 V, 2.7 V AVRH - AVRL, TA = -40C to +85C) Value Symbol Pin name Unit Remarks Parameter Min Typ Max Resolution -- -- -- 10 10 bit Total error -- -- -- -- 3.0 LSB Linearity error -- -- -- -- 2.0 LSB Differential linearity error -- -- -- -- 1.9 LSB Zero transition voltage VOT AN0 to AN7 AVRL - 1.5 LSB AVRL + 0.5 LSB AVRL + 2.5 LSB mV Full scale transition voltage VFST AN0 to AN7 AVRH - 4.5 LSB AVRH - 1.5 LSB AVRH + 0.5 LSB mV 8.167*1 -- -- s Conversion time -- -- Analog port input current IAIN AN0 to AN7 -- 0.1 10 A Analog input voltage VAIN AN0 to AN7 AVRL -- AVRH V AVRH AVRL + 2.7 -- AVCC V AVRL 0 -- AVRH - 2.7 V -- mA 2 Reference voltage -- Power supply current IA AVCC -- 3 IAH AVCC -- -- 5* A Reference voltage supply current IR AVRH -- 200 -- A IRH AVRH -- -- 5*2 A AN0 to AN7 -- -- 4 LSB Variation between channels -- MASK/FLASH MASK/FLASH *1: For a 12 MHz machine clock *2: The current when the A/D converter is not operating or the CPU is in stop mode (for VCC = AVCC = AVRH = 3.0 V). Notes: * The error increases proportionally as |AVRH - AVRL| decreases. * The output impedance of the external circuits connected to the analog inputs should be in the following range. The output impedance of the external circuit should be less than approximately 7 k. When using an external capacitor, it is recommended to have several thousand times the capacitance of the internal capacitor as a guide, if one takes into consideration the effect of the divided capacitance between the external capacitor and the internal capacitor. * If the output impedance of the external circuit is too high, the sampling time might be insufficient (sampling time = 3.75 s at a machine clock of 16 MHz). * VCC = VCC1 = VCC2 95 MB90650A Series * Analog input circuit model diagram Sample hold circuit C0 Analog input Comparator RON1 RON2 RON3 RON4 C1 RON1: RON2: RON3: RON4: Approx. 5 k Approx. 617 Approx. 617 Approx. 473 C0: Approx. 35 pF C1: Approx. 2 pF Note : Use the values shown as guides only. 96 MB90650A Series 6. D/A Converter Electrical Characteristics (MB90652A/653A: VCC = 2.2 V to 3.6 V, VSS = DVSS = 0.0 V, 2.2 V DVRH - DVSS, TA = -40C to +85C) (MB90F654A: VCC = 2.4 V to 3.6 V, VSS = DVSS = 0.0 V, 2.4 V DVRH - DVSS, TA = -40C to +85C) Value Symbol Pin name Min Typ Max Resolution -- -- -- 8 8 bit Differential linearity error -- -- -- -- 0.9 LSB Absolute accuracy -- -- -- -- 1 % Linearity error -- -- -- -- 1.5 LSB Conversion time -- -- -- 10.0 20.0 s Analog reference power supply voltage 2.2 -- VCC V MB90652A/653A/654A*2 -- DVRH 2.4 -- VCC V MB90F654A -- 100 -- A *3 -- -- 5 A *4 -- 28 -- k Parameter Reference voltage supply current IDVR IDVRS Analog output impedance -- DVRH -- Unit Remarks *1 *2 *1: Conversion time is the value at the load capacitance = 20 pF. *2: DVRH - DVSS (AVSS) *3: Current value at conversion *4: Current value when stopped Note : VCC = VCC1 = VCC2 97 MB90650A Series 7. DTMF Electrical characteristics (MB90652A/653A: VCC = 2.2 V to 3.6 V, VSS = DVSS = 0.0 V, 2.2 V DVRH - DVSS, TA = -40C to +85C) (MB90F654A: VCC = 2.4 V to 3.6 V, VSS = DVSS = 0.0 V, 2.4 V DVRH - DVSS, TA = -40C to +85C) Value Symbol Condition Unit Remarks Parameter Min Typ Max Output load condition DTMF output offset voltage (At signal output) RO 30 k -- -- VMOF -- 0.4 -- V 450 530 600 mVP-P VCC = 3 V TA = +25C Machine clock f = 12 MHz DTMF output amplitude (COL single tone) VMFC DTMF output amplitude (ROW single tone) VMFOR 330 440 500 mVP-P RMF 1.6 2.0 2.4 dB COL/ROW level difference To be specified with DTMF pin pull-down resistor When DTMF terminal is opened RO = 200 k Note : VCC =VCC1 = VCC2 * Output level measurement circuit VCC X0 Low-pass filter 16MHz DTMF X1 -48 dB / oct VSS RO 98 Audio Output level Analizer MB90650A Series 8. Flash Memory Programming/Erase Characteristics Parameter Conditions Sector erase time Chip erase time TA = +25 C VCC = 3.0 V Word (16-bit width) programming time Value Unit Remarks Min Typ Max 1 15 s Excludes 00H programming prior erasure 7 s Excludes 00H programming prior erasure 16 3600 s Excludes systemlevel overhead Program/Erase cycle 10,000 cycle Data holding time 100,000 h 99 MB90650A Series EXAMPLE CHARACTERISTICS (1) "H" Level Output Voltage (2) "L" Level Output Voltage VOL vs. IOL VOH vs. IOH VOL (V) 1.0 TA = +25C 0.9 VOH (V) 4.0 TA = +25C 3.5 VCC = 3.6 V 3.0 VCC = 3.3 V VCC = 3.0 V 2.5 VCC = 2.7 V VCC = 2.5 V VCC = 2.4 V 2.0 0.8 VCC = 2.4 V 0.7 VCC = 2.5 V VCC = 2.7 V 0.6 VCC = 3.0 V VCC = 3.3 V VCC = 3.6 V 0.5 0.4 1.5 0.3 1.0 0.2 0.5 0.1 0.0 0.0 -1 -2 -3 -4 1 -5 IOH (mA) (3) "H" Level Input Voltage/"L" Level Input Voltage (COMS Input) 2 3 4 5 IOL (mA) (4) "H" Level Input Voltage/"L" Level Input Voltage (Hysteresis Input) VIN vs. VCC VIN vs. VCC VIN (V) 2.4 VIN (V) 2.4 TA = +25C TA = +25C 2.2 2.2 2.0 VIH VIL 1.8 VIHS 2.0 1.8 1.6 1.6 1.4 1.4 1.2 1.2 1.0 1.0 0.8 0.8 0.6 0.6 VILS 0.4 0.4 2.4 2.7 3.0 3.3 3.6 VCC (V) VIH: Threshold when input voltage is set to "H" level VIL: Threshold when input voltage is set to "L" level 2.4 2.7 3.0 3.3 3.6 VCC (V) VIHS: Threshold when input voltage in hysteresis characteristics is set to "H" level VILS: Threshold when input voltage in hysteresis characteristics is set to "L" level 100 MB90650A Series (5) Power Supply Current (fCP = Internal Operating Clock Frequency) * Mask ROM products ICC vs. VCC ICC (mA) 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 0 2.4 ICCS vs. VCC ICCS (mA) 10 TA = +25C TA = +25C 9 8 fCP = 12 MHZ 7 6 fCP = 10 MHZ fCP = 8 MHZ fCP = 5 MHZ fCP = 12 MHZ 5 4 fCP = 10 MHZ 3 fCP = 8 MHZ 2 fCP = 5 MHZ 1 2.7 3 3.3 3.6 VCC (V) 0 2.4 2.7 ICCH vs. VCC 3.6 VCC (V) ICCL (A) 50 TA = +25C 0.45 40 0.35 35 0.30 30 0.25 25 0.20 20 0.15 15 0.10 10 0.05 5 2.7 3 3.3 3.6 VCC (V) TA = +25C 45 0.40 0 2.4 2.7 IA vs. AVCC 3 3.3 3.6 VCC (V) IR vs. AVCC IA (mA) 4.0 IR (mA) 4.0 TA = +25C TA = +25C 3.5 3.5 3.0 3.0 2.5 2.5 2.0 2.0 1.5 1.5 1.0 1.0 0.5 0.5 0.0 2.4 3.3 ICCL vs. VCC ICCH (A) 0.50 0.00 2.4 3 2.7 3 3.3 3.6 AVCC (V) 0.0 2.4 2.7 3 3.3 3.6 AVCC (V) 101 MB90650A Series * FLASH products ICC vs. VCC ICC (mA) 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 0 2.4 ICCS vs. VCC ICCS (mA) 10 TA = +25 C TA = +25 C 9 8 fCP = 12 MHZ 7 fCP = 12 MHZ fCP = 10 MHZ 6 fCP = 10 MHZ fCP = 8 MHZ 5 fCP = 8 MHZ 4 fCP = 5 MHZ fCP = 5 MHZ 3 2 1 2.7 3 3.3 3.6 VCC (V) 0 2.4 2.7 ICCH vs. VCC ICCH (A) 0.80 0.75 0.70 0.65 0.60 0.55 0.50 0.45 0.40 0.35 0.30 0.25 0.20 0.15 0.10 0.05 0.00 2.4 102 3 3.3 3.6 VCC (V) ICCL vs. VCC TA = +25 C ICCL (A) 50 TA = +25 C 45 40 35 30 25 20 15 10 5 2.7 3 3.3 3.6 VCC (V) 0 2.4 2.7 3 3.3 3.6 VCC (V) MB90650A Series (6) Pull-up Resistance * FLASH products * Mask ROM products R vs. VCC R vs. VCC R (k) 1000 R (k) 1000 TA = +25 C TA = +25C 100 100 10 2.4 2.7 3 3.3 3.6 VCC (V) 10 2.4 2.7 3 3.3 3.6 VCC (V) 103 MB90650A Series ORDERING INFORMATION Part number 104 Package MB90652APFV MB90653APFV MB90654APFV MB90F654APFV 100-pin plastic LQFP (FPT-100P-M05) MB90652APF MB90653APF MB90654APF MB90F654APF 100-pin plastic QFP (FPT-100P-M06) Remarks MB90650A Series PACKAGE DIMENSIONS 100-pin plastic LQFP (FPT-100P-M05) 16.000.20(.630.008)SQ 14.000.10(.551.004)SQ 75 51 76 50 0.08(.003) Details of "A" part +0.20 100 26 1 25 C 0.200.05 (.008.002) 0.08(.003) 0.100.10 (.004.004) (Stand off) 0~8 "A" 0.50(.020) +.008 1.50 -0.10 .059 -.004 (Mounting height) INDEX 0.1450.055 (.0057.0022) M 0.500.20 (.020.008) 0.600.15 (.024.006) 0.25(.010) Dimensions in mm (inches) 2000 FUJITSU LIMITED F100007S-3c-5 100-pin plastic QFP (FPT-100P-M06) 23.900.40(.941.016) 20.000.20(.787.008) 80 51 50 81 0.10(.004) 17.900.40 (.705.016) 14.000.20 (.551.008) INDEX Details of "A" part 1 30 0.65(.026) "A" C 0.25(.010) +0.35 3.00 -0.20 +.014 .118 -.008 (Mounting height) 0~8 31 100 2001 FUJITSU LIMITED F100008S-c-4-4 0.320.05 (.013.002) 0.13(.005) M 0.170.06 (.007.002) 0.800.20 (.031.008) 0.880.15 (.035.006) 0.250.20 (.010.008) (Stand off) Dimensions in mm (inches) 105 MB90650A Series 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 and circuit diagrams in this document are presented as examples of semiconductor device applications, and are not intended to be incorporated in devices for actual use. Also, FUJITSU is unable to assume responsibility for infringement of any patent rights or other rights of third parties arising from the use of this information or circuit diagrams. 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. F0209 FUJITSU LIMITED Printed in Japan