TMP86FH47UG Datasheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

TMP86FH47

CMOS 8-Bit Microcontroller


TMP86FH47UG
The TMP86FH47 is a high-speed, high-performance 8-bit microcomputer built around the TLCS-
870/C Series core with built-in 16-Kbyte flash memory and it is pin compatible with its mask ROM
version, the TMP86C845/847/H47. Writing programs in the built-in flash memory enables this
microcomputer to perform the same operations as the TMP86C847/H47. About TMP86C845, please
refer to “Difference between TMP86C845 and TMP86Cx47”. The built-in flash memory can be
rewritten on board (without removing it from the PCB) by a built-in boot program.

Product No. Flash Memory RAM Package


TMP86FH47UG 16384 u 8 bits 512 u 8 bits P-LQFP44-1010-0.80A

Feautures P-LQFP44-1010-0.80A
i 8-bit single chip microcomputer TLCS-870/C series
i Instruction execution time: 0.25 Ps (at 16 MHz)
122 Ps (at 32.768 kHz)
i 132 types and 731 basic instructions
i 18 interrupt sources (External: 6, Internal: 12)
i Input/output ports (35 pins)
TMP86FH47UG
i 8-bit timer counter: 2 ch
• Timer, PWM, PPG, PDO, Event counter modes
i Time base timer
i Watchdog timer
• Interrupt sources/reset output (Programmable)
i Serial interface
• 8-bit SIO: 1 ch
• 8-bit UART: 1 ch

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.

86FH47-1 2003-09-10
TMP86FH47

i 10-bit successive approximation type AD converter


• Analog input: 8 ch
i 16-bit timer counter: 1 ch
• Timer, event counter, pulse width measurment, programmable pulse generator (PPG),
external-triggered timer, window modes
i Key-on wakeup: 4 ch
i Dual clock operation
• Single/dual-clock mode
i Nine power saving operating modes
• STOP mode: Oscillation stops. Battery/capacitor backup.
Port output hold/high-impedance.
• SLOW 1, 2 mode: Low power consumption operation using low-frequency clock (32.768 kHz)
• IDLE 0 mode: CPU stops, and peripherals operate using high-frequency clock of time-
base-timer. Release by INTTBT interrupt.
• IDLE 1 mode: CPU stops, and peripherals operate using high-frequency clock.
Release by interrupts.
• IDLE 2 mode: CPU stops, and peripherals operate using high and low frequency clock.
Release by interrupts.
• SLEEP 0 mode: CPU stops, and peripherals operate using low-frequency clock of time-
base-timer. Release by INTTBT interrupt.
• SLEEP 1 mode: CPU stops, and peripherals operate using low-frequency clock.
Release by interrupts.
• SLEEP 2 mode: CPU stops, and peripherals operate using high and low frequency clock.
Release by interrupts.
i Wide operating voltage: 4.5 to 5.5 V at 16 MHz/32.768 kHz
2.7 to 5.5 V at 8 MHz/32.768 kHz

Note: The operating voltage, the operating temperature and the operating current are different
between TMP86FH47 and TMP86C845/847/H47.
About details, please refer to electrical characteristics of each products.

86FH47-2 2003-09-10
TMP86FH47

Difference Between TMP86C845 and TMP86Cx47


TMP86Cx47U
TMP86C845U
TMP86C847U TMP86CH47U TMP86CM47U
ROM (Byte) 8K 16 K 32 K 8K
RAM (Byte) 512 512 1K 256
I/O 35 35
Package (Body size) QFP44 (10 u 10 mm) QFP44 (10 u 10 mm)
Min instruction 0.25 Ps (at 16 MHz) 0.5 Ps (at 8 MHz)
1.8 to 5.5 V at 4.2 MHz/32.768 kHz
2.7 to 5.5 V at 8.0 MHz/
Supply voltage 2.7 to 5.5 V at 8.0 MHz/32.768 kHz
32.768 kHz
4.5 to 5.5 V at 16 MHz/32.768 kHz
16-bit timer/counter 1 ch –
8-bit timer/counter 2 ch 2 ch
Time base timer 1 ch 1 ch
Watchdog timer 1 ch 1 ch
AD converter 8 ch 8 ch
Serial I/O Clocked synchronous: 1 ch, UART: 1 ch Clocked synchronous: 1 ch
Key on wakeup 4 ch –
Warm-up counter 6 4
Hysteresis Port2, P00, P05, P06, P07,
P0, P1, P2 port
input P10, P11, P12, P15 pin
I/O
CMOS Port3, Port4, P01, P02, P03,
Circuitry P3, P4 port
input P04, P13, P14, P16, P17 pin
RESET Watchdog timer, Adress trap, System clock reset output Input only
Operation Temp. 40 to 85qC 40 to 85qC
are difference points between TMP86C845 and TMP86Cx47.

