TMP88PS34 CMOS 8-Bit Microcontroller TMP88PS34NG/FG The TMP88PS34 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 (42 Kbytes) and the One-Time PROM of vector table storage area (256 bytes). The TMP88PS34 is pin compatible with the TMP88CS34. The operation possible with the TMP88PS34 can be performed by writing programs to PROM. The TMP88PS34 can write and verify in the same way as the TC571000D an EPROM programmer. Product No. OTP TMP88PS34NG 64 Kbytes (256 bytes) RAM TMP88PS34FG 42 Kbytes 1.5 Kbytes 88PS34-1 Package Adaptor Socket P-SDIP42-600-1.78 BM11174A P-QFP44-1414-0.80D BM11175A 2006-07-06 TMP88PS34 Pin Assignments Package P-SDIP42-600-1.78 TMP88PS34NG Package P-SDIP42-600-1.78 VSS ( PWM0 ) P40 ( PWM1 ) P41 ( PWM2 ) P42 ( PWM3 ) P43 P44 P45 P46 P47 (TC2/ INT0 ) P50 (SI1/SCL1) P51 (SO1/SDA1) P52 ( KWU0 / SCK1 /INT2/TC1/AIN0) P53 ( KWU1 /AIN1) P54 ( KWU2 /AIN2) P55 ( KWU3 /AIN3) P56 ( KWU 4 /Y/BLIN/AIN4) P60 ( KWU5 /BIN/AIN5) P61 (GIN) P62 (RIN) P63 (I) P57 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 VDD P33 (TC4) P32 VVSS P35 (SDA0) P34 (SCL0) P31 (INT4/TC3) P30 (INT3/RXIN) P20 ( INT5 / STOP ) RESET XOUT XIN TEST OSC2 OSC1 P71 ( VD ) P70 ( HD ) P67 (Y/BL) P66 (B) P65 (G) P64 (R) P-QFP44-1414-0.80D XOUT XIN TEST OSC2 OSC1 P71 (VD) RESET 1 2 3 4 5 6 7 8 9 10 11 34 35 36 37 38 39 40 41 42 43 44 22 21 20 19 18 17 16 15 14 13 12 P70 ( HD ) P67 (Y/BL) P66 (B) P65 (G) P64 (R) N.C. P57 P63 (RIN) P62 (GIN) P61 (BIN//AIN5/ KWU5 ) P60 (Y/BLIN/AIN4/ KWU4 ) P44 P45 P46 P47 (TC2/INT0) P50 (SI1/SCL1) P51 (SO1/SDA1) P52 (KWU0/SCK1/INT2/TC1/AIN0) P53 (KWU1/AIN1) P54 (KWU2/AIN2) P55 (KWU3/AIN3) P56 TMP88PS34FG (SDA0) P35 VVSS P32 (TC4) P33 N.C. VDD VSS ( PWM0 ) P40 ( PWM1 ) P41 ( PWM2 ) P42 ( PWM3 ) P43 33 32 31 30 29 28 27 26 25 24 23 P34 (SCL0) P31 (INT4/TC3) P30 (INT3/RXIN) P20 (INT5/STOP) P-QFP44-1414-0.80D 88PS34-2 2006-07-06 TMP88PS34 Operational Description The configuration and function of the TMP88PS34 are the same as those of the TMP88CS34, except in that a one-time PROM is used instead of an on-chip mask ROM. 1. Operation Mode The TMP88PS34 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 TMP88CS34. 1.1.1 Program Memory The TMP88PS34 has a 64 Kbytes (addresses 04000H to 13EFFH in the MCU mode, addresses 10000H to 1FEFFH in the PROM mode) of program storage area, 42 Kbyte (addresses 20000H to 2A7FFH in the MCU mode, addresses 05800H to 0FFFFH in the PROM mode) and 256 byte (addresses FFF00H to FFFFFH in the MCU mode, addresses 1FF00H to 1FFFFH in the PROM mode) one-time PROM of vector table storage area. 88PS34-3 2006-07-06 TMP88PS34 1.1.2 Data Memory The TMP88PS34 has an on-chip 1.5-Kbyte data memory (static RAM). 00000H 00000H 04000H 04000H 05800H Program storage area Program storage area 13EFFH 20000H 13EFFH 20000H OSD font area 2A7FFH FFF00H FFFFFH OSD font area OSD font area 2A7FFH FFF00H Vector table storage area FFFFFH TMP88CS34 MCU mode 0FFFFH 10000H Program storage area 1FEFFH 1FF00H 1FFFFH Vector table storage area Vector table storage area TMP88PS34 MCU mode TMP88PS34 PROM mode (a) ROM size = 64 Kbytes 00000H 05800H OSD font area 04000H 0FFFFH 10000H Program storage area Program storage area 0FEFFH 20000H 1BEFFH 1FF00H OSD font area 2A7FFH FFF00H FFFFFH 1FFFFH Vector table storage area TMP88CP34 MCU mode Don’t use Vector table storage area TMP88CP34 PROM mode (b) ROM size = 48 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 88PS34-4 2006-07-06 TMP88PS34 1.1.3 Input/Output Circuit for Pins (1) Control pins The TMP88PS34 is identical to the TMP88CS34 and TMP88CP34 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 TMP88PS34 I/O port is the same as that for the TMP88CS34 and TMP88CP34. 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 TMP88PS34 is not supported an electric signature mode, so the ROM type must be set to TC571000D. TMP88PS34 VPP (12.75 V/5 V) TEST P60 P35 P63 to A16 to A0 P61 P67 VCC VDD P70 OSC1 OPEN OSC2 OPEN P32 P33 P30 P47 CE OE PGM to to P50 XIN XOUT VSS VVSS D0 to D7 to P64 P57 P40 N.C. P71 P20 P31 P34 (Open, only TMP88PS34F) For more in formation on pins refer to the section on pin function. RESET GND PROM programmer connection adaptor socket: BM11174A for TMP88PS34N BM11175A for TMP88PS34F Figure 1.2.1 Setting for PROM Mode 88PS34-5 2006-07-06 TMP88PS34 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 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. CE Input OE PGM 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 Connect an 8 MHz oscillator to stabilize the state. XOUT Output N.C. Open Open I/O Open OSC1, OSC2 PROM programmer connection adaptor socket: BM11174A for TMP88PS34NG BM11175A for TMP88PS34FG 88PS34-6 2006-07-06 TMP88PS34 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 NG Address = Next Address Verify OK NO Last Address? YES VCC = 5 V VPP = 5 V Read All Byte NG Fail OK Pass Figure 1.3.1 Flow Chart of High-speed Programming 88PS34-7 2006-07-06 TMP88PS34 1.4 Writing Method for General-purpose PROM Program (1) Adapters BM11174A: TMP88PS34NG BM11175A: TMP88PS34FG (2) PROM programmer specifying 1. PROM type is specified to TC571000D. (Note 1) Writing voltage: 12.75 V (high-speed program mode) 2. Data transfer (copy) (Note 1) In the TMP88PS34, 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.1. 3. Writing address is specified. (Note 1) Start address: 05800H 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. 88PS34-8 2006-07-06 TMP88PS34 Input/Output Circuit (1) Control pins The input/output circuitries of the TMP88PS34 control pins are shown below. Control Pin I/O Input/Output Circuitry Remarks Osc.enable XIN XOUT Resonator connection pins (high-frequency) fc VDD VDD Rf I/O RO XIN RO = 0.5 kΩ (typ.) XOUT VDD RIN R RESET I/O Rf = 1.2 MΩ (typ.) Address-trap-reset Watchdog-timer-reset System-clock-reset Sink open drain output Hysteresis input Pull-up resistor RIN = 220 MΩ (typ.) R = 1 kΩ (typ.) Hysteresis input VDD R = 1 kΩ (typ.) STOP / INT5 (P20) Input R P20/ STOP / INT5 R = 1 kΩ (typ.) R TEST Input Osc.enable OSC1 OSC2 fc VDD VDD Rf I/O OSC1 RO Rf = 1.2 MΩ (typ.) RO = 0.5 kΩ (typ.) OSC2 88PS34-9 2006-07-06 TMP88PS34 (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” R = 1 kΩ (typ.) I/O R Disable P70, P71 P34, P35, P51, P52 Open drain output enable I/O R Disable R = 1 kΩ (typ.) P40 I/O R Disable P47 P53 Tri-state I/O Hysteresis input Key-on wake-up input (VIL4 = 0.65 × VDD) VDD Initial “High-Z” to R = 1 kΩ (typ.) Tri-state I/O VDD Initial “High-Z” to 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 = 22 pF (typ.) CA RA Key-on Wake-up 88PS34-10 2006-07-06 TMP88PS34 Port I/O Input/Output Circuitry Remarks Sink open drain I/O High-current output IOL = 20 mA (typ.) VDD Initial “High-Z” R Disable P60 R = 1 kΩ (typ.) RA = 5 kΩ (typ.) I/O CA = 22 pF (typ.) CA RA Key-on Wake-up Key-on wake-up input (VIL4 = 0.65 × VDD) Tri-state I/O VDD Initial “High-Z” R = 1 kΩ (typ.) R Disable P61 I/O CA Initial “High-Z” Key-on wake-up input (VIL4 = 0.65 × VDD) RA Key-on Wake-up Tri-state I/O VDD R = 1 kΩ (typ.) P62 to P67 RA = 5 kΩ (typ.) CA = 22 pF (typ.) I/O Disable R 88PS34-11 2006-07-06 TMP88PS34 Electrical Characteristics (VSS = 0 V) Absolute maximum ratings Parameter 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, P61 to P67, P7 3.2 IOUT2 Ports P60 30 Σ IOUT1 Ports P2, P3, P4, P5, P61 to P67, P7 30 Σ IOUT2 Ports P60 30 V mA Power dissipation [Topr = 70°C] PD − 400 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. (VSS = 0 V, Topr = −30 to 70 °C) Recommended operating conditions Parameter Symbol Pins VDD − Conditions Min Max 4.5 5.5 Unit fc = 16 MHz NORMAL mode Supply voltage fc = 16 MHz IDLE mode − Input high voltage Input low voltage Clock frequency VIH1 Except hysteresis input VIH2 Hysteresis input STOP mode VDD × 0.70 VDD = 4.5 to 5.5V Key-on Wake-up input Except hysteresis input VIL2 Hysteresis input VIL3 Key-on Wake-up input VDD = 4.5 to 5.5V fc XIN, XOUT VDD = 4.5 to 5.5V Internal clock VDD V VDD × 0.90 VIH3 VIL1 fOSC VDD × 0.75 VDD × 0.30 VDD = 4.5 to 5.5V 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. 88PS34-12 2006-07-06 TMP88PS34 (VSS = 0 V, Topr = −30 to 70 °C) DC Characteristics Parameter Symbol Hysteresis voltage Input current Input resistance Pins Conditions Min Typ. Max Unit − 0.9 − V VHS Hysteresis input 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 IIN4 RESET , STOP VDD = 5.5 V, VIN = 5.5 V/0 V − − ±2 RIN2 RESET VDD = 5.5 V, VIN = 0 V 100 220 450 ILO1 Sink open drain ports VDD = 5.5 V, VOUT = 5.5 V − − 2 ILO2 Tri-state ports VDD = 5.5 V, VOUT = 5.5 V/0 V − − ±2 Output high voltage VOH2 Tri-state ports VDD = 4.5 V, IOH = −0.7 mA 4.1 − − Output low voltage VOL Except XOUT and ports P60 VDD = 4.5 V, IOL = 1.6 mA − − 0.4 Output low current IOL3 Port P60 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 Output leakage current Supply current in NORMAL mode Supply current in IDLE mode − IDD kΩ μA V (Note3) VDD = 5.5 V VIN = 5.3 V/0.2 V Supply current in STOP mode μA 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 Symbol (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70 °C) Conditions Min Typ. Max VAREF supplied from VDD pin. − VDD − VASS supplied from VSS pin. − 0 − = VDD − VSS − VDD − VSS − VDD − − ±1 − − ±2 Full scale error − − ±2 Total error − − ±3 Analog reference voltage Analog reference voltage range Analog input voltage ∆VAREF VAIN Nonlinearity error Zero point error VDD = 5.0 V Unit V LSB Note: The total error means all error except quanting error. 88PS34-13 2006-07-06 TMP88PS34 (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70 °C) AC characteristics Parameter Symbol Conditions Min Typ. Max Unit 0.5 − 1.0 μs 31.25 − − ns in NORMAL mode Machine cycle time tcy in IDLE mode High level clock pulse width tWCH For external clock operation Low level clock pulse width tWCL (XIN input), fc = 16 MHz (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70 °C) Recommended oscillating conditions Parameter High-frequency oscillation Oscillation Frequency Oscillator Ceramic resonator Recommended Constant Recommended Oscillator 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 88PS34-14 2006-07-06 TMP88PS34 Recommended oscillating conditions (VSS = 0 V, VDD = 4.5 V to 5.5 V, Topr = −30 to 70 °C) Oscillation Item Recommended parameter value Resonator Frequency Oscillation for OSD LC resonator L (μH) C1 (pF) C2 (pF) 8 MHz 33 5 to 30 10 12 MHz 15 5 to 30 10 16 MHz 10 5 to 30 10 20 MHz 6.8 5 to 25 10 24 MHz 4.7 5 to 25 10 OSC1 OSC2 L C2 C1 Oscillation for OSD The frequency generated in LC oscillation can be obtained using the following equations. f = 1 C ・C ,C = 1 2 2π LC C1 + C2 C1 is not fixed at a constant value. It can be changed to tune into the desired frequency. Note 1: Toshiba’s OSD circuit determines a horizontal display start position by counting clock pulses generated in LC oscillation. For this reason, the OSD circuit may fail to detect clock pulses normally, resulting in the horizontal start position becoming unstable, at the beginning of oscillation, if the oscillation amplitude is low. Changing L and C2 from the values recommended for a specific frequency may hamper a stable OSD display. If the LC oscillation frequency is the same as a high-frequency clock value, the oscillation of the high-frequency oscillator may cause the LC oscillation frequency to fluctuate, thus making OSD displays flicker. When determining these parameters, please check the oscillation frequency and the stability of oscillation on your TV sets. Also check the determined parameters on your final products, because the optimum parameter values may vary from one product to another. Note 2: When using the LSI package in a strong electric field, such as near a CRT, electrically shield the package so that its normal operation can be maintained. 88PS34-15 2006-07-06 TMP88PS34 (VSS = 0 V) DC/AC Characteristics (PROM mode) (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 Input high voltage (D0 to D7, A0 to A16, CE , OE , PGM ) Conditions Min Typ. Max 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 88PS34-16 Unit V ms 2006-07-06 TMP88PS34 High-speed Programming Timing A16 to A0 CE OE D7 to D0 Unknown Input data Data outputs tPW PGM 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. 88PS34-17 2006-07-06 TMP88PS34 Package P-SDIP42-600-1.78 Unit: mm 88PS34-18 2006-07-06 TMP88PS34 P-QFP44-1414-0.80D Unit: mm 88PS34-19 2006-07-06 TMP88PS34 88PS34-20 2006-07-06