TMP88PS38 CMOS 8-Bit Microcontroller TMP88PS38NG/FG The TMP88PS38 is the high-speed and high performance 8-bit signal chip microcomputers which built in a program storage area (64 Kbytes), an OSD font storage area (24 Kbytes) and the one-time PROM of vector table storage area (256 bytes). The TMP88PS38 is pin compatible with the TMP88CS38. The operation possible with the TMP88PS38 can be performed by writing programs to PROM. The TMP88PS38 can write and verify in the same way as the TC571000D an EPROM programmer. Product No. OTP TMP88PS38NG 64 Kbytes (256 bytes) 24 Kbytes TMP88PS38FG RAM 2 Kbytes Package Adaptor Socket P-SDIP42-600-1.78 BM11174A P-QFP44-1414-0.80K BM11175A . 030619EBP1 • The information contained herein is subject to change without notice. • The information contained herein is presented only as a guide for the applications of our products. No responsibility is assumed by TOSHIBA for any infringements of patents or other rights of the third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of TOSHIBA or others. • TOSHIBA is continually working to improve the quality and reliability of its products. Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. It is the responsibility of the buyer, when utilizing TOSHIBA products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such TOSHIBA products could cause loss of human life, bodily injury or damage to property. In developing your designs, please ensure that TOSHIBA products are used within specified operating ranges as set forth in the most recent TOSHIBA products specifications. Also, please keep in mind the precautions and conditions set forth in the “Handling Guide for Semiconductor Devices,” or “TOSHIBA Semiconductor Reliability Handbook” etc.. • The TOSHIBA products listed in this document are intended for usage in general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). These TOSHIBA products are neither intended nor warranted for usage in equipment that requires extraordinarily high quality and/or reliability or a malfunctionor failure of which may cause loss of human life or bodily injury (“Unintended Usage”). Unintended Usage include atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, all types of safety devices, etc.. Unintended Usage of TOSHIBA products listed in this document shall be made at the customer’s own risk. • The products described in this document are subject to the foreign exchange and foreign trade laws. • TOSHIBA products should not be embedded to the downstream products which are prohibited to be produced and sold, under any law and regulations. • For a discussion of how the reliability of microcontrollers can be predicted, please refer to Section 1.3 of the chapter entitled Quality and Reliability Assurance/Handling Precautions. Purchase of TOSHIBA 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. 88PS38-1 2005-05-18 TMP88PS38 Pin Assignments Package P-SDIP42-600-1.78 P-SDIP42-600-1.78 TMP88PS38NG Package VSS 1 42 VDD ( PWM0 ) P40 2 41 P33 (TC4/VIN0) ( PWM1 ) P41 3 40 P32 (VIN1/CSIN) ( PWM2 ) P42 4 39 VVSS ( PWM3 ) P43 5 38 P35 (SDA0) ( PWM4 ) P44 6 37 P34 (SCL0) ( PWM5 ) P45 7 36 P31 (INT4/TC3) ( PWM6 ) P46 8 35 P30 (INT3/RXIN) ( PWM7 ) P47 9 34 P20 ( INT5 / STOP ) (TC2/ INT0 / PWM8 ) P50 10 33 (SI1/SCL1/ PWM9 ) P51 11 32 XOUT (SO1/SDA1) P52 ( KWU0 / SCK1 /INT2/TC1/AIN0) P53 12 31 XIN 13 30 TEST ( KWU1 /AIN1) P54 14 29 OVSS ( KWU2 /AIN2) P55 15 28 OVDD ( KWU3 /AIN3) P56 16 27 P71 ( VD ) ( KWU 4 /Y/BLIN/AIN4) P60 17 26 P70 ( HD ) ( KWU5 /BIN/AIN5) P61 18 25 P67 (Y/BL) (GIN/CSOUT) P62 19 24 P66 (B) (RIN) P63 20 23 P65 (G) (I) P57 21 22 P64 (R) RESET P-QFP44-1414-0.80K P31 (INT4/TC3) P30 (INT3/RXIN) P20 (INT5/STOP) RESET XOUT XIN TEST OVSS OVDD P71 (VD) 31 30 29 28 27 26 25 24 23 P34 (SCL0) 33 P63 (RIN) ( PWM1 ) P41 42 14 P62 (GIN/CSOUT) ( PWM2 ) P42 43 13 P61 (BIN/AIN5/ KWU5 ) ( PWM3 ) P43 44 12 P60 (Y/BLIN/AIN4/ KWU 4 ) 88PS38-2 11 15 (KWU3/AIN3) P56 41 10 P57 ( PWM0 ) P40 (KWU2/AIN2) P55 16 9 40 (KWU1/AIN1) P54 N.C. VSS 8 17 (KWU0/SCK1/INT2/TC1/AIN0) P53 39 7 P64 (R) VDD (SO1/SDA1) P52 18 6 38 (SI1/SCL1/PWM9) P51 P65 (G) N.C. 5 P66 (B) 19 4 20 37 (PWM7) P47 36 (TC4/VIN0) P33 (TC2/INT0/PWM8) P50 (VIN1/CSIN) P32 3 P67 (Y/BL) (PWM6) P46 P70 ( HD ) 21 2 22 35 1 34 VVSS (PWM5) P45 (SDA0) P35 (PWM4) P44 TMP88PS38F 32 P-QFP44-1414-0.80K 2005-05-18 TMP88PS38 Operational Description The configuration and function of the TMP88PS38 are the same as those of the TMP88CS38, except in that a one-time PROM is used instead of an on-chip mask ROM. 1. Operation Mode The TMP88PS38 has two mode: MCU and PROM. 1.1 MCU Mode The MCU mode is activated by fixing the TEST/VPP pin at low level. In the MCU mode, operation is the same as with the TMP88CS38. 1.1.1 Program Memory The TMP88PS38 has a 64 Kbytes (Addresses 04000H to 13EFFH in the MCU mode, addresses 10000H to 1FEFFH in the PROM mode) of program storage area, 24 Kbytes (Addresses 20000H to 25FFFH in the MCU mode, addresses 0A000H to 0FFFFH in the PROM mode) and 256 bytes (Addresses FFF00H to FFFFFH in the MCU mode, addresses 1FF00H to 1FFFFH in the PROM mode) one-time PROM of vector table storage area. 88PS38-3 2005-05-18 TMP88PS38 1.1.2 Data Memory The TMP88PS38 has an on-chip 2-Kbyte data memory (Static RAM). 00000H 00000H 04000H 04000H 0A000H Program storage area 13EFFH 20000H 25FFFH FFF00H FFFFFH Program storage area OSD font area 13EFFH 20000H 25FFFH FFF00H Vector table storage area FFFFFH TMP88CS38 MCU mode OSD font area OSD font area 0FFFFH 10000H Program storage area 1FEFFH 1FF00H 1FFFFH Vector table storage area Vector table storage area TMP88PS38 MCU mode TMP88PS38 PROM mode (a) ROM size = 64 Kbytes 00000H 0A000H 04000H Program storage area 0FEFFH 20000H 25FFFH FFF00H FFFFFH OSD font area 0FFFFH 10000H Program storage area 1BEFFH 1FF00H OSD font area 1FFFFH Vector table storage area TMP88CP38A MCU mode Don’t use Vector table storage area TMP88CP38A PROM mode (b) ROM size = 48 Kbytes 00000H 0A000H 04000H 0FFFFH 10000H Program storage area 0BEFFH 20000H 25FFFH FFF00H FFFFFH 17EFFH OSD font area 1FF00H Vector table storage area 1FFFFH TMP88CM38A MCU mode OSD font area Program storage area Don’t use Vector table storage area TMP88CM38A PROM mode (c) ROM size = 32 Kbytes Note: Data in the unused area should be FFH. Or else, general-purpose PROM should be set to permit access to the program storage area only. Figure 1.1.1 Program Storage Area 88PS38-4 2005-05-18 TMP88PS38 1.1.3 Input/Output Circuit for Pins (1) Control pins The TMP88PS38 is identical to the TMP88CS38 and TMP88CM38A/CP38A except that it has a TEST pin without a pull-down resistor. R R = 1 kΩ (typ.) Note: A pull-down resistor is not included. Figure 1.1.2 TEST Pin (2) I/O ports The input/output circuit for the TMP88PS38 I/O port is the same as that for the TMP88CS38 and TMP88CM38A/CP38A. 1.2 PROM Mode The PROM mode is used to write and verify programs with a general-purpose PROM programmer. The high-speed programming mode can be used for program operation. The TMP88PS38 is not supported an electric signature mode, so the ROM type must be set to TC571000D. TMP88PS38 VPP (12.75 V/5 V) TEST P60 P35 P63 to A16 to A0 P61 P67 VCC OVDD VDD P70 P32 P33 P30 P47 to to P50 XIN XOUT VSS VVSS OVSS PROM programmer connection adaptor socket: D0 to D7 to P64 P57 GND CE OE PGM P40 N.C. P71 P20 P31 P34 (Open, only TMP88PS38FG) RESET For more in formation on pins refer to the section on pin function. BM11174A for TMP88PS38NG BM11175A for TMP88PS38FG Figure 1.2.1 Setting for PROM Mode 88PS38-5 2005-05-18 TMP88PS38 Pin Name (EPROM mode) Input/Output Function A16 Pin Name (MCU mode) P60 Input A15 to A8 PROM address inputs A7 to A0 P35, P63 to P61, P67 to P64 P57 to P50 D7 to D0 I/O CE Input OE PGM PROM data inputs/outputs P47 to p40 Chip enable signal input (Active low) P32 Output enable signal input (Active low) P33 Program mode signal input P30 +12.75 V/5 V (Program supply voltage) TEST +6.25 V/5 V VDD, OVDD GND 0V VSS, VVSS, OVSS P70 PROM mode setting pin. Be fixed at high level. VPP Power supply VCC P71, P20, P31, P34 Input PROM mode setting pin. Be fixed at low level. RESET XIN PROM mode setting pin. Be fixed at low level. Input XOUT Output N.C. Open Connect an 8 MHz oscillator to stabilize the state. Open PROM programmer connection adaptor socket: BM11174A for TMP88PS38NG BM11175A for TMP88PS38FG 88PS38-6 2005-05-18 TMP88PS38 1.3 Programming Flowchart (High-speed Programming Mode) The high-speed programming mode is achieved by applying the program voltage (+12.75 V) to the VPP pin when Vcc = 6.25 V. After the address and input data are stable, the data is programmed by applying a single 0.1ms program pulse to the PGM input. The programmed data is verified. If incorrect, another 0.1ms program pulse is applied. This process should be repeated (up to 25 times) until the program operates correctly. After that, change the address and input data, and program as before. When programming has been completed, the data in all addresses should be verified with Vcc = Vpp = 5 V. Start VCC = 6.25 V VPP = 12.75 V Address = Start address Data = FF? Yes No N=0 Single 0.1 ms program pulse N=N+1 Yes N ≥ 25? No Error Address = Next address Verify Ok No Last address? Yes VCC = 5 V VPP = 5 V Read all byte Error Failure Ok Pass Figure 1.3.1 Flow Chart of High-speed Programming 88PS38-7 2005-05-18 TMP88PS38 1.4 Writing Method for General-purpose PROM Program (1) Adapters BM11174A: TMP88PS38N BM11175A: TMP88PS38F (2) PROM programmer specifying i) PROM type is specified to TC571000D. (Note 1) Writing voltage: 12.75 V (High-speed programming mode) ii) Data transfer (copy) (Note 1) In the TMP88PS38, EPROM is within the addresses 10000H to 1FEFFH (Program storage area) and 0A000H to 0FFFFH (OSD font area) and 1FF00H to 1FFFFH (Vector table storage area). Data is required to be transferred (Copied) to the addresses where it is possible to write. The program area in MCU mode and PROM mode is referred to “Program memory area” in Figure 1.1. iii) Writing address is specified. (Note 1) Start address:0A000H End address: 1FFFFH (3) Writing Writing/Verifying is required to be executed in accordance with PROM programmer operating procedure. Note 1: The specifying method is referred to the PROM programmer description. Either write the data FFH to the unused area or set the PROM programmer to access only the program storage area. Note 2: When MCU is set to an adapter or the adapter is set to PROM programmer, a position of pin 1 must be adjusted. If the setting is reversed, MCU, the adapter and PROM program is damaged. 88PS38-8 2005-05-18 TMP88PS38 Input/Output Circuit (1) Control pins The input/output circuitries of the TMP88PS38 control pins are shown below. Control Pin I/O Input/Output Circuitry Osc.enable XIN XOUT Remarks Resonator connection pins (High frequency) fc VDD VDD Rf I/O XIN RO RO = 0.5 kΩ (typ.) XOUT VDD R RESET I/O RIN Address-trap-reset Watchdog-timer-reset System-clock-reset (P20) Sink open-drain output Hysteresis input Pull-up resistor RIN = 220 kΩ (typ.) R = 1 kΩ (typ.) Hysteresis input VDD STOP / INT5 Rf = 1.2 MΩ (typ.) R = 1 kΩ (typ.) Input R P20/ STOP / INT5 R = 1 kΩ (typ.) R TEST Input 88PS38-9 2005-05-18 TMP88PS38 (2) Input/output ports Port I/O Input/Output Circuitry VDD Initial “High-Z” P20 Remarks Sink open-drain output Hysteresis input R = 1 kΩ (typ.) I/O R P30 to P33 P50, P57 Tri-state I/O Hysteresis input VDD Initial “High-Z” I/O R = 1 kΩ (typ.) R Disable P70, P71 P34, P35, P51, P52 Open-drain output enable I/O R Disable R = 1 kΩ (typ.) P40 to I/O R Disable P47 P53 Tri-state I/O Hysteresis input Key-on wakeup input (VIL4 = 0.65 × VDD) VDD Initial “High-Z” to R = 1 kΩ (typ.) Tri-state I/O VDD Initial “High-Z” Tri-state I/O or open-drain output programmable Hysteresis input VDD Initial “High-Z” R Disable R = 1 kΩ (typ.) I/O RA = 5 kΩ (typ.) P56 CA RA Key-on wakeup 88PS38-10 CA = 22 pF (typ.) 2005-05-18 TMP88PS38 Port I/O Input/Output Circuitry Remarks Sink open-drain output High current output IOL = 20 mA (typ.) VDD Initial “High-Z” P60, P61 I/O R Disable RA = 5 kΩ (typ.) CA = 22 pF (typ.) CA Initial “High-Z” P62 (at CSOUT) RA Key-on wakeup Key-on wakeup input (VIL4 = 0.65 × VDD) Tri-state I/O High current output IOL = 20 mA (typ.) VDD I/O R Disable I/O R Disable Initial “High-Z” P67 R = 1 kΩ (typ.) Tri-state I/O VDD R = 1 kΩ (typ.) P64 to R = 1 kΩ (typ.) Sink open-drain output High current output IOL = 20 mA (typ.) VDD Initial “High-Z” P62, P63 R = 1 kΩ (typ.) I/O R Disable 88PS38-11 2005-05-18 TMP88PS38 Electrical Characteristics Absolute Maximum Ratings Parameter (VSS = 0 V) Symbol Pins Ratings Supply voltage VDD − −0.3 to 6.5 Programmable voltage VPP Input voltage VIN − −0.3 to VDD + 0.3 Output voltage VOUT1 − −0.3 to VDD + 0.3 Output current (Per 1 pin) Output current (Total) Unit −0.3 to 13.0 TEST/VPP Pin IOUT1 Ports P2, P3, P4, P5, P64 to P67, P7 3.2 IOUT2 Ports P60 to P63 30 Σ IOUT1 Ports P2, P3, P4, P5, P64 to P67, P7 120 Σ IOUT2 Ports P60 to P63 120 V mA Power dissipation [Topr = 70°C] PD − 600 Soldering temperature (Time) Tsld − 260 (10 s) Storage temperature Tstg − −55 to 125 Operating temperature Topr − −30 to 70 mW °C Note: The absolute maximum ratings are rated values which must not be exceeded during operation, even for an instant. Any one of the ratings must not be exceeded. If any absolute maximum rating is exceeded, a device may break down or its performance may be degraded, causing it to catch fire or explode resulting in injury to the user. Thus, when designing products which include this device, ensure that no absolute maximum rating value will ever be exceeded. Recommended Operating Conditions Parameter Symbol (VSS = 0 V, Topr = −30 to 70°C) Pins Conditions Min Max 4.5 5.5 Unit fc = 16 MHz NORMAL mode Supply voltage VDD − VIH1 Except hysteresis input VIH2 Hysteresis input VIL1 Except hysteresis input fc = 16 MHz IDLE mode − Input high voltage Input low voltage Clock frequency STOP mode Hysteresis input VIL4 Key-on wakeup input VDD = 4.5 to 5.5V fc XIN, XOUT VDD = 4.5 to 5.5V Internal clock VDD × 0.75 VDD = 4.5 to 5.5V VDD V VDD × 0.30 VDD = 4.5 to 5.5V VIL2 fOSC VDD × 0.70 VDD = 4.5 to 5.5V 0 VDD × 0.25 VDD × 0.65 8.0 16.0 fc = 8 MHz 8.0 12.0 fc = 16 MHz 16.0 24.0 MHz Note 1: The recommended operating conditions for a device are operating conditions under which it can be guaranteed that the device will operate as specified. If the device is used under operating conditions other than the recommended operating conditions (Supply voltage, operating temperature range, specified AC/DC values etc.), malfunction may occur. Thus, when designing products which include this device, ensure that the recommended operating conditions for the device are always adhered to. Note 2: Clock frequency fc: Supply voltage range is specified in NORMAL mode and IDLE mode. Note 3: Smaller value is alternatively specified as the maximum value. 88PS38-12 2005-05-18 TMP88PS38 DC Characteristics Parameter (VSS = 0 V, Topr = −30 to 70°C) Symbol Hysteresis voltage Input current Pins Conditions Unit − 0.9 − V IIN1 TEST VDD = 5.5 V, VIN = 5.5 V/0 V − − ±2 IIN2 Open-drain ports VDD = 5.5 V, VIN = 5.5 V/0 V − − ±2 IIN3 Tri-state ports VDD = 5.5 V, VIN = 5.5 V/0 V − − ±2 RESET , STOP VDD = 5.5 V, VIN = 5.5 V/0 V RESET VDD = 5.5 V, VIN = 0 V ILO1 Sink open-drain ports ILO2 Output high voltage VOH2 Output low voltage Output low current − − ±2 100 220 450 VDD = 5.5 V, VOUT = 5.5 V − − 2 Tri-state ports VDD = 5.5 V, VOUT = 5.5 V/0 V − − ±2 Tri-state ports VDD = 4.5 V, IOH = −0.7 mA 4.1 − − VOL Except XOUT and ports P60 to P63 VDD = 4.5 V, IOL = 1.6 mA − − 0.4 IOL3 Port P60 to P63 VDD = 4.5 V, VOL = 1.0 V − 20 − VDD = 5.5 V fc = 16 MHz VIN = 5.3 V/0.2 V − 25 30 − 20 25 − 0.5 10 Supply current in NORMAL mode Supply current in IDLE mode Max Hysteresis inputs IIN4 Output leakage current Typ. VHS RIN2 Input resistance Min − IDD (Note 3) VDD = 5.5 V VIN = 5.3 V/0.2 V Supply current in STOP mode μA kΩ μA V mA μA Note 1: Typical values show those at Topr = 25°C, VDD = 5 V. Note 2: Input Current IIN3: The current through resistor is not included. Note 3: Supply Current IDD: The current (Typ. 0.5 mA) through ladder resistors of ADC is included in NORMAL mode and IDLE mode. AD Conversion Characteristics Parameter Analog reference voltage Analog reference voltage range Analog input voltage Symbol (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70°C) Conditions Full scale error Typ. Max VAREF supplied from VDD pin. − VDD − VASS supplied from VSS pin. − 0 − = VDD − VSS − VDD − VSS − VDD − − ±1 − − ±2 − − ±2 − − ±3 ∆VAREF VAIN Nonlinearity error Zero point error Min VDD = 5.0 V Total error Unit V LSB Note: The total error means all error except quanting error. 88PS38-13 2005-05-18 TMP88PS38 AC Characteristics Parameter Machine cycle time (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70°C) Symbol tcy Conditions in NORMAL mode TWCH for external clock operation Low level clock pulse width TWCL (XIN input), fc = 16 MHz Recommended oscillating conditions High-frequency oscillation Oscillator Typ. Max Unit 0.5 − 1.0 μs 31.25 − − ns in IDLE mode High level clock pulse width Parameter Min (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70°C) Oscillation Frequency Ceramic resonator Recommended Oscillator Recommended Constant C1 C2 8 MHz Murata CSA 8.00MTZ 30 pF 30 pF 16 MHz Murata CSA 16.00MXZ040 5 pF 5 pF XIN XOUT C1 C2 High-frequency oscillation Note 1: To keep reliable operation, shield the device electrically with the metal plate on its package mold surface against the high electric field, for example, by CRT (Cathode ray tube). Note 2: The product numbers and specifications of the resonators by Murata Manufacturing Co., Ltd. are subject to change. For up-to-date information, please refer to the following URL; http://www.murata.co.jp/search/index.html 88PS38-14 2005-05-18 TMP88PS38 DC/AC Characteristics (PROM mode) (VSS = 0 V) (1) Read operation (VDD = 5.0 ± 0.25 V, Topr = 25 ± 5°C) Parameter Symbol Conditions Min Typ. Max Input high voltage (A0 to A16, CE , OE , PGM ) VIH4 VDD × 0.7 − VDD Input low voltage (A0 to A16, CE , OE , PGM ) VIL4 0 − 0.8 Program power supply voltage VPP 4.75 5.0 5.25 Address access time tACC − 1.5tcyc + 300 − Unit V ns Note: tcyc = 400 ns at 10 MHz A16 to A0 CE OE PGM tACC D7 to D0 High-Z Data outputs (2) High-speed programming operation (Topr = 25 ± 5°C, VDD = 6.25 ± 0.25 V) Parameter Symbol Conditions Min Typ. Max Input high voltage (D0 to D7, A0 to A16, CE , OE , PGM ) VIH4 VDD × 0.7 − VDD Input low voltage (D0 to D7, A0 to A16, CE , OE , PGM ) VIL4 0 − 0.8 Program power supply voltage VPP 12.5 12.75 13.0 Initial program pulse width tPW 0.095 0.1 0.105 VDD = 6.0 V 88PS38-15 Unit V ms 2005-05-18 TMP88PS38 High-speed Programming Timing A16 to A0 CE OE D7 to D0 PGM Unknown Input data Data outputs tPW VPP Write Verify Note 1: When Vcc power supply is turned on or after, Vpp must be increased. When Vcc power supply is turned off or before, Vpp must be increased. Note 2: The device must not be set to the EPROM programmer or picked up from it under applying the program voltage (12.75 V ± 0.25 V) to the Vpp pin as the device is damaged. Note 3: Be sure to execute the recommended programing mode with the recommended programing adaptor. If a mode or an adaptor except the above, the misoperation sometimes occurs. 88PS38-16 2005-05-18 TMP88PS38 Package P-SDIP42-600-1.78 Unit: mm 88PS38-17 2005-05-18 TMP88PS38 P-QFP44-1414-0.80K Unit: mm 88PS38-18 2005-05-18 TMP88PS38 88PS38-19 2005-05-18