Please refer to “Input/Output Circutry” of TMP86C847/H47/M47 and TMP86C845 for details.

86FH47-3 2003-09-10
AVSS
VAREF

P47
P46
P45
P44
P43
P42
P41
P40
AVDD
Pin Assignments (Top view)

P-LQFP44-1010-0.80A

44
43
42
41
40
39
38
37
36
34

35
VSS 1 33 P37 (AIN7/STOP5)

XIN 2 32 P36 (AIN6/STOP4)

XOUT 3 31 P35 (AIN5/STOP3)

TEST 4 30 P34 (AIN4/STOP2)

VDD 5 29 P33 (AIN3)

(XTIN) P21 6 28 P32 (AIN2)

Top view
(XTOUT) P22 7 27 P31 (AIN1)

RESET 8 26 P30 (AIN0)

86FH47-4
(STOP/INT5) P20 9 25 P10 (PWM3/TC3/PDO3)/BOOT1

(INT0) P00 10 24 P11 (INT1)/BOOT2

(TC4/PDO4/PPG4/PWM4) P01 11 23 P12 (INT2/TC1)

12
13
14
15
16
17
18
19
20
21
22

P17
P16

P05 (SI)

P04 (SO)
P06 (SCK)
P14 (PPG)
P13 (DVO)

P03 (TXD)

P02 (RXD)
P07 (INT4)
P15 (INT3)

2003-09-10
TMP86FH47
TMP86FH47

Block Diagram

Program memory
(Flash memory) Address/data bus

TLCS-870/C Data memory Boot program


Flash memory I/F CPU (RAM) (ROM)

Standby control
circuit Interrupt controller
RESET System control
TEST circuit

Timing generator Time base 16-bit 8-bit


High timer timer/counter timer/counter 10-bit AD
XIN SIO UART
frequency Clock converter
XOUT
Low generator Watchdog TC1 TC3 TC4
frequency timer

Address/data bus

P2 P1 P4 P0 P3

AVSS
P22 to P20 P17 to P10 P47 to P40 P07 to P00 P37 to P30 AVDD
VAREF

I/O ports

86FH47-5 2003-09-10
TMP86FH47

Pin Function
The TMP86FH47 has MCU mode and serial PROM mode.

(1) MCU mode


In the MCU mode, the TMP86FH47 is a pin compatible with the TMP86C845/847/H47 (Make
sure to fix the TEST pin to low level).
(2) Serial PROM mode
The serial PROM mode is set by fixing TEST pin, P10 and P11 at “high” respectively when
RESET pin is fixed “low”.
After release of reset, the built-in BOOT ROM program is activated and the built-in flash
memory is rewritten by serial I/F (UART).
Pin Name Input/ Pin Name
Functions
(Serial PROM mode) Output (MCU mode)
Fix “High” during reset. This pin is used as
BOOT1/RXD Input/Input P10
RXD pin after releasing reset.
Fix “High” during reset. This pin is used as
BOOT2/TXD Input/Output P11
TXD pin after releasing reset.
TEST Input Fix to “High”.
RESET I/O Reset signal input or an internal error reset output.
VDD, AVDD 5V
Power supply
VSS, AVSS, VAREF 0V
P07 to P00, P17 to P12, P22 to P20,
Fix to “Low” or “High”.
P37 to P30, P47 to P40
XIN Input
Self oscillation with resonator (2 MHz, 4 MHz, 8 MHz, 16 MHz)
XOUT Output

86FH47-6 2003-09-10
TMP86FH47

Operation
This section describes the functions and basic operational blocks of TMP86FH47.
The TMP86FH47 has flash memory in place of the mask ROM which is included in the
TMP86C845/847/H47. The configuration and function are the same as the TMP86C847/H47. For
TMP86C845, however, some functions have been partially changed or deleted. For the functions of
TMP86FH47 in details, see the section of TMP86C845/847/H47.

