MYSON TECHNOLOGY MTU420 4-Bit Micro-Controller with LCD Driver, 2K Word FEATURES • Wide operating voltage range: Supply Voltage 4.5V to 5.5V 4V to 5V 2.4V to 3.3V 1.2V to 1.65V • • • • • • • • • • • • • • Cycle Time 122µs,280ns 122µs,280ns 122µs,2.2us 122µs Clock Usage dual clock dual clock dual clock slow clock only Remark Max. 3.58MHz Max. 3.58MHz Max. 455KHz 32.768KHz 118 instruction sets: - Binary addition, subtraction, BCD adjustment, logical operation in direct addressing mode and index addressing mode. - Single-bit manipulation (set, reset, decision for branch). - 4-bit input/output. - Various conditional branches. - 16 working registers and manipulation. - LCD driver data transfer. - Look-up table. - Programmable option. - System clock selection. 8-level subroutine nesting. Interrupt function: - External factor: 2 (INT pin or ports S, M). - Internal factor: 2 (timer, divider). ROM/RAM capacity: - ROM capacity . . . . . 2048 x 16 bits. - RAM capacity . . . . . 128 x 4 bits. Watchdog timer. Input/Output ports: - Input ports . . . . . 2 ports/8pins (S, M). - Output port . . . . . 1 port/4pins (P). - Pseudo serial output port . . . . . Also used for output port. - Input/Output ports . . . . . 2 ports/8pins (I/OA, I/OB). 2 control outputs . . . . . light, alarm. LCD driver output: - 26 LCD driver outputs (up to 156 LCD segments are drivable). - Mask option is used to select static ½ duty, ½ bias ½ duty, ½ bias 1/3 duty, ½ bias ¼ duty, 1/3 bias 1/3 duty, ½ bias ¼ duty and 1/3 bias 1/6 duty drive modes of the LCD panel. - Mask option permits LCD driver output pins to be used for output ports. - Segment PLA circuit permits any layout on the LCD panel. Built-in doubler, halver, tripler. One 6-bit timer with programmable option clock. 128-byte look-up table for LCD display pattern or 256-nibble look-up table for general purpose. Halt function. Stop function. Dual clock operation. This datasheet contains new product information. Myson Technology reserves the rights to modify the product specification without notice. No liability is assumed as a result of the use of this product. No rights under any patent accompany the sale of the product. 1/11 MTU420 Revision 2.9 02/17/19981/11 MYSON TECHNOLOGY MTU420 GENERAL DESCRIPTION The MTU420 is an LCD driver with an embedded high-performance 4-bit microcomputer. It contains all the necessary functions in a single chip: dual clock, 4-bit parallel processing ALU, ROM, RAM, input/output ports, timer, clock generator, LCD driver, look-up table and watchdog timer. The set of 118 instructions includes not only 4-bit operation and manipulation instruction but also various conditional branch instructions, and LCD driver data transfer instructions that are powerful and easy to follow. The halt function stops internal operations other than the oscillator, divider and LCD driver in order to minimize power dissipation. The stop function stops all clocks in the chip. I/O B1~4 P1~4 LIGHT I/O A1~4 ALARM BLOCK DIAGRAM S1~4 M1~4 COM1~6 VDD1 VDD2 VDD3 26 SEGMENTS LCD DRIVE BIDIRECTION I/O PORT OUTPUT PORT SEGMENT PLA XTIN XTOUT INPUT PORT AC DAA OSC CKT LOOK-UP TABLE 128x8 CFIN CFOUT SCG CUP1 CUP2 ALU WAIT CNT T1 T2 T3 T4 INDEX BUFFER RAM (128x4) 6-BIT PRESET TIMER 11-BIT PC INSTRUCTION DECODE CONTROL CIRCUIT STACK 8 LEVELS ROM (2048x16) PREDIVIDER WATCHDOG TIMER RES INT MTU420 Revision 2.9 02/17/1998 2/11 MYSON TECHNOLOGY MTU420 1.0 CONNECTION DIAGRAM 20 10 30 Pad No. 1 69 40 50 60 2.0 PIN ASSIGNMENT Pin No. Pin Name X (um) 1 VDD 4127 2 VDD1 4110.5 3 VDDO 4110.5 4 VDD2 4078 5 ALM 4127 6 LIGHT 4127 7 S4 4079.5 8 S3 3919.5 9 IOA1 3759.5 10 IOA2 3599.5 11 IOA3 3439.5 12 IAO4 3279.5 13 IOB1 3119.5 14 IOB2 2959.5 15 IOB3 2799.5 16 IOB4 2639.5 17 RES 2479.5 18 INT 1862.5 19 P1 1702.5 20 P2 1542.5 21 P3 1382.5 22 P4 1222.5 1062.5 23 M1 24 M2 902.5 *Note: The substrate of Y (um) Pin No. Pin Name X (um) 1311 25 M3 742.5 1471 26 M4 582.5 1631 27 TESTA 422.5 1791 28 CUP1 109 2142.5 29 CUP2 109 2440.5 30 S2 154.5 2700.5 31 S1 154.5 2770.5 32 XTIN 154.5 2770.5 33 XTOUT 154.5 2770.5 34 CFIN 154.5 2770.5 35 CFOUT 154.5 2770.5 36 COM1 133 2770.5 37 COM2 133 2770.5 38 COM3 133 2770.5 39 SEG1 112.5 2770.5 40 SEG2 272.5 2770.5 41 SEG3 432.5 2770.5 42 SEG4 592.5 2770.5 43 SEG5 752.5 2770.5 44 SEG6 912.5 2770.5 45 SEG7 1072.5 2770.5 46 SEG8 1232.5 2770.5 47 SEG9 1392.5 2770.5 48 SEG10 1552.5 die must connect to GND. Y (um) Pin No. Pin Name X (um) Y (um) 2770.5 2770.5 2770.5 2757 2190 1891 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 COM4 COM5 COM6 VDD3 GND 1712.5 1872.5 2032.5 2192.5 2352.5 2512.5 2672.5 2832.5 2992.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 225.5 461 621 781 981 1151 1725.5 1460.5 1300.5 980.5 1140.5 730.5 570.5 410.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 125.5 3152.5 3312.5 3472.5 3632.5 3792.5 3952.5 4112.5 4092 4092 4092 4127 4127 MTU420 Revision 2.9 02/17/1998 3/11 MYSON TECHNOLOGY MTU420 3.0 PIN DESCRIPTIONS Name XTIN XTOUT Type I O CFIN CFOUT I O S1 - 4 I M1 - 4 I IOA1-4 I/O IOB1-4 I/O P1 - 4 O INT I VDD LIGHT ALM O O RES I GND VDD3 VDD2 VDD1 Description - Time-based counter frequency (clock specified, LCD alternating frequency, alarm signal frequency) or system clock oscillation. - 32KHz crystal oscillator. - Oscillation stops at the execution of stop instruction. - System clock oscillation. - Connected with ceramic resonator or crystal oscillator. - Connected with RC oscillation circuit. - Oscillation stops at the execution of stop or SLOW instruction. - Input port. - Input pins for data storage into RAM area (with chattering prevention). - Internal chattering prevention circuit (32ms, 8ms, 2ms selectable by application program). - Internal pull-down resistor (selectable by application program). - Internal "L"-level logic holds Tr (selectable by mask option). Note: The chattering prevention circuit parameters, 32ms, 8ms and 2ms, apply to the 32.768KHz fundamental frequency input mode. - Input port. - Input pins for data storage into RAM area. - Internal chattering prevention circuit (32ms, 8ms, 2ms selectable by application program). - Internal pull-down resistor (selectable by application program). - Internal "L"-level logic holds Tr (selectable by mask option). Note: The chattering prevention circuit parameters, 32ms, 8ms and 2ms, apply to the 32.768KHz fundamental frequency input mode. - Input/ Output port. - Input pins for data storage into the RAM area. - Output pin for data reading from the RAM area. - Input/ Output port. - Input pins for data storage into the RAM area. - Output pin for data reading from the RAM area. - Output port. - Output pin for data output from the RAM area. - Input port. - Input pin for external request signal. - Interrupt detection signal edge selection by mask option: falling edge and rising edge. - Internal pull-down and pull-up resistor (selectable by mask option). - Positive supply voltage. Note: When using Li version, a capacitor must be connected across GND and VDD to prevent the logic unit from malfunctioning. - Output port. - Output port. - Output alarm signal: modulated signals with a frequency of 4kHz, 2kHz or 1kHz. In this case, these modulated frequencies are generated and then outputted if the fundamental frequency is 32.768kHz. - Input pin from LSI reset request signal. - Internal pull-down resistor. - Negative supply voltage. - LCD drive voltage. MTU420 Revision 2.9 02/17/1998 4/11 MYSON TECHNOLOGY Name VDDO Type CUP1 - 2 O COM1 - 6 O SEG1 - 26 O TESTA * MTU420 Description - Positive supply voltage. * For Ag version, apply positive supply voltage to VDD1. For other than Ag version, apply positive supply voltage to VDD2. - Switching pins for supplying the LCD driving voltage to the VDD1 and VDD2 pins. - Connect the CUP1 and CUP2 pins with the nonpolarized electrolytic capacitor if 1/2 or 1/3 bias mode has been selected. - In the static mode, these pins should be left open. - Output pins for supplying voltage to drive the common pins of the LCD panel. - Frequency can be doubled or quadrupled with PLA. - Output pins for LCD panel segments. * Also used as output ports with mask option. - Test signal input pin. 4.0 ABSOLUTE MAXIMUM RATINGS at GND = 0V Name Maximum Supply Voltage Maximum Input Voltage Maximum Output Voltage Maximum Operating Temperature Maximum Storage Temperature Symbol VDD1 VDD2 VDD3 VDDO Vin1 Vout1 Vout2 Condition Range -0.3 to 5.5 -0.3 to 5.5 -0.3 to 8.5 -0.3 to 5.5 -0.3 to VDDO+0.3 -0.3 to VDDO+0.3 -0.3 to VDD3+0.3 output port LCD segment driver Unit V V V V V V V Topg 0 to +70 oC Tstg -25 to +125 oC 5.0 ALLOWABLE OPERATING CONDITIONS at Ta = 0 to 70oC, GND = 0V Name Symb. VDD1 VDD2 Supply Voltage VDD3 VDDO VDD1 Supply Voltage VDD2 VDD3 Oscillator Start-Up VDD Voltage Oscillator Sustain VDD Voltage Supply Voltage VDD1 Supply Voltage VDD2 Input "H" Voltage Vih1 Input "L" Voltage Vil1 Input "H" Voltage Vih2 Condition External RC Mode Crystal Mode Min. 1.5 3.5 3.5 1.5 1.2 2.4 2.4 Max. 5.25 5.25 8.0 5.25 5.25 5.25 8.0 Unit V V V V V V V Crystal Mode 1.3 V Crystal Mode 1.2 V Ag Mode EXT-V, Li Ag Battery Mode Li Battery Mode 1.2 2.4 VDD1-0.7 -0.7 VDD2-0.7 1.65 5.25 VDD1+0.7 0.7 VDD2+0.7 V V V V V MTU420 Revision 2.9 02/17/1998 5/11 MYSON TECHNOLOGY Input "L" Voltage Input "H" Voltage Input "L" Voltage Input "H" Voltage Input "L" Voltage Input "H" Voltage Input "L" Voltage Input "H" Voltage Input "L" Voltage Operating Freq. Vil2 Vih3 Vil3 Vih4 Vil4 Vih5 Vil5 Vih6 Vil6 Fopg1 Fopg2 Fopg3 OSCIN & Ag Battery Mode OSCIN & Li Battery Mode CFIN at Li Battery or EXT-V Mode RC Mode Crystal Mode External RC Mode CF Mode MTU420 -0.7 0.8 x VDD1 0 0.8 x VDD2 0 0.8 x VDD2 0 0.8 x VDDO 0 32 32 1000 +0.7 VDD1 0.2 x VDD1 VDD2 0.2 x VDD2 VDD2 0.2 x VDD2 VDDO 0.2 x VDDO 3580 1000 3580 V V V V V V V V V KHz KHz KHz 6.0 ELECTRICAL CHARACTERISTICS 6.1 Input Resistance at #1: VDD1 = 1.2V (Ag); #2: VDD2 = 2.4V (Li); Name Symb. Condition Rllh1 Vi = 0.2VDD1, #1 "L"-Level Hold Tr Rllh2 Vi = 0.2VDD2, #2 Rllh3 Vi = 0.2VDD2, #3 Rmsd1 Vi = VDD1, #1 M/S Pull-Down Tr Rmsd2 Vi = VDD2, #2 Rmsd3 Vi = VDD2, #3 Rintu1 Vi = VDD1, #1 INT Pull-Up Tr Rintu2 Vi = VDD2, #2 Rintu3 Vi = VDD2, #3 Rintd1 Vi = GND, #1 INT Pull-Down Tr Rintd2 Vi = GND, #2 Rintd3 Vi = GND, #3 Rres1 Vi = GND or VDD1, #1 RES Pull-Down R Rres2 Vi = GND or VDD2, #2 Rres3 Vi = GND or VDD2, #3 6.2 DC Output Characteristics at #1: VDD1 = 1.2V (Ag); #2: VDD2 = 2.4V (Li); Name Symb. Condition Voh1a Ioh = -200uA, #1 Output "H" Voltage Voh2a Ioh = -1mA, #2 Voh3a Ioh = -3mA, #3 Vol1a Iol = 400uA, #1 Output "L" Voltage Vol2a Iol = 2mA, #2 Vol3a Iol = 6mA, #3 Voh1b Ioh = -100uA, #1 Output "H" Voltage Voh2b Ioh = -500uA, #2 Voh3b Ioh = -1.5mA, #3 Vol1b Iol = 200uA, #1 Output "L" Voltage Vol2b Iol = 1mA, #2 Vol3b Iol = 3mA, #3 #3: VDD2 = 4V (ExtV). Min. Typ. Max. 10 50 200 10 40 100 5 20 50 200 700 2000 200 500 1000 100 250 500 200 700 2000 200 500 1000 100 250 500 200 700 2000 200 500 1000 100 250 500 5 20 50 5 20 50 5 20 50 #3: VDD2 = 4V (ExtV). Port Min. Typ. -0.5 -0.3 -1 -0.6 -1.5 -1.0 Alarm Light -1.1 -0.9 -2.1 -1.8 -3.5 -3.0 -0.5 -0.3 -1 -0.6 P-port -1.5 -1.0 IOA-n -1.1 -0.9 IOB-n -2.1 -1.8 -3.5 -3.0 Max. -0.1 -0.3 -0.5 -0.7 -1.4 -2.5 -0.1 -0.3 -0.5 -0.7 -1.4 -2.5 Unit Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Kohm Unit V V V V V V V V V V V V MTU420 Revision 2.9 02/17/1998 6/11 MYSON TECHNOLOGY MTU420 6.3 Segment Driver Output Characteristics at #1: VDD1 = 1.2V (Ag); #2: VDD2 = 2.4V (Li); #3: VDD2 = 4V (ExtV). Name Symb. Condition for Min. Typ. CMOS Output Mode Voh1c Ioh = -10uA, #1 -0.5 -0.3 Voh2c Ioh = -50uA, #2 -1 -0.6 Output "H" Voltage Voh3c Ioh = -200uA, #3 -1.5 -1.0 SEG-n Vol1c -1.1 -0.9 Iol = 20uA, #1 Vol2c -2.1 -1.8 Output "L" Voltage Iol = 100uA, #2 Vol3c -3.5 -3.0 Iol = 400uA, #3 Static Display Mode Voh1d Ioh = -1uA, #1 -0.2 Voh2d Ioh = -1uA, #2 -0.2 Output "H" Voltage Voh3d Ioh = -1uA, #3 -0.2 SEG-n Vol1d Iol = 1uA, #1 Vol2d Output "L" Voltage Iol = 1uA, #2 Vol3d Iol = 1uA, #3 Voh1e Ioh = -10uA, #1 -0.2 Voh2e Ioh = -10uA, #2 -0.2 Output "H" Voltage Voh3e Ioh = -10uA, #3 -0.2 COM-n Vol1e Iol = 10uA, #1 Vol2e Output "L" Voltage Iol = 10uA, #2 Vol3e Iol = 10uA, #3 1/2 Bias Display Mode Voh12f Ioh = -1uA, #1, #2 -0.2 Output "H" Voltage Voh3f -0.2 Ioh = -1uA, #3 SEG-n Vol12f Iol = 1uA, #1, #2 Output "L" Voltage Vol3f Iol = 1uA, #3 Voh12g Ioh = -10uA, #1, #2 -0.2 Output "H" Voltage Voh3g Ioh = -10uA, #3 -0.2 Vom12g Iol/h= +/-10uA, #1, #2 -1.4 COM-n Output "M" Voltage Vom3g Iol/h= +/-10uA, #3 -2.2 Vol12g Iol = 10uA, #1 Output "L" Voltage Vol3g Iol = 10uA, #3 1/3 Bias Display Mode Voh12j Ioh = -1uA, #1, #2 -0.2 Output "H" Voltage Voh3j -0.2 Ioh = -1uA, #3 Vom12j Iol/h= +/-10uA, #1, #2 -1.4 Output"M1" Voltage Vom13j Iol/h= +/-10uA, #3 -2.2 SEGn Vom22j Iol/h= +/-10uA, #1, #2 -2.6 Output"M2" Voltage Vom23j Iol/h= +/-10uA, #3 -4.2 Vol2j Iol = 1uA, #1,#2 Output "L" Voltage Vol3j Iol = 1uA, #3 Voh2k Ioh = -10uA, #1,#2 -0.2 Output "H" Voltage Voh3k Ioh = -10uA, #3 -0.2 Vom12k Iol/h= +/-10uA, #1, #2 -1.4 Output"M1" Voltage Vom13k Iol/h= +/-10uA, #3 -2.2 COMn Vom22k Iol/h= +/-10uA, #1, #2 -2.6 Output"M2" Voltage Vom23k Iol/h= +/-10uA, #3 -4.2 Vol2k Iol = 10uA, #1,#2 Output "L" Voltage Max. Unit -0.1 -0.3 -0.5 -0.7 -1.4 -2.5 V V V V V V -1.0 -2.2 -3.8 -1.0 -2.2 -3.8 -2.2 -3.8 -1.0 -1.8 -2.2 -3.8 -1.0 -1.8 -2.2 -3.8 -3.4 -5.8 -1.0 -1.8 -2.2 -3.8 -3.4 V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V MTU420 Revision 2.9 02/17/1998 7/11 MYSON TECHNOLOGY Vol3k MTU420 -5.8 Iol = 10uA, #3 V 7.0 INSTRUCTION TABLE Instruction NOP LCT Ly,Ry LCB Ly,Ry LCP Ly,Ry OPA Rx OPB Rx MVH Rx MRA Rx MVL Rx OPP Rx OPPS Rx,D INC* Rx INC* @HL DEC* Rx DEC* @HL ADC Rx ADC @HL ADC* Rx ADC* @HL SBC Rx SBC @HL SBC* Rx SBC* @HL ADD Rx ADD @HL ADD* Rx ADD* @HL SUB Rx SUB @HL SUB* Rx SUB* @HL ADN Rx ADN @HL ADN* Rx ADN* @HL AND Rx AND @HL AND* Rx AND* @HL EOR Rx Machine Code 0000 0000 0000 0000 0000 0000 0001 0001 0001 0001 0001 0001 0001 0001 0001 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0000 000L 001L 010L 1100 1110 1010 1010 1011 1100 1101 1110 1110 1111 1111 0000 0000 0001 0001 0010 0010 0011 0011 0100 0100 0101 0101 0110 0110 0111 0111 1000 1000 1001 1001 1010 1010 1011 1011 1100 0000 LLLL LLLL LLLL 0XXX 0XXX 0XXX 1XXX 0XXX 0XXX DXXX 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 1000 0XXX 0000 YYYY YYYY YYYY XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 XXXX Function No Operation (Ly) (Ly) (Ly) Port(IOA) Port(IOB) (@H) CF (@L) Port(P) P1,2,3,4 (AC),(Rx) (AC),(@HL) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • Flag/Remark ((Ry) => decoder) ((Ry) => decoder) (Rx),(AC) (Rx) (Rx) (Rx) (Rx3) (Rx) (Rx) (Rx0)(Rx1),D,Pulse (Rx)+1 (@HL)+1 (Rx)-1 (@HL)-1 (Rx)+(AC)+(CF) (@HL)+(AC)+(CF) (Rx)+(AC)+(CF) (@HL)+(AC)+(CF) (Rx)+(AC)B+(CF) (@HL)+(AC)B+(CF) (Rx)+(AC)B+(CF) (@HL)+(AC)B+(CF) (Rx)+(AC) (@HL)+(AC) (Rx)+(AC) (@HL)+(AC) (Rx)+(AC)B+1 (@HL)+(AC)B+1 (Rx)+(AC)B+1 (@HL)+(AC)B+1 (Rx)+(AC) (@HL)+(AC) (Rx)+(AC) (@HL)+(AC) (Rx) AND (AC) (@HL) AND (AC) (Rx) AND (AC) (@HL) AND (AC) (Rx) EOR (AC) Ly=0000X No Use Ly=0000X No Use Ly=0000X No Use IOA • O/P IOB • O/P CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF MTU420 Revision 2.9 02/17/1998 8/11 MYSON TECHNOLOGY Instruction EOR @HL EOR* Rx EOR* @HL OR Rx OR @HL OR* Rx OR* @HL ADCI Ry,D ADCI* Ry,D SBCI Ry,D SBCI* Ry,D ADDI Ry,D ADDI* Ry,D SUBI Ry,D SUBI* Ry,D ADNI Ry,D ADNI* Ry,D ANDI Ry,D ANDI* Ry,D EORI Ry,D EORI* Ry,D ORI Ry,D ORI* Ry,D IPS Rx MSD Rx IPM Rx IPA Rx IPA* Rx IPB Rx IPB* Rx MSB Rx 0010 0010 0010 0010 0010 0010 0010 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0100 0100 0100 0100 0100 0100 0100 0100 STA STA SR0 Rx @HL Rx 0100 0101 0XXX XXXX 0100 0101 1000 0000 0100 0110 0XXX XXXX SR1 Rx 0100 0110 1XXX XXXX SL0 Rx 0100 0111 0XXX XXXX SL1 Rx 0100 0111 1XXX XXXX LDS LDH DAA Rx,D 0100 1DDD DXXX XXXX 0101 0000 0XXX XXXX 0101 0100 0000 0000 Rx,@HL Machine Code 1100 1101 1101 1110 1110 1111 1111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0000 0000 0001 0010 0010 0011 0011 0100 1000 0XXX 1000 0XXX 1000 0XXX 1000 DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD DDDD 0XXX 1XXX 0XXX 0XXX 1XXX 0XXX 1XXX 0XXX 0000 XXXX 0000 XXXX 0000 XXXX 0000 YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY YYYY XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX MTU420 (AC) (AC),(Rx) (AC),(@HL) (AC) (AC) (AC),(Rx) (AC),(@HL) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC) (AC),(Ry) (AC),(Rx) (AC),(Rx) (AC),(Rx) (AC),(Rx) (AC),(Rx) (AC),(Rx) (AC),(Rx) (AC),(Rx) Function • (@HL) EOR (AC) • (Rx) EOR (AC) • (@HL) EOR (AC) • (Rx) OR (AC) • (@HL) OR (AC) • (Rx) OR (AC) • (@HL) OR (AC) • (Ry)+D+(CF) • (Ry)+D+(CF) • (Ry)+(D)B+(CF) • (Ry)+(D)B+(CF) • (Ry)+D • (Ry)+D • (Ry)+(D)B+1 • (Ry)+(D)B+1 • (Ry)+D • (Ry)+D • (Ry) AND D • (Ry) AND D • (Ry) EOR D • (Ry) EOR D • (Ry) OR D • (Ry) OR D • Port(S) • WDF,CSF • Port(M) • Port(IOA) • Port(IOA) • Port(IOB) • Port(IOB) • STS2 (Rx) (@HL) ACn, Rxn AC3, Rx3 ACn, Rxn AC3, Rx3 ACn, Rxn AC0, Rx0 ACn, Rxn AC0, Rx0 (AC),(Rx) (Rx) (AC) • • • • • • • • • • • • • (AC) (AC) Rx(n+1) 0 Rx(n+1) 1 Rx(n-1) 0 Rx(n-1) 1 D H(T@HL) BCD(AC) Flag/Remark CF CF CF CF CF CF CF CF IOA • I/P IOB • I/P B0: BCF B1: SCF1(MPT) B2: SCF2(HRF) B3: SCF3(SPT) CF MTU420 Revision 2.9 02/17/1998 9/11 MYSON TECHNOLOGY Instruction DAA* Rx DAA* @HL Rx,@HL LDL DAS DAS* Rx DAS* @HL MSC Rx 0101 0101 0101 0101 0101 0101 0110 Machine Code MAF Rx LDA LDA MRW MWR JB0 JB1 JB2 JB3 JNZ JNC JZ JC JMP CALL Rx @HL Ry,Rx Rx,Ry X X X X X X X X X X (AC),(Rx) (AC),(@HL) (Ry) (AC) (AC),(Rx) (AC),(@HL) (AC),(Rx) Function • BCD(AC) • BCD(AC) • L(T@HL) • BCD(AC) • BCD(AC) • BCD(AC) • STS3 0110 0010 0XXX XXXX (AC),(Rx) • STS1 0110 0110 0111 0111 1000 1000 1001 1001 1010 1010 1011 1011 1100 1100 (AC) • (Rx) (AC) • (HL) (AC),(Ry) • (Rx) (AC),(Rx) • (Ry) (PC) • X if (AC0) = 1 (PC) • X if (AC1) = 1 (PC) • X if (AC2) = 1 (PC) • X if (AC3) = 1 (PC) • X if (AC) ≠ 0 (PC) • X if (CF) = 0 (PC) • X if (AC) = 0 (PC) • X if (CF) = 1 (PC) • X (STACK) • (PC)+1 (PC) • X (PC) • (STACK) CALL Return (PC) • (STACK) INT Return (AC) • (ACR) CF • CFR CF S 1 0 Port select S port M port X2,X1,X0 100 010 001 Port(M)-CK PH6 PH8 PH10 Ly • ((T@HL) => decoder) Ly=000- No Use SEF4 • X4 M1-4 Enable SEF0-3 • X0-3 S1-4 Enable SCLK --> HIGH SPEED CLOCK SCLK --> LOW SPEED CLOCK TIMER • X0-5 C2,C1,C0 100 010 001 Timer-CK PH15 PH9 PH3 0110 0111 1000 1100 1110 1111 0000 1110 1111 0YYY 1YYY 0XXX 1XXX 0XXX 1XXX 0XXX 1XXX 0XXX 1XXX 0XXX 1XXX 0XXX 0000 0XXX 0000 0XXX 0000 0XXX 1XXX 1000 YXXX YXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX 0000 XXXX 0000 XXXX 0000 XXXX XXXX 0000 XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX 1101 0000 0000 0000 RTS SCC S,X 1101 0010 0000 SXXX LCD SMS Ly,@HL 1101 100L LLLL 0000 1110 0000 000X XXXX X 1110 0010 0000 0000 1110 0011 0000 0000 FAST SLOW TMS C,X MTU420 1110 010C CCXX XXXX Flag/Remark CF CF CF CF CF B0: SCF4(INT) B1: SCF5(TMR) B2: PH15 B3: SCF7(PDV) TF2: AC=0 TF3: CF MTU420 Revision 2.9 02/17/1998 10/11 MYSON TECHNOLOGY Instruction SF X 1110 1000 0XXX XXXX RF X 1110 1100 0XXX XXXX ALM X 1110 111X XXXX XXXX SIE X 1111 0000 XXXX XXXX SIE* PLC X X 1111 0100 0000 XXXX 1111 100X XXXX XXXX SRE X 1111 0110 000X XXXX HALT STOP Machine Code MTU420 Function Flag/Remark X6 : M-PORT Pull-Low X5 : S-PORT Pull-Low X4 : WDOG Set WDOG X3 : HALT After Light X2 : LIGHT ON X1 : BCF Set BCF X0 : CF Set CF X6 : M-PORT Low-L-H X5 : S-PORT Low-L-H X4 : WDOG Reset WDOG X2 : LIGHT OFF X1 : BCF Reset BCF X0 : CF Reset CF X8,X7,X6 100 X10 X11 X11 000 Signal DC 1 1K 2K 4K DC 0 Xn = 1 X5 X4 X3 X2 X1 X0 Signal 1 Hz 2 Hz 4Hz 8Hz 16Hz 32Hz X5-7 : HEF1-3 is Enabled X0-3 : IEF0-3 is Enabled X0-3 : IEF0-3 is Enabled X0-3 : Reset HRF0-3 X8 : Reset PH11-15 X0 X1 X2 X3 X4 : SEF1 is Enabled : SEF2 is Enabled : SEF3 is Enabled : SEF4 is Enabled : SEF5 is Enabled 1111 1100 0000 0000 1111 1111 1111 1111 Symbol Description AC : Accumulator ACn : Accumulator Bit N Rx : Memory of Address X Rxn : Memory Bit N of Address X Ry : Memory of Working Register Y HL : Index Register @HL : Memory of Index Address Tx : Data of Look-up Table D : Immediate Data Lx : LCD Latch () : Content of Register H(T@HL): High Nibble of Table ROM WDF : Watchdog Enable Flag PC X CF BCF : Program Counter : Address : Carry Flag : Backup Flag IEFn : Interrupt Enable Flag HEFn : HALT Release Enable Flag HRFn : HALT Release Flag SEFn : Switch Enable Flag SCFn : Start Condition Flag SREn : Stop Release Enable Flag ()B : Complement Data of Register L(T@HL): Low Nibble of Table ROM CSF : Clock Source Flag MTU420 Revision 2.9 02/17/1998 11/11