TMP87CC20F TOSHIBA | Alldatasheet
Document overview
- Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
- PDF pages: 11
Technical content
Features
8-bit single chip microcomputer TLCS-870 Series P-QFP80-1420-0.80B @ instruction execution time: 0.5 vs (at 8 MHz), 122 vs (at 32.768 kHz) 412 basic instructions ®@ Multiplication and Division (8 bits x 8 bits, 16 bits + 8 bits) © Bit manipulations (set/clear/complement/movertest /exclusive or) © 16-bit data operations © 1-byte jump/subroutine-call (Short relative jump / Vector call) @ 13 interrupt sources (External: 4, Internal: 9) aN, @ Allsources have independent latches each, and nested a > interrupt control is available. ~ <a. @ 2 edge-selectable external interrupts with noise reject eS << = @ High-speed task switching by register bank changeover /
7 Input/Output ports (45 pins)
@ High current output: 2 pins (typ. 20 mA) TMP87CC20F 16-bit Timer/Counter TMP87CH20F @ Timer, Event counter, Pulse width measurement, Frequency TMP87CK20AF measurement modes TMP87CM20AF ore TMP87PH20F @Four 8-bit Timer/Counters TMP87PM20F ® Timer, Event counter, Capture (Pulse width/duty measurement), PWM output, Programmable divider output modes @Time Base Timer (Interrupt frequency: 1 Hz to 16 kHz) @Divider output function (frequency: 1kHz to 8 kHz) @Watchdog Timer @ Interrupt source / reset output (programmable) 8-bit Serial Interface © With 8 bytes transmit/receive data buffer @ Internal/external serial clock, and 4/8-bit mode @LCD driver/Controller © LCD direct drive capability (max. 16-digit display at 1/4 duty LCD). © 1/4, 1/3, 1/2 duties or static drive are programmably selectable. © With display memory. 980910EBP1 @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. @ TOSHIBA is continually working to improve the quality and the 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 observe standards of safety, and to avoid situations in which a malfunction or failure of a TOSHIBA product 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 products specifications. Also, please keep in mind the precautions and conditions set forth in the TOSHIBA Semiconductor Reliability Handbook. Site products described in this document are subject to the foreign exchange and foreign trade laws. 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. @ The information contained herein is subject to change without notice. 3-20-1 1999-08-24
TOSHIBA TMP87CC20/H20/K20A/M20A @Dual clock operation © Single/Dual-clock mode (option) @Five power saving operating modes @ STOP mode: Oscillation stops. Battery/Capacitor back-up. Port output hold/High-impedance. @ SLOW mode: Low power consumption operation using low-frequency clock (32.768 kHz). @ IDLE1 mode: CPU stops, and peripherals operate using high-frequency clock. Release by interrupts. @ IDLE2 mode: CPU stops, and peripherals operate using high and low frequency clock. Release by interrupts. @ SLEEP mode: CPU stops, and peripherals operate using low-frequency clock. Release by interrupts. (87CC20/H20, PH20) (87CK20A/M20A, PM20) @ Emulation Pod: BM87CH20F0B 3-20-2 1999-08-24
TOSHIBA TMP87CC20/H20/K20A/M20A aces 8 Pin Assignments (Top View) B E 88222858 coo -ges AOOESSRSUSRUSOCCESESERE! ee sects SBSSSARSVSRABSTTT LITT S Serene secie-— Cotes Sho re SEG16-— (C1168 37L1++ P13 (OVO) SEG1S=—Co1O169 36+ P12 (INT2) seG14<—Co1070 350 p11 (INT) seG13—<—cCom71 34fTD—1++ P10 (INTO) seeies— ean SE yoo SEG10=—C174 314+ Pos seG8=—C176 29H 1+ Poa aa Fone se6o- amps Se SEGS <—C—I179 ° 26H t= P01 SéG4-—-—C—11480 oramvueneaccans Bo POO HUUUUOUUGUUQOUOUUOUUNUOd SURSUSSSRRORRARRSERRRR BISSSeeSU SA ZSSYRRERRSSRS EUESS SESS eSBs geSseeeetse 8888" seb 8s ss BBR s BS|= ERE Block Diagram opus sets Ssesou rereciSropeaee Power Supply {wr it [4 Lcd drive vic | [re | power supply [] {J Vi Cae pe Program [ress _res_] ee eee.) See Counter Register banks U Reset REET <f-o[ sytem contol | , oe jee PBT | O O . O O O i il [3] [>a ] [es] P22to P20 P07 to POO P17to P10 ala ala ali WO Ports 3-20-3 1999-08-24
TOSHIBA TMP87CC20/H20/K20A/M20A Pin Function [povane | wowvowee | mn Sd P07 to POO vO input/output ports (tri-state) . i] . PIT OPA cafe lO ne Each bit of these ports Cam be |i cccccccssssssnsnmneeesessenssnsnnssmmnnneeeeeeneses P13 (DVO) W/O (Output) individually configured as an input | pivider output ntntntcnnnnfnnnnntrennrnel ge ay gutput under software prem | P12 (INT2) control. During reset, all bits are | External interrupt input 2 P11 (INT1) VO (Input) | Configured as inputs. When used as | & ternal interrupt input 1 a divider output, the latch must be ~ P10 (INTO) setto 1", External interrupt input 0 P22 (XTOUT) VO (Output) —_| 3-bit input/output port with latch Resonator connecting pins (32.768 kHz). For Wh . h inputting external clock, XTIN is used and P21 (XTIN) jen used as an input port, the | ytouT is opened W/O (Input) : a External interrupt input 5 or STOP mode P20 (INT5/STOP) release signal input P37 to P32 vo 8-bit input/output port with latch. nrnnnnsnnnesnennecnennsnnnsel When used as an input port, a PWM {iiss nnn P31 (PWAI1 / DOT) output, or a PDO output, the latch [spit pool cutout eosssssesseeeeseceesesesesseed YO (Output) must be set to “1” SON DW eT cateutor sosesseesssecnseceeseeesseeesnees a : -bi utpu P30 (PWM0/ PDOO) 8-bit PDOO output P47 (SO) VO (Output) SIO ial date itput 47 (50) | MO Outeu) | e-bitinputvoutput portwith latch, [510 Serial dataoutput P46 (Ss!) VO (Input) SIO serial data input P45 (SCK) v0 (vO) When used as an input port, a |si9 serial clock input/output Teosnnrsieannninnfninnmsne! timerfeounter input, 2 PWM output, frsssstascrriesnnnrnnrciecensey " 8-bit PWI2 output or Paa (PWM2/PDO2) | VO(Output) | a PDO output, or a SIO input/output, | shit POOZ. OUIPUE ccc P43 (TCa) VO (Input) the latch must be set to “1”. Timer/Counter 4 input P42 to P40 vo 2-bit input/output port with latch. , P51 (TC1) 1/0 (Input) When used as an input port or a Timer/Counter 1 input etneaneninentendenumnenenneneneed timertcounter input, the latch must sessesstensteneennnenannatsnnesaneseensee P50 (TC3) W/O (Input) be setto "1". Timer/Counter 3 input P67 (SEG24) to 8-bit input/output port with latch. LCD Segment outputs. vo (Output) | When used as an input port, the Pl latch must be set to "1 When used as a segment output, the P6 P60 (SEG31) control register (P6CR) must be set to “1”. ISEG23 to SEGO LCD it output output egment outputs ICOM3 to COMO LCD Common outputs NIN ROUT Input, Output _| Resonator connecting pins for high-frequency clock For inputting external clock, XIN is used and XOUT is opened. RESET vo Reset signal input or watchdog timer output/address-trap-reset output/system-clock- reset output. Power Supply LCD drive power suppl 3-20-4 1999-08-24
TOSHIBA TMP87CC20/H20/K20A/M20A OPERATIONAL DESCRIPTION 1. CPU CORE FUNCTIONS The CPU core consists of a CPU, a system clock controller, an interrupt controller, and a watchdog timer. This section provides a description of the CPU core, the program memory (ROM), the data memory (RAM), and the reset circuit.
1.1 Memory Address Map
The TLCS-870 Series is capable of addressing 64K bytes of memory. Figure 1-1 shows the memory address maps of the 87CC20/H20/K20A/M20A. In the TLCS-870 Series, the memory is organized 4 address spaces (ROM, RAM, SFR, and DBR). It uses a memory mapped I/O system, and all I/O registers are mapped in the SFR/DBR address spaces. There are 16 banks of general-purpose registers. The register banks are also assigned to the first 128 bytes of the RAM address space. ber ( 0000, 0000, 00004 100004, oo ome 0940 ogao Register banks i 128 bytes i 128 bytes : 128 bytes i 128 bytes (8 registers x 16 banks) OOBF OOBF QOBF fo---esseessssse] OOBE 00co 00Cco 00co 00Cco RAM | | go6bytes | : | s96bytes | : | aeabytes | - | aeabytes | Note? : : H i ROM; — Read Only Memory includes : i Hl 023F 023F Program memory i i ha : RAM; — Random Access Memory includes i i ii pi Data memory O43F | | 043F | tk ak L Stack lend w= yi aes = General-purpose register banks ( OF80 OF80 OF80 OF80 SFR; Special Function Register includes i 7 i i VO ports DBR 128 bytes | | 12ebytes | | | 128bytes | | 128 bytes Peripheral control registers [ i i i Peripheral status registers OFFF OFFF OFFF OFFF System control registers ps Zi Zi ais = Interrupt control registers 8000 i root Tit ? Program Status Word : wT | co00 rd po DBR; Data Buffer Register includes : i i f : SIO data buffer (8 bytes) i 2512 bytesL : D000 i . 4320 bytes 16128 bytes » Liaos2 byte LCD display data butter (16 bytes) FFOO FFOO FFOO ol BEQO ROM: i H : H 192 bytes = 192 bytes 3 192 bytes i 192 bytes aa ee 1a FEBE [occcecsccceceee] FEBE fooccccccccncene frov| 32bytes | tror| 32bytes FCO] a2bytes | frop| 32bytes ) oapnenneinanin En aren tor FED Jovsreceteresee] BED pa actnuet senna seston deen age ca reer | 32bytes | grep | 32bytes | FEC] azbytes | free | 3zbytes |) Yecorbleforinterupts) nsruction 87CM20A 87CK20A 87CH20 87¢C20 Figure 1-1. Memory Address Maps 1.2. Program Memory (ROM) The 87CC20 has a 12K x 8-bit (addresses DOOOH-FFFFH), the 87CH20 has a 16K x 8-bit (addresses COO0y- FFFFY), the 87CK20A has a 24K x8-bit (addresses AO00}-FFFF}), and the 87CM20A has a 32K x8-bit (addresses 8000}4-FFFF}Y) of program memory (mask programmed ROM). Addresses FFOO4-FFFFY in the program memory can also be used for special purposes. (1) Interrupt/Reset vector table (addresses FFEOQY-FFFF}H) This table consists of a reset vector and 15 interrupt vectors (2 bytes/vector). These vectors store a reset start address and interrupt service routine entry addresses. 3-20-5 1999-08-24
Electrical Characteristics
(1) 87CC20/H20 Absolute Maximum Ratings (Vss=0V ) Supply Voltage Povo fo = 03t07 Tv Except sink open drain pin, but include P21, - Voutt | p22, P6 and RESET 0.3t0 Von +0.3 Output Voltage Sink open drain SL POD PS v ink open drain pin except port P21, P22, and RESET 0.3t0 10 ; Ports PO, P1, P2, P3 (Except P30, P31) , P4, P5, P6 Output Current (Per 1 pin) mA Only P30, P31 Ports PO, P1, P2, P3 (Except P30, P31) , P4, P5, P6 Output Current (Total) mA Soldering Temperature(time) | tid [oct Storage Temperature a Operating Temperature [to [OC = 308070 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 | (Vss= OV, Topr = - 30 to 70°C) symbol | pins [conditions | win [max _[ unit | NORMAL 1, 2 mode fc=8 MHz IDLE1, 2mode NORMAL1, 2 mode fe = 4.2 MHz Supply Voltage Vop IDLE1, 2mode - v fs= SLOW mode : 32.768kHz | SLEEP mode Except hysteresis input Vo x0.70 fm pt hyst p Voo=45V DD Input High Voltage Hysteresis input Vppx0.75 | Voo v iL p st pi Vop24.5V ‘DD Vpp=4.5 to 6V te |x, xour vo = Clock Frequency Vop=2.7 106 V | 42 | 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 1/2 mode and IDLE1/2 mode. 3-20-85 1999-08-24
D.C.Characteristics (Vss = 0 V, Topr = - 30 to 70°C) symbol | Pins | conatitions | tin | ty. | oe | uni | Open drain port and Vpp =5.5V Input Current lin2 | tri-state port Viy=5.5V/0V #2) uA [ins | RESET, STOP Input Low Current Push-pull port Vp =5.5V, Vin=0.4V | - [ - | -2 | ma] Output Leakage 1, [Opendrainport and Voo=5.5VVour=55V | - | - | 2 | in Current ‘© [tri-state port Voo=5.5V,Vour=55v/ov | - | - | #2 | i Push-pull port Vop=4.5V, lon = - 200 vA [24] - | - | Output High Voltage - v Output Low Voltage Except XOUT and P30,P31__ | Vop=4.5V, lo.=1.6mA [| - [| - [oa] v | Output Low Current Only P30, P31 Vop = 4.5 V, VoL=1.0V | - [| 20 | - | ma] Supply Current in Vpp=5.5V NORMAL 1,2 mode fo-8MHz Supply Current in fs= 32.768 kHz IDLE 1, 2mode Vin=5.3V/0.2V Supply Current in NORMAL 1,2 mode Vpp = 3.0V, Viv=2.8V/0.2V fco=4.19 MHz Supply Current in fs = 32.768 kHz IDLE 1,2 mode Supply Current in Vpp=3.0V SLOW mode fs= 32.768 kHz %° aa Supply Current in Viy=2.8V/0.2V SLEEP mode LCD driver is not enable 15 uh Supply Current in Vop=5.5V WA STOP mode Vin =5.3V/0.2V Segment Output Low Revatance SEG31 to SEGO im Common Output Low OMS to COMO Segment Output High Resistance Vpp=5V 200 ko - Vop-Vic=3V Common Output High Roceioes Rocz | COM3 to COMO | 38 [40 | a2 | Segment /Common | Vor | SEG31 to SEGO and | 3.7_| Output Voltage Vo 12_| COMB to COMO pins [33 | 35 | 37 | v [28 | 30 [ 32 | Note 1: Typical values show those at Topr =25°C, Vpp =5V. Note 2: Input Current ; The current through pull-up or pull-down resistor is not included. Note 3: Output resustance Ros and Roc indicate “on” when switching levels. Note 4: Vogi3 indicates an output current at the 2/3 level when operating in the 1/4 or 1/3 duty mode. Note 5: Vo1/2 indicates an output current at the 1/2 level when operating in the 1/2 duty or static mode. Note 6: Vo1/3 indicates an output current at the 1/3 level when operating in the 1/4 or 1/3 duty mode. Note 7: When you use a liquid crystal display (LCD), it is necessary to give carefull consideration to the value of the output resisteor Ros 112, Roc 1/2- Note 8: Rosi, Roct: On time of the lower output resistor is 26/fc, 2/fs [s] Note 9: Ros2, Roce: On time of the higher output resistor is 1/ (n/fF) (1/n duty, fF: frame frequency) 3-20-86 1999-08-24
A.C. Characteristics (Vss = 0 V, Vpp = 4.5 to 6.0 V, Topr = - 30 to 70°C) symboi | conditions [min [tye | tox | unit | In NORMAL, 2 modes - ; In IDLE 1,2 modes Machine Cycle Time ty “s 117.6 133.3 High Level Clock Pulse Width For external clock operation Low Level Clock Pulse Width (XIN input), fe=8 MHz High Level Clock Pulse Width For external clock operation 147 ; Low Level Clock Pulse Width (XTIN input), fs = 32.768 kHz ; “ Frequercy of TC1 input [tics [Frequency measurementmode | — |= | fe | ie | Recommended Oscillating Condition | (Vss=0V, Vop=4.5to 6.0V, Topr= - 30 to 70°C) Recommended Condition Parameter Oscillator Frequency | Recommended Oscillator Ceramic Resonator KYOCERA KBR8.0M *enr amiz LSYOCERA KBR4.0MS - MURATA CSA4.00MG High-frequency Crystal Oscillator TOYOCOM — 2108 8.0000 20pF 20pF TOYOCOM — 2048 4.0000 Crystal Oscillator 32.768 kH2 XIN XOQUT XTIN XTOUT o & Led (1) High-frequency (2) Low-frequency Note: An electrical shield by metal shield plate on the surface of IC package should be recommendable in order to. prevent the device from the high electric fieldstress applied from CRT (Cathode Ray Tube) for continuous reliable operation. 3-20-87 1999-08-24
(2) 87CK20A/M20A Absolute Maximum Ratings (Vss=0V ) Except sink open drain pin, but include P21, Vout! | p22, P6 and RESET — 0.3 to Vop + 0.3 Output Voltage Sink di i t port P21, P22, P6 v ink open drain pin except port P21, P22, _ and RESET Ports PO, P1, P2, P3 (Except P30, P31) , Pd, P5, P6 Output Current (Per 1 pin) mA Only P30, P31 | 0 Ports PO, P1, P2,P3 (Except P30, P31) , P4, P5, P6 Output Current (Total) mA Soldering Temperature(time) | tid [28001089 [Storage Temperature | tty [stots |e | Operating Temperature Potor [oO =30t070 Te | 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 | (Vss=0V, Topr= - 30 to 70°C) [rome [omer] em [eons [wim [wero] fc=8 MHz fc =4.2MHz fs= SLOW mode ” 32.768 kHz | SLEEP mode ; i pt hyst PA Vop24.5V Do Input High Voltage Yoo | ¥ Jovws [oT oesy | V0 x0.90| it pt hy’ pA Vpo245V oo Tvs | ees Pts [xnmxrour 30.050 | 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. 3-20-88 1999-08-24
D.C.Characteristics (Vss = 0 V, Topr = - 30 to 70°C) symbol | Pins | conatitions | tin | ty. | oe | uni | Open drain port and Vpp=5.5V Input Current lin2 | tri-state port Viy=5.5V/0V #2) uA [ins | RESET, STOP Input Low Current Push-pull port Vp =5.5V, Vin=0.4V | - [ - | -2 | ma] Output Leakage 1, [Opendrainport and Voo=5.5VVour=55V | - | - | 2 | in Current ‘© [tri-state port Voo=5.5V,Vour=55v/ov | - | - | #2 | i Push-pull port Vop=4.5V, lon = - 200 vA [24] - | - | Output High Voltage - v Output Low Voltage Except XOUT and P30,P31__[Vop=4.5V, lo.= 1.6mA [| - [| - [oa] v | Output Low Current Only P30, P31 Vop=4.5V, Vor=1.0V [ - | 20 | - | ma | Supply Current in Vpp=5.5V 10 NORMAL 1 , 2 mode fen 8 MHz Supply Current in fs= 32.768 kHz IDLE 1, 2mode Vin=5.3V/0.2V Supply Current in NORMAL 1,2 mode Vpp = 3.0V, Viv=2.8V/0.2V fco=4.19 MHz Supply Current in fs = 32.768 kHz IDLE 1,2 mode SLOW mode fs= 32.768 kHz aa Supply Currentin Viy=2.8V/0.2V SLEEP mode LCD driver is not enable 15 uh Supply Current in Vop=5.5V WA STOP mode Vin=5.3V/0.2V Segment Output Low Renctants SEG31 to SEGO a Common Output Low OMS to COMO Segment Output High Resistance Vpp=5V 200 ko - Vop-Vic=3V Common Output High Roceioes Roce | COM3 to COMO | 38 [40 | a2 | Segment /Common | Vor | SEG31 to SEGO and | 3.7_| Output Voltage Vo 12_| COMB to COMO pins [33 | 35 | 37 | v [28 | 30 [ 32 | Note 1: Typical values show those at Topr =25°C, Vpp =5V. Note 2: Input Current ; The current through pull-up or pull-down resistor is not included. Note 3: Output resustance Ros and Roc indicate “on” when switching levels. Note 4: Vogi3 indicates an output current at the 2/3 level when operating in the 1/4 or 1/3 duty mode. Note 5: Vo1/2 indicates an output current at the 1/2 level when operating in the 1/2 duty or static mode. Note 6: Vor indicates an output current at the 1/3 level when operating in the 1/4 or 1/3 duty mode. Note 7: When you use a liquid crystal display (LCD), it is necessary to give carefull consideration to the value of the output resisteor Ros 172, Roc 12- Note 8: Rost, Roc1: On time of the lower output resistor is 26/fc, 2/fs [s] Note 9: Ros2, Roce: On time of the higher output resistor is 1/ (n/fF) (1/n duty, fF: frame frequency) 3-20-89 1999-08-24
A.C. Characteristics (Vss = 0 V, Vpp = 4.5 to 5.5 V, Topr = - 30 to 70°C) symboi | conditions [min [tye | tox | unit | In NORMAL, 2 mode - ; In IDLE 1,2 mode Machine Cycle Time ty “s 117.6 133.3 High Level Clock Pulse Width For external clock operation Low Level Clock Pulse Width (XIN input), fe=8 MHz High Level Clock Pulse Width For external clock operation 147 ; Low Level Clock Pulse Width (XTIN input), fs = 32.768 kHz ; “ Frequercy of TC1 input [tics [Frequency measurementmode | — |= | fe | ie | Recommended Oscillating Condition | (Vss=0V, Vpp=4.5to 5.5V, Topr= - 30 to 70°C) Recommended Condition Parameter Oscillator Frequency | Recommended Oscillator Ceramic Resonator | awe | KYOCERA KBR8.0M “eer KYOCERA KBR4.0MS . MURATA CSA4.00MG High-frequency Crystal Oscillator [ame | TOYOCOM — 2108 8.0000 20pF | ame | TOYOCOM — 2048 4.0000 Crystal Oscillator 32.768KH2 XIN. XOUT XTIN XTOUT (1) High-frequency (2) Low-frequency Note: An electrical shield by metal shield plate on the surface of IC package should be recommendable in order to. prevent the device from the high electric fieldstress applied from CRT (Cathode Ray Tube) for continuous reliable operation. 3-20-90 1999-08-24