To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding. Renesas Electronics website: http://www.renesas.
Notice 1. 2. 3. 4. 5. 6. 7. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office.
To all our customers Regarding the change of names mentioned in the document, such as Mitsubishi Electric and Mitsubishi XX, to Renesas Technology Corp. The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER DESCRIPTION The 3822 group is the 8-bit microcomputer based on the 740 family core technology. The 3822 group has the LCD drive control circuit, an 8-channel A-D converter, and a serial I/O as additional functions. The various microcomputers in the 3822 group include variations of internal memory size and packaging. For details, refer to the section on part numbering.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 42 41 44 43 47 46 45 49 48 52 51 50 54 53 55 57 56 40 39 61 62 63 38 37 36 35 64 65 66 67 68 34 33 32 31 30 29 28 27 M38223M4MXXXGP M38224M6HXXXHP 69 70 71 72 73 74 75 26 25 24 23 76 77 78 79 80 20 19 18 17 15 16 13 14 12 10 11 7 8 9 5 6 P67/AN7 P66/AN6 P65/AN5 P64/AN4 P63/AN3 P62/AN2 P61/AN1 P60/AN0 P57/ADT P56/TOUT P55/CNTR1 P54/CNTR0 P53/RTP1 P52/RTP0 P51/INT3 P50/INT2 P47/SRDY P46/SCLK P45/TXD P44/RXD
XCIN I/O Port P7 26 27 P7(2) XCOUT 1 2 5 6 7 I/O Port P6 3 4 P6(8) XCIN XCOUT φ Sub-Clock Sub-Clock Input Output Clock generating circuit 8 VREF AVSS (0V) 7 2 73 A-D converter(8) ADT 9 P5(8) CNTR0,CNTR1 TOUT PS PCL S Y X A I/O Port P5 10 11 12 13 14 15 16 PCH C P U 25 1 RTP0,RTP1 Reset Input RESET INT2,INT3 29 9 20 21 22 23 24 I/O Port P4 7 118 P4(8) SI/O(8) Timer 1(8) Input Port P3 55 56 57 58 P3(4) Timer 3(8) Timer 2(8) Timer Y(16) Timer X(16) ROM 30 7
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER PIN DESCRIPTION Table 1 Pin description (1) Pin Name Function Function except a port function VCC, VSS Power source •Apply voltage of power source to VCC , and 0 V to VSS . (For the limits of V CC, refer to “Recommended operating conditions”). VREF Analog reference voltage •Reference voltage input pin for A-D converter. AVSS Analog power source •GND input pin for A-D converter. •Connect to VSS .
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 2 Pin description (2) Pin Name Function Function except a port function P40 Input port P4 •1-bit Input port. •CMOS compatible input level. P41 /φ I/O port P4 •7-bit I/O port. •CMOS compatible input level. •CMOS 3-state output structure. •φ clock output pin •I/O direction register allows each pin to be individually programmed as either input or output. •Pull-up control is enabled.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER PART NUMBERING Product M3822 4 M 6 H XXX FP Package type FP : 80P6N-A package GP : 80P6S-A package HP : 80P6Q-A package FS : 80D0 package ROM number Omitted in One Time PROM version shipped in blank and EPROM version. Normally, using hyphen.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER GROUP EXPANSION (STANDARD, ONE TIME PROM VERSION, EPROM VERSION) Memory Size ROM size ............................................................. 8 K to 48 K bytes RAM size ............................................................ 384 to 1024 bytes Mitsubishi plans to expand the 3822 group (Standard, One Time PROM version, EPROM version) as follows: Package Memory Type 80P6N-A .................................... 0.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER GROUP EXPANSION (EXTENDED OPERATING TEMPERATURE VERSION) Package 80P6N-A .................................... 0.8 mm-pitch plastic molded QFP Mitsubishi plans to expand the 3822 group (extended operating temperature version) as follows: Memory Type Support for Mask ROM version. Memory Size ROM size ........................................................................ 48 K bytes RAM size .......................................
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER GROUP EXPANSION (M VERSION) Package Mitsubishi plans to expand the 3822 group (M version) as follows: 80P6N-A .................................... 0.8 mm-pitch plastic molded QFP 80P6S-A .................................. 0.65 mm-pitch plastic molded QFP 80P6Q-A .................................... 0.5 mm-pitch plastic molded QFP Memory Type Support for Mask ROM version. Memory Size ROM size ....................................
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER GROUP EXPANSION (H VERSION) Package Mitsubishi plans to expand the 3822 group (H version) as follows: 80P6N-A .................................... 0.8 mm-pitch plastic molded QFP 80P6Q-A .................................... 0.5 mm-pitch plastic molded QFP Memory Type Support for Mask ROM version. Memory Size ROM size ........................................................... 16 K to 48 K bytes RAM size ........................
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER FUNCTIONAL DESCRIPTION CENTRAL PROCESSING UNIT (CPU) [Stack Pointer (S)] The 3822 group uses the standard 740 family instruction set. Refer to the table of 740 family addressing modes and machine instructions or the 740 Family Software Manual for details on the instruction set. Machine-resident 740 family instructions are as follows: The FST and SLW instruction cannot be used. The STP, WIT, MUL, and DIV instruction can be used.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER On-going Routine Interrupt request (Note) M (S) Execute JSR Push return address on stack M (S) (PCH) (S) (S) – 1 M (S) (PCL) (S) (S)– 1 (S) M (S) (S) M (S) (S) Subroutine (S) (S) + 1 (PCL) M (S) (S) (S) + 1 (PCH) M (S) (S) – 1 (PCL) Push return address on stack (S) – 1 (PS) Push contents of processor status register on stack (S) – 1 Interrupt Service Routine Execute RTS POP return address from stack (PCH
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER [Processor status register (PS)] The processor status register is an 8-bit register consisting of 5 flags which indicate the status of the processor after an arithmetic operation and 3 flags which decide MCU operation. Branch operations can be performed by testing the Carry (C) flag , Zero (Z) flag, Overflow (V) flag, or the Negative (N) flag. In decimal mode, the Z, V, N flags are not valid.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER [CPU Mode Register (CPUM)] 003B16 The CPU mode register contains the stack page selection bit and the internal system clock selection bit. The CPU mode register is allocated at address 003B 16.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MEMORY Special Function Register (SFR) Area The Special Function Register area in the zero page contains control registers such as I/O ports and timers. RAM RAM is used for data storage and for stack area of subroutine calls and interrupts. ROM The first 128 bytes and the last 2 bytes of ROM are reserved for device testing and the rest is user area for storing programs.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 000016 Port P0 (P0) 000116 Port P0 direction register (P0D) 002016 Timer X (low) (TXL) 002116 Timer X (high) (TXH) 000216 Port P1 (P1) 000316 Port P1 output control register (P1D) 002216 Timer Y (low) (TYL) 002316 Timer Y (high) (TYH) 000416 Port P2 (P2) 000516 Port P2 direction register (P2D) 002416 Timer 1 (T1) 000616 Port P3 (P3) 000716 000816 Port P4 (P4) 000916 Port P4 direction register (P4D) 002716 Timer X mode registe
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER I/O PORTS Direction Registers (ports P2, P4 1-P47, and P5-P7) The 3822 group has 49 programmable I/O pins arranged in seven I/O ports (ports P0–P2, P4 1–P4 7 and P5-P7). The I/O ports P2, P41–P4 7 and P5-P7 have direction registers which determine the input/output direction of each individual pin. Each bit in a direction register corresponds to one pin, and each pin can be set to be input port or output port.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 9 List of I/O port function Pin Name P00 /SEG16 – P07 /SEG23 Port P0 P10 /SEG24 – P17 /SEG31 Port P1 P20 –P27 Input/Output I/O Format Non-Port Function Related SFRs Diagram No.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (1) Ports P0, P1 (2) Ports P2, P42, P43, P50, P51 VL2/VL3 Pull-up control VL1/VSS Segment output enable bit (Note) Direction register Direction register Data bus Data bus Port latch Port latch Key input (Key-on wake-up) interrupt input INT0–INT3 interrupt input Pull-down control Segment output enable bit Note: Bit 0 of direction register.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (8) Port P46 (7) Port P45 Pull-up control P45/TxD P-channel output disable bit Serial I/O enable bit Transmit enable bit Serial I/O clocksynchronized selection bit Serial I/O enable bit Pull-up control Serial I/O mode selection bit Serial I/O enable bit Direction register Direction register Port latch Data bus Data bus Port latch Serial I/O output Serial I/O clock output Serial I/O clock input (9) Port P47 (10) Ports P52
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (14) Port P6 (13) Port P56 Pul-up control Pull-up control Direction register Data bus Direction register Port latch Data bus Port latch TOUT output control bit Timer output A-D conversion input Analog input pin selection bit (15) Port P70 (16) Port P71 Port XC switch bit + Pull-up control Port XC switch bit + Pull-up control Data bus Port XC switch bit Port XC switch bit Direction register Direction register Port
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER INTERRUPTS 2. The interrupt disable flag is set and the corresponding interrupt request bit is cleared. 3. The interrupt jump destination address is read from the vector table into the program counter. Interrupts occur by seventeen sources: eight external, eight internal, and one software. Interrupt Control ■Notes on interrupts When setting the followings, the interrupt request bit may be set to “1”.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Interrupt request bit Interrupt enable bit Interrupt disable flag (I) Interrupt request BRK instruction Reset Fig.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Key Input Interrupt (Key-on wake-up) A Key-on wake-up interrupt request is generated by applying a falling edge to any pin of port P2 that have been set to input mode. In other words, it is generated when AND of input level goes from “1” to “0”.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER responding to that timer is set to “1”. Read and write operation on 16-bit timer must be performed for both high and low-order bytes. When reading a 16-bit timer, read the high-order byte first. When writing to a 16-bit timer, write the low-order byte first. The 16-bit timer cannot perform the correct operation when reading during the write operation, or when writing during the read operation.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Timer X Timer X is a 16-bit timer that can be selected in one of four modes and can be controlled the timer X write and the real time port by setting the timer X mode register. (1) Timer Mode The timer counts f(XIN)/16 (or f(X CIN)/16 in low-speed mode). (2) Pulse Output Mode Each time the timer underflows, a signal output from the CNTR0 pin is inverted.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Timer Y Timer Y is a 16-bit timer that can be selected in one of four modes. b7 (1) Timer Mode b0 Timer Y mode register (TYM : address 002816) The timer counts f(XIN)/16 (or f(X CIN)/16 in low-speed mode). (2) Period Measurement Mode CNTR 1 interrupt request is generated at rising/falling edge of CNTR1 pin input signal. Simultaneously, the value in timer Y latch is reloaded in timer Y and timer Y continues counting down.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Timer 1, Timer 2, Timer 3 Timer 1, timer 2, and timer 3 are 8-bit timers. The count source for each timer can be selected by timer 123 mode register. The timer latch value is not affected by a change of the count source. However, because changing the count source may cause an inadvertent count down of the timer, rewrite the value of timer whenever the count source is changed.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER SERIAL I/O (1) Clock Synchronous Serial I/O Mode Serial I/O can be used as either clock synchronous or asynchronous (UART) serial I/O. A dedicated timer (baud rate generator) is also provided for baud rate generation. Clock synchronous serial I/O can be selected by setting the mode selection bit of the serial I/O control register to “1”. For clock synchronous serial I/O, the transmitter and the receiver must use the same clock.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER ter, but the two buffers have the same address in memory. Since the shift register cannot be written to or read from directly, transmit data is written to the transmit buffer, and receive data is read from the receive buffer. The transmit buffer can also hold the next data to be transmitted, and the receive buffer register can hold a character while the next character is being received.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER [Transmit Buffer/Receive Buffer Register (TB/RB)] 001816 The transmit buffer register and the receive buffer register are located at the same address. The transmit buffer register is write-only and the receive buffer register is read-only. If a character bit length is 7 bits, the MSB of data stored in the receive buffer register is “0”.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER b7 b0 Serial I/O status register (SIOSTS : address 001916) Transmit buffer empty flag (TBE) 0: Buffer full 1: Buffer empty Serial I/O control register (SIOCON : address 001A16) BRG count source selection bit (CSS) 0: f(XIN) (f(XCIN) in low-speed mode) 1: f(XIN)/4 (f(XCIN)/4 in low-speed mode) Transmit shift register shift completion flag (TSC) 0: Transmit shift in progress 1: Transmit shift completed Overrun error flag (OE) 0: N
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER A-D CONVERTER [A-D Conversion Register (AD)] 003516 The A-D conversion register is a read-only register that contains the result of an A-D conversion. When reading this register during an A-D conversion, the previous conversion result is read.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER LCD DRIVE CONTROL CIRCUIT The 3822 group has the built-in Liquid Crystal Display (LCD) drive control circuit consisting of the following. ●LCD display RAM ●Segment output enable register ●LCD mode register ●Selector ●Timing controller ●Common driver ●Segment driver ●Bias control circuit A maximum of 32 segment output pins and 4 common output pins can be used. Up to 128 pixels can be controlled for LCD display.
SEG0 P34/SEG12 SEG1 SEG2 SEG3 Bias control bit VSS VL1 VL2 VL3 Bias control LCD display RAM P16/SEG30 P17/SEG31 Segment Segment driver driver Segment Segment Segment driver driver driver Segment driver Address 004F16 Selector Selector Address 004116 Selector Selector Selector Selector Address 004016 Data bus 2 COM0 COM1 COM2 COM3 Common Common Common Common driver driver driver driver Timing controller 2 LCDCK LCD divider LCD circuit divider division ratio selection bits Duty rati
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Bias Control and Applied Voltage to LCD Power Input Pins To the LCD power input pins (VL1 –VL3 ), apply the voltage shown in Table 12 according to the bias value. Select a bias value by the bias control bit (bit 2 of the LCD mode register).
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER LCD Display RAM LCD Drive Timing Address 004016 to 004F16 is the designated RAM for the LCD display. When “1” are written to these addresses, the corresponding segments of the LCD display panel are turned on.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Internal logic LCDCK timing 1/4 duty Voltage level VL3 VL2=VL1 VSS COM0 COM1 COM2 COM3 VL3 VSS SEG0 OFF COM3 ON COM2 COM1 OFF COM0 COM3 ON COM2 COM1 COM0 1/3 duty VL3 VL2=VL1 VSS COM0 COM1 COM2 VL3 VSS SEG0 ON OFF COM0 COM2 ON COM1 OFF COM0 COM2 ON COM1 OFF COM0 COM2 1/2 duty VL3 VL2=VL1 VSS COM0 COM1 VL3 VSS SEG0 ON OFF ON OFF ON OFF ON OFF COM1 COM0 COM1 COM0 COM1 COM0 COM1 COM0 Fi
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Internal logic LCDCK timing 1/4 duty Voltage level VL3 VL2 VL1 VSS COM0 COM1 COM2 COM3 VL3 SEG0 VSS OFF COM3 ON COM2 COM1 OFF COM0 COM3 ON COM2 COM1 COM0 1/3 duty VL3 VL2 VL1 VSS COM0 COM1 COM2 VL3 SEG0 VSS ON OFF COM0 COM2 ON COM1 OFF COM0 COM2 ON COM1 OFF COM0 COM2 1/2 duty VL3 VL2 VL1 VSS COM0 COM1 VL3 SEG0 VSS ON OFF ON OFF ON OFF ON OFF COM1 COM0 COM1 COM0 COM1 COM0 COM1 COM0 F
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER φ CLOCK SYSTEM OUTPUT FUNCTION The internal system clock φ can be output from port P4 1 by setting the φ output control register. Set bit 1 of the port P4 direction register to “1” when outputting φ clock. b7 b0 φ output control register (CKOUT : address 002A16) φ output control bit 0 : port function 1 : φ clock output Not used (return “0” when read) Fig.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER RESET CIRCUIT Power on To reset the microcomputer, RESET pin should be held at an “L” level for 2 µs or more. Then the RESET pin is returned to an “H” level (the power source voltage should be between VCC(min.) and 5.5 V, and the quartz-crystal oscillator should be stable), reset is released.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Register Contents 0016 (1) Port P0 direction register Address 000116 (2) Port P1 direction register 000316 0016 (3) Port P2 direction register 000516 0016 (4) Port P4 direction register 000916 0016 (5) Port P5 direction register 000B16 0016 (6) Port P6 direction register 000D16 0016 (7) Port P7 direction register 000F16 (8) PULL register A 001616 0016 0 1 (9) PULL register B 001716 (10) Sirial I/O
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER CLOCK GENERATING CIRCUIT The 3822 group has two built-in oscillation circuits. An oscillation circuit can be formed by connecting a resonator between XIN and XOUT (XCIN and X COUT). Use the circuit constants in accordance with the resonator manufacturer's recommended values. No external resistor is needed between XIN and XOUT since a feed-back resistor exists on-chip.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER XCOUT XCIN “1” “0” Port XC switch bit XIN XOUT Timer 1 count source selection bit Internal system clock selection bit (Note) Low-speed mode “1” 1/2 “0” Middle-/High-speed mode Timer 2 count source selection bit “1” 1/2 1/4 Timer 1 “0” “0” Timer 2 “1” Main clock division ratio selection bit “1” Middle-speed mode Timing φ (Internal system clock) “0” High-speed mode or Low-speed mode Main clock stop bit Q S S R STP
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Reset ” “0 CM ” 6 “1 M C ” “1 ” “0 Middle-spe ed mode (f(φ) = 1 MHz) C “0 M4 CM” “1 6 ” “1 ” “0 ” “0” CM6 “1” “0” High-speed mode (f(φ) = 4 MHz) CM7 = 0 (8 MHz selected) CM6 = 0 (High-speed) CM5 = 0 (8 MHz oscillating) CM4 = 1 (32 kHz oscillating) CM7 “1” CM7 “1” “0” CM6 “1” “0” CM7 = 0 (8 MHz selected) CM6 = 1 (Middle-speed) CM5 = 0 (8 MHz oscillating) CM4 = 1 (32 kHz oscillatin g) CM7 = 0 (8 MHz selected) CM6 = 0 (
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER NOTES ON PROGRAMMING Processor Status Register A-D Converter The contents of the processor status register (PS) after a reset are undefined, except for the interrupt disable flag (I) which is “1”. After a reset, initialize flags which affect program execution. In particular, it is essential to initialize the index X mode (T) and the decimal mode (D) flags because of their effect on calculations.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER NOTES ON USE Countermeasures against noise Noise (1) Shortest wiring length ➀ Wiring for RESET pin Make the length of wiring which is connected to the RESET pin as short as possible. Especially, connect a capacitor across the RESET pin and the VSS pin with the shortest possible wiring (within 20mm). ● Reason The width of a pulse input into the RESET pin is determined by the timing necessary conditions.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER (3) Oscillator concerns In order to obtain the stabilized operation clock on the user system and its condition, contact the oscillator manufacturer and select the oscillator and oscillation circuit constants. Be careful especially when range of votage and temperature is wide. Also, take care to prevent an oscillator that generates clocks for a microcomputer operation from being affected by other signals.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER DATA REQUIRED FOR MASK ORDERS ROM PROGRAMMING METHOD The following are necessary when ordering a mask ROM production: 1.Mask ROM Order Confirmation Form✽ 2.Mark Specification Form✽ 3.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 15 Absolute maximum ratings (Standard, One Time PROM version) Symbol VCC VI Parameter Power source voltage Input voltage P00–P07, P10–P17, P20–P27, P34–P37, P40–P47, P50–P57 P60–P67, P70, P71 VI VI VI VI VO Input voltage Input voltage Input voltage Input voltage Output voltage VO Output voltage P34–P37 VO Output voltage P20–P27, P41–P47,P50–P57, P60–P67, P70, P71 Output voltage SEG0–SEG11 Output voltage XOUT Power dissi
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 17 Recommended operating conditions (Standard, One Time PROM version) (VCC = 2.5 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 18 Electrical characteristics (Standard, One Time PROM version) (VCC =4.0 to 5.5 V, Ta = –20 to 85°C, unless otherwise noted) Symbol Parameter VOH “H” output voltage P00–P07, P10–P17 VOH “H” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) VOL VOL “L” output voltage P00–P07, P10–P17 “L” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) Test conditions IOH = –2.5 mA IOH = –0.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 19 Electrical characteristics (Standard, One Time PROM version) (VCC = 2.5 to 5.5 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol VRAM Parameter RAM retention voltage Test conditions Min. Limits Typ. 2.0 At clock stop mode • High-speed mode, VCC = 5 V Max. 5.5 Unit V f(XIN) = 8 MHz f(XCIN) = 32.768 kHz Output transistors “off” 6.4 13 mA 1.6 3.2 mA 25 36 µA 7.0 14 µA 15 22 µA 4.5 9.0 µA 0.1 1.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 21 Timing requirements 1 (Standard, One Time PROM version) (VCC = 4.0 to 5.5 V, VSS = 0 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol tw(RESET) tc(XIN) twH(XIN) twL(XIN) tc(CNTR) twH(CNTR) twL(CNTR) twH(INT) twL(INT) tc(SCLK) twH(SCLK) twL(SCLK) tsu(RXD–SCLK) th(SCLK–RXD) Parameter Min.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 23 Switching characteristics 1 (Standard, One Time PROM version) (VCC = 4.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 25 Absolute maximum ratings (Extended operating temperature version) Symbol VCC VI Parameter Power source voltage Input voltage P00–P07, P10–P17, P20–P27, P34–P37, P40–P47, P50–P57 P60–P67, P70, P71 VI VI VI VI VO Input voltage Input voltage Input voltage Input voltage Output voltage VO Output voltage P34–P37 VO Output voltage P20–P27, P41–P47,P50–P57, P60–P67, P70, P71 Output voltage SEG0–SEG11 Output voltage XOUT Powe
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 27 Recommended operating conditions (Extended operating temperature version) (VCC = 2.0 to 5.5 V, Ta = –20 to 85 °C, and VCC = 3.0 to 5.5 V, Ta = –40 to –20° C, unless otherwise noted) Symbol ΣIOH(peak) ΣIOH(peak) ΣIOL(peak) ΣIOL(peak) ΣIOH(avg) ΣIOH(avg) ΣIOL(avg) ΣIOL(avg) IOH(peak) IOH(peak) IOL(peak) IOL(peak) IOH(avg) IOH(avg) IOL(avg) IOL(avg) f(CNTR0) f(CNTR1) Parameter Min. Limits Typ.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 28 Electrical characteristics (Extended operating temperature version) (VCC =2.0 to 5.5 V, Ta = –20 to 85 °C, and VCC = 3.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 29 Electrical characteristics (Extended operating temperature version) (VCC =2.0 to 5.5 V, Ta = –20 to 85 °C, and VCC = 3.0 to 5.5 V, Ta = –40 to –20 °C, unless otherwise noted) Symbol VRAM Parameter RAM retention voltage Test conditions Min. Limits Typ. 2.0 At clock stop mode • High-speed mode, VCC = 5 V Max. 5.5 Unit V f(XIN) = 8 MHz f(XCIN) = 32.768 kHz Output transistors “off” 6.4 13 mA 1.6 3.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 31 Timing requirements 1 (Extended operating temperature version) (VCC = 4.0 to 5.5 V, VSS = 0 V, Ta = –40 to 85 °C, unless otherwise noted) Symbol tw(RESET) tc(XIN) twH(XIN) twL(XIN) tc(CNTR) twH(CNTR) twL(CNTR) twH(INT) twL(INT) tc(SCLK) twH(SCLK) twL(SCLK) tsu(RXD–SCLK) th(SCLK–RXD) Parameter Min.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 33 Switching characteristics 1 (Extended operating temperature version) (VCC = 4.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 35 Absolute maximum ratings (M version) Symbol VCC VI Parameter Power source voltage Input voltage P00–P07, P10–P17, P20–P27, P34–P37, P40–P47, P50–P57 P60–P67, P70, P71 VI VI VI VI VO Input voltage Input voltage Input voltage Input voltage Output voltage VO Output voltage P34–P37 VO Output voltage P20–P27, P41–P47,P50–P57, P60–P67, P70, P71 Output voltage SEG0–SEG11 Output voltage XOUT Power dissipation Operating tempe
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 37 Recommended operating conditions (M version) (VCC = 2.5 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 39 Recommended operating conditions (M version) (VCC = 2.2 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 40 Electrical characteristics (M version) (VCC = 4.0 to 5.5 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol Parameter VOH “H” output voltage P00–P07, P10–P17 VOH “H” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) VOL VOL “L” output voltage P00–P07, P10–P7 “L” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) Test conditions IOH = –2.5 mA IOH = –0.6 mA VCC = 2.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 41 Electrical characteristics (M version) (VCC = 2.2 to 5.5 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol VRAM Parameter RAM retention voltage Test conditions Min. Limits Typ. 2.0 At clock stop mode • High-speed mode, VCC = 5 V Max. 5.5 Unit V f(XIN) = 8 MHz f(XCIN) = 32.768 kHz Output transistors “off” 6.4 13 mA 1.6 3.2 mA 25 36 µA 7.0 14 µA 15 22 µA 4.5 9.0 µA 0.1 1.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 43 Timing requirements 1 (M version) (VCC = 4.0 to 5.5 V, VSS = 0 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol tw(RESET) tc(XIN) twH(XIN) twL(XIN) tc(CNTR) twH(CNTR) twL(CNTR) twH(INT) twL(INT) tc(SCLK) twH(SCLK) twL(SCLK) tsu(RXD–SCLK) th(SCLK–RXD) Parameter Min.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 45 Switching characteristics 1 (M version) (VCC = 4.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 47 Absolute maximum ratings (H version) Symbol VCC VI Parameter Power source voltage Input voltage P00–P07, P10–P17, P20–P27, P34–P37, P40–P47, P50–P57 P60–P67, P70, P71 VI VI VI VI VO Input voltage Input voltage Input voltage Input voltage Output voltage VO Output voltage P34–P37 VO Output voltage P20–P27, P41–P47,P50–P57, P60–P67, P70, P71 Output voltage SEG0–SEG11 Output voltage XOUT Power dissipation Operating tempe
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 49 Recommended operating conditions (H version) (VCC = 2.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 50 Electrical characteristics (H version) (VCC = 4.0 to 5.5 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol Parameter VOH “H” output voltage P00–P07, P10–P17 VOH “H” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) VOL VOL “L” output voltage P00–P07, P10–P7 “L” output voltage P20–P27, P41–P47, P50–P57, P60–P67, P70, P71 (Note) Test conditions IOH = –2.5 mA IOH = –0.6 mA VCC = 2.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 51 Electrical characteristics (H version) (VCC =2.0 to 5.5 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol VRAM Parameter RAM retention voltage Test conditions Min. Limits Typ. 2.0 At clock stop mode • High-speed mode, VCC = 5 V Max. 5.5 Unit V f(XIN) = 8 MHz f(XCIN) = 32.768 kHz Output transistors “off” 6.4 13 mA 1.6 3.2 mA 25 36 µA 7.0 14 µA 15 22 µA 4.5 9.0 µA 0.1 1.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 53 Timing requirements 1 (H version) (VCC = 4.0 to 5.5 V, VSS = 0 V, Ta = –20 to 85 °C, unless otherwise noted) Symbol tw(RESET) tc(XIN) twH(XIN) twL(XIN) tc(CNTR) twH(CNTR) twL(CNTR) twH(INT) twL(INT) tc(SCLK) twH(SCLK) twL(SCLK) tsu(RXD–SCLK) th(SCLK–RXD) Parameter Min.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER Table 55 Switching characteristics 1 (H version) (VCC = 4.0 to 5.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER tC(CNTR) tWH(CNTR) CNTR0, CNTR1 tWL(CNTR) 0.8VCC 0.2VCC tWH(INT) INT0–INT3 tWL(INT) 0.8VCC 0.2VCC tW(RESET) RESET 0.8VCC 0.2VCC tC(XIN) tWL(XIN) tWH(XIN) XIN 0.8VCC 0.2VCC tC(SCLK) tf tr tWL(SCLK) SCLK 0.8VCC 0.2VCC tsu(RXD-SCLK) RXD tWH(SCLK) th(SCLK-RXD) 0.8VCC 0.2VCC td(SCLK-TXD) tv(SCLK-TXD) TXD Fig.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER PACKAGE OUTLINE MMP 80P6N-A EIAJ Package Code QFP80-P-1420-0.80 Plastic 80pin 14✕20mm body QFP Weight(g) 1.58 Lead Material Alloy 42 MD e JEDEC Code – 65 b2 80 ME HD D 1 64 I2 24 Symbol HE E Recommended Mount Pad 41 25 A 40 c A2 L1 A A1 A2 b c D E e HD HE L L1 x y b x A1 F e M L Detail F y 80P6S-A MMP EIAJ Package Code QFP80-P-1414-0.65 b2 I2 MD ME Dimension in Millimeters Min Nom Max – – 3.
MITSUBISHI MICROCOMPUTERS 3822 Group SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MMP Plastic 80pin 12✕12mm body LQFP Weight(g) 0.47 JEDEC Code – Lead Material Cu Alloy MD HD b2 D 80 ME EIAJ Package Code LQFP80-P-1212-0.5 e 80P6Q-A 61 1 l2 Recommended Mount Pad 60 A A1 A2 b c D E e HD HE L L1 Lp HE E Symbol 41 20 21 40 A L1 F M y L Detail F Lp c x A1 b A3 A2 e A3 x y b2 I2 MD ME Dimension in Millimeters Min Nom Max – – 1.7 0.1 0.2 0 – – 1.4 0.13 0.18 0.28 0.105 0.125 0.
REVISION HISTORY Rev. 3822 GROUP DATA SHEET Date Description Summary Page 1.0 01/20/98 2.0 10/23/00 First Edition 1 1 1 1 1 1 1 2 3 4 5 6 7 7 7 8 8 8 9 9 9 10 10 10 11–13 11 12 12 13 15 17 18 21 22 22 22 22 24 25 26 26 29 30 32 33 33 34 “●Memory size” of “FEATURES” is partly revised. “●Serial I/O” of “FEATURES” is partly revised. “●A-D converter” of “FEATURES” is added. “●2 clock generating circuits” of “FEATURES” is partly revised. “●Power source voltage” of “FEATURES” is partly revised.
REVISION HISTORY Rev. 3822 GROUP DATA SHEET Date Description Summary Page 2.0 10/23/00 35 40 41 41 43 46 47 47 50 52 52 52 52 52 52 54–72 74, 75 Figure 33 is partly revised. Explanations of “φ CLOCK SYSTEM OUTPUT FUNCTION” are partly revised. Explanations of “RESET CIRCUIT” are partly revised. Figure 39 is partly revised. Explanations of “CLOCK GENERATING CIRCUIT” are partly eliminated. Explanations of “Decimal Calculations” are partly eliminated.