TMP87PS39
CMOS 8-Bit Microcontroller
TMP87PS39N/F
The TMP87PS39 is a One-Time PROM microcontroller with low-power 543 Kbits (a 60 Kbytes
program memory and a 256 characters OSD font memory) electrically programmable read only
memory for the TMP87CS39 system evaluation. The TMP87PS39 is pin compatible with the
TMP87CS39. The operations possible with the TMP87CS39 can be performed by writing programs
and OSD character data to PROM. The TMP87PS39 can write and verify in the same way as the
TC571000 using an adaptor socket BM11118/BM11138 and an EPROM programmer.
Part No.
TMP87PS39N
TMP87PS39F
60 Kbytes
OTP
14
18
256 bits
RAM
2 Kbytes
Package
P-SDIP64-750-1.78
P-QFP64-1420-1.00A
Adaptor Socket
BM11118
BM11138
030519EBP1
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 CORPORATION for any infringements of intellectual property or other rights of the third parties which may result from its
use. No license is granted by implication or otherwise under any intellectual property or other rights of TOSHIBA CORPORATION 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 I
2
C components conveys a license under the Philips I
2
C Patent Rights to use
these components in an I
2
C system, provided that the system conforms to the I
2
C Standard
Specification as defined by Philips.
87PS39-1
2003-06-03
TMP87PS39
Pin Assignments (Top View)
P36 (SCK)
P35 (SDA/SO)
P34 (SCL/SI)
P33 (TC4)
P32 (INT4)
P31 (TC3)
P30 (INT3/RXIN)/A16
P22 (XTOUT)
P21 (XTIN)
P20 (INT5/STOP)
RESET
XOUT
XIN
TEST/VPP
OSC2
OSC1
P74 (CSK1)
P73 (SDA1/SO1)
P72 (SCL1/SI1)
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
P-QFP64-1420-1.00A
P-QFP64-1420-1.00A
TMP87PS39F
P-SDIP64-750-1.78
P-SDIP64-750-1.78
VSS
D6/P06
D7/P07
(
INT0
) P10
(INT1) P11
(INT2/TC1) P12
CE
/(
DVO
) P13
OE
/(
PPG
) P14
PGM
/(TC2) P15
P16
P17
(
PWM0
) P40
(
PWM1
) P41
(
PWM2
) P42
(
PWM3
) P43
(
PWM4
) P44
(
PWM5
) P45
(
PWM6
) P46
(
PWM7
) P47
A0/(
PWM8
) P50
A1/(
PWM9
) P51
A2/(AIN0) P52
A3/(AIN1) P53
A4/(AIN2) P54
A5/(AIN3) P55
A6/(AIN4) P56
A7/(AIN5) P57
A8/(AIN6) P60
A9/(AIN7) P61
A10/P62
A11/P63
GND/VSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
VDD/VCC
P05/D5
P04/D4
P03/D3
P02/D2
P01/D1
P00/D0
P36 (
SCK
)
P35 (SDA/SO)
P34 (SCL/SI)
P33 (TC4)
P32 (INT4)
P31 (TC3)
P30 (INT3/RXIN)/A16
P22 (XTOUT)
P21 (XTIN)
P20 (
INT5
/
STOP
)
XOUT
XIN
TEST/VPP
OSC2
OSC1
P74 (
SCK1
)
P73 (SDA1/SO1)
P72 (SCL1/SI1)
P71 (
VD
)
P70 (
HD
)
P67 (Y/BL)/A15
P66 (B)/A14
P65 (G)/A13
P64 (R)/A12
RESET
TMP87PS39N
CE/(DVO) P13
OE/(PPG) P14
PGM/(TC2) P15
P16
P17
(PWM0) P40
(PWM1) P41
(PWM2) P42
(PWM3) P43
(PWM4) P44
(PWM5) P45
(PWM6) P46
(PWM7) P47
A0/(PWM8) P50
A1/(PWM9) P51
A2/(AIN0) P52
A3/(AIN1) P53
A4/(AIN2) P54
A5/(AIN3) P55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
D0/P00
D1/P01
D2/P02
D3/P03
D4/P04
D5/P05
YCC/VDD
VSS
D6/P06
D7/P07
(
INT0
) P10
(INT1) P11
(INT2/TC1) P12
52
53
54
55
56
57
58
59
60
61
62
63
64
P71 (
VD
)
P70 (
HD
)
P67 (Y/BL)/A15
P66 (B)/A14
P65 (G)/A13
P64 (R)/A12
VSS/GND
P63/A11
P62/A10
P61 (AIN7)/A9
P60 (AIN6)/A8
P57 (AIN5)/A7
P56 (AIN4)/A6
87PS39-2
2003-06-03
TMP87PS39
Pin Function
The TMP87PS39 has two modes: MCU and PROM.
(1) MCU mode
In this mode, the TMP87PS39 is pin compatible with the TMP87CS39 (fix the TEST pin at
low level).
(2) PROM mode
Pin Name
(PROM mode)
A16
A15 to A8
A7 to A0
D7 to D0
CE
OE
PGM
Input/Output
Input
I/O
Input
Input
Power supply
Functions
PROM address inputs
PROM data input/outputs
Chip enable signal input (active low)
Output enable signal input (active low)
Program mode signal input (active low)
12.5V/5V (Program supply voltage)
5V
0V
Pin Name
(MCU mode)
P30
P67 to P60
P57 to P50
P07 to P00
P13
P14
P15
TEST
VDD
VSS
VPP
VCC
GND
P47 to 40
P12
P74 to P70
P36 to P32
P11
P21
P31
P17, P16, P10
P22, P20
RESET
Pull-up with resistance for input processing
Input
PROM mode setting pin. Be fixed at high level.
PROM mode setting pin. Be fixed at low level.
Input
Output
Input
Output
XIN
XOUT
OSC1
OSC2
Connect an 8 MHz oscillator to stabilize the internal state.
Non connection
87PS39-3
2003-06-03
TMP87PS39
Operational Description
The following explains the TMP87PS39 hardware configuration and operation. The
configuration and functions of the TMP87PS39 are the same as those of the TMP87CS39, except in
that a one-time PROM is used instead of an on-chip mask ROM.
The TMP87PS39 is placed in the single-clock mode during reset. To use the dual-clock mode, the
low-frequency oscillator should be turned on by executing [SET (SYSCR2). XTEN] instruction at
the beginning of the program.
1.
1.1
Operating Mode
The TMP87PS39 has two modes: MCU and PROM.
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 TMP87CS39 (the TEST/VPP pin cannot
be used open because it has no built-in pull-down resistance).
1.1.1
Program Memory and OSD Character Font Memory
The TMP87PS39 has a 60 K 8-bit (addresses 1100H to FFFFH in the MCU mode,
addresses 11100H to 1FFFFH in the PROM mode) of program memory and a 14 18 256
bits (addresses 04000H to 07FFFH in the PROM mode) of OSD character font memory.
0000H
0000H
00000H
04000H
07FFFH
11100H
Program
FFFFH
TMP87CS39
0000H
0000H
1FFFFH
Don’t use
OSD character
1100H
Program
FFFFH
1100H
Don’t use
Program
MCU mode
(a) ROM size
TMP87PS39
60 Kbyte
00000H
04000H
07FFFH
PROM mode
Don’t use
OSD character
Don’t use
4000H
Program
FFFFH
TMP87CP39
0000H
4000H
Program
FFFFH
MCU mode
14000H
Program
1FFFFH
PROM mode
(b) ROM size
0000H
TMP87PS39
48 Kbyte
00000H
04000H
07FFFH
Don’t use
OSD character
Don’t use
8000H
FFFFH
Program
TMP87CM39
8000H
FFFFH
Program
MCU mode
18000H
1FFFFH
Program
PROM mode
(c) ROM size
Note:
TMP87PS39
32 Kbyte
Set the PROM programmer to access only the program storage area or OSD character font area.
Figure 1.1.1 Program Memory Area
87PS39-4
2003-06-03
TMP87PS39
1.1.2
1.1.3
Data Memory
The TMP87PS39 has an on-chip 2 Kbytes data memory (static RAM).
Input/Output Circuitry
(1) Control pins
The control pins of the TMP87PS39 are the same as those of the TMP87CS39 except
that the TEST pin has no built-in pull-down resistance.
1k
Note:
TEST pin has no built-in pull-down resistance.
Figure 1.1.2 TEST Pin
(2) I/O ports
The I/O circuitries of TMP87PS39 I/O ports the are the same as those of the
TMP87CS39.
1.2
PROM Mode
The PROM mode is activated by setting the TEST,
RESET
pin and the ports P22 to P20, P17
to P16, P11 to P10 and P31 as shown in Figure 1.1.2. 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 TMP87PS39 is not supported an electric signature mode, so the ROM type must be set to
TC571000.
Set the adaptor socket switch to “N”.
V
PP
(12.75 V/5 V)
TMP87PS
VDD
P31
P21
P11
P13
P14
P15
P07 to P00
XIN
8 MHz
XOUT
VSS
GND
PROM programmer connection adaptor socket
BM11118 for TMP87PS39N, BM11138 for TMP87PS39F
P10
P20
P22
P16
P17
RESET
CE
OE
PGM
V
CC
TEST
A16 to A0
P30
P67 to P60
P57 to P50
D7 to D0
For more information on pins
refer to the section on pin
function.
Figure 1.2.1 Setting for PROM Mode
87PS39-5
2003-06-03