1. Operating Mode
The TMP86FH47 has MCU mode and serial PROM mode.

1.1 MCU Mode


The MCU mode is set by fixing the TEST pin to the low level.
In the MCU mode, the operation is the same as the TMP86C845/847/H47 (TEST pin cannot be
used open because it has no built-in pull-down resistor).

1.1.1 Program memory


The TMP86FH47 has a 16-Kbyte built-in flash memory (addresses C000H to FFFFH in the
MCU mode).
When using TMP86FH47 for evaluation of TMP86C845/847/H47, the program is written by the
serial PROM mode.

0000H 0000H

C000H C000H

Program Program

FFFFH FFFFH
MCU mode

TMP86CH47 TMP86FH47

(a) ROM Size = 16 Kbytes

0000H 0000H

E000H E000H

Program Program

FFFFH FFFFH
MCU mode

TMP86C845/H47 TMP86FH47

(b) ROM Size = 8 Kbytes

Figure 1.1.1 Program Memory Area


Note: The area that is not in use should be set data to FFH.

86FH47-7 2003-09-10
TMP86FH47

2. Serial PROM Mode


2.1 Outline
The TMP86FH47 has a 2-Kbyte BOOT ROM for programming to flash memory. This BOOT ROM
is a mask ROM that contains a program to write the flash memory on-board. The BOOT ROM is
available in a serial PROM mode and it is controlled by TEST pin and RESET pin and 2 I/O pins,
and is communicated with UART. There are four operation modes in a serial PROM mode: flash
memory writing mode, RAM loader mode, flash memory SUM output mode and product
discrimination code output mode. Operating area of serial PROM mode differs from that of MCU
mode. The operating area of serial PROM mode shows in Table 2.1.1.
Table 2.1.1 Operating Area of Serial PROM Mode
Parameter Symbol Min Max Unit
Operating voltage VDD 4.5 5.5 V
High frequency fc 2, 4, 8, 16 MHz
Temperature Topr 25 r 5 qC

2.2 Memory Mapping


The BOOT ROM is mapped in address F800H to FFFFH. The BOOT ROM can’t be accessed in
MCU mode. The Figure 2.2.1 shows a memory mapping.

0000H 0000H
SFR 64 bytes SFR 64 bytes
003FH 003FH
0040H 0040H
RAM 512 bytes RAM 512 bytes
023FH 023FH

C000H

Flash
memory 16384 bytes
F800H
BOOT ROM 2048 bytes
FFFFH FFFFH
MCU mode Serial PROM mode

Figure 2.2.1 Memory Address Maps

86FH47-9 2003-09-10
TMP86FH47

Electrical Characteristics
Absolute Maximum Ratings (VSS 0 V)

Parameter Symbol Pins Rating Unit


Supply voltage VDD 0.3 to 5.5
Input voltage VIN 0.3 to VDD  0.3 V
Output voltage VOUT 0.3 to VDD  0.3
IOUT1 IOH P1, P3, P4 ports 1.8
Output current (Per 1 pin) IOUT2 IOL P1, P3 ports 3.2
IOUT3 IOL P0, P2, P4 ports 30 mA
6IOUT1 P1, P3 ports 60
Output current (Total)
6IOUT2 P0, P2, P4 ports 80
Power dissipation [Topr 70°C] PD 250 mW
Soldering temperature (time) Tsld 260 (10 s)
Storage temperature Tstg 55 to 125
°C
40 to 70 (MCU mode)
Operating temperature Topr
20 to 30 (Serial PROM mode)

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.

86FH47-27 2003-09-10
TMP86FH47

Recommended Operating Condition


1) MCU mode (VSS = 0 V, Topr = 40 to 70ºC)

Parameter Symbol Pins Condition Min Max Unit


NORMAL1, 2 mode
fc 16 MHz 4.5
IDLE0, 1, 2 mode
Supply voltage VDD NORMAL1, 2 mode 5.5
fc 8 MHz
IDLE0, 1, 2 mode 2.7
STOP mode
VIH1 Except hysteresis input VDD u 0.70
VDD t 4.5 V V
Input high level VIH2 Hysteresis input VDD u 0.75 VDD
VIH3 VDD  4.5 V VDD u 0.90
VIL1 Except hysteresis input VDD u 0.30
VDD t 4.5 V
Input low level VIL2 Hysteresis input 0 VDD u 0.25
VIL3 VDD  4.5 V VDD u 0.10
VDD 4.5 to 5.5 V 16.0
fc XIN, XOUT 1.0 MHz
Clock frequency VDD 2.7 to 5.5 V 8.0
fs XTIN, XTOUT 30.0 34.0 kHz

