APU4003T 4-Bit Micro-Controller With EPROM, 1K Word Features y Control outputs: ALARM, LIGHT. y LCD driver outputs (can drive up to 75 LCD segments). y PROM option to select 4 LCD drive modes: static, duplex (1/2 duty 1/2 bias, 1/3 duty 1/2 bias or 1/3 duty 1/3 bias). y PROM option permits LCD driver output pins to be used for DC output ports; up to 25 pins are available. y Segment PLA circuit permits any layout on LCD panel. y Built-in clock generator (crystal or RC). y Built-in voltage doubler, halver, tripler. y Endurance: More then 100 write cycles/word. y Security bit for read/write protection. Very low current dissipation. Wide operating voltage range. Supports both Ag and Li batteries. Powerful instruction set. 4-level subroutine nesting (including interrupt). y 4 event-driven interrupts, 2 external and 2 internal. y ROM size: 1024x15 bits. y RAM size: 64x4 bits. y Input ports: 2 ports/ 8 pins (S and M). y Output port: 1 port/ 4 pins (P). y Pseudo serial output port (P). y Input/Output ports: 2 ports/ 8 pins (I/OA and I/OB). y y y y y General Description The APU4003T is an EEPROM-equipped high- performance 4-bit microcomputer. It contains not only all functions compatible with APU4003T, but also an EEPROM, providing customers such conveniences as on-board verification, customized code, small quantity sample production, etc. This chip especially provides a security bit to protect the customer’s code. Block Diagram ,2 $a ,2 %a %LGLUHFWLRQ ,2SRUW 3a $ODUP /LJKW 2XWSXW3RUW 6a 0a 6(*a6(* &20a 9''a /&''ULYHU ,QSXW3RUW 6HJPHQW3/$ %LW'DWD%XV 26&,1 2VFLOODWRU 26&287 &83 %LW3UHVHW 7LPHU 3UH'LYLGHU &83 &RQWURO &LUFXLW 5(6(7 Preliminary 1 $/8 5$0[%LWV /HYHO6WDFN ,QVWUXFWLRQ 'HFRGHU %LW3URJUDP &RXQWHU 3520 [%LW ,17 Ver. 0.0 APU4003T Package Information 5 10 68 65 15 60 55 APU4003T 20 50 25 45 35 40 SEG22 SEG21 SEG20 SEG19 SEG18 SEG17 SEG16 SEG15 SEG14 SEG13 SEG12 SEG11 SEG10 SEG9 SEG8 SEG7 SEG6 TEST A CUP1 CUP2 S2 S1 OSCIN CAP OSCOUT COM1 SEG1 SEG2 SEG3 SEG4 SEG5 30 M4 IOA1 IOA2 IOA3 IOA4 IOB1 IOB2 IOB3 IOB4 RESET INT P1 P2 P3 P4 M1 M2 M3 GND VDD3 COM2 COM3 SEG25 SEG24 SEG23 S3 S4 LIGHT ALARM VDD2 VDD VDD1 Package type 68Pin PLCC Pin/Pad Assignment Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Preliminary Name VSS -----VDD1 VDD VDD2 ALARM LIGHT S4 S3 IOA1 IOA2 IOA3 IOA4 IOB1 IOB2 IOB3 IOB4 Pin No. 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Name RESET INT P1 P2 P3 P4 M1 M2 M3 M4 ----------TESTA CUP1 CUP2 S2 S1 Pin No. 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 2 Name OSCIN CAP OSCOUT COM1 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 Unit: Pm Pin No. Name 52 SEG14 53 SEG15 54 SEG16 55 SEG17 56 SEG18 57 SEG19 58 SEG20 59 SEG21 60 SEG22 61 -----62 -----63 SEG23 64 SEG24 65 SEG25 66 COM3 67 COM2 68 VDD3 Ver. 0.0 APU4003T Pin Name Description Name Type Description OSCIN I Typical crystal(32.768KHz) is connected across OSCOUT O OSCIN/OSCOUT for oscillation; R/C oscillation mode is also available. S1~4 I Input ports with chattering eliminator option for CK10 (32ms), CK8 (8ms) & M1~4 I CK6 (2ms). P1~4 O Output ports. IOA1~4 I/O Input/Output ports. IOB1~4 I/O Input/Output ports. INT I External interrupt request control input pin. RESET I System reset pin. LIGHT O Output only for outputting the signal to drive the transistor for light. ALARM O Output only for outputting the 4kHz/2kHz/1kHz modulation signal. Also can be used to output the non-modulation signal. (+)Power supply pin. VDD * For Ag version, apply (+) side to VDD & VDD1 together. VDD1 VDD2 For other than Ag version, apply (+) side to VDD & VDD2 together. VDD3 Power supply pin for LCD driver power supply. VSS (--)Power supply pin. CUP1~2 O Pins for connecting the voltage step-up (step-down) capacitor. COM1~3 O Output pins for LCD panel common plate. SEG1~25 O Output pins for LCD panel segments. Absolute Maximum Rating Name Maximum Supply Voltage Maximum Input Voltage Maximum Output Voltage Maximum Operating Temperature Maximum Storage Temperature Symbol VSS1/2 VSS3 VIN1 VOUT1 VOUT2 VOUT3 tOPG tSTG Ta = 0 to 70к Rating Unit -0.3 ~ +5.5 V -0.3 ~ +8.5 V -0.3 to VDD+0.3 V -0.3 to VDD1+0.3 V -0.3 to VDD2+0.3 V -0.3 to VDD3+0.3 V 0 to +70 к -25 to +125 к Allowable operating conditions Name Supply Voltage Supply Voltage Input sHs Voltage Input sLs Voltage Input sHs Voltage Input sLs Voltage Operating Freq. Preliminary Symbol VDD1 VDD2 VDD3 VDD1 VDD2 VDD3 VIH1 VIL1 VIH2 VIL2 fOPG1 fOPG2 fOPG3 fOPG4 Condition External Voltage Mode Ag & Li Battery Mode All Input Except OSCIN OSCIN at Ext. RC Mode Ag Battery Mode Li Battery Mode External Voltage Mode External RC Mode 3 Min. 2.0 4.0 4.0 1.3 2.6 2.6 0.7VDDO 0 0.8VDDO 0 32 32 32 32 Ta = 0 to 70к Max. 5.5 5.5 8.25 5.5 5.5 8.25 VDDO 0.3VDDO VDDO 0.2VDDO 32 100 3580 5000 Unit V V V V V V V V V V kHz kHz kHz kHz Ver. 0.0 APU4003T Electrical Characteristics Input resistance Name sLs-Level Hold tR M/S Pull-Down tR INT Pull-Up tR INT Pull-Down tR RES Pull-Down tR Ta=0 to 70к Symbol RIIH1 RIIH2 RIIH3 RMSD1 RMSD2 RMSD3 RINTU1 RINTU2 RINTU3 RINTD1 RINTD2 RINTD3 RRES1 RRES2 RRES3 Condition VI=0.2VDD1, #1 VI=0.2VDD2, #2 VI=0.3VDD2, #3 VI=VDD1, #1 VI=VDD2, #2 VI=VDD2, #3 VI=VSS, #1 VI=VSS, #2 VI=VSS, #3 VI=VDD1, #1 VI=VDD2, #2 VI=VDD2, #3 VI=VDD or VSS1, #1 VI=VDD or VSS2, #2 VI=VDD or VSS2, #3 Min. 10 10 5 200 200 100 200 200 100 200 200 100 5 5 5 Typ. 40 40 20 500 500 250 500 500 250 500 500 250 20 20 20 Max. 100 100 50 1000 1000 500 1000 1000 500 1000 1000 500 50 50 50 Unit k: k: k: k: k: k: k: k: k: k: k: k: k: k: k: Note: #1: VDD1= 1.3V (Ag), #2: VDD2= 2.6V (Li), #3: VDD2= 4.5V (ExtV). DC output characteristics Name Symbol VOH1a Output sHs Voltage VOH2 a VOH3 a VOL1 a Output sLs Voltage VOL2 a VOL3 a VOH1b Output sHs Voltage VOH2b VOH3b VOL1b Output sLs Voltage VOL2b VOL3b Condition IOH=-200PA, #1 IOH=-1ma, #2 IOH=-3mA, #3 IOL=400PA, #1 IOL=2mA, #2 IOL=6mA, #3 IOH=-100PA, #1 IOH=-500PA, #2 IOH=-1.5mA, #3 IOL=200PA, #1 IOL=1mA, #2 IOL=3mA, #3 For Alarm Light P-port IOA-n IOB-n Min. 0.9 1.8 3.0 0.9 1.8 3.0 Typ. 1.1 2.1 3.5 0.3 0.6 1.0 1.1 2.1 3.5 0.3 0.6 1.0 Max. 0.5 1 1.5 Unit V V V V V V V V V V V V Max. Unit 0.5 1 1.5 V V V V V V 0.2 0.2 V V V V 0.5 1 1.5 Note: #1: VDD1= 1.3V (Ag), #2: VDD2= 2.6V (Li), #3: VDD2= 4.5V (ExtV). Segment driver output characteristics Name Symbol DC output mode VOH1c Output sHs Voltage VOH2c VOH3c VOL1c Output sLs Voltage VOL2c VOL3c Static display mode VOH2d Output sHs Voltage VOH3d VOL2d Output sLs Voltage VOL3d Preliminary Condition IOH=-10PA, #1 IOH=-50PA, #2 IOH=-200PA, #3 IOL=20PA, #1 IOL=100PA, #2 IOL=400PA, #3 IOH=-1PA, #1, #2 IOH=-1PA, #3 IOL=1PA, #1, #2 IOL=1PA, #3 4 For Min. Typ. SEG-n 0.9 1.8 3.0 1.1 2.1 3.5 0.3 0.6 1.0 SEG-n 2.5 4.3 Ver. 0.0 APU4003T Name Symbol Condition VOH2e IOH=-10PA,#1, #2 Output sHs Voltage VOH3e IOH=-10PA, #3 VOL2e IOL=10PA, #1, #2 Output sLs Voltage VOL3e IOL=10PA, #3 Duplex (1/2 bias, 1/2 duty) display mode VOH12f IOH=-1PA, #1, #2 Output sHs Voltage VOH3f IOH=-1PA, #3 VOL12f IOL=1PA, #1, #2 Output sLs Voltage VOL3f IOL=1PA, #3 VOH12g IOH=-10PA, #1, #2 Output sHs Voltage VOH3g IOH=-10PA, #3 VOM12g IOI/H=r10PA,#1, Output sMs Voltage #2 VOM3g IOI/H=r10PA, #3 VOL12g IOL=10PA, #1 Output sLs Voltage VOL3g IOL=10PA, #3 1/2 bias, 1/3duty display mode VOH12h IOH=-1PA, #1, #2 Output sHs Voltage VOH3h IOH=-1PA, #3 VOL12h IOL=1PA, #1, #2 Output sLs Voltage VOL3h IOL=1PA, #3 VOH12i IOH=-10PA, #1, #2 Output sHs Voltage VOH3i IOH=-10PA, #3 VOM12i IOI/H=r10PA,#1, Output sMs Voltage #2 VOM3i IOI/H=r10PA, #3 VOL12i IOL=10PA, #1, #2 Output sLs Voltage VOL3i IOL=10PA, #3 1/3bias, 1/3duty display mode VOH12j IOH=-1PA, #1, #2 Output sHs Voltage VOH3j IOH=-1PA, #3 VOM12j IOI/H=r1PA,#1, #2 Output sM1s Voltage VOM13j IOI/H=r1PA,#1, #2 VOM22j IOI/H=r1PA,#1, #2 Output sM2s Voltage VOM23j IOI/H=r1PA,#1, #2 VOL2j IOL=1PA, #2 Output sLs Voltage VOL3j IOL=1PA, #3 VOH2k IOH=-10PA, #2 Output sHs Voltage VOH3k IOH=-10PA, #3 VOM12k IOI/H=r10PA,#1, Output sM1s Voltage #2 VOM13k IOI/H=r10PA, #3 VOM22k IOI/H=r10PA,#1, Output sM2s Voltage #2 VOM23k IOI/H=r10PA, #3 VOL2k IOL=10PA, #2 Output sLs Voltage VOL3k IOL=10PA, #3 For COM-n SEG-n COM-n Min. 2.5 4.3 COM-n 2.4 4.3 2.4 4.3 1.1 COM-n 1.5 2.45 0.2 0.2 V V V 2.4 4.3 1.5 V V V V V V V 2.45 0.2 0.2 V V V 0.2 0.2 2.4 4.3 1.1 3.85 6.55 2.9 4.7 1.1 2.05 Unit V V V V V V V V V V V 0.2 0.2 2.05 SEG-n Max. 0.2 0.2 2.05 SEG-n Typ. 3.85 6.55 2.9 2.4 V V V V V V V V V V V 4.7 1.1 4.3 1.5 V V 2.05 2.45 0.2 0.2 V V V 2.4 4.3 1.5 2.45 0.2 0.2 Note: #1: VSS1= -1.2V (Ag), #2: VSS2= -2.4V (Li), #3: VSS2= -4V (ExtV). Preliminary 5 Ver. 0.0 APU4003T Instruction Table Instruction NOP LCT Ly,Rx OPA Rx LCB Ly,Rx OPB Rx LCP Ly,Rx MRA Rx OPP Rx OPP S Rx ADC Rx ADC* Rx SBC Rx SBC* Rx ADD Rx ADD* Rx SUB Rx SUB* Rx ADN Rx ADN* Rx AND Rx AND* Rx EOR Rx EOR* Rx OR Rx OR* Rx 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 IPM Rx IPA Rx IPA* Rx IPB Rx Preliminary Machine Code 000 0000 0000 0000 000 00YY YYXX XXXX 000 0100 01XX XXXX 000 01YY YYXX XXXX 000 1000 01XX XXXX 000 10YY YYXX XXXX 000 1101 01XX XXXX 000 1110 00XX XXXX 000 1110 1DXX XXXX 001 0000 00XX XXXX 001 0000 10XX XXXX 001 0001 00XX XXXX 001 0001 10XX XXXX 001 0010 00XX XXXX 001 0010 10XX XXXX 001 0011 00XX XXXX 001 0011 10XX XXXX 001 0100 00XX XXXX 001 0100 10XX XXXX 001 0101 00XX XXXX 001 0101 10XX XXXX 001 0110 00XX XXXX 001 0110 10XX XXXX 001 0111 00XX XXXX 001 0111 10XX XXXX 001 1000 0DDD DYYY 001 1000 1DDD DYYY 001 1001 0DDD DYYY 001 1001 1DDD DYYY 001 1010 0DDD DYYY 001 1010 1DDD DYYY 001 1011 0DDD DYYY 001 1011 1DDD DYYY 001 1100 0DDD DYYY 001 1100 1DDD DYYY 001 1101 0DDD DYYY 001 1101 1DDD DYYY 001 1110 0DDD DYYY 001 1110 1DDD DYYY 001 1111 0DDD DYYY 001 1111 1DDD DYYY 010 0000 00XX XXXX 010 0000 10XX XXXX 010 0001 00XX XXXX 010 0001 01XX XXXX 010 0001 10XX XXXX Function No Operation (Ly) m (Rx) Port(A) m (Rx) (Ly) m (Rx) Port(B) m (Rx) abcd,efgh m (Rx),(AC) CF m Rx3 Port(P) m (Rx) P1,2,3,4 m Rx0,Rx1,D,Pulse (AC) m (Rx)+(AC)+(CF) (AC),(Rx) m (Rx)+(AC)+(CF) (AC) m (Rx)+(AC)B+(CF) (AC),(Rx) m (Rx)+(AC)B+(CF) (AC) m (Rx)+(AC) (AC),(Rx) m (Rx)+(AC) (AC) m (Rx)+(AC)B+1 (AC),(Rx) m (Rx)+(AC)B+1 (AC) m (Rx)+(AC) (AC),(Rx) m (Rx)+(AC) (AC) m (Rx) AND (AC) (AC),(Rx) m (Rx) AND (AC) (AC) m (Rx) EOR (AC) (AC),(Rx) m (Rx) EOR (AC) (AC) m (Rx) OR (AC) (AC),(Rx) m (Rx) OR (AC) (AC) m (Ry)+(D)+(CF) (AC),(Ry) m (Ry)+(D)+(CF) (AC) m (Ry)+(D)B+(CF) (AC),(Ry) m (Ry)+(D)B+(CF) (AC) m (Ry)+(D) (AC),(Ry) m (Ry)+(D) (AC) m (Ry)+(D)B+1 (AC),(Ry) m (Ry)+(D)B+1 (AC) m (Ry)+(D) (AC),(Ry) m (Ry)+(D) (AC) m (Ry) AND (D) (AC),(Ry) m (Ry) AND (D) (AC) m (Ry) EOR (D) (AC),(Ry) m (Ry) EOR (D) (AC) m (Ry) OR (D) (AC),(Ry) m (Ry) OR (D) (AC),(Rx) m Port(S) (AC),(Rx) m Port(M) (AC),(Rx) m Port(A) (AC),(Rx) m Port(A) (AC),(Rx) m Port(B) 6 Remark Flag Ly=000- No Use Ly=000- No Use LY=000- No Use CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF I/OA m I/P Ver. 0.0 APU4003T Instruction Machine Code Function (AC),(Rx) m Port(B) IPB* Rx 010 0001 11XX XXXX MSB Rx 010 0010 00XX XXXX (AC),(Rx) m STS2 STA Rx 010 0010 10XX XXXX (Rx) m (AC) ACn, Rxn m Rx(n+1) 010 0011 00XX XXXX AC3, Rx3 m 0 ACn, Rxn m (Rx(n+1) 010 0011 01XX XXXX AC3, Rx3 m 1 ACn, Rxn m Rx(n-1) 010 0011 10XX XXXX AC0, Rx0 m 0 ACn, Rxn m Rx(n-1) 010 0011 11XX XXXX AC0, Rx0 m 1 010 01DD DDXX (AC),(Rx) m (D) XXXX SR0 Rx SR1 Rx SL0 Rx SL1 Rx LDS Rx,D MSC Rx 011 0000 00XX XXXX (AC),(Rx) m STS3 MAF Rx 011 0001 00XX XXXX (AC),(Rx) m STS1 LDA Rx MRW Ry,Rx MWR Rx,Ry JB0 X JB1 X JB2 X JB3 X JNZ X JNC X JZ X JC X JMP X 011 0111 10XX XXXX (AC) m (Rx) 011 100Y YYXX XXXX (AC),(Ry) m (Rx) Remark I/OB m I/P B0: BCF B1: SCF1(MPT) B2: SCF2(HRF) B3: SCF3(SPT) B0: SCF4(INT) B1: SCF5(TMR) B2: PH15 B3: SCF7(PDV) TF2: ZERO TF3: CF 011 110Y YYXX XXXX (AC),(Rx) m (Ry) 100 00XX XXXX XXXX 100 01XX XXXX XXXX 100 10XX XXXX XXXX 100 11XX XXXX XXXX 101 00XX XXXX XXXX 101 01XX XXXX XXXX 101 10XX XXXX XXXX 101 11XX XXXX XXXX 110 00XX XXXX XXXX (PC) m X (PC) m X (PC) m X (PC) m X (PC) m X (PC) m X (PC) m X (PC) m X (PC) m X 110 01XX XXXX XXXX (STACK) m (PC)+1 (PC m X 110 1000 0000 0000 (PC) m (STACK) if (AC0)=1 if (AC1)=1 if (AC2)=1 if (AC3)=1 if (Zero)=0 if (CF)=0 if (Zero)=1 if (CF)=1 SMS X 111 0000 000X XXXX SEF4 m X4 SEF0~3 m X0~3 M1~4 Enable S1~4 Enable TMS X 111 0010 00XX XXXX TIMER m X X6: M-PORT Pull-Low X5: S-PORT Pull-Low 111 0100 0XX0 XXXX X3: HALT After Light X2: LIGHT ON X1: BCF Set X0: CF Set X6: M-PORT Low-L-H X5: S-PORT Low-L-H CALL X RTS SF X Preliminary Flag 7 SCF1 SCF3 HRF0 HRF1 BCF CF Ver. 0.0 APU4003T Instruction Machine Code Function RF X 111 0110 0XX0 0XXX X2: LIGHT OFF X1: BCF Reset X0: CF Reset X7,X6 0,1 1,0 1,1 Signal DC 1K/2K 4K Xn=1 X5 X4 X3 ALM X 111 0111 XXXX XXXX Signal 1Hz 2Hz 4Hz Xn=1 X2 X1 X0 Signal 8Hz 16Hz 32Hz X5~7: HEF1~3 is Enabled SIE X 111 1000 XXX0 XXXX X0~3: IEF0~3 is Enabled SIE* X 111 1010 0000 XXXX X0~3: IEF0~3 is Enabled X0~3: Reset HRF0~3 PLC X 111 110X 0000 XXXX X8: Reset PH11~15 HALT 111 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 PC: Program Counter X: Address D: Immediate Data CF: BCF: IEFn: HEFn: HRFn: SEFn: SCFn: Ly: Preliminary 8 Remark Flag BCF CF Carry Flag Backup Flag Interrupt Enable Flag HALT Release Enable Flag HALT Release Flag Switch Enable Flag Start Condition Flag LCD Latch Ver. 0.0