2) Serial PROM mode (VSS = 0 V, Topr = 20 to 30ºC)

Parameter Symbol Pins Condition Min Max Unit


Supply voltage VDD fc 2 MHz, 4 MHz, 8 MHz, 16 MHz 4.5 5.5
VIH1 Except hysteresis input VDD u 0.70
Input high level VDD 4.5 to 5.5 V VDD
VIH2 Hysteresis input VDD u 0.75 V
VIL1 Except hysteresis input VDD u 0.30
Input low level VDD 4.5 to 5.5 V 0
VIL2 Hysteresis input VDD u 0.25
Clock frequency fc XIN, XOUT VDD 4.5 to 5.5 V 2.0, 4.0, 8.0, 16 MHz

Note: 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.

86FH47-28 2003-09-10
TMP86FH47

DC Characteristics (VSS 0 V, Topr 40 to 70°C)

Parameter Symbol Pins Condition Min Typ. Max Unit


Hysteresis voltage VHS Hysteresis input  0.9  V
IIN1 TEST

Input current IIN2 Sink open drain, tri-state VDD 5.5 V, VIN 5.5/0 V   r2 PA
IIN3 RESET, STOP
Input resistance RIN2 RESET pull up 100 200 450 k:

Output leakage ILO1 Sink open drain VDD 5.5 V, VOUT 5.5 V   2
PA
current ILO2 Tri-state VDD 5.5 V, VOUT 5.5/0 V   r2
Output high voltage VOH Tri-state VDD 4.5 V, lOH 0.7 mA 4.1  
Except XOUT, P0, P2 V
Output low voltage VOL VDD 4.5 V, IOL 1.6 mA   0.4
and P4 ports
High current port
Output low current IOL VDD 4.5 V, VOL 1.0 V  20 
(P0, P2, P4 port)
Supply current in
 8.0 12.5
NORMAL 1, 2 mode VDD 5.5 V
mA
Supply current in VIN 5.3 V/0.2 V
 6.0 9.0
IDLE1, 2 mode fc 16 MHz
Supply current in fs 32.768 kHz
 4.5 9.0
IDLE0 mode
When a program
operates on  300 600
Supply current in flash memory
SLOW1 mode IDD When a program
VDD 3.0 V operates on  8.0 27
VIN 2.8 V/0.2 V RAM
Supply current in fs 32.768 kHz PA
 7.0 25
SLEEP1 mode
Supply current in
 6.0 24
SLEEP0 mode
Supply current in VDD 5.0 V
 0.5 10
STOP mode VIN 5.3 V/0.2 V

Note 1: Typical values show those at Topr 25°C, VDD 5 V.

Note 2: Input current (IIN3); The current through pull-up resistor is not included.

Note 3: IDD does not include IREF current.

86FH47-29 2003-09-10
TMP86FH47

AD Conversion Characteristics (VSS 0 V, 4.5 V d VDD d 5.5 V, Topr 40 to 70°C)

Parameter Symbol Condition Min Typ. Max Unit


Analog reference voltage VAREF AVDD  1.0  AVDD
Power supply voltage of analog
AVDD VDD
control circuit
V
Analog reference voltage range
'VAREF 3.5  
(Note 4)
Analog input voltage VAIN VSS  VAREF
Power supply current of analog VDD AVDD VAREF 5.5 V
IREF  0.6 1.0 mA
reference voltage VSS AVSS 0.0 V
Non linearity error VDD AVDD 5.0 V   r2
Zero point error   r2
VSS AVSS 0.0 V LSB
Full scale error   r2
VAREF 5.0 V
Total error   r2

(VSS 0 V, 2.7 V d VDD  4.5 V, Topr 40 to 70°C)

Parameter Symbol Condition Min Typ. Max Unit


Analog reference voltage VAREF AVDD  1.0  AVDD
Power supply voltage of analog
AVDD VDD
control circuit
V
Analog reference voltage range
'VAREF 2.5  
(Note 4)
Analog input voltage VAIN VSS  VAREF
Power supply current of analog VDD AVDD VAREF 4.5V
IREF  0.5 0.8 mA
reference voltage VSS AVSS 0.0 V
Non linearity error VDD AVDD 2.7 V   r2
Zero point error   r2
VSS 0.0 V LSB
Full scale error   r2
VAREF 2.7 V
Total error   r2

Note 1: The total error includes all errors except a quantization error, and is defined as a maximum
deviation from the ideal conversion line.

Note 2: Conversion time is different in recommended value by power supply voltage.


About conversion time, please refer to “10-Bit AD Converter”.

Note 3: Please use input voltage to AIN input pin in limit of VAREF  VSS.
When voltage of range outside is input, conversion value becomes unsettled and gives affect
to other channel conversion value.

Note 4: Analog reference voltage range: 'VAREF VAREF  VSS

Note 5: The AVDD pin should be fixed on the VDD level even though AD converter is not used.

86FH47-30 2003-09-10
TMP86FH47

AC Characteristics (VSS 0 V, VDD 4.5 to 5.5 V, Topr 40 to 70°C)

Parameter Symbol Condition Min Typ. Max Unit


NORMAL1, 2 mode
0.25  4
IDLE1, 2 mode
Machine cycle time tcy Ps
SLOW1, 2 mode
117.6  133.3
SLEEP1, 2 mode
High level clock pulse width twcH For external clock operation (XIN
 31.25  ns
Low level clock pulse width twcL input), fc 16 MHz
High level clock pulse width twcH For external clock operation (XTIN
 15.26  Ps
Low level clock pulse width twcL input), fs 32.768 kHz

(VSS 0 V, VDD 2.7 to 4.5 V, Topr 40 to 70°C)

Parameter Symbol Condition Min Typ. Max Unit


NORMAL1, 2 mode
0.5  4
IDLE1, 2 mode
Machine cycle time tcy Ps
SLOW1, 2 mode
117.6  133.3
SLEEP1, 2 mode
High level clock pulse width twcH For external clock operation (XIN
 62.5  ns
Low level clock pulse width twcL input), fc 8 MHz
High level clock pulse width twcH For external clock operation (XTIN
 15.26  Ps
Low level clock pulse width twcL input), fs 32.768 kHz

86FH47-31 2003-09-10
TMP86FH47

Recommended Oscillating Conditions-1 (VSS 0 V, VDD 4.5 to 5.5 V, Topr 40 to 70qC)

Oscillation Recommended Constant


Parameter Oscillator Recommened Oscillator
Frequency C1 C2
16 MHz MURATA CSA16.00MXZ040 10 pF 10 pF
MURATA CSA8.00MTZ 30 pF 30 pF
High-frequency Ceramic 8 MHz
CST8.00MTW 30 pF (built-in) 30 pF (built-in)
Oscillation Resonator
MURATA CSA4.19MG 30 pF 30 pF
4.19 MHz
CST4.19MGW 30 pF (built-in) 30 pF (built-in)
Low-frequency
Crystal Oscillator 32.768 kHz SII VT-200 6 pF 6 pF
Oscillation

Recommended Oscillating Conditions-2 (VSS 0 V, VDD 2.7 to 5.5 V, Topr 40 to 70qC)

Oscillation Recommended Constant


Parameter Oscillator Recommened Oscillator
Frequency C1 C2
MURATA CSA8.00MTZ 30 pF 30 pF
8 MHz
High-frequency Ceramic CST8.00MTW 30 pF (built-in) 30 pF (built-in)
Oscillation Resonator MURATA CSA4.19MG 30 pF 30 pF
4.19 MHz
CST4.19MGW 30 pF (built-in) 30 pF (built-in)

XIN XOUT XTIN XTOUT

C1 C2 C1 C2

High-frequency oscillation Low-frequency oscillation

Note 1: When using the device (Oscillator) in places exposed to high electric fields such as cathode-
ray tubes, we recommend electrically shielding the package in order to maintain normal
operating condition.

Note 2: To ensure stable oscillation, the resonator position, load capacitance, etc. must be
appropriate. Because there factors are greatly affected by board patterns, please be sure to
evaluate operation on the board on which the device will actually be mounted.

Note 3: 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

86FH47-32 2003-09-10

You might also like