M37470M8-XXXSP [RENESAS]

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES; 8位单片机740系列/ 7470系列
M37470M8-XXXSP
型号: M37470M8-XXXSP
厂家: RENESAS TECHNOLOGY CORP    RENESAS TECHNOLOGY CORP
描述:

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES
8位单片机740系列/ 7470系列

微控制器和处理器 外围集成电路 光电二极管 计算机 时钟
文件: 总354页 (文件大小:4439K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
To all our customers  
Regarding the change of names mentioned in the document, such as Mitsubishi  
Electric and Mitsubishi XX, to Renesas Technology Corp.  
The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas  
Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog  
and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.)  
Accordingly, although Mitsubishi Electric, Mitsubishi Electric Corporation, Mitsubishi  
Semiconductors, and other Mitsubishi brand names are mentioned in the document, these names  
have in fact all been changed to Renesas Technology Corp. Thank you for your understanding.  
Except for our corporate trademark, logo and corporate statement, no ces whatsoever have been  
made to the contents of the document, and these changes do not cony alteration to the  
contents of the document itself.  
Note : Mitsubishi Electric will continue the business opof high frequency & optical devices  
and power devices.  
Renesas Technology Corp.  
Customer Support Dept.  
April 1, 2003  
MITSUBISHI 8-BIT SINGLE-CHIP MICROCOMPUTER  
740 FAMILY / 7470 SERIES  
7470/7471  
7477/7478  
Group  
User’s Mal  
keep safety first in your circuit designs !  
Mitsubishi Electric Corporation puts the maximum effort into making semiconductor  
products better and more reliable, but there is always the possibility that trouble  
may occur with them. Trouble with semiconductors may lead to personal injury,  
fire or property damage. Remember to give due consideration to safety when  
making your circuit designs, with appropriate measures such as (i) placement  
of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention  
against any malfunction or mishap.  
Notes regarding these materials  
These materials are intended as a reference to assist our customers in the  
selection of the Mitsubishi semiconductor product best suited to the customer’s  
application; they do not convey any license under any intellectual property rights,  
or any other rights, belonging to Mitsubishi Electric Corporation or a third party.  
Mitsubishi Electric Corporation assumes no responsibility for any damage, or  
infringement of any third-party’s rights, originating in thof any product  
data, diagrams, charts or circuit application examples conthese materials.  
All information contained in these materials, incloduct data, diagrams  
and charts, represent information on products e of publication of these  
materials, and are subject to change by MitElectric Corporation without  
notice due to product improvements or oths. It is therefore recommended  
that customers contact Mitsubishi Electration or an authorized Mitsubishi  
Semiconductor product distributor latest product information before  
purchasing a product listed here
Mitsubishi Electric Corporationductors are not designed or manufactured  
for use in a device or syt is used under circumstances in which human  
life is potentially at stase contact Mitsubishi Electric Corporation or an  
authorized Mitsubisconductor product distributor when considering the  
use of a product ed herein for any specific purposes, such as apparatus  
or systems for rtation, vehicular, medical, aerospace, nuclear, or undersea  
repeater use.  
The prior written approval of Mitsubishi Electric Corporation is necessary to  
reprint or reproduce in whole or in part these materials.  
If these products or technologies are subject to the Japanese export control  
restrictions, they must be exported under a license from the Japanese government  
and cannot be imported into a country other than the approved destination.  
Any diversion or reexport contrary to the export control laws and regulations of  
JAPAN and/or the country of destination is prohibited.  
Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi  
Semiconductor product distributor for further details on these materials or the  
products contained therein.  
Preface  
This user’s manual describes Mitsubishi’s CMOS  
8-bit microcomputers 7470/7471/7477/7478 group.  
After reading this manual, the user should have a  
through knowledge of the functions and features of  
the 7470/7471/7477/7478 group, and should be able  
to fully utilize the product. The manual starts with  
specifications and ends with application examples.  
For detailes of software, refer to the “SERIES MELPS  
740<SOFTWARE> ER’S MANUAL.”  
For details of det support tools, refer to the  
“DEVELOPSUPPORT TOOLS FOR  
MICROCOS” data book.  
BEFORE USING THIS USER’S MANUAL  
1. Organization  
This user’s manual consists of the following three chapters. Refer to the chapter appropriate to your  
conditions, such as hardware design or software development.  
CHAPTER 1 HARDWARE  
This chapter describes features of the microcomputer and operation of each peripheral function.  
CHAPTER 2 APPLICATION  
This chapter describes usage and application examples of peripheral functions, based mainly on setting  
examples of related registers.  
CHAPTER 3 APPENDIX  
This chapter includes a list of registers, and necessary information for systems development using the  
microcomputer, the masking confirmation (mask ROM version), ROM gramming confirmation, and  
mark specifications which are to be submitted when ordering.  
2. Structure of Register  
The figure of each register structure describes its functions, cat reset, and attributes as follows:  
(Note 2)  
Bit attributes  
CPU mode register  
Bits  
(Note 1)  
Contenately after reset release  
b7 b6 b5 b4 b3 b2 b1 b0  
CPU mode rM) [Address: FB 16  
]
0
0
B
0,
me  
Function  
At reset  
0
R
?
W
bits to “0.”  
page selection bit 0: In page 0 area  
1: In page 1 area  
0
?
0
0
0
4
5
6
7
Nothing is allocated for this bit. This is write  
enabled bit and is undefined at reading.  
0: P50, P51  
1: XCIN, XCOUT  
P5  
selection bit  
COUT drive capacity  
0, P51/XCIN, XCOUT  
X
0: Low  
1: High  
selection bit  
Main clock (XIN–XOUT  
stop bit  
)
0: Oscillates  
1: Stops  
Internal system clock  
selection bit  
0: XIN–XOUT selected  
(Ordinary mode)  
1: XCIN–XCOUT selected  
(low-speed mode)  
0
: Bit in which nothing is arranged  
Note 1. Contents immediately after reset release  
0
1
?
“0” at reset release  
“1” at reset release  
Undefined at reset release  
Note 2. Bit attributes  
R
Read  
Write  
W
Read enabled  
Undefined at reading  
Write enabled  
Write disabled  
?
1
0
1  
at reading  
Fix to0.  
0
0at reading  
Can be cleared to0by software but not set to 1.  
Table of contents  
Table of contents  
CHAPTER 1. HARDWARE  
1.1 Description .............................................................................................................................. 1-2  
1.2 Group expansion ................................................................................................................... 1-3  
1.3 Performance overview ..........................................................................................................1-6  
1.4 Pin configuration ................................................................................................................. 1-10  
1.5 Pin description ..................................................................................................................... 1-14  
1.6 Functional block diagram .................................................................................................. 1-17  
1.7 Central processing unit (CPU) .........................................................................................1-23  
1.7.1 Accumulator (A) ........................................................................................................... 1-24  
1.7.2 Index register X (X), Index register Y (Y) ................................................... 1-24  
1.7.3 Stack pointer (S) ......................................................................................... 1-24  
1.7.4 Program counter (PC).................................................................................1-26  
1.7.5 Processor status register (PS) ..................................................................1-26  
1.8 Access area .......................................................................................................... 1-28  
1.8.1 Zero page (Addresses 000016 to ............................................................ 1-29  
1.8.2 Special page (Addresses FF00FF16) ........................................................ 1-29  
1.9 Memory allocation ............................................................................................... 1-30  
1.10 I/O pins .................................................................................................................. 1-35  
1.10.1 I/O port ....................................................................................................... 1-35  
1.10.2 Port block diagr..........................................................................................1-40  
1.10.3 Notes on us...............................................................................................1-45  
1.11 Interrupts ............................................................................................................... 1-48  
1.11.1 Descrinterrupt source ............................................................................... 1-48  
1.11.2 Opescription................................................................................................ 1-52  
1.11.3 Incontrol ......................................................................................................... 1-55  
1.11.4 Noteon use .............................................................................................................1-57  
1.11.5 Related registers ....................................................................................................... 1-59  
1.12 Timers..................................................................................................................................... 1-62  
1.12.1 Operation description................................................................................................ 1-64  
1.12.2 Description of modes ................................................................................................ 1-65  
1.12.3 Input latch function ...................................................................................................1-79  
1.12.4 Updating of contents of Timer and Timer latch................................................... 1-80  
1.12.5 Notes on use .............................................................................................................1-82  
1.12.6 Related registers ....................................................................................................... 1-83  
1.13 Serial I/O ................................................................................................................................ 1-89  
1.13A 7470/7471 group part ..............................................................................................1-90  
1.13A.1 Operation description .............................................................................................1-90  
1.13A.2 Byte specification mode .........................................................................................1-98  
1.13A.3 Pins ......................................................................................................................... 1-101  
7470/7471/7477/7478 GROUP USER’S MANUAL  
i
Table of contents  
1.13A.4 Notes on use.........................................................................................................1-101  
1.13A.5 Related registers...................................................................................................1-102  
1.13B 7477/7478 group part ........................................................................................... 1-105  
1.13B.1 Operation description .......................................................................................... 1-105  
1.13B.2 Pins .........................................................................................................................1-127  
1.13B.3 Notes on use.........................................................................................................1-128  
1.13B.4 Related registers...................................................................................................1-131  
1.14 A-D converter .....................................................................................................................1-139  
1.14.1 A-D conversion method ......................................................................................... 1-140  
1.14.2 Pins ........................................................................................................................... 1-144  
1.14.3 Notes on use ...........................................................................................................1-144  
1.14.4 References ...............................................................................................................1-145  
1.14.5 Related registers .....................................................................................................1-147  
1.15 Reset......................................................................................................................... 1-149  
1.15.1 Operation description............................................................................. 1-149  
1.15.2 Internal status immediately after reset rele......................................... 1-151  
1.15.3 Notes on use ...........................................................................................1-152  
1.16 Oscillation circuit ..............................................................................................1-153  
1.16.1 Oscillation circuit .....................................................................................1-153  
1.16.2 Sub-clock oscillation circuit................................................................... 1-155  
1.16.3 Oscillation operation ...............................................................................1-156  
1.16.4 Oscillation stabilizing t........................................................................... 1-158  
1.16.5 Notes on use ...........................................................................................1-159  
1.17 Low-power dissipation.................................................................................... 1-160  
1.17.1 Stop mode ................................................................................................1-162  
1.17.2 Wait mod...................................................................................................1-166  
1.17.3 Notes .........................................................................................................1-169  
1.17.4 Reister .......................................................................................................1-170  
1.18 State trns ................................................................................................................1-171  
1.19 Built-in PROM version......................................................................................................1-175  
1.19.1 EPROM mode ..........................................................................................................1-176  
1.19.2 Pin description .........................................................................................................1-182  
1.19.3 Writing, reading, and erasing to built-in PROM ................................................ 1-185  
1.19.4 Notes on use ...........................................................................................................1-186  
1.20 Electrical characteristics .................................................................................................1-188  
1.20.1 Electrical characteristics ........................................................................................ 1-188  
1.20.2 Timing requirements, switching characteristics .................................................. 1-200  
1.20.3 Power source current standard characteristics .................................................. 1-202  
1.20.4 Port standard characteristics ................................................................................ 1-207  
1.20.5 A-D conversion standard characteristics ............................................................ 1-212  
7470/7471/7477/7478 GROUP USER’S MANUAL  
ii  
Table of contents  
CHAPTER 2. APPLICATION  
2.1 I/O pins .................................................................................................................................... 2-2  
2.1.1 I/O port ........................................................................................................................... 2-2  
2.1.2 Notes on use ................................................................................................................. 2-5  
2.2 Interrupts ................................................................................................................................. 2-7  
2.2.1 Memory allocation ......................................................................................................... 2-7  
2.2.2 Processor status register (PS) ....................................................................................2-8  
2.2.3 Application example ......................................................................................................2-9  
2.2.4 Notes on use ................................................................................................................. 2-9  
2.3 Timers..................................................................................................................................... 2-10  
2.3.1 Memory allocation ....................................................................................................... 2-10  
2.3.2 Application example ....................................................................................................2-11  
2.3.3 Notes on use .................................................................................................... 2-22  
2.4 Serial I/O ................................................................................................................ 2-23  
2.4.1 7470/7471 group memory allocation ....................................................... 2-23  
2.4.2 Application example ....................................................................................2-24  
2.4.3 7477/7478 group memory allocation ....................................................... 2-29  
2.4.4 Application examples .................................................................................. 2-30  
2.4.5 Notes on use ............................................................................................... 2-34  
2.5 A-D converter ....................................................................................................... 2-35  
2.5.1 Memory allocation ....................................................................................... 2-35  
2.5.2 Application example.................................................................................... 2-36  
2.5.3 Notes on use ............................................................................................... 2-38  
2.6 Reset....................................................................................................................... 2-39  
2.6.1 Reset circ..................................................................................................... 2-39  
2.6.2 Notes o........................................................................................................... 2-39  
2.7 Oscillatio................................................................................................................ 2-40  
2.8 Low-posipation function .......................................................................................2-41  
2.8.1 CPU mode register ..................................................................................................... 2-41  
2.8.2 Application examples .................................................................................................. 2-42  
2.8.3 Notes on use ............................................................................................................... 2-47  
2.9 Countermeasures against noise ......................................................................................2-48  
2.9.1 Shortest wiring length .................................................................................................2-48  
2.9.2 Connection of a bypass capacitor across the VSS line and the VCC line ......... 2-51  
2.9.3 Wiring to analog input pins........................................................................................2-51  
2.9.4 Consideration for oscillator ........................................................................................2-52  
2.9.5 Setup for I/O ports ......................................................................................................2-53  
2.9.6 Providing of watchdog timer function by software ................................................ 2-54  
2.10 Notes on programming ......................................................................................................2-56  
2.10.1 Processor status register .........................................................................................2-56  
2.10.2 Decimal calculations .................................................................................................2-57  
2.11 Differences between 7470/7471 group and 7477/7478 group .................................. 2-58  
7470/7471/7477/7478 GROUP USER’S MANUAL  
iii  
Table of contents  
2.12 Example of application circuit .........................................................................................2-59  
CHAPTER 3. APPENDIX  
3.1 Control registers.................................................................................................................... 3-2  
3.2 Mask ROM ordering method .............................................................................................3-14  
3.3 ROM programming ordering method ............................................................................. 3-34  
3.4 Mark specification form .....................................................................................................3-46  
3.5 Package outline ................................................................................................................... 3-51  
3.6 SFR memory map ................................................................................................................ 3-53  
3.7 Pin configuration .................................................................................................................3-54  
7470/7471/7477/7478 GROUP USER’S MANUAL  
iv  
List of tables  
List of tables  
CHAPTER 1. HARDWARE  
Table 1.2.1 List of supported products .........................................................................................1-5  
Table 1.3.1 Performance overview of 7470 group ......................................................................1-6  
Table 1.3.2 Performance overview of 7471 group ......................................................................1-7  
Table 1.3.3 Performance overview of 7477 group ......................................................................1-8  
Table 1.3.4 Performance overview of 7478 group ......................................................................1-9  
Table 1.5.1 Pin description (1) ..................................................................................................... 1-14  
Table 1.5.2 Pin description (2) ..................................................................................................... 1-15  
Table 1.5.3 Pin description (3) ..................................................................................................... 1-16  
Table 1.8.1 Addressing mode accessible to each area ............................................... 1-29  
Table 1.9.1 RAM area ................................................................................................... 1-30  
Table 1.9.2 ROM area ................................................................................................... 1-30  
Table 1.10.1 Port register address allocation ........................................................... 1-36  
Table 1.10.2 Termination of unused pins ...................................................................1-47  
Table 1.11.1 Interrupt sources and priority ............................................................... 1-48  
Table 1.11.2 Interrupt control bits for indierrupt sources ........................................ 1-55  
Table 1.12.1 Modes of each timer................................................................................1-62  
Table 1.12.2 Setting for count stop ..............................................................................1-67  
Table 1.12.3 Setting for timer 1 urce .......................................................................... 1-67  
Table 1.12.4 Setting for timet source .......................................................................... 1-67  
Table 1.12.5 Setting for tount source .......................................................................... 1-68  
Table 1.12.6 Setting f4 count source .......................................................................... 1-68  
Table 1.12.7 Addrtion of Timer ...................................................................................1-68  
Table 1.12.8 Csetting .................................................................................................. 1-68  
Table 1.12.9 ounter mode setting...................................................................................1-71  
Table 1.12.10 Puse output mode initial value setting............................................................. 1-73  
Table 1.12.11 Pulse output mode setting ...................................................................................1-73  
Table 1.12.12 External pulse width measurement mode setting............................................ 1-76  
Table 1.12.13 Edge polarity selection register setting............................................................. 1-79  
Table 1.12.14 Frequency of CNTR ..............................................................................................1-82  
Table 1.13.1 7470/7471 group vs. 7477/7478 group serial I/O ............................................. 1-89  
Table 1.13A.1 Serial I/O transmit setting ...................................................................................1-94  
Table 1.13A.2 Serial I/O receive setting .....................................................................................1-97  
Table 1.13B.1 Clock synchronous serial I/O transmit setting ............................................... 1-110  
Table 1.13B.2 Clock synchronous serial I/O receive setting ................................................ 1-113  
Table 1.13B.3 Baud rate reference value................................................................................ 1-116  
Table 1.13B.4 Each bit function of UART transmit data ....................................................... 1-117  
Table 1.13B.5 UART transmit setting ....................................................................................... 1-122  
Table 1.13B.6 Set value of UART control register................................................................. 1-122  
7470/7471/7477/7478 GROUP USER’S MANUAL  
i
List of tables  
Table 1.13B.7 UART receive setting ........................................................................................ 1-126  
Table 1.13B.8 Error flag clear method..................................................................................... 1-134  
Table 1.13B.9 Transmit enable bit function............................................................................. 1-136  
Table 1.13B.10 Receive enable bit function............................................................................ 1-137  
Table 1.14.1 Setting at A-D conversion ................................................................................... 1-143  
Table 1.15.1 Timer 3 and 4 at reset........................................................................................ 1-150  
Table 1.17.1 State of stop mode ...............................................................................................1-162  
Table 1.17.2 State of wait mode ...............................................................................................1-166  
Table 1.19.1 7470/7471/7477/7478 group built-in PROM version supporting products .... 1-175  
Table 1.19.2 Pin functions in EPROM mode .......................................................................... 1-176  
Table 1.19.3 Pin description (1).................................................................................................1-182  
Table 1.19.4 Pin description (2).................................................................................................1-183  
Table 1.19.5 Pin description (3).................................................................................................1-184  
Table 1.19.6 Input/Output signal on each mode ......................................................... 1-185  
Table 1.20.1 Absolute maximum ratings (7470 group) .......................................... 1-188  
Table 1.20.2 Recommended operating conditions (747......................................... 1-188  
Table 1.20.3 Electrical characteristics (7470 group).............................................. 1-189  
Table 1.20.4 A-D converter characteristics (747.................................................... 1-190  
Table 1.20.5 Absolute maximum ratings (747.......................................................... 1-191  
Table 1.20.6 Recommended operating co7471 group).......................................... 1-191  
Table 1.20.7 Electrical characteristics oup).............................................................. 1-192  
Table 1.20.8 A-D converter charact7471 group) ..................................................... 1-193  
Table 1.20.9 Absolute maximum (7477 group) .......................................................... 1-194  
Table 1.20.10 Recommendeng conditions (7477 group)........................................ 1-194  
Table 1.20.11 Electrical cstics (7477 group) ............................................................ 1-195  
Table 1.20.12 A-D coharacteristics (7477 group) ................................................... 1-196  
Table 1.20.13 Absimum ratings (7478 group)........................................................ 1-197  
Table 1.20.14 nded operating conditions (7478 group)........................................ 1-197  
Table 1.20.15 cal characteristics (7478 group) ............................................................ 1-198  
Table 1.20.16 A-converter characteristics (7478 group) ................................................... 1-199  
Table 1.20.17 Timing requirements and switching characteristics (7470/7471 group) ..... 1-200  
Table 1.20.18 Timing requirements and switching characteristics (7477/7478 group) ..... 1-201  
CHAPTER 2. APPLICATION  
Table 2.1.1 Port register memory allocation ................................................................................2-2  
Table 2.1.2 Port direction register memory allocation ............................................................... 2-3  
Table 2.1.3 I/O ports that permit pull-up by software ............................................................... 2-4  
Table 2.1.4 Double function port and control register ............................................................... 2-5  
Table 2.3.1 Relation between timer-used pins and modes..................................................... 2-11  
Table 2.11.1 Differences between 7470/7471 group and 7477/7478 group......................... 2-58  
7470/7471/7477/7478 GROUP USER’S MANUAL  
ii  
List of figures  
List of figures  
CHAPTER 1. HARDWARE  
Fig. 1.2.1 Memory expansion plan of 7470/7471/7477/7478 group ......................................... 1-4  
Fig. 1.4.1 Pin configuration of 7470 group.................................................................................1-10  
Fig. 1.4.2 Pin configuration of 7471 group.................................................................................1-11  
Fig. 1.4.3 Pin configuration of 7477 group.................................................................................1-12  
Fig. 1.4.4 Pin configuration of 7478 group.................................................................................1-13  
Fig. 1.6.1 M37470Mx/Ex-XXXSP functional block diagram ..................................................... 1-17  
Fig. 1.6.2 M37471Mx/Ex-XXXSP, M37471E8SS functional block diagram ........................... 1-18  
Fig. 1.6.3 M37471Mx/Ex-XXXFP functional block diagram ..................................................... 1-19  
Fig. 1.6.4 M37477Mx/E8-XXXSP/FP functional block diagram ....................................... 1-20  
Fig. 1.6.5 M37478Mx/E8-XXXSP, M37478E8SS functional block ........................................ 1-21  
Fig. 1.6.6 M37478Mx/E8-XXXFP functional block diagr........................................... 1-22  
Fig. 1.7.1 Structure of CPU registers ..........................................................................1-23  
Fig. 1.7.2 Register push and pop at interrupt geand subroutine call .................... 1-25  
Fig. 1.8.1 Access area .................................................................................................. 1-28  
Fig. 1.9.1 Memory allocation of 7470/747.................................................................. 1-31  
Fig. 1.9.2 Memory allocation of 7477/p .................................................................... 1-32  
Fig. 1.9.3 Special function register emory map ......................................................... 1-33  
Fig. 1.9.4 Interrupt vector mem....................................................................................1-34  
Fig. 1.10.1 I/O port writing ang .....................................................................................1-36  
Fig. 1.10.2 Structure of Prection register (i=0, 1, 2, 4) ............................................ 1-37  
Fig. 1.10.3 Structure 0 pull-up control register ......................................................... 1-38  
Fig. 1.10.4 Structuts P1 to P5 pull-up control register ............................................ 1-39  
Fig. 1.10.5 Blom of Ports P0, P10 to P13 ..................................................................................1-40  
Fig. 1.10.6 Blgram of Ports P14 to P17 (7470/7471 group)....................................... 1-41  
Fig. 1.10.7 Block diagram of Ports P14 to P17 (7477/7478 group)....................................... 1-42  
Fig. 1.10.8 Block diagram of Ports P2 to P4............................................................................ 1-43  
Fig. 1.10.9 Block diagram of Port P5 .........................................................................................1-44  
Fig. 1.11.1 Block diagram of interrupt input and key-on wake up circuit ............................. 1-50  
Fig. 1.11.2 Interrupt operation ......................................................................................................1-52  
Fig. 1.11.3 Changes of contents of Program counter and Stack pointer upon acceptance  
of interrupt ................................................................................................................... 1-53  
Fig. 1.11.4 Processing time up to the execution of interrupt processing routine................ 1-54  
Fig. 1.11.5 Timing after acceptance of interrupt ...................................................................... 1-54  
Fig. 1.11.6 Interrupt control diagram ...........................................................................................1-55  
Fig. 1.11.7 Example of register setting .......................................................................................1-57  
Fig. 1.11.8 Structure of Edge polarity selection register......................................................... 1-59  
Fig. 1.11.9 Structure of Interrupt request register 1 ................................................................ 1-60  
Fig. 1.11.10 Structure of Interrupt request register 2 .............................................................. 1-60  
7470/7471/7477/7478 GROUP USER’S MANUAL  
i
List of figures  
Fig. 1.11.11 Structure of Interrupt control register 1 ............................................................... 1-61  
Fig. 1.11.12 Structure of Interrupt control register 2 ............................................................... 1-61  
Fig. 1.12.1 Timer block diagram ..................................................................................................1-63  
Fig. 1.12.2 Timer count timing .....................................................................................................1-64  
Fig. 1.12.3 Example of timer mode operation........................................................................... 1-66  
Fig. 1.12.4 Example of event counter mode operation ........................................................... 1-70  
Fig. 1.12.5 Example of pulse output mode operation.............................................................. 1-72  
Fig. 1.12.6 Example of operation of external pulse width measurement mode................... 1-75  
Fig. 1.12.7 Example of operation of PWM output mode ......................................................... 1-78  
Fig. 1.12.8 Example of updating of Timer 1, Timer 2 and Timer latch ................................ 1-80  
Fig. 1.12.9 Example of updating of Timer 3, Timer 4 and Timer latch in PWM mode...... 1-81  
Fig. 1.12.10 Relation between timer value change timing and read value change timing 1-82  
Fig. 1.12.11 Structure of Timers 1 to 4 ......................................................................................1-83  
Fig. 1.12.12 Structure of Timer 12 mode register......................................................... 1-84  
Fig. 1.12.13 Structure of Timer 34 mode register.................................................... 1-85  
Fig. 1.12.14 Structure of Timer mode register 2 ...................................................... 1-86  
Fig. 1.12.15 Structure of Timer FF register .............................................................. 1-86  
Fig. 1.12.16 Structure of Input latch register ............................................................ 1-87  
Fig. 1.12.17 Sturucture of Edge polarity selester..................................................... 1-88  
Fig. 1.13A.1 Serial I/O block diagram .........................................................................1-90  
Fig. 1.13A.2 Serial I/O transmit opera........................................................................1-93  
Fig. 1.13A.3 Serial I/O transmit tim............................................................................. 1-93  
Fig. 1.13A.4 Serial I/O receive ...................................................................................1-96  
Fig. 1.13A.5 Serial I/O receichart .............................................................................. 1-96  
Fig. 1.13A.6 Transmit/recration in byte specification mode ..................................... 1-99  
Fig. 1.13A.7 Structure l I/O register ........................................................................... 1-102  
Fig. 1.13A.8 Strucerial I/O counter and Byte counter ............................................ 1-103  
Fig. 1.13A.9 Stf Serial I/O mode register ................................................................ 1-104  
Fig. 1.13B.1 ynchronous serial I/O block diagram .................................................... 1-105  
Fig. 1.13B.2 Transmit operation of clock synchronous serial I/O ........................................ 1-108  
Fig. 1.13B.3 Transmit timing chart of clock synchronous serial I/O.................................... 1-109  
Fig. 1.13B.4 Receive operation of clock synchronous serial I/O ......................................... 1-112  
Fig. 1.13B.5 Receive timing chart of clock synchronous serial I/O..................................... 1-112  
Fig. 1.13B.6 UART block diagram ............................................................................................ 1-114  
Fig. 1.13B.7 UART data format..................................................................................................1-117  
Fig. 1.13B.8 Transmit/receive format of UART ....................................................................... 1-118  
Fig. 1.13B.9 Transmit operation of UART ............................................................................... 1-120  
Fig. 1.13B.10 Transmit timing chart of UART......................................................................... 1-121  
Fig. 1.13B.11 Receive operation of UART .............................................................................. 1-124  
Fig. 1.13B.12 Receive timing chart of UART .......................................................................... 1-125  
Fig. 1.13B.13 Structure of Transmit/receive buffer register .................................................. 1-131  
Fig. 1.13B.14 Structure of Serial I/O status register ............................................................. 1-132  
Fig. 1.13B.15 Structure of Serial I/O control register ............................................................ 1-135  
7470/7471/7477/7478 GROUP USER’S MANUAL  
ii  
List of figures  
Fig. 1.13B.16 Structure of UART control register .................................................................. 1-138  
Fig. 1.14.1 A-D converter block diagram ................................................................................. 1-139  
Fig. 1.14.2 Contents of A-D conversion register and reference voltage during  
A-D conversion .........................................................................................................1-141  
Fig. 1.14.3 Definition of A-D conversion precision ................................................................. 1-146  
Fig. 1.14.4 Structure of A-D conversion register .................................................................... 1-147  
Fig. 1.14.5 Structure of A-D control register ........................................................................... 1-148  
Fig. 1.15.1 Internal processing sequence after reset release .............................................. 1-149  
Fig. 1.15.2 Internal status immediately after reset release................................................... 1-151  
Fig. 1.16.1 Clock generating circuit block diagram ................................................................ 1-153  
Fig. 1.16.2 Oscillation stabilizing wait time after power on .................................................. 1-158  
Fig. 1.17.1 Operation states of the microcomputer at low-power dissipation .................... 1-160  
Fig. 1.17.2 State transition at low-power dissipation ............................................................. 1-161  
Fig. 1.17.3 Oscillation stabilizing wait time at recovery from ode by reset input . 1-163  
Fig. 1.17.4 Example of recovery sequence from stop mod0 interrupt ................. 1-165  
Fig. 1.17.5 Reset input time .......................................................................................1-167  
Fig. 1.17.6 Structure of CPU mode register ........................................................... 1-170  
Fig. 1.18.1 State transitions........................................................................................1-172  
Fig. 1.19.1 Pin connection in EPROM mode group ................................................ 1-176  
Fig. 1.19.2 Pin connection in EPROM mo71 group (1) .......................................... 1-177  
Fig. 1.19.3 Pin connection in EPROM 7471 group (2) .......................................... 1-178  
Fig. 1.19.4 Pin connection in EPRof 7477 group ................................................ 1-179  
Fig. 1.19.5 Pin connection in Eode of 7478 group (1) .......................................... 1-180  
Fig. 1.19.6 Pin connection imode of 7478 group (2) .......................................... 1-181  
Fig. 1.19.7 Programming ing of One Time PROM version ..................................... 1-187  
Fig. 1.20.1 Timing ch/7471 group) ............................................................................ 1-200  
Fig. 1.20.2 Timing 477/7478 group) ............................................................................ 1-201  
Fig. 1.20.3 Powe current standard characteristics measuring circuit .................... 1-202  
Fig. 1.20.4 ICcharacteristics (f(XIN) = 8 MHz, 7470/7471 group) ............................. 1-203  
Fig. 1.20.5 ICC-VCC characteristics (f(XIN) = 4 MHz, 7470/7471 group) ............................. 1-203  
Fig. 1.20.6 ICC-VCC characteristics (f(XCIN) = 32 kHz, 7470/7471 group) .......................... 1-204  
Fig. 1.20.7 ICC-VCC characteristics (f(XIN) = 8 MHz, 7477/7478 group) ............................. 1-205  
Fig. 1.20.8 ICC-VCC characteristics (f(XIN) = 4 MHz, 7477/7478 group) ............................. 1-205  
Fig. 1.20.9 ICC-VCC characteristics (f(XCIN) = 32 kHz, 7477/7478 group) .......................... 1-206  
Fig. 1.20.10 Port standard characteristic measuring circuits ................................................ 1-207  
Fig. 1.20.11 IOH-VOH characteristics of programmable I/O port (CMOS output) P-channel  
side (7470/7471 group) ......................................................................................... 1-208  
Fig. 1.20.12 IOL-VOL characteristics of programmable I/O port (CMOS output) N-channel  
side (7470/7471 group) ......................................................................................... 1-208  
Fig. 1.20.13 IIL-VIL characteristics of programmable I/O port (CMOS output) pull-up  
transistor (7470/7471 group) ................................................................................ 1-209  
7470/7471/7477/7478 GROUP USER’S MANUAL  
iii  
List of figures  
Fig. 1.20.14 IOH-VOH characteristics of programmable I/O port (CMOS output) P-channel  
side (7477/7478 group)......................................................................................... 1-210  
Fig. 1.20.15 IOL-VOL characteristics of programmable I/O port (CMOS) N-channel side  
(7477/7478 group) ..................................................................................................1-210  
Fig. 1.20.16 IIL-VIL characteristics of programmable I/O port (CMOS output) pull-up  
transistor (7477/7478 group) ................................................................................ 1-211  
Fig. 1.20.17 A-D conversion standard characteristics, relative precision error (1) ........... 1-212  
Fig. 1.20.18 A-D conversion standard characteristics, relative precision error (2) ........... 1-213  
Fig. 1.20.19 A-D conversion standard characteristics, absolute precision error (1) ......... 1-214  
Fig. 1.20.20 A-D conversion standard characteristics, absolute precision error (2) ......... 1-215  
Fig. 1.20.21 A-D conversion standard characteristics, absolute precision error (3) ......... 1-216  
Fig. 1.20.22 A-D conversion standard characteristics, absolute precision error (4) ......... 1-217  
Fig. 1.20.23 A-D conversion standard characteristics, absolute precision error (5) ......... 1-218  
CHAPTER 2. APPLICATION  
Fig. 2.1.1 Example of port direction register setting...................................................2-3  
Fig. 2.1.2 Example of external circuit design for ....................................................... 2-6  
Fig. 2.2.1 Memory map of interrupt related re............................................................ 2-7  
Fig. 2.2.2 Structure of Processor status re...................................................................2-8  
Fig. 2.3.1 Memory map of timer related s.................................................................... 2-10  
Fig. 2.3.2 Example of control proceck function] ....................................................... 2-13  
Fig. 2.3.3 Example of measuremod of frequency ..................................................... 2-14  
Fig. 2.3.4 Example of control e [Frequency measurement] ..................................... 2-15  
Fig. 2.3.5 Example of a pcircuit [Pulse output mode]............................................. 2-16  
Fig. 2.3.6 Connection ond setting of division ratio ................................................... 2-16  
Fig. 2.3.7 Example l procedure [Piezoelectric buzzer output]................................. 2-17  
Fig. 2.3.8 Examipheral circuit [Pulse width measurement mode] ......................... 2-18  
Fig. 2.3.9 Excontrol procedure [Pulse width measurement mode] ........................ 2-19  
Fig. 2.3.10 Exae of peripheral circuit [PWM mode] ........................................................... 2-20  
Fig. 2.3.11 Example of control procedure [PWM mode] ......................................................... 2-21  
Fig. 2.3.12 Timing at which timer value and read value change in the case where two  
timers are connected in series .................................................................................2-22  
Fig. 2.4.1 Memory map of serial I/O related registers of 7470/7471 group......................... 2-23  
Fig. 2.4.2 Example of connections [Clock synchronous serial I/O mode, 7470/7471  
group] ............................................................................................................................ 2-24  
Fig. 2.4.3 Example of control procedure [Clock synchronous serial I/O mode, 7470/7471  
group] ............................................................................................................................ 2-25  
Fig. 2.4.4 Example of connections [Byte specification mode, 7470/7471 group] ................ 2-26  
Fig. 2.4.5 Example of control procedure (1) [Byte specification mode, 7470/7471 group] 2-27  
Fig. 2.4.6 Example of control procedure (2) [Byte specification mode, 7470/7471 group] 2-28  
Fig. 2.4.7 Memory map of serial I/O related registers in 7477/7478 group ......................... 2-29  
Fig. 2.4.8 Example of connections [Clock synchronous serial I/O mode, 7477/7478  
group] ............................................................................................................................. 2-30  
7470/7471/7477/7478 GROUP USER’S MANUAL  
iv  
List of figures  
Fig. 2.4.9 Example of control procedure [Clock synchronous serial I/O mode, 7477/7478  
group] ............................................................................................................................. 2-31  
Fig. 2.4.10 Example of connections [Clock asynchronous serial I/O mode, 7477/7478  
group] ............................................................................................................................. 2-32  
Fig. 2.4.11 Example of control procedure [Clock asynchronous serial I/O mode, 7477  
/7478 group] ................................................................................................................ 2-33  
Fig. 2.5.1 Memory map of A-D conversion related registers.................................................. 2-35  
Fig. 2.5.2 Example of A-D conversion control procedure ....................................................... 2-37  
Fig. 2.5.3 Analog input internal equivalent circuit .................................................................... 2-38  
Fig. 2.6.1 Example of reset circuit ..............................................................................................2-39  
Fig. 2.7.1 Example of Oscillation circuit using ceramic resonator ......................................... 2-40  
Fig. 2.7.2 Example of external clock input circuit .................................................................... 2-40  
Fig. 2.8.1 Structure of CPU mode register.................................................................................2-41  
Fig. 2.8.2 Example of control procedure [Ordinary mode StoOrdinary mode] ... 2-43  
Fig. 2.8.3 Example of control procedure [Ordinary mode e Ordinary mode] ... 2-44  
Fig. 2.8.4 Example of control procedure [Ordinary mo-speed mode].................. 2-45  
Fig. 2.8.5 Example of control procedure [Low-speeOrdinary mode].................. 2-46  
__________________________  
Fig. 2.9.1 Wiring for the RESET pin ............................................................................2-48  
Fig. 2.9.2 Wiring for clock I/O pins .............................................................................2-49  
Fig. 2.9.3 Wiring for the VPP pin of the OPROM and the EPROM version ......... 2-50  
Fig. 2.9.4 Bypass capacitor across the and the VCC line ....................................... 2-51  
Fig. 2.9.5 Analog signal line and a and a capacitor ................................................. 2-51  
Fig. 2.9.6 Wiring for a large cual line ....................................................................... 2-52  
Fig. 2.9.7 Wiring to a signal re potential levels change frequently ........................ 2-52  
Fig. 2.9.8 Setup for I/O ................................................................................................ 2-53  
Fig. 2.9.9 Watchdog toftware .......................................................................................2-55  
Fig. 2.10.1 Initializlags in PS........................................................................................2-56  
Fig. 2.10.2 Stary contents after PHP instruction execution .................................... 2-56  
Fig. 2.10.3 Nxecute by PLP instruction........................................................................ 2-56  
Fig. 2.10.4 Note or decimal operation .......................................................................................2-57  
Fig. 2.12.1 Application circuit example 1 (cleaner) .................................................................. 2-59  
CHAPTER 3. APPENDIX  
Fig. 3.1.1 Structure of Port Pi direction register (i = 0, 1, 2, 4) ............................................. 3-2  
Fig. 3.1.2 Structure of Port P0 pull-up control register ............................................................. 3-2  
Fig. 3.1.3 Structure of Ports P1 to P5 pull-up control register ................................................ 3-3  
Fig. 3.1.4 Structure of Edge polarity selection register ............................................................. 3-3  
Fig. 3.1.5 Structure of Input latch register ...................................................................................3-4  
Fig. 3.1.6 Structure of A-D control register ..................................................................................3-4  
Fig. 3.1.7 Structure of A-D conversion register ...........................................................................3-5  
Fig. 3.1.8 Structure of Serial I/O mode register ..........................................................................3-5  
7470/7471/7477/7478 GROUP USER’S MANUAL  
v
List of figures  
Fig. 3.1.9 Structure of Serial I/O register .....................................................................................3-6  
Fig. 3.1.10 Structure of Secial I/O counter and Byte counter .................................................. 3-6  
Fig. 3.1.11 Structure of Transmit/receive buffer register........................................................... 3-7  
Fig. 3.1.12 Structure of Serial I/O status register .......................................................................3-7  
Fig. 3.1.13 Structure of Serial I/O control register ......................................................................3-8  
Fig. 3.1.14 Structure of UART control register ............................................................................3-8  
Fig. 3.1.15 Structure of Timers 1 to 4 ..........................................................................................3-9  
Fig. 3.1.16 Structure of Timer FF register ...................................................................................3-9  
Fig. 3.1.17 Structure of Timer 12 mode register ...................................................................... 3-10  
Fig. 3.1.18 Structure of Timer 34 mode register ...................................................................... 3-10  
Fig. 3.1.19 Structure of Timer mode register 2 ........................................................................ 3-11  
Fig. 3.1.20 Structure of CPU mode register ........................................................................ 3-11  
Fig. 3.1.21 Structure of Interrupt request register 1 ................................................ 3-12  
Fig. 3.1.22 Structure of Interrupt request register 2 ................................................ 3-12  
Fig. 3.1.23 Structure of Interrupt control register 1 ................................................. 3-13  
Fig. 3.1.24 Structure of Interrupt control register ................................................... 3-13  
Fig. 3.6.1 SFR memory map ........................................................................................3-69  
Fig. 3.7.1 Pin configuration of 7470 group.................................................................3-70  
Fig. 3.7.2 Pin configuration of 7471 gro.....................................................................3-71  
Fig. 3.7.3 Pin configuration of 7477 ...........................................................................3-72  
Fig. 3.7.4 Pin configuration of 74.................................................................................3-73  
7470/7471/7477/7478 GROUP USER’S MANUAL  
vi  
CHAPTER 1  
HARDWARE  
1.1 Description  
1.2 Group expansion  
1.3 Performance overview  
1.4 Pin configuration  
1.5 Pin description  
1.6 Functional block diagram  
1.7 Central processing unit (CPU)  
1.8 Access area  
1.9 Memory allocation  
1.10 I/O pins  
1.11 Interrupts  
1.12 Timers  
1.13 Serial I/O  
1.14 A-D converter  
1.15 Reset  
1.16 Oscillation circuit  
1.17 Low-power  
dissipation function  
1.18 State transitions  
1.19 Built-in PROM version  
1.20 Electrical characteristics  
HARDWARE  
1.1 Description  
1.1 Description  
The 7470/7471/7477/7478 group is an 8-bit single-chip microcomputer which utilizes a silicon gate CMOS  
processing and has a simple instruction system of the 740 family using the same memory space for ROM,  
RAM and I/O.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-2  
 
HARDWARE  
1.2 Group expansion  
1.2 Group expansion  
The 7470/7471/7477/7478 group develops with the M37470M2-XXXSP as the base chip in the 7470 series.  
The classification of the 7470 series is as follows.  
7470 series  
7470 group  
7471 group  
7477 group  
7478 group  
7480 group**  
7481 group**  
**:Under development  
In this manual, when multiple models are described collectively, their names are arranged by putting  
“/” among them for separation.  
7470 group, 7471 group 7470/7471 group  
7477 group, 7478 group 7477/7478 group  
7470 group, 7477 group 7470/7477 group  
7471 group, 7478 group 7471/7478 group  
The 7470/7471/7477/7478 group permits group expansion as sFigure 1.2.1. This group expansion  
is all performed only by differences in memory type and cathe number of ports. This allows the  
user to select optimum elements according to the user'
The 7470/7471/7477/7478 group supports the followiition to the mask ROM version.  
(1) Support of One Time PROM version  
The One Time PROM version is a proge microcomputer and can perform a one-time write  
operation to the built-in programmabPROM).  
For the details, refer to “1.19 BuiM version.”  
(2) Support of EPROM version ndow)  
The built-in EPROM versiogrammable microcomputer with window and can perform write  
and erase operations to -in EPROM.  
For the details, refer Built-in PROM version.”  
(3) Support of emulator CU  
The emulator MCU is a microcomputer designed for program development which facilitates program  
development and is an optimum element for system evaluation.  
For the details, refer to“1.20 Emulator MCU.”  
Table 1.2.1 shows the products which the 7470/7471/7477/7478 group supports.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-3  
 
HARDWARE  
1.2 Group expansion  
Memory Expansion Plan of 7470/7471 group  
ROM size  
(bytes)  
M37470M8/E8-XXXSP  
M37471M8/E8-XXXSP/FP  
M37471E8SS  
16K  
12K  
8K  
M37470M4/E4-XXXSP  
M37471M4/E4-XXXSP/FP  
M37470M2-XXXSP  
M37471M2-XXXSP/FP  
4K  
0
128  
192  
2
384  
RAM size  
(bytes)  
Memory Expansion Plan of 7477/7478
ROM size  
(bytes)  
M37477M8/E8-XXXSP/FP  
M37478M8/E8-XXXSP/FP  
M37478E8SS  
16K  
12K  
M37477M4-XXXSP/FP  
M37478M4-XXXSP/FP  
8K  
4K  
0
128  
192  
256  
384  
RAM size  
(bytes)  
Fig. 1.2.1 Memory expansion plan of 7470/7471/7477/7478 group  
(As of Dec. 1997)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-4  
HARDWARE  
1.2 Group expansion  
Table 1.2.1 List of supported products  
(As of Dec. 1997)  
ROM  
(bytes) (bytes)  
RAM  
Product  
Package  
32P4B  
Remarks  
I/O Port  
4096  
8192  
128  
192  
M37470M2-XXXSP  
M37470M4-XXXSP  
M37470E4-XXXSP  
M37470M8-XXXSP  
M37470E8-XXXSP  
M37471M2-XXXSP  
M37471M2-XXXFP  
M37471M4-XXXSP  
M37471M4-XXXFP  
M37471E4-XXXSP  
M37471E4-XXXFP  
M37471M8-XXXSP  
M37471M8-XXXFP  
M37471E8-XXXSP  
M37471E8-XXXFP  
M37471E8SS  
I/O ports: 22  
(Including 4 analog  
input pins.)  
Mask ROM version  
One Time PROM version  
Mask ROM version  
One Time PROM version  
16384  
4096  
384  
128  
Input ports: 4  
42P4B  
56P6N-A  
42P4B  
56P6N-A  
42P4B  
56P6N-A  
42P4B  
56P6N-A  
42P4B  
56P6N-A  
42S1B-A  
Mask ROM version  
8192  
192  
384  
I/O ports: 28  
(Including 8 analog  
input pins.)  
One Time PROM version  
Mask ROM version  
Input ports: 8  
16384  
One ime PROM version  
version  
63.5K  
(Note)  
42S1M  
ator MCU  
M37471RSS  
384  
192  
M37477M4-XXXSP  
M37477M4-XXXFP  
M37477M8-XXXSP  
M37477M8-XXXFP  
M37477E8-XXXSP  
M37477E8-XXXFP  
M37478M4-XXXSP  
M37478M4-XXXFP  
M37478M8-XXXSP  
M37478M8-XXXFP  
M37478E8-XXXSP  
M37478E8-XXXFP  
32P
32
(Including 4 analog 
8192  
16384  
8192  
Mask ROM version  
Mask ROM version  
One Time PROM version  
Mask ROM version  
Mask ROM version  
One Time PROM version  
EPROM version  
I/O ports: 18  
W-A  
4B  
2P2W-A  
42P4B  
56P6N-A  
42P4B  
56P6N-A  
42P4B  
input pins.)  
Input ports: 8  
384  
192  
384  
I/O port
(Inclualog  
inp
16384  
16384  
ts: 16  
56P6N-A  
ports: 20  
M37478E8SS  
42S1B-A  
3
put ports: 16  
(Including 8 analog  
input pins.)  
63.5K  
(Note
Emulator MCU  
M37478RSS  
42S1M  
Note: Address space usaa ROM area.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-5  
HARDWARE  
1.3 Performance overview  
1.3 Performance overview  
Tables 1.3.1 to 1.3.4 show the performance overview of 7470/7471/7477/7478 group.  
Table 1.3.1 Performance overview of 7470 group  
Functions  
Parameter  
71 (69 basic instructions of 740 family and 2 multiplication  
and division instructions)  
Number of basic instructions  
0.5 µs (the minimum instructions, at 8 MHz clock input  
oscillation frequency)  
Instruction execution time  
Clock input oscillation frequency  
M37470M2  
8 MHz (max.)  
4096 bytes  
8192 bytes  
ROM  
M37470M4/E4  
Memory  
size  
16384 bytes  
128 bytes  
M37470M8/E8  
M37470M2  
192 bytes  
RAM  
M37470M4/E4  
384 bytes  
M37470M8/E8  
8-bit  
8-bit  
4-bit  
2-bit  
P0  
P1  
P2  
P4  
P3  
Input/  
Output  
port  
I/O  
4-bit  
Input  
8-bit 1  
8-bit tim
1 (in with 2 timer)  
8-bchannels)  
Serial I/O  
Timers  
PWM  
A-D converter  
max.  
M37470M2  
els max.  
levels max.  
Subroutine nesting  
M37470M4/E4  
M37470M8/E8  
external interrupts, 6 internal interrupts, 1 software interrupt  
Built-in circuit with internal feedback resistor (an external  
ceramic resonator or a quartz-crystal oscillator)  
2.7 V to 4.5 V  
Interrupt  
Clock generating circuit  
(at (2.2 VCC–2) MHz clock input oscillation frequency)  
4.5 V to 5.5 V  
Power source voltage  
(at 8 MHz clock input oscillation frequency)  
35 mW typ.  
(at 8 MHz clock input oscillation frequency)  
5 V  
Power dissipation  
Input/Output  
Input/Output withstand voltage  
characteristics  
Operating temperature  
Device structure  
Package  
Output current  
–5 mA to +10 mA (P0, P1, P2, P4: CMOS 3-state)  
–20 °C to +85 °C  
CMOS silicon gate  
32-pin shrink plastic molded DIP  
M37470Mx/Ex-XXXSP  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-6  
 
HARDWARE  
1.3 Performance overview  
Table 1.3.2 Performance overview of 7471 group  
Parameter  
Functions  
71 (69 basic instructions of 740 family and 2 multiplication  
and division instructions)  
0.5 µs (the minimum instructions, at 8 MHz clock input  
oscillation frequency)  
Number of basic instructions  
Instruction execution time  
Clock input oscillation frequency  
M37471M2  
8 MHz (max.)  
4096 bytes  
ROM  
M37471M4/E4  
8192 bytes  
Memory  
size  
M37471M8/E8  
M37471M2  
16384 bytes  
128 bytes  
RAM  
M37471M4/E4  
192 bytes  
M37471M8/E8  
384 bytes  
P0  
P1  
P2  
P4  
P3  
P5  
8-bit  
8-bit  
8-bit  
4-bit  
4-bit  
4-bit  
Input/  
Output  
port  
I/O  
Input  
Serial I/O  
Timers  
PWM  
8-bit 1  
8-bit timer 4  
1 (in commtimer)  
8-bit 1 nels)  
A-D converter  
M37471M2  
64 lev
Subroutine nesting  
M37471M4/E4  
M37471M8/E8  
96 lx.  
1max.  
Interrupt  
al interrupts, 6 internal interrupts, 1 software interrupt  
-in circuit with internal feedback resistor (an external  
ramic resonator or a quartz-crystal oscillator)  
Built-in circuit with internal feedback resistor (a guartz-  
crystal oscillator)  
2.7 V to 4.5 V  
(at (2.2 VCC–2) MHz clock input oscillation frequency)  
4.5 V to 5.5 V  
Clock generating circuit  
Sub-clock generating circuit  
Power source voltage  
Power dissipation  
(at 8 MHz clock input oscillation frequency)  
35 mW typ.  
(at 8 MHz clock input oscillation frequency)  
Input/Output withstand voltage  
5 V  
Input/Output  
characteristics  
Operating temperature  
Device structure  
Output current  
–5 mA to +10 mA (P0, P1, P2, P4: CMOS 3-state)  
–20 °C to +85 °C  
CMOS silicon gate  
42-pin shrink plastic molded DIP  
56-pin plastic molded QFP  
42-pin shrink ceramic DIP  
M37471Mx/Ex-XXXSP  
M37471Mx/Ex-XXXFP  
M37471E8SS  
Package  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-7  
HARDWARE  
1.3 Performance overview  
Table 1.3.3 Performance overview of 7477 group  
Parameter  
Functions  
71 (69 basic instructions of 740 family and 2 multiplication  
and division instructions)  
Number of basic instructions  
0.5 µs (the minimum instructions, at 8 MHz clock input  
oscillation frequency)  
Instruction execution time  
Clock input oscillation frequency  
8 MHz (max.)  
M37477M4  
M37477M8/E8  
8192 bytes  
16384 bytes  
ROM  
Memory  
size  
M37477M4  
M37477M8/E8  
192 bytes  
384 bytes  
8-bit  
8-bit  
2-bit  
4-bit  
4-bit  
RAM  
I/O  
P0  
P1  
P4  
P2  
P3  
Input/  
Output  
port  
Input  
8-bit 1 (operable in UAde)  
8-bit timer 4  
1 (in common with
8-bit 1 (4 chan
Serial I/O  
Timers  
PWM  
A-D converter  
96 level max.  
192 level m
5 external , 7 internal interrupts, 1 software interrupt  
Built-in ith internal feedback resistor (an external  
ceranator or a quartz-crystal oscillator)  
2.5 V  
M37477M4  
M37477M8/E8  
Subroutine nesting  
Interrupt  
Clock generating circuit  
VCC–2) MHz clock input oscillation frequency)  
to 5.5 V  
8 MHz clock input oscillation frequency)  
35 mW typ.  
(at 8 MHz clock input oscillation frequency)  
5 V  
Power source voltage  
Power dissipation  
Input/Output  
Input/Outpuoltage  
characteristics  
Operating temperature  
Device structure  
Outpu
–5 mA to +10 mA (P0, P1, P4: CMOS 3-state)  
–20 °C to +85 °C  
CMOS silicon gate  
32-pin shrink plastic molded DIP  
32-pin plastic molded SOP  
M37Mx/E8-XXXSP  
M37477Mx/E8-XXXFP  
Package  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-8  
HARDWARE  
1.3 Performance overview  
Table 1.3.4 Performance overview of 7478 group  
Parameter  
Functions  
71 (69 basic instructions of 740 family and 2 multiplication  
and division instructions)  
Number of basic instructions  
0.5 µs (the minimum instructions, at 8 MHz clock input  
oscillation frequency)  
Instruction execution time  
Clock input oscillation frequency  
8 MHz (max.)  
8192 bytes  
16384 bytes  
M37478M4  
ROM  
Memory  
size  
M37478M8/E8  
192 bytes  
384 bytes  
8-bit  
8-bit  
4-bit  
8-bit  
4-bit  
4-bit  
M37478M4  
M37478M8/E8  
RAM  
I/O  
P0  
P1  
P4  
P2  
P3  
P5  
Input/  
Output  
port  
Input  
8-bit 1 (operable in ode)  
8-bit timer 4  
1 (in common wir)  
8-bit 1 (8 ch
Serial I/O  
Timers  
PWM  
A-D converter  
96 level ma
192 level
M37478M4  
M37478M8/E8  
Subroutine nesting  
Interrupt  
5 exterpts, 7 internal interrupts, 1 software interrupt  
Built with internal feedback resistor (an external  
csonator or a quartz-crystal oscillator)  
circuit with internal feedback resistor (a quartz-  
al oscillator)  
7 V to 4.5 V  
(at (2.2 VCC–2) MHz clock input oscillation frequency)  
4.5 V to 5.5 V  
(at 8 MHz clock input oscillation frequency)  
35 mW typ.  
(at 8 MHz clock input oscillation frequency)  
5 V  
Clock generating circuit  
Sub-clock generating circuit  
Power source voltage  
Power dissipation  
Input/Output  
Inwithstand voltage  
characteristics  
–5 mA to +10 mA (P0, P1, P4: CMOS 3-state)  
–20 °C to +85 °C  
CMOS silicon gate  
Outcurrent  
Operating temperature  
Device structure  
42-pin shrink plastic molded DIP  
56-pin plastic molded QFP  
42-pin shrink ceramic DIP  
M37478Mx/E8-XXXSP  
M37478Mx/E8-XXXFP  
M37478E8SS  
Package  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-9  
HARDWARE  
1.4 Pin configuration  
1.4 Pin configuration  
Figures 1.4.1 to 1.4.4 show a pin configuration of “7470/7471/7477/7478 group.”  
For pin connections in the EPROM mode of the built-in programmable ROM version, refer to “Figures  
1.19.1 to 1.19.6 Pin connections in EPROM mode.”  
PIN CONFIGURATION (TOP VIEW)  
1
2
32  
31  
30  
29  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/T0  
P11  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
3
4
5
6
28  
27  
26  
25  
24  
23  
7
8
P10  
9
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
P41  
P40  
10  
11  
12  
13  
14  
15  
16  
22  
21  
20  
P3
T0  
SET  
CC  
1
XIN  
XOUT  
VSS  
Outline e)  
Note: The M37470M2-XXXSP and M3XXXSP are included in the 32P4B package. All of  
these products are pin-compa
Fig. 1.4.1 Pin configuration ooup  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-10  
 
HARDWARE  
1.4 Pin configuration  
PIN CONFIGURATION (TOP VIEW)  
42  
41  
40  
39  
38  
37  
1
2
3
P53  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/T0  
P11  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
4
5
6
7
36  
35  
34  
33  
32  
31  
30  
29  
28  
27  
26  
8
9
P10  
10  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
11  
12  
13  
14  
15  
16  
17  
P40  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
18  
19  
20  
21  
25  
24  
23  
22  
XIN  
XOUT  
VSS  
P51/
P
Outline 42P4B (Note
42S1B-A (S)  
45  
46  
28  
27  
26  
RESET  
NC  
P05  
P06  
P07  
P5
NC  
P51/XCOUT  
P50/XCIN  
NC  
VCC  
VSS  
AVSS  
NC  
XOUT  
XIN  
25  
24  
M37471M8-XXXFP  
M37471E8-XXXFP  
23  
22  
21  
20  
19  
18  
17  
52  
53  
54  
55  
56  
P17/S
P16/CLK  
P15/SOUT  
NC  
NC  
NC: No connection  
Outline 56P6N-A (Note 2)  
Notes 1 : The M37471M2-XXXSP and M37471M4/E4-XXXSP are included in the 42P4B package. All of these  
products are pin-compatible.  
2 : The M37471M2-XXXFP and M37471M4/E4-XXXFP are included in the 56P6N-A package. All of  
these products are pin-compatible.  
3 : The only differences between the 42P4B package product and the 56P6N-A package product are  
package shape, absolute maximum ratings and the fact that the 56P6N-A package product has an AVSS pin.  
Fig. 1.4.2 Pin configuration of 7471 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-11  
HARDWARE  
1.4 Pin configuration  
PIN CONFIGURATION (TOP VIEW)  
1
2
32  
31  
P1  
P1  
P1  
P1  
P1  
P1  
7
/
S
RDY  
P0  
P0  
P0  
P0  
P0  
P0  
P0  
P0  
P4  
P4  
P3  
P3  
P3  
P3  
7
6
5
4
3
2
1
0
1
0
3
2
1
0
6
/SCLK  
/T  
/R  
3
4
30  
29  
5
X
D
D
4
X
5
6
28  
27  
3
2
/T  
/T  
1
0
1
0
3
2
1
0
7
8
26  
25  
P1  
P1  
/IN  
/IN  
/IN  
/IN  
9
24  
23  
P2  
3
10  
P2  
P2  
P2  
2
11  
12  
13  
14  
15  
16  
22  
21  
1
/CNTR  
/CNTR  
1
0
0
20  
19  
V
REF  
IN  
OUT  
SS  
/INT  
/INT  
1
0
X
18  
17  
X
RESET  
V
V
CC  
Outline 32P4B (Note 1)  
1
2
P1  
P1  
P1  
P1  
P1  
P1  
7
/
S
RDY  
P0  
P0  
P0  
P0  
P0  
P0  
P0  
P0  
P4  
P4  
P3  
P3  
P3  
P3  
7
6
5
4
3
2
1
0
1
0
3
2
1
0
6
/SCLK  
/T  
/R  
3
29  
5
X
D
D
4
4
X
28  
27  
3
2
/T  
/T  
1
0
0
26  
25  
P1  
P
N  
24  
23  
P
10  
11  
12  
13  
14  
15  
16  
22  
21  
/CNTR  
/CNTR  
1
0
20  
19  
V
REF  
IN  
OUT  
SS  
/INT  
/INT  
1
X
0
18  
17  
X
RESET  
V
V
CC  
Outline 32P2W-A (Note 2)  
Notes 1 : The M37477M4-XXXSP is included in the 32P4B package.  
These products are pin-compatible.  
2 : The M37477M4-XXXFP is included in the 32P2W-A package.  
These products are pin-compatible.  
3 : The only differences between the 32P4B package product and the 32P2W-A package product are  
package shape and absolute maximum ratings.  
Fig. 1.4.3 Pin configuration of 7477 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-12  
HARDWARE  
1.4 Pin configuration  
PIN CONFIGURATION (TOP VIEW)  
1
2
42  
41  
40  
P53  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
3
4
5
6
39  
38  
37  
36  
7
35  
34  
33  
8
9
P10  
10  
11  
12  
13  
14  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
32  
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
P40  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
15  
16  
17  
18  
19  
20  
21  
XIN  
XOUT  
VSS  
P51/X
P5
V
Outline 42P4B (Note 1)  
42S1B-A ( M3
45  
28  
RESET  
NC  
P05  
P06  
P07  
P52  
N
46  
47  
27  
26  
NC  
P51/XCOUT  
P50/XCIN  
NC  
VCC  
VSS  
AVSS  
NC  
XOUT  
XIN  
25  
24  
23  
22  
21  
20  
19  
18  
17  
M37478M8-XXXFP  
M37478E8-XXXFP  
2  
53  
54  
P17/
P16/SCL
P15/TXD  
NC  
55  
56  
NC  
Outline 56P6N-A (Note 2)  
NC: No connection  
Notes1 : The M37478M4-XXXSP is included in the 42P4B package.  
These products are pin-compatible  
2 : The M37478M4-XXXFP is included in the 56P6N-A package.  
These products are pin-compatible  
3 : The only differences between the 42P4B package product and the 56P6N-A package product are package  
shape, absolute maximum ratings and the fact that the 56P6N-A package product has an  
AVSS pin.  
Fig. 1.4.4 Pin configuration of 7478 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-13  
HARDWARE  
1.5 Pin description  
1.5 Pin description  
Tables 1.5.1 to 1.5.3 show a pin description.  
For pin functions in the EPROM mode of the built-in programmable ROM version, refer to “1.19.2 Pin  
description.”  
Table 1.5.1 Pin description (1)  
Input/  
Output  
Pin  
Name  
Power source  
Functions  
VCC, VSS  
• Apply the following voltage to the VCC pin:  
2.7 V to 4.5 V  
(at f(XIN) = (2.2 VCC–2) MHz clock input oscillation frequency)  
or  
4.5 V to 5.5 V  
(at f(XIN) = 8 MHz clock input oscillation frequency).  
• Apply 0 V to the VSS pin.  
AVSS  
VREF  
Analog power source  
Reference voltage input  
Reset input  
• Ground level input for the A-D converter.  
• Apply the same vVSS pin to the AVSS pin.  
Note: This pin ited to 56P6N-A package  
productthe 7471/7478 group.  
• Referencinput pin for the A-D converter.  
• When A-D converter, apply 0.5 VCC (Q  
2) t].  
Input  
Input  
using the A-D converter, connect to VCC.  
nput pin  
______________________________  
RESET  
microcomputer is put into a reset state by  
_________________________  
eeping the RESET pin at “L” for 2 µs or more,  
and the reset state is released by returning the  
______________________  
RESET pin to “H.”  
XIN  
Clock input  
Clock outpu
I/O port P0  
t  
Output  
I/O  
• An input pin and an output pin for the main clock  
generating circuit.  
• Connect a ceramic resonator or a quartz-crystal  
oscillator between pins XIN and XOUT.  
• A feedback resistor is incorporated between the  
XIN and the XOUT pins.  
• To use an external clock input, connect the clock  
oscillation source to the XIN pin and leave the  
XOUT pin open.  
XOUT  
P00–P07  
• Port P0 is an 8-bit I/O port.  
• The output structure is CMOS output.  
• In input mode, a pull-up transistor is connectable  
in units of one bit.  
• In input mode, a key-on wake up function is pro-  
vided.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-14  
 
HARDWARE  
1.5 Pin description  
Table 1.5.2 Pin description (2)  
Input/  
Output  
I/O  
Pin  
Name  
I/O port P1  
Functions  
P10–P17  
• Port P1 is an 8-bit I/O port.  
• The output structure is CMOS output.  
• In input mode, pull-up transistor can be connected  
in units of 4-bit.  
• Pins P12 and P13 are in common with timer out-  
put pins T0, T1 respectively.  
• In the case of the 7470/7471 group, P14–P17 are  
in common with serial I/O pins SIN, SOUT, CLK,  
__________  
SRDY respectirely.  
• In the case of the 7470/7471 group, the outputs  
__________  
of pins SOUT and the SRDY can be N-channel open  
drain outputs.  
• In the case of the 747/7478 group, P14–P17 are  
in common with sO pins RXD, TXD, SCLK,  
__________  
SRDY, respectiv
P20–P27  
I/O port P2  
I/O  
• Port P2 is aO port.  
(7470/7471 group)  
• The outpure is CMOS output.  
• In input ull-up transistor can be connected  
in ubit.  
• PP27 are in common with analog input  
–IN7 respectively.  
he 7470 group has only the 4 pins P20–P23  
(IN0–IN3).  
Input port P2  
(7477/7478 group)  
I
Port P2 is an 8-bit input port.  
• It is impossible to connect a pull-up transistor.  
• Pins P20–P27 are in common with analog lnput  
pins IN0–IN7 respectively.  
Note: The 7477 group has only the 4 pins P20–P23  
(IN0–IN3).  
P30–P33  
P40–P43  
Input port P3  
I/O port P4  
Input  
I/O  
• Port P3 is a 4-bit input port.  
• Pins P30, P31 are in common with external inter-  
rupt input pins INT0, INT1 respectively.  
• Pins P32, P33 are in common with timer input pins  
CNTR0, CNTR1 respectively.  
• Port P4 is a 4-bit I/O port.  
• The output structure is CMOS output.  
• In input mode, pull-up transistor can be connected  
in units of 4-bit.  
Note: The 7470/7477 group has only 2 pins P40  
and P41.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-15  
HARDWARE  
1.5 Pin description  
Table 1.5.3 Pin description (3)  
Input/  
Output  
Input  
Pin  
Name  
Input port P5  
Functions  
P50–P53  
• Port P5 is a 4-bit input port.  
• Pull-up transistor can be connected in units of  
4-bit.  
• Pins P50, P51 are in common with input/output  
pins for sub-clock generating circuit XCIN, XCOUT  
respectively.  
• When using pins P50 and P51 as pins XCIN and  
XCOUT, connect a quartz-crystal oscillator between  
pins XCIN and XCOUT.  
• When using pins P50 and P51 as pins XCIN and  
XCOUT, a feedback resistor is connected between  
pins XCIN and XCOUT.  
• To use an external cck input, connect the clock  
oscillation source XCIN pin and leave the  
XCOUT pin ope
Note: Only the 78 group has pins P50–P53.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-16  
HARDWARE  
1.6 Functional block diagram  
1.6 Functional block diagram  
The functional block diagram of 7470/7471/7477/7478 group is shown in Figure 1.6.1 to Figure 1.6.6.  
Fig. 1.6.1 M37470MX/EX-XXXSP functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-17  
 
HARDWARE  
1.6 Functional block diagram  
Fig. 1.6.2 M37471MX/EX-XXXSP, M37471E8SS functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-18  
HARDWARE  
1.6 Functional block diagram  
Fig. 1.6.3 M37471MX/EX-XXXFP functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-19  
HARDWARE  
1.6 Functional block diagram  
Fig. 1.6.4 M37477MX/E8-XXXSP/FP functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-20  
HARDWARE  
1.6 Functional block diagram  
Fig. 1.6.5 M37478MX/E8-XXXSP, M37478E8SS functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-21  
HARDWARE  
1.6 Functional block diagram  
Fig. 1.6.6 M37478MX/E8-XXXFP functional block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-22  
HARDWARE  
1.7 Central processing unit (CPU)  
1.7 Central processing unit (CPU)  
The CPU of 7470/7471/7477/7478 group has the following 6 registers (referred as “CPU registers”).  
Accumulator (A) ························································· 8-bit  
Index register X (X)··················································· 8-bit  
Index register Y (Y)··················································· 8-bit  
Stack pointer (S)························································ 8-bit  
Processor status register (PS)································· 8-bit  
Program counter (PC) ············································· 16-bit  
high-order (PCH) ·········· 8-bit  
low-order (PCL) ············ 8-bit  
Figure 1.7.1 shows a structure of CPU registers.  
7
7
7
7
7
0
0
0
0
0
A
X
Accumulator  
Index
Y
Register Y  
Stack Pointer  
15  
8
PCH  
CL  
Program Counter  
N V T B D I Z C  
Processor Status Register (PS)  
Carry Flag  
Zero Flag  
Interrupt Disable Flag  
Decimal Mode Flag  
Break Flag  
Index X Mode Flag  
Overflow Flag  
Negative Flag  
Fig. 1.7.1 Structure of CPU registers  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-23  
 
HARDWARE  
1.7 Central processing unit (CPU)  
The CPU register states provided immediately after hardware reset are described below.  
The interrupt disable flag (I) of the Processor status register (PS) is set to “1.”  
The high-order 8 bits (PCH) of the Program counter (PC) become the contents of address FFFF16 and  
the low-order 8 bits (PCL) become the contents of address FFFE16.  
The contents of the other CPU registers are undefined, so be sure to initialize the CPU registers with  
the program.  
1.7.1 Accumulator (A)  
The Accumulator is the central of microcomputer and is an 8-bit register. This accumulator is used for  
arithmetic operations, data transfer, temporary storage, condition judgment, and is a general-purpose  
register with the highest frequency of use.  
1.7.2 Index register X (X), Index register Y (Y)  
The Index register X and the Index register Y are 8-bit registers.  
In the addressing mode using these Index registers, a value resulting fdding the contents of this  
register to the operand becomes a real specified address. This addressis used to make reference  
to a subroutine table or a memory table. The Index registers are with increment, decrement,  
comparison and data transfer functions and can also be used alified accumulator.  
In the Index register X, when the index X mode flag (T) of the status register is “1,” the contents  
of the Index register become an operand address.  
1.7.3 Stack pointer (S)  
The Stack pointer is an 8-bit register which is usea subroutine or generate an interrupt.  
For a branch from a routine being executed toutine or an interrupt processing routine, it is  
necessary to temporarily store (push) in memturn address at the termination of this processing.  
Usually, the internal RAM is used as the pnation, and this area is called a stack area. The stack  
pointer indicates an address in the stao which the data will be pushed next.  
Figure 1.7.2 shows a push operatistack area of the register and a pop operation from the Stack  
area of the register.  
The Program counter and other than the Processor status register are not automatically pushed.  
Accordingly, be sure to cessary registers with the program.  
The PHA instruction and LA instruction are used for push and pop operations of the Accumulator and  
the PHP instruction and the PLP instruction are used for push and pop operations of the Processor status  
register.  
In the 7470/7471/7477/7478 group, the RAM in 0 page or 1 page is available as a stack area. Select it  
by the stack page bit (bit 2) of the CPU mode register (address 00FB16), which will be described later (“0”  
for 0 page or “1” for 1 page). In some products whose RAM capacity is 192 bytes or less, RAM does not  
exist on 1 page, so be sure to set this bit to “0.”  
The stack pointer is in an undefined state immediately after hardware reset. Be sure to initialize so as not  
to destroy the data arranged in the RAM area.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-24  
 
 
 
HARDWARE  
1.7 Central processing unit (CPU)  
On-going routine  
When an interrupt is accepted  
M(S) (PCH)  
Interrupt request (Note)  
(S) (S)–1  
Push return address  
on stack  
M(S) (PCL)  
(S) (S)–1  
sh contents of  
M(S)
Execute JSR  
When a subroutine is called  
M(S) (PCH)  
Processor status  
register on stack  
(S
rvice  
tine  
I Flag is set from  
“0” to “1”  
Fetch the Jump  
Vector  
Push return  
address on  
stack  
(S) (S)–1  
M(S) (PCL)  
(S) (S)–1  
Execute RTI  
Subroutine  
Pop contents of  
Processor status  
register from stack  
(S) (S)+1  
(PS) M(S)  
(S) (S)+1  
(PCL) M(S)  
(S) (S)+1  
(PCH) M(S)  
Pop return  
address from stack  
Execute RT
(S)
(P
(S) (+1  
Pop return  
address from  
stack  
(PCH) M(S)  
: Operation instructed by software  
: Operation which is automatically performed by hardware  
Note : Condition for acceptance of an interrupt  
Interrupt disable flag is “0” (enable state)  
Interrupt enable bit is “1” (enable state)  
Fig. 1.7.2 Register push and pop at interrupt generation and subroutine call  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-25  
HARDWARE  
1.7 Central processing unit (CPU)  
1.7.4 Program counter (PC)  
The Program counter is a 16-bit counter consisting of an 8-bit register PCH and an 8-bit register PCL. This  
counter indicates the address at which the next instruction to be executed is stored.  
The contents of this counter are automatically pushed to the stack when a subroutine is called or an  
interrupt occurs.  
The high-order 8 bits (PCH) of the program counter become the contents of address FFFF16 and the low-  
order 8 bits (PCL) become the contents of address FFFE16 immediately after hardware reset.  
1.7.5 Processor status register (PS)  
The Processor status register is an 8-bit register consisting of 5 flags to indicate the state immediately  
after arithmetic processing and 3 flags to determine an operation for the CPU.  
Each bit of the Processor status register is described below.  
(1) Carry flag (C)....................................................... Bit 0  
The carry flag holds the carry or borrow from the arithmetic logical unit after arithmetic processing.  
This flag is also changed by the Shift instruction or Rotate instruction.  
This flag is set to “1” by the SEC instruction and cleared to “0” by LC instruction.  
(2) Zero flag (Z) ......................................................... Bit 1  
The zero flag is set to “1” when the arithmetic processing oansfer result is “0” and cleared  
to “0” in all other cases. In the decimal operation mode, is invalidated.  
There is no instruction to change the contents of this
(3) Interrupt disable flag (I)....................................Bi
The interrupt request flag disables all instructiopt an interrupt by the BRK instruction). When  
this flag is “1,” the interrupt disable state is This flag is set to “1” by accepting an interrupt,  
thereby disabling a multi-interrupt.  
This flag is set to “1” by the SEI instrd cleared to “0” by the CLI instruction.  
This flag is set to “1” (interrupt dis) immediately after hardware reset.  
(4) Decimal mode flag (D) ......................Bit 3  
The decimal mode flag dethether addition and subtraction should be performed in binary  
or decimal notation. Whetents of this flag are “0,” an ordinary binary operation is performed.  
When they are “1,” an c operation is performed assuming that one word is a 2-digit decimal  
number. In a decimon, decimal compensation is automatically performed (decimal operation  
can be performed onthe ADC instruction and the SBC instruction).  
This flag is set to “1” by the SED instruction and cleared to “0” by the CLD instruction.  
This flag is put in an undefined state immediately after hardware reset. As this flag directly affects  
arithmetic operations, be sure to initialize it.  
(5) Break flag (B) ......................................................Bit 4  
The break flag identifies whether or not an interrupt has been caused by the BRK instruction. The  
BRK instruction is used for program debugging and performs the same operation as an interrupt is  
performed by executing the BRK instruction.  
The Processor status register is pushed to the stack, after the B flag is automatically set to “1” in  
case of the BRK instruction interrupt, or after the B flag is automatically cleared to “0” in case of the  
other interrupts.  
There is no instruction to change the contents of this flag.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-26  
 
 
HARDWARE  
1.7 Central processing unit (CPU)  
(6) Index X mode flag (T) .......................................Bit 5  
When the Index X mode flag is “0,” arithmetic operations are performed between the Accumulator  
and the memory. When this flag is “1,” direct arithmetic operations and direct data transfer between  
one memory and another, between a memory and an I/O, or between one I/O and another without  
passing through the accumulator. An arithmetic operation result between memory 1 directly specified  
by the Index register X and memory 2 specified by an operand is stored into memory 1.  
1 When the T flag is “0”  
2 When the T flag is “1”  
A
M1  
A
M2  
M1 M2  
A
: Denotes an arithmetic operation  
: Content of accumulataor  
M1 : Contents of memory 1 directly specified by the Index register X  
M2 : Contents of memory 2 specified by the operand  
This flag is set to "1" by the SET instruction and cleared to "0" by the CLT instruction. This flag is  
in the undefined state immediately after hardware resetting. This flag has a direct effect on arithmetic  
operations. Accordingly, be sure to initialize it.  
(7) Overflow flag (V).................................................Bit 6  
The contents of the overflow flag have significance when and subtraction are performed  
assuming that one word is a signed binary number. Whetion or subtraction result exceeds  
the range of +127 to –128, this flag is set to “1.” WIT instruction is executed for other  
cases, the contents of bit 6 of the executed memot into the overflow flag.  
This flag is cleared to “0” by the CLV instructionre is no instruction to set this flag to “1.”  
In the decimal operation mode, this flag is inv
(8) Negative flag (N).......................................7  
The negative flag is set to “1” when atic processing or data transfer result is negative (bit  
7 is “1”). The contents of bit 7 of the d memory are put into this flag when the BIT instruction  
is executed.  
There is no instruction to chaontents of this flag.  
In the decimal operation mflag is invalidated.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-27  
HARDWARE  
1.8 Access area  
1.8 Access area  
In the 7470/7471/7477/7478 group, all ROM, RAM and I/O and the various control registers are located in  
the same memory area. Accordingly, the same instructions are used for data transfer and arithmetic  
operations without discriminating between a memory and an I/O.  
The Program counter consists of 16 bits and the access space is 64K-byte of memory area: addresses  
000016 to FFFF16.  
The area of the least significant 256 bytes (addresses 000016 to 00FF16) is called the “zero page,” and  
memories with a high frequency of use such as internal RAM, I/O ports and timers are located here. The  
area of the most significant 256 bytes (addresses FF0016 to FFFF16) is called the “special page,” and an  
internal ROM and interrupt vectors are located here.  
The zero page and the special page can be accessed with 2 bytes by using each special addressing mode.  
Figure 1.8.1 shows an outline of accsess area.  
000016  
RAM  
o page  
00C016  
00FF16  
SFR area  
RAM  
FF
ROM  
Special page  
Interrupt vector area  
FFFF16  
Fig. 1.8.1 Access area  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-28  
 
HARDWARE  
1.8 Access area  
1.8.1 Zero page (Addresses 000016 to 00FF16)  
The area of 256 bytes from addresses 000016 to 00FF16 is called the zero page. The internal RAM and  
the special function register (SFR) are located in this area.  
To specify a memory or a register in this area, use the addressing mode shown in Table 1.8.1. In this  
area, especially, it is possible to access this area in a shorter instruction cycle by using the zero addressing  
mode.  
1.8.2 Special page (Addresses FF0016 to FFFF16)  
The area of 256 bytes from addresses FF0016 to FFFF16 is called the special page. The internal ROM  
and the interrupt vector area are located in this area.  
To specify a memory or subroutine in this area, use the addressing mode shown in Table 1.8.1. In this  
area, especially, it is possible to jump to this area in a shorter instruction cycle by using the special page  
addressing mode.  
Ordinary, subroutines with high frequency of use are located in this area.  
Table 1.8.1 Addressing mode accessible to each area  
Zero page reference  
Addressing mode (bytes required)  
Special pae Other area reference  
Zero page (2)  
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
Zero page indirect (2)  
Zero page X (2)  
Zero page Y (2)  
Zero page bit (2)  
Zero page bit relative (3)  
Absolute (3)  
Absolute X (3)  
Absolute Y (3)  
Relative (2)  
Indirect (3)  
Indirect X (2)  
Indirect Y (2)  
Special page (2)  
,
,
,
,
,
,
,
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-29  
 
 
HARDWARE  
1.9 Memory allocation  
1.9 Memory allocation  
Figure 1.9.1 and Figure 1.9.2 show the memory allocation of 7470/7471/7477/7478 group.  
The memories, I/Os and others located in the access area are explained below.  
RAM  
An internal RAM is located in each area shown in Table 1.9.1. The internal RAM is used as a data  
storage area and a stack area for subroutine call and interrupt occurrence.  
When the RAM is used as a stack area, be careful about subroutine nesting depth and interrupt levels  
so that the data in the RAM is not destroyed.  
Special function register (SFR) (Addresses 00C016 to 00FF16)  
The area from addresses 00C016 to 00FF16 is assigned to the SFR (Special Function Register).  
Various control registers such as I/O ports, timers, serial I/Os, A-D converters and interrupts are  
located in this SFR.  
Figure 1.9.3 shows the special function register (SFR)memory map.  
ROM  
An internal ROM is located in each area shown in Table 1.9.2
The internal ROM is used to store data tables and programinternal ROM, a vector area to  
store jump destination addresses upon a reset or occurrterrupt are assigned to addresses  
FFEA16 to FFFF16 in the 7470/7471 group and to addre816 to FFFF16 in the 7477/7478 group.  
Figure 1.9.4 shows the interrupt vector memory
Table 1.9.1 RAM area  
Product  
M3747xM2  
M3747xM4/E4  
M3747xM8/E8  
Addresses 000016 to
Addresses 000016 6  
Addresses 0000F16, Addresses 010016 to 01BF16 384 8-bit  
Memory size  
128 8-bit  
192 8-bit  
Table 1.9.2 ROM area  
Product  
ype  
Mask
Mask
Programable ROM  
Mask ROM  
Range  
Memory size  
04K 8-bit  
M3747xM2  
M3747xM4  
M3747xE4  
M3747xM8  
M3747xE8  
Addresses F00016 to FFFF16  
Addresses E00016 to FFFF16 08K 8-bit  
Addresses C00016 to FFFF16 16K 8-bit  
Programmable ROM  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-30  
 
HARDWARE  
1.9 Memory allocation  
M37470M2  
M37471M2  
M37470M4/E4  
M37471M4/E4  
M37470M8/E8  
M37471M8/E8  
000016  
007F16  
000016  
007F16  
000016  
007F16  
RAM  
(192 bytes)  
RAM  
(192 bytes)  
RAM  
(128 bytes)  
Zero page  
Not used  
SFR area  
00C016  
00FF16  
00C016  
00FF16  
00C016  
00FF16  
010016  
SFR area  
SFR area  
RAM  
(192 bytes)  
01BF16  
Not used  
Not used  
Not used  
E00016  
F00016  
FF0016  
ROM  
(4096 bytes)  
bytes)  
ROM  
(16384 bytes)  
FF0016  
Special  
page  
FFEA16 Interrupt vector  
Interrupt vector  
FFEA16 Interrupt vector  
area  
area  
area  
FFFF16  
6  
FFFF16  
Fig. 1.9.1 Memory allocf 7470/7471 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-31  
HARDWARE  
1.9 Memory allocation  
M37477M4  
M37478M4  
M37477M8/E8  
M37478M8/E8  
000016  
000016  
RAM  
RAM  
(192 bytes)  
(192 bytes)  
007F16  
007F16  
Zero page  
00C016  
00FF16  
00C016  
00FF16  
010016  
SFR area  
SFR area  
RAM  
(192 bytes)  
01BF16  
Not used  
Not used  
C00016  
E00016  
ROM  
ROM  
(8192 byte
(16384 bytes)  
FF0016  
FFE816  
FF0016  
Special  
page  
Inter
FFE816 Interrupt vector  
area  
FFFF16  
FFFF16  
Fig. 1.9.2 Memory allocf 7477/7478 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-32  
HARDWARE  
1.9 Memory allocation  
Port P0  
Transmit/receive buffer register  
00C016  
00C116  
00C216  
00C316  
00C416  
00C516  
00C616  
00C716  
00E016  
00E116  
00E216  
00E316  
00E416  
00E516  
00E616  
00E716  
00E816  
00E916  
00EA16  
00EB16  
00EC16  
00ED16  
00EE16  
00EF16  
00F016  
00F116  
00F216  
00F316  
00F4
0
Port P0 direction register  
Port P1  
Serial I/O status register  
Serial I/O control register  
UART control register  
Baud rate generator  
(Note 5)  
Port P1 direction register  
Port P2  
Port P2 direction register (Note 1)  
Port P3  
00C816 Port P4  
Port P4 direction register  
00C916  
00CA16 Port P5 (Note 2)  
00CB16  
00CC16  
00CD16  
00CE16  
00CF16  
Port P0 pull-up control register  
Port P1-P5 pull-up control register (Note 3)  
Timer 1  
Time
Ti
00D016  
00D116  
00D216  
00D316  
00D416 Edge polarity selection register  
00D516  
Input latch register  
00D616  
00D716  
00D816  
00D916  
Timer FF register  
Timer 12 mode register  
Timer 34 mode register  
16  
0F916  
A-D control register  
00DA16 A-D conversion register  
00DB16  
00FA16 Timer mode register 2  
CPU mode register  
00FB16  
00FC16  
Serial I/O mode register  
Interrupt request register 1  
00DC16  
Note 4)  
00DD16 Serial I/O register  
00FD16 Interrupt request register 2  
Interrupt control register 1  
00FF16 Interrupt control register 2  
00DE16  
00DF16  
00FE16  
Serial I/O counter Byte co
Notes 1: In tgroup, this register is not located.  
2: In 477 group, this register is not located.  
3: This aess is allocated P1-P4 pull-up control register for the 7470/7477 group.  
4: In the 7477/7478 group, this register is not located.  
5: In the 7470/7471 group, this register is not located.  
Fig. 1.9.3 Special function register (SFR) memory map  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-33  
HARDWARE  
1.9 Memory allocation  
FFE816  
FFE916  
FFEA16  
FFEB16  
FFEC16  
FFED16  
FFEE16  
FFEF16  
FFF016  
FFF116  
FFF216  
FFF316  
FFF416  
FFF516  
FFF616  
FFF716  
FFF816  
FFF916  
FFFA16  
FFFB
FF
16  
BRK instruction interrupt  
A-D conversion completion interrupt  
Serial I/O transmit interrupt  
Serial I/O receive interrupt  
Timer 4 interrupt  
FFEA16  
BRK instruction interrupt  
FFEB16  
FFEC16  
FFED16  
FFEE16  
FFEF16  
FFF016  
FFF116  
FFF216  
FFF316  
FFF416  
FFF516  
FFF616  
FFF716  
FFF816  
FFF916  
FFFA16  
FFFB16  
FFFC16  
FFFD16  
FFFE16  
FFFF16  
A-D conversion completion interrupt  
Serial I/O interrupt  
Timer 4 interrupt  
Timer 3 interrupt  
Timer 2 interrupt  
Timer 3 interrupt  
Timer 2 interrupt  
Timer 1 interrupt  
nterrupt  
CNTR0 interrupt or CNTR1 interrupt  
INT1 interrupt or key on wake up interrpt  
t or CNTR1 interrupt  
upt or key on wake up interrpt  
INT0 interrupt  
RESET  
INT0 interrupt  
RESET  
7470/7471 group  
7477/7478 group  
Fig. 1.9.4 Interrupt vector mem
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-34  
HARDWARE  
1.10 I/O pins  
1.10 I/O pins  
The 7470/7471/7477/7478 group is provided with the following I/O pins.  
I/O port (P0 to P5)  
Reset input (R____E__S___E___T__)  
Clock input/output (XIN, XOUT, XCIN, XCOUT)  
A-D convesion reference voltage input (VREF)  
Power supply voltage input (VCC, VSS, AVSS)  
Notes 1: The 7470/7477 group is not provided with port P5 and pins XCIN and XCOUT.  
2: The AVSS pin is dedicated to the 56P6N-A package product.  
For an outline of each pin, refer to “1.5 Pin description.”  
1.10.1. I/O port  
(1) I/O port writing and reading  
2 The input-only pin and the programmable I/O port set as inrt  
The values (pin states) which input to the input-only pin and grammable I/O port set as  
input port can be read in by reading the Port register corg to each port.  
When data is written into the Port register corresponding port, it can be only written in the  
Port register and has no effect on the pin state.  
2 The programmable I/O port set as an output
The value written into the Port register corrg to the programmable I/O port set as an  
output port is output to the outside by wansistor.  
When the Port register corresponding tort has been read, each pin state is not read in  
but the value written into the Port regad. Accordingly, if the output “H” voltage has been  
reduced or the output “L” voltage n increased by an external load, the previous output  
value can be correctly read.  
Figure 1.10.1 shows the I/O ting and reading and Table 1.10.1 shows the port register  
address allocation.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-35  
 
 
HARDWARE  
1.10 I/O pins  
At input : A write operation is enabled to the  
Port register.  
At output : An output value can be set by writing to the  
Port register. The Port register can be read out.  
Each pin state can be read in by  
reading the Port register.  
“H” level output  
Port direction  
register  
( “0” )  
Port direction  
register  
( “1” )  
Port register  
(When Writing)  
Port register  
“L” level output  
Port register  
(When Reading)  
:The P channel transistor and the N chaor are in a cut-off state.  
Fig. 1.10.1 I/O port writing and reading  
Table 1.10.1 Port register address allocation  
Port register  
Address  
00C016  
00C216  
00C416  
00C616  
00C816  
00CA16  
P0  
P1  
P2  
P3  
P4  
P5 (Note)  
Note: The 7470/7477 group is not provided  
with P5.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-36  
HARDWARE  
1.10 I/O pins  
(2) Input/output selection of the programmable I/O ports  
An input/output selection of the programmable I/O ports is made by the Port direction register  
corresponding to each port.  
Figure 1.10.2 shows a structure of Port Pi (i = 0, 1, 2, 4) direction register.  
Note: Each direction register is initialized into “0016” at reset, so that the I/O ports are put into an  
input state.  
Port Pi direction register  
b7 b6 b5 b4 b3b2 b1 b0  
Port Pi direction register (PiD) (i = 0,1,2,4)  
[Address 00C116, 00C316, 00C516, 00C
At reset  
R W  
B
0
Name  
F
0 : Pormode  
1 : Pput mode  
Port Pi direction  
register  
0
0
0
0
0
0
0
0
0 nput mode  
i1 output mode  
1
2
3
4
t Pi2 input mode  
ort Pi2 output mode  
: Port Pi3 input mode  
1 : Port Pi3 output mode  
0 : Port Pi4 input mode  
1 : Port Pi4 output mode  
0 : Port Pi5 input mode  
1 : Port Pi5 output mode  
5
0 : Port Pi6 input mode  
1 : Port Pi6 output mode  
0 : Port Pi7 input mode  
1 : Port Pi7 output mode  
Notes 1: The 7477/7478 group is not provided with the port P2  
direction register (input only).  
2: The Port P4 is provided as below:  
•7470/7477 group has 2 bits of P4 0 and P41.  
•7471/7478 group has 4 bits of P4 0 to P43.  
Fig. 1.10.2 Structure of Port Pi direction register (i=0, 1, 2, 4)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-37  
HARDWARE  
1.10 I/O pins  
(3) Pull-up control  
When input has been selected by the Port direction register, pull-up control can be exerted in bit units  
shown in Table 1.10.1 by the Port P0 pull-up control register (address 00D016) or the Port P1–P5  
pull-up control register* (address 00D116). At this time, control is exerted by turning on and off the  
pull-up transistor.  
*: The Port P1–P4 pull-up control register is arranged in the 7470/7477 group.  
Note: Ports other than P0 cannot be controlled in one-bit units. For example, when P10 is pulled up  
at P1 (pull-up control in units of 4 bits), P11 to P13 are also pulled up.  
Figure 1.10.3 shows a structure of Port P0 pull-up control register, and Figure 1.10.4 shows a  
structure of Port P1–P5 pull-up control register.  
Port P0 pull-up control register  
b7 b6 b5 b4 b3 b2 b1 b0  
Port P0 pull-up control register  
[A016]  
on  
At reset  
B
Name  
R W  
Port P00 pull-up  
control bit  
-up  
up  
0
1
2
3
4
0
Port P01 pull-up  
control bit  
o pull-up  
: Pull-up  
0
0
0
0
0
0
0
Port P02 p
control b
0 : No pull-up  
1 : Pull-up  
Port
co
0 : No pull-up  
1 : Pull-up  
ull-up  
it  
0 : No pull-up  
1 : Pull-up  
P05 pull-up  
ntrol bit  
0 : No pull-up  
1 : Pull-up  
Port P06 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
Port P07 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
7
Fig. 1.10.3 Structure of Port P0 pull-up control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-38  
HARDWARE  
1.10 I/O pins  
Ports P1 to P5 pull-up control register  
b7 b6 b5 b4 b3 b2 b1 b0  
Ports P1 to P5 pull-up control register [Address 00D116]  
At reset  
b
0
Function  
0 : No pull-up  
1 : Pull-up  
Name  
R W  
Ports P10 to P13  
pull-up control bit  
Ports P14 to P17  
pull-up control bit  
0
0
0
0
0
?
0 : No pull-up  
1 : Pull-up  
1
Ports P2  
0
to P2  
3
pull-up  
(Note 2)  
0 : No pull-up  
1 : Pull-up  
2
3
control bit  
0 : No pull-up  
1 : Pull-up  
Ports P2  
control bit  
Ports P4  
control bit  
4
to P2  
7
pull-up  
(Notes 2, 3)  
0 : No pull-up  
1 : Pull-up  
0
to P4  
3
pull-up  
(Note 4)  
4
5
6
Nothing is allocated for this bit. This is w
disabled bit and is undefined at readin
?
?
Ports P5  
0
to P5  
3
pull-up  
(Note 3)  
0 : No pull-u
1 : Pull-u
0
?
control bit  
Nothing is allocated for this brite  
disabled bit and is undefing.  
7
Notes  
1 : In the 7470/7477 grto P4 Pull-up control register  
is provided.  
2 : In the 7477/74othing is allocated to these bits.  
They are uneading.  
3 : In the 747up, nothing is allocated to these bits.  
They ad at reading.  
4 : The group is provided with only P40 and P41.  
Fig. 1.10.4 Structure of Ports P1 to up control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-39  
HARDWARE  
1.10 I/O pins  
1.10.2 Port block diagram  
Figure 1.10.5 to Figure 1.10.9 show the block diagram of I/O ports.  
Port P0  
Pull-up  
control register  
Tr1  
Direction register  
Data bus  
Port latch  
Port P0  
Port P1  
Interrupt control circuit  
T34M7  
Pull-up  
control register  
Data bus  
Tr2  
Direction register  
Port latch  
Data bus  
Port P13  
T1  
Tr3  
T
Direction register  
Port latch  
Data bus  
Port P12  
Tr4  
register  
ort latch  
Data bus  
Port P11  
Tr5  
Direction register  
Port latch  
Data bus  
Port P10  
Tr1-Tr5 are pull-up transistors  
Fig. 1.10.5 Block diagram of Ports P0, P10 to P13  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-40  
 
HARDWARE  
1.10 I/O pins  
SM  
7
Port P14-P1  
7
Tr  
6
SM  
4
Direction register  
Port latch  
Data bus  
Port P1  
7
S
RDY  
SM  
SM  
2
3
Tr  
7
Direction register  
Port latch  
Data bus  
Port P1  
6
CLK output  
input  
SM  
3
Tr8  
SM  
7
Direction register  
Port latch  
Data bus  
Port P1  
5
S
O
Tr9  
egister  
rt latch  
Data bus  
Data bus  
Port P1  
4
S
IN  
Pull-up control register  
Tr6-Tr9 are pull-up transistors  
Fig. 1.10.6 Block diagram of Ports P14 to P17 (7470/7471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-41  
HARDWARE  
1.10 I/O pins  
Port P14-P17  
SIOE  
SIOM  
SRDY  
Tr6  
Direction register  
Port latch  
Data bus  
Data bus  
Data bus  
Port P1  
7
6
5
4
S
RDY  
SCS  
SIOE  
SIOM  
SIOE  
Tr7  
Direction register  
Port latch  
Port P1  
S
CLK output  
CLK input  
SIOE  
TE  
Tr8  
Direction register  
Port latch  
Port P1  
TXD  
SIOE  
RE  
Tr9  
rection register  
Port latch  
Data bus  
Data bus  
Port P1  
RXD  
Pull-up  
control register  
T
r6-Tr9 are pull-up transistors  
Fig. 1.10.7 Block diagram of Ports P14 to P17 (7477/7478 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-42  
HARDWARE  
1.10 I/O pins  
Port P2 (7470/7471 group)  
: Control in units of 4-bit  
Pull-up  
control register  
Data bus  
Tr10  
Direction register  
Port latch  
Data bus  
Port P2  
Multi-  
plex
A-D conversion circuit  
Port P2 (7477/7478 group)  
Data bus  
Port P2  
Multi-  
plexer  
A-D conversion circuit  
Port P3  
Data bus  
Port P3  
INT  
NTR1  
: Control in units of 4-bit (Control in units of 2-bit for 7470/7477 group  
)
Port P4  
Pull-up  
control register  
Data bus  
Tr11  
(7470/7471 group)  
Tr10  
(7477/7478 group)  
Direction register  
Port latch  
Data bus  
Port P4  
Tr10 and Tr11 are pull-up transistors  
Fig. 1.10.8 Block diagram of Ports P2 to P4  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-43  
HARDWARE  
1.10 I/O pins  
Port P5 (7471/7478 group)  
Pull-up  
control register  
Data bus  
Data bus  
(7471 group)  
Tr  
12  
T
r11 (7478 group)  
Port P5  
3
Tr  
13 (7471 group)  
Tr12 (7478 group)  
Data bus  
Port P5  
2
CM  
4
(7471 group)  
Tr  
14  
Tr13 (7478 group)  
Data bus  
Port P5  
1
CM  
4
CM  
4
XCIN  
CM  
4
T
r
15 (7471 group)  
(7478 group)  
Tr14  
Data bus  
Port P5  
0
Tr11-Tr15 are pull-up transistors  
Fig. 1.10.9 Block diagram of Port P5  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-44  
HARDWARE  
1.10 I/O pins  
1.10.3 Notes on use  
When using I/O ports, note the following.  
(1) Modify of the content of I/O port latch  
When the content of the port latch of an I/O port is modified with the bit managing instruction*, the  
value of the unspecified bit may be changed.  
Reason  
The bit managing instruction is read-modify-write instruction for reading and writing data by a byte  
unit. Accordingly, when this instruction is executed on one bit of the port latch of an I/O port, the  
following is executed to all bits of the port latch.  
As for a bit which is set as an input port: The pin state is read in the CPU, and is written to this  
bit after bit managing.  
As for a bit which is set as an output port: The bit value is read in the CPU, and is written to this  
bit after bit managing.  
Make sure the following:  
Even when a port which is set as an output port is changed fot port, its port latch holds  
the output data.  
Even when a bit of a port latch which is set as an input t specified with a bit managing  
instruction, its value may be changed in case where f the pin differs from a content of  
the port latch.  
bit managing instructions: SEB and CLB ins
(2) Pull-up control  
To pull-up ports by software, note the fo
When P1 is used in the serial I/O e pull-up settings corresponding to P14 to P17 are  
invalidated (pull-up is impossibl
Refer to the port block diagratails.  
When a port is set in the oe, the pull-up setting corresponding to the port is invalidated  
(pull-up is impossible).  
Ports other than P0 ccontrolled in one-bit units. For example, when P10 is pulled up at  
P1 (pull-up control of 4 bits), P11 to P13 are also pulled up.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-45  
 
HARDWARE  
1.10 I/O pins  
(3) Fix of a port input level in stand-by state  
Fix input levels of an input and an I/O port for getting effect of low-power dissipation in stand-by  
state , especially for the I/O ports of the N-channel open-drain.  
Pull-up (connect the port to VCC) or pull-down (connect the port to VSS) these ports through a  
resistor.  
When determining a resistance value, make sure the following:  
External circuit  
Variation of output levels during the ordinary operation  
: “Stand-by state”:The stop mode by execution of the STP instruction or the wait mode by execution  
of the WIT instruction:  
Reason  
Even when setting as an output port with its direction register, in the following state:  
• N-channel ....... when the content of the port latch is “1”  
the transistor becomes the OFF state, which causes the ports to be the high-impedance state. Make  
sure that the level becomes “undefined” depending on external circ
Accordingly, the potential which is input to the input buffer in a micer is unstable in the state  
that input levels of an input and an I/O port are “undefined.” Tcause power source current.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-46  
HARDWARE  
1.10 I/O pins  
(4) Termination of unused pins  
Table 1.10.2 shows a termination of unused pins.  
Table 1.10.2 Termination of unused pins  
Terminations  
Pull down (connect to Connect Connect  
Pull-up (connect to VCC)  
Port  
VSS) ports through a  
resistor (Note 2)  
to  
to  
VSS  
ports through a resistor  
(Note 2)  
Open  
V
CC  
P0  
P10 to P13  
P15, P17  
P2 (7470/7471 group)  
P4  
,
,
,
×
×
(Note 5)  
(Note 4)  
(Note 1)  
,
,
,
P14, P16  
×
×
(Note 3)  
,
(Note 5)  
,
(Note 4)  
,
,
,
P2 (7477/7478 group)  
P30 to P33  
(Note 1)  
(N
(Note 6) (Note 6)  
(Note 6)  
,
,
,
×
6)  
,
(Note 6) (Note 6)  
(Note 6)  
P5  
,
×
×
,
(Note 7)  
VREF  
AVSS  
Note 8)  
×
×
×
×
,
×
,
×
×
×
Notes 1: A pin that can be opened at the unused timircuit that does not allow a current to flow  
into itself unless any read signal is interneven if a medium-level input is applied at the  
open state.  
2: For programmable I/O ports, do not wo or more ports together through a resistor to VCC  
or VSS.  
3: Note the following when settinthe output mode and making the pins open.  
• The ports function as inputhe period from reset release till switching the ports to the  
output mode by softwaringly, the power source current may be increased depending  
on the input levels of .  
• If the Port direction has been changed into the input mode by runaway or noise, re-set  
the Port directior to the output mode periodically by software.  
4: To pull up a pinPort direction register and the Port latch so that this pin may be into the  
input mode or “H” tput state.  
5: To pull down a pin, set the Port direction register, the Port pull-up control register and the Port  
latch so that this pin may be put in the no pull-up transistor state in the input mode or in the “L”  
output state.  
6: These pins are connect to the VCC or VSS without a resistor when the wiring is the shortest.  
However, they are connect to the VCC or VSS through a resistor. In addition, the P33 pin of the  
built-in programmable ROM version is used in common with the VPP pin, insert a resistor of about  
5 k in series and connect by the shortest wiring.  
7: When using neither the P50 pin nor the P51 pin (used in common with the XCIN and XCOUT pin),  
set bit 4 of the CPU mode register to “0” (P50 and P51 functions).  
8: To pull down a pin, set the port pull-up control register so that a pull-up transistor will not be  
provided for this pin.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-47  
HARDWARE  
1.11 Interrupts  
1.11 Interrupts  
Interrupts are used in the following cases.  
When it is requested to execute higher-priority processing than the processing routine being executed.  
When it is necessary to observe any timing for processing.  
The 7470/7471 group can generate interrupts from 12 sources and the 7477/7478 group can generate  
interrupts from 13 sources.  
1.11.1 Description of interrupt source  
2 Priority of interrupt  
The interrupts are vector interrupts with a fixed priority sequence. When two or more interrupt  
requests occur at the same sampling time, they are accepted starting with the highest-priority interrupt.  
This priority is determined by hardware. However, a variety of priority processing can be executed  
by software when the interrupt control flags (interrupt enable bit and irrupt disable flag) are used.  
2 Acceptance of interrupt  
The corresponding interrupt request bit is set to “1” upon e of an interrupt. When the  
following conditions are satisfied in this state, this interruppted.  
For the details, refer to “1.11.3 Interrupt control.”  
1 When the interrupt disable flag is cleared to “0” enable state)  
2 When the interrupt enable bit is set to “1” (inable state)  
Table 1.11.1 shows an interrupt priority, interces and vector addresses.  
Table 1.11.1 Interrupt sources and priority  
Interrupt source  
7470/7471 group 7477/7478
Reset (Note)  
INT0 interrupt  
INT1 interrupt or key-on wake pt  
CNTR0 interrupt or Crrupt  
Timer 1 interrupt  
Timer 2 interrupt  
Timer 3 interrupt  
Timer 4 interrupt  
Vector address  
Remark  
Non-maskable  
Polarity programmable  
INT1: polarity programmable  
Polarity programmable  
Priority  
High  
FFFF16  
FFFD16  
FFFB16  
FFF916  
FFF716  
FFF516  
FFF316  
FFF116  
FFEF16  
FFED16  
Lower  
FFFE16  
FFFC16  
FFFA16  
FFF816  
FFF616  
FFF416  
FFF216  
FFF016  
FFEE16  
FFEC16  
1
2
3
4
5
6
7
8
9
Serial I/O interrupt  
Serial I/O receive interrupt  
Serial I/O transmit interrupt  
A-D conversion  
completion interrupt  
BRK instruction interrupt  
A-D conversion completion interrupt  
10  
11 BRK instruction interrupt  
BRK instruction interrupt is non-  
maskable software interrupt  
FFEB16  
FFE916  
FFEA16  
FFE816  
12  
Note: A reset operation is performed in the same way as an interrupt, so it is described in the table.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-48  
 
 
HARDWARE  
1.11 Interrupts  
(1) INT interrupt  
When detecting a rising edge or a falling edge of each INT pin (INT0, INT1), the microcomputer  
generates an INT interrupt request.These polarity is selected by the edge polarity selection register  
(EG: Address 00D416).  
2 P30, P31 pins  
The INT0 and INT1 pins are used in common with the P30 and P31 pins and always detect the  
levels of P30 and P31.  
2 In the stop mode/wait mode  
When bit 5 of the Edge polarity selection register is “0,” a restoration can be attained by the INT  
interrupt from the stop mode/wait mode state provided by the STP/WIT instruction. For the details,  
refer to “1.17 Low-power dissipation function.”  
2 After reset  
At reset release, the Edge polarity selection register is cleared to “0016,” so the INT0 and INT1  
interrupts generate the interrupt request by detecting a falling edge. At reset release, however, the  
Interrupt control register is put into the interrupt disable state, so any interrupt is not accepted.  
Note: The INT0 and INT1 pins are used in common with input port P30 and P31, however, there is  
no register for switching between the INT pins and the ports, e active edges of P30 and  
P31 are always detected. When these pins are used as t the corresponding INT  
interrupt into the disable state.  
In the INT interrupt enable state, the INT interrupt is gby a pin level change, thereby  
causing a program run away.  
(2) Key-on wake up interrupt  
When bit 5 of the Edge polarity selection registthe key-on wake up interrupt request is  
generated by applying the “L” level to any pin ng an input port in the stop mode/wait mode  
provided by the STP/WIT instruction, so thvery can be attained from the stop mode/wait  
mode.  
2 After reset  
At reset release, bit 5 of the Edgy selection register is cleared to “0” so that the key-on  
wake up interrupt request doeur in the stop mode/wait mode.  
Notes 1: In modes other than mode/wait mode, the key-on wake up interrupt is disabled.  
2: To select the stop it mode by the STP/WIT instruction when the interrupt disable  
flag is cleared tbit 5 of the Edge polarity selection register is set to “1,” set every  
input to P0 t
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-49  
HARDWARE  
1.11 Interrupts  
Figure 1.11.1 shows a block diagram of interrupt input and key-on wake up circuit.  
P3  
P3  
3
/CNTR  
/CNTR  
1
Port P3  
3 data read circuit  
CNTR interrupt request signal  
EG  
3
2
EG  
4
EG  
2
0
Port P3  
2
data read circuit  
data read circuit  
X
CIN  
1/2  
XIN 1/2  
P3  
P3  
0
1
/INT  
/INT  
0
1
CM  
7
Port P3  
Port P3  
0
Noise elimination  
circuit  
EG  
0
INT  
0
interrupt est signal  
1
data re
Noise elimination  
circuit  
EG  
1
EG  
5
pt request signal  
CPU stop state signal  
Pull-up control register  
Direction register  
P0  
7
Pull-up control  
register  
Direction register  
P0  
P0  
1
0
Port P0 data read circuit  
Pull-up c
regist
Dir
X
CIN pin.  
Note: The 7470/7477 group is not provided with the  
Fig. 1.11.1 Block diagram of interrupt input and key-on wake up circuit  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-50  
HARDWARE  
1.11 Interrupts  
(3) CNTR interrupt  
When detecting a rising edge or a falling edge of each CNTR pin (CNTR0, CNTR1), the microcomputer  
generates an CNTR interrupt. For selecting the active edge of interrupt and the CNTR0/CNTR1 pin,  
the Edge polarity selection register (EG) is used.  
2 After reset  
At reset release, the Edge polarity selection register is cleared to “0016,” so the CNTR0 interrupts  
generate the interrupt request by detecting a falling edge. At reset release, however, the Interrupt  
control register is put into the interrupt disable state, so any interrupt is not accepted.  
Note: The CNTR0 and CNTR1 pins are used in common with input port P32 and P33, however there  
is no register for switching between the CNTR pins and the ports, so the active edges of P32  
and P33 are always detected. When these pins are used as ports, put the corresponding CNTR  
interrupt into the disable state. In the CNTR interrupt enable state, the CNTR interrupt is  
generated by a pin level change, thereby causing a program run away.  
(4) Timer interrupt  
The microcomputer generates the interrupt request at the rise of the next count source after the  
respective timer overflows.  
For the details of the timer interrupt, refer to “1.12 Timers.”  
(5) Serial I/O interrupt  
There is a difference in the serial I/O interrupt between 0/7471 group and the 7477/7478  
group.  
2 Serial I/O interrupt of 7470/7471 group  
An interrupt request is generated upon terminhe serial I/O transmit/receive.  
2 Serial I/O interrupt of 7477/7478 group  
The serial I/O transmit interrupt and the receive interrupt are available.  
Serial I/O transmit interrupt  
For the Serial I/O transmit interruptt request generation timing can be selected by bit 3  
of the Serial I/O control register : Address 00E216) as shown below.  
0: The data written in the Trafer is transferred to the Transmit shift register, and when  
the Transmit buffer becopty, the interrupt request is generated.  
1: The interrupt request ied when a shift operation of the Transmit shift register terminates.  
Note: When the transmibit is set to the enable state, the Transmit buffer becomes empty  
and the transmerminates. Accordingly, the interrupt request can be generated by  
selecting one sources. To use the transmit interrupt, set the transmit enable bit to “1,”  
clear the transnterrupt request bit to “0,” and then set the transmit interrupt enable bit to  
the enable state.  
Serial I/O receive interrupt  
When all data has been put in the Receive shift register and the contents of the shift register have  
been transferred to the Receive buffer, the interrupt request is generated.  
For the details of the serial I/O interrupt, refer to “1.13 Serial I/O.”  
(6) A-D conversion completion interrupt  
As soon as A-D conversion terminates, the interrupt request is generated.  
For the details of the A-D conversion completion interrupt, refer to “1.14 A-D Converter.”  
(7) BRK instruction interrupt  
This is the lowest-priority software interrupt without any corresponding interrupt enable flag, and not  
affected by the interrupt disable flag. (Non maskable)  
For the details, refer to “SERIES 740 SOFTWARE USER’S MANUAL.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-51  
HARDWARE  
1.11 Interrupts  
1.11.2 Operation description  
(1) Interrupt operation  
After an interrupt is accepted, the contents of the register shown below are automatically pushed to  
the stack area in sequence in the order of 1, 2 and 3.  
1 Program counter high-order (PCH)  
2 Program counter low-order (PCL)  
3 Processor status register (PS)  
After the above register is pushed, a branch is made to the vector address of the accepted interrupt.  
When the RTI instruction is executed at the end of the interrupt processing routine, the contents of  
the above register which were pushed onto the stack area are popped to the respective registers in  
sequence in the order of 3, 2 and 1, and the processing precedent to the acceptance of the  
interrupt is restarted.  
Figure 1.11.2 shows the interrupt operation.  
Executing routine  
·······  
Interrupt occurs  
(Accepting interrupt request)  
Contents of r (high-order) are pushed onto stack  
Com counter (low-order) are pushed onto stack  
of Processor status register are pushed onto stack  
Suspended  
operation  
Resume processing  
·······  
Interrupt  
processing  
routine  
RTI instruction  
Contents of Processor status register are popped from stack  
Contents of Program counter (low-order) are popped from stack  
Contents of Program counter (high-order) are popped from stack  
: Operation commanded by software  
: Internal operation to be performed automatically  
Fig. 1.11.2 Interrupt operation  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-52  
 
HARDWARE  
1.11 Interrupts  
(2) Processing upon acceptance of interrupt  
When an interrupt is accepted, the following operations are automatically performed.  
1 The processing being executed is interrupted.  
2 The contents of the Program counter and the Processor status register are pushed to the stack  
area.  
Figure 1.11.3 shows a change of the contents of the Program counter and the Stack pointer upon  
acceptance of the interrupt.  
3 The vector address (start address of the interrupt processing routine) stored in the vector area  
corresponding to the generated interrupt concurrently with pushing is set in the Program counter  
and the interrupt processing routine is executed.  
4 After the interrupt processing routine is started, the corresponding interrupt request bit is automatically  
cleared to “0.” The interrupt disable flag is set to “1,” thereby disabling a multi-interrupt.  
To execute the interrupt processing routine, it is necessary to set a vector address in the vector  
area corresponding to each interrupt beforehand.  
Program counter  
area  
PCL  
PCH  
Program counter (low-order)  
Program counter (high-order)  
Interrupt di0”  
Stack pointer  
S
(S)  
(S)  
nterrupt  
request is  
accepted  
Program counter  
Stack area  
(S) – 3  
PCL  
PCH  
Vector
Interrupt disable flag = “1”  
(from Inter area)  
Processor status register  
Program counter (low-order)  
Stack pointer  
S
(S) Program counter (high-order)  
(S) – 3  
Fig. 1.11.3 Changes of contents of Program counter and Stack pointer upon acceptance of interrupt  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-53  
HARDWARE  
1.11 Interrupts  
(3) Timing after acceptance of interrupt  
The interrupt processing routine starts with the machine cycle after termination of the instruction  
being executed.  
Figure 1.11.4 shows a processing time up to the execution of the interrupt processing routine and  
Figure 1.11.5 shows a timing after acceptance of the interrupt.  
Interrupt request occurs  
Main routine  
Interrupt operation starts  
Waiting time for  
pipeline post-  
processing  
Push onto stack  
Vector fetch  
Interrupt processing routine  
0 to 16 cycles  
2 cycles  
5 cycles  
7 to 23 cycles  
(At internal system clock φ = 4 MHz, 1.75 µs
: At the DIV instruction executed.  
Fig. 1.11.4 Processing time up to the exef interrupt processing routine  
Waiting time for  
pipeline  
postproces
Interrupt operation starts  
Push onto stack  
Vector fetch  
φ
SYNC  
R/W  
S, SPS S-1, SPS S-2, SPS  
BL  
BH  
AL, AH  
Address bus  
Data bus  
PC  
Not used  
PCH  
PCL  
AL  
AH  
PS  
: CPU operation code fetch cycle  
SYNC  
(This is an internal signal which cannot be observed from the external unit.)  
: Vector address of each interrupt  
: Jump destination address of each interrupt  
BL, BH  
AL, AH  
SPS  
: “0016” or “0116”  
(when the stack page bit is “0,” SPS is 0016,” and when the bit is “1,” SPS is  
16”)  
“01  
Fig. 1.11.5 Timing after acceptance of interrupt  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-54  
HARDWARE  
1.11 Interrupts  
1.11.3 Interrupt control  
Regarding interrupts other than the BRK instruction, the acceptance of them can be controlled by the  
interrupt request bit, the interrupt enable bit and the interrupt disable flag. This section describes interrupt  
control other than the BRK instruction.  
Figure 1.11.6 shows a interrupt control diagram.  
Interrupt request bit  
Interrupt enable bit  
Interrupt accepted  
Interrupt disable flag  
BRK instruction  
Reset  
Fig. 1.11.6 Interrupt control diagram  
The interrupt request bit, the interrupt enable bit and the interre flag function independently and  
do not affect one another. An interrupt is accepted when aowing conditions are satisfied.  
Interrupt request bit ............. “1”  
..............  
............  
Interrupt enable bit  
Interrupt disable flag  
“1”  
“0”  
The priority is determined by hardware. Howeveety of priority processing can be executed by  
software when the above flag and bits are us
Table 1.11.2 shows a interrupt control bividual interrupt sources.  
Table 1.11.2 Interrupt control bits idual interrupt sources  
Interrupt request bits  
Interrupt enable bits  
Interrupt source  
Address  
00FC16  
00FC16  
00FC16  
00FC16  
00FC16  
00FC16  
00FC16  
00FC16  
00FD16  
00FD16  
00FD16  
Bits  
Bits  
Address  
00FE16  
00FE16  
00FE16  
00FE16  
00FE16  
00FE16  
00FE16  
00FE16  
00FF16  
00FF16  
00FF16  
b0  
b1  
b2  
b3  
b0  
b1  
b2  
b3  
Timer 1  
Timer 2  
Timer 3  
Timer 4  
b6 (Note 1)  
b5 (Note 2)  
b6 (Note 2)  
b6 (Note 1)  
Serial I/O (7470/7471 group)  
Serial I/O receive (7477/7478 group)  
Serial I/O transmit (7477/7478 group)  
A-D conversion  
b5 (Note 2)  
b6 (Note 2)  
b7  
b0  
b1  
b2  
b7  
b0  
b1  
b2  
INT0  
INT1  
CNTR0/CNTR1  
Notes 1: This bit is not provided in the 7477/7478 group.  
2: This bit is not provided in the 7470/7471 group.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-55  
 
HARDWARE  
1.11 Interrupts  
(1) Interrupt request bit  
The interrupt request bits are assigned to each bit of the Interrupt request register 1(IR1: Address  
00FC16) and the Interrupt request register 2(IR2: Address 00FD16).  
If an interrupt request occurs, the corresponding interrupt request bit is set to “1.”  
The interrupt request bit is held in the “1” state until the interrupt is accepted. After it is accepted,  
this bit is automatically cleared to “0.”  
The interrupt request bit can be cleared to “0” by software but cannot be set to “1” by software.  
(2) Interrupt enable bit  
The interrupt enable bits are assigned to each bit of the Interrupt control register 1 (IE1: Address  
00FE16) and the Interrupt control register 2 (IE2: Address 00FF16).  
The interrupt enable bit controls the acceptance of the corresponding interrupt. When the interrupt  
enable bit is “0,” the acceptance of the corresponding interrupt is disabled. If an interrupt request  
occurs when this bit is “0,” the corresponding interrupt request bit is set to “1,” but this interrupt is  
not accepted. In this case, the interrupt request bit is cleared to “0” by software or remains in the  
“1” state until the interrupt enable bit is set to “1.”  
When an interrupt enable bit is “1,” the corresponding interrupt d. If an interrupt request  
occurs when this bit is “1,” this interrupt is accepted. (Howeverrrupt disable flag that will be  
described later must be “0.”) The interrupt enable bit can be to “0” or set to “1” by software.  
(3) Interrupt disable flag  
The interrupt disable flag controls the acceptance errupt, and is assigned to bit 2 of the  
Processor status register (PS).  
When this flag is “1,” the interrupt disable statded. When this flag is “0,” the acceptance of  
interrupt is enable state.  
This flag is set to “1” by the SEI instruccleared to “0” by the CLI instruction.  
This flag is set to “1” (interrupt disable utomatically after the interrupt processing routine. To  
use a multi-interrupt, set this flag using the CLI instruction in the interrupt processing  
routine.  
2 Interrupt setting  
Set an interrupt accore procedure shown below.  
1The interrupt disis set to “1.”  
2The interrupt it is cleared to “0.”  
3For the INT intt or the CNTR interrupt, set the active edge in the Edge polarity selection  
register.  
Select one of the above interrupts in bit 4 of the Edge polarity selection register because the  
CNTR0 interrupt and the CNTR1 interrupt can not be used simultaneously. ( 0: CNTR0, 1:  
CNTR1 )  
4The request bit of interrupt used is cleared to “0.” (Refer to “Table 1.11.2.”)  
5The enable bit of interrupt used is set to “1.” (Refer to “Table 1.11.2.”)  
6The interrupt disable flag is cleared to “0.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-56  
HARDWARE  
1.11 Interrupts  
1.11.4 Notes on use  
(1) When using P30 to P33 as input ports, put the corresponding INT interrupt or the CNTR interrupt into  
a disable state.  
(2) Set the interrupt request bit and the interrupt enable bit for preparations for an interrupt in the  
following order.  
1 Clear the interrupt request bit to “0.” (No interrupt request)  
2 Set the interrupt enable bit to “1.” (Interrupt enabled)  
When using the INT interrupt or the CNTR interrupt, first set the interrupt detection edge and then  
set the above items 1 and 2. (Refer to (4) that will be described later.)  
(3) An interrupt request bit can be cleared to “0” by software, but is still remained at the value precedent  
to a change immediately after execution of the clear instruction. For this reason, when executing  
the BBC or BBS instruction after changing an interrupt request bit, first execute the interrupt request  
bit change instruction and then execute the BBC or BBS instruction after one instruction or more.  
(4) When the detection edge of the INT interrupt or that of the CNTR interrupt is switched, the corresponding  
interrupt request bit may be set to “1.” Accordingly, perform setting referring to the register setting  
example shown in Figure 1.11.7.  
Clear the corresponding interrupt enable
Set the interrupt active
Clear the corresponding intest bit to “0”  
Execute one or more instrP instruction, and so on)  
Set the correnterrupt enable bit to “1”  
Fig. 1.11.7 Example of register s
(5) Whether an interrupt is y the BRK instruction or not can be judged by the contents of the  
break flag of the Proatus register pushed on the stack area.  
Break flag = “terrupt has been caused by the BRK instruction  
Break flag = “0” case of the other interrupts  
Note: Make this judgment in the interrupt processing routine.  
(6) When an INT interrupt request is generated by executing the STP/WIT instruction in one of the  
following states, the stop mode/wait mode is released.  
When the active edge of the INT interrupt is a rising edge and the INT pin input level is “H”  
When the active edge of the INT interrupt is a falling edge and the INT pin input level is “L”  
Accordingly, when executing the STP/WIT instruction, it is necessary to consider the input level of  
the INT pin and the polarity of the INT edge. Examples of countermeasures for it are shown below.  
1. An example of a countermeasure for the case where the stop mode/wait mode is released at the  
rising edge of the INT pin input level  
Point: To release the stop mode/wait mode normally, perform mode release processing in the  
INT interrupt processing routine only when the STP/WIT instruction was executed at the  
“L” INT pin input level.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-57  
 
HARDWARE  
1.11 Interrupts  
< Main routine >  
In the main routine, set the INT edge polarity according to the INT pin input level just precedent  
to execution of the STP/WIT instruction.  
1 INT interrupt disable  
2 Select the falling edge when the INT pin input level is “H.”  
Select the rising edge when the INT pin input level is “L.”  
3 Clear the INT interrupt request bit to “0” and enable an INT interrupt after one instruction  
or more.  
4 Clear the interrupt disable flag to “0.”  
5 Execute the STP/WIT instruction  
< INT interrupt processing routine >  
In the INT interrupt processing routine, change the active edge of the INT interrupt without  
performing release processing and proceed to the stop mode/wait mode in the case where the  
stop mode/wait mode is released by detecting a falling edge.  
When the INT pin input level is “H” (when a rising edge is detected)  
Processing for releasing the stop mode/wait mode  
When the INT pin input level is “L” (when a falling edgcted)  
[1] Select the rising edge  
[2] Clear the INT interrupt request bit to “0”  
[3] Pop from stack  
[4] Perform 4 and 5 processing of the ma.  
2. An example of a countermeasure for the case stop mode/wait mode is released at the  
rising edge of the INT0 pin input level or the fe of the INT1 pin input level after the same  
signal is input to the INT0 pin and the IN
Point: Select the INT interrupt, by the tine, that becomes a source of release of the stop  
mode/wait mode according T pin input level just precedent to execution of the  
STP/WIT instruction.  
< Main routine >  
1 INT0 and INT1 intable  
2 Select the risinor the active edge of the INT0 interrupt.  
Select the fae for the active edge of the INT1 interrupt.  
3 When tn input level is “H”  
Clear thinterrupt request bit to “0” and enable the INT1 interrupt after one instruction  
or more.  
When the INT pin input level is “L”  
Clear the INT0 interrupt request bit to “0” and enable the INT0 interrupt after one instruction  
or more.  
4 Clear the interrupt disable flag to “0.”  
5 Execute the STP/WIT instruction.  
(7) In ordinary operation, if the pulse width of the INT input signal is 2 internal clocks f ( f(XIN)/2 ) or  
more by the built-in noise elimination circuit, it is accepted as an interrupt input. Input the INT input  
signal with a pulse width of 100 ns or more in the stop mode and the wait mode.  
Reference: As a hardware-level means to prevent incorrect interrupt processing due to noise, a noise  
elimination circuit is incorporated in the INT0 and INT1 pins so that no interrupt can be  
generated by an “H” pulse (when the rising edge is selected) or an “L” pulse (when a  
falling edge is selected) of one machine cycle or less in modes other than the stop mode  
and the wait mode. As a software-level means, the levels of the INT0 and INT1 pins are  
judged at the beginning of the interrupt processing routine.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-58  
HARDWARE  
1.11 Interrupts  
1.11.5 Related registers  
(1) Edge polarity selection register (EG: Address 00D416)  
The Edge polarity selection register selects an active edge of each INT interrupt and each CNTR  
interrupt selects a source of interrupt.  
Figure 1.11.8 shows a structure of Edge polarity selection register.  
Edge polarity selection register  
b7 b6 b5 b4 b3 b2 b1 b0  
Edge polarity selection register (EG) [Address 00D416  
]
At reset  
Name  
Function  
R
W
B
0
INT  
bit  
0
1
edge selection  
0 : Falling edge  
1 : Rising edge  
0
0 : Falling e
1 : Rising
1
2
3
4
5
INT  
bit  
edge selection  
0
0
0 : Fal
1 :
dge  
edge  
CNTR  
selection bit  
CNTR edge  
selection bit  
CNTR /CNTR  
interrupt selecti
0 edge  
1
0
0
TR  
CNTR  
0
1
0
1
INT  
1
source 0 : P3  
1 : P0  
1
/INT  
1
bit (at ST
0
to P0  
7
“L” level input  
0
?
instrucon) (for key-on wake-up)  
Nlocated for these bits. These are  
bled bits and are undefined at reading.  
6, 7  
?
Fig. 1.11.8 Structure of Edge selection register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-59  
 
HARDWARE  
1.11 Interrupts  
(2) Interrupt request register 1 (IR1: Address 00FC16)  
Interrupt request register 2 (IR2: Address 00FD16)  
The Interrupt request register 1 and the Interrupt request register 2 consist of bits that indicate  
whether an interrupt request exists or not.  
Figure 1.11.9 shows a structure of the Interrupt request register 1 and Figure 1.11.10 shows a  
structure of the Interrupt request register 2.  
Interrupt request register 1  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt request register 1 (IR1) [Address 00FC16  
]
At reset  
B
0
Name  
Function  
R W  
0
0 : No interrupt request  
1 : Interrupt requested  
Timer 1 interrupt  
request bit  
1
2
3
4
5
Timer 2 interrupt  
request bit  
0 : No interrupt request  
1 : Interrupt requested  
0
0
?
0
Timer 3 interrupt  
request bit  
Timer 4 interrupt  
request bit  
Nothing is allocated for this bit. T
disabled bit and is undefined a
0 : No interrupt req
1 : Interrupt requ
0 : No interru
1 : Interrup
?
Serial I/O receive interrupt  
request bit  
0 request  
equested  
(7477/7478 group)(Note)  
nterrupt request  
terrupt requested  
Serial I/O interrupt re
6
bit (7470/7471gro
Serial I/O tra
interrupt re
(7477/7
0
0
7
A-D letion 0 : No interrupt request  
init 1 : Interrupt requested  
N70/7471group, nothing is allocated for bit 5. This is write  
d bit and is undefined at reading.  
s set by software, but not “1.”  
Fig. 1.11.9 Structure of Inequest register 1  
Interrupt request register 2  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt request register 2 (IR2) [Address 00FD16  
]
At reset  
B
0
Name  
Function  
R W  
0
0 : No interrupt request  
1 : Interrupt requested  
INT  
bit  
INT  
bit  
0
1
interrupt request  
1
2
interrupt request 0 : No interrupt request  
1 : Interrupt requested  
0 or CNTR1  
0
0
?
CNTR  
0 : No interrupt request  
1 : Interrupt requested  
interrupt request bit  
Nothing is allocated for these bits. There are write  
disabled bits and are undefined at reading.  
3
to  
7
?
: “0” is set by software, but not “1.”  
Fig. 1.11.10 Structure of Interrupt request register 2  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-60  
HARDWARE  
1.11 Interrupts  
(3) Interrupt control register 1 (IE1: Address 00FE16)  
Interrupt control register 2 (IE2: Address 00FF16)  
The Interrupt control register 1 and the Interrupt control register 2 control the acceptance of interrupt  
by source.  
Figure 1.11.11 shows a structure of the Interrupt control register 1 and Figure 1.11.12 shows a  
structure of an Interrupt control register 2.  
Interrupt control register 1  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt control register 1 (IE1) [Address 00FE16  
]
At reset  
B
0
Name  
Function  
R W  
0
0 : Interrupt disabled  
1 : Interrupt enabled  
Timer 1 interrupt  
enable bit  
1
2
3
4
5
Timer 2 interrupt  
enable bit  
0 : Interrupt disabled  
1 : Interrupt enable
0
0
?
0
Timer 3 interrupt  
enable bit  
Timer 4 interrupt  
enable bit  
Nothing is allocated for this bi
disabled bit and is undefine
0 : Interrupt dis
1 : Interrupt e
0 : Interru
1 : Inter
?
Serial I/O receive interrupt  
enable bit (7477/7478  
group) (Note)  
disabled  
pt enabled  
Serial I/O interrup
bit (7470/7471
Serial I/O tr
enable bp)  
nterrupt disabled  
: Interrupt enabled  
6
7
0
0
A-D letion 0 : Interrupt disabled  
int 1 : Interrupt enabled  
N70/7471 group, Nothing is allocated for bit 5.  
write disabled bit and undefined at reading.  
Fig. 1.11.11 Structure of Icontrol register 1  
Interrupt control register 2  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt control register 2 (IE2) [Address 00FF16]  
At reset  
B
0
Name  
Function  
R W  
0
0 : Interrupt disabled  
1 : Interrupt enabled  
INT0 interrupt enable  
bit  
1
2
INT1 interrupt enable  
bit  
CNTR0 or CNTR1  
interrupt enable bit  
0 : Interrupt disabled  
1 : Interrupt enabled  
0
0
?
0 : Interrupt disabled  
1 : Interrupt enabled  
Nothing is allocated for these bits. There are write  
disabled bits and are undefined at reading.  
3
to  
7
?
Fig. 1.11.12 Structure of Interrupt control register 2  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-61  
HARDWARE  
1.12 Timers  
1.12 Timers  
The 7470/7471/7477/7478 group has four 8-bit timers (Timer 1, Timer 2, Timer 3 and Timer 4) with an 8-  
bit timer latch. The division ratio of the timer is 1/(n+1) when the contents of the timer latch are n (n:0  
to 255).  
For the timer, the following modes can be selected by software setting.  
• Timer mode  
• Event counter mode  
• Pulse output mode  
• External pulse width measurement mode  
• PWM mode  
Table 1.12.1 shows the modes of each timer and Figure 1.12.1 shows a timer block diagram.  
Table 1.12.1 Modes of each timer  
Mode  
Event  
Pulse  
se width  
Timer mode  
PWM mode  
Timer  
Timer 1  
counter mode  
output mode  
ement mode  
Timer 2  
Timer 3  
Timer 4  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-62  
 
HARDWARE  
1.12 Timers  
Data bus  
XCIN  
1/2  
1/8  
Timer 1 latch (8)  
Timer 1 (8)  
X
IN  
1/2  
T12M  
2
CM  
7
T12M  
0
Timer 1  
interrupt request  
T12M  
1
P3  
2
/CNTR  
0
EG  
2
Port latch  
TM2  
0
1/2  
P12/T  
0
T12M  
T12M  
3
Timer 2 latch (8)  
Timer 2 (8)  
7
T12M6,  
T12M  
4
Timer 2  
T12M  
5
interrupt request  
1/4  
1/8  
TM2  
6
T34M  
T34M  
1
2
1/16  
T(8)  
mer 3 (8)  
T34M  
0
Timer 3  
interrupt request  
P3  
3
/CNTR  
1
EG  
3
Timer 4 latch (8)  
Timer 4 (8)  
Timer 4  
interrupt request  
Port latch  
T
34M  
6
F/F  
T34M  
3
P1  
3
/T1  
1/2  
TM2  
7
EG  
EG  
EG  
EG  
3
2
1
0
TM2  
1
P3  
3
2
/CNTR  
/CNTR  
1
C
P3  
0
1
0
D3 Q3  
Q2  
D2  
D1 Q1  
D0 Q0  
P3  
1
0
/INT  
/INT  
P3  
X
CIN pin.  
) described the right side of the register represents  
the bit number of the register.  
Notes 1: The 7470/7477 group is not provided with the  
2: The number (ex. EG  
3
Fig. 1.12.1 Timer block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-63  
HARDWARE  
1.12 Timers  
1.12.1 Operation description  
In a write operation, the timer latch is specified at the same time when the timer is specified. If the timer  
is set to n16, the timer latch is also set to n16 (n: 0016 to FF16). After the timer starts to count,  
1 the timer value is counted down as n16 → (n-1)16 (n-2)16 ... 116 016 FF16 at each rise  
of the count source.  
2 At the next rise of the count source after “FF16,”  
(n-1)16 resulting from decrementing 1 from the timer latch value is set (reloaded) in the timer and  
then the timer continues to count.  
When an overflow occurs, the interrupt request bit is set to “1.”  
Note: When the interrupt is accepted, the interrupt request bit changes from “1” to “0.” It can be  
clearned to “0” but cannot be set to “1” by software.  
Figure 1.12.2 shows a timer count timing.  
Count start  
Count operation stop  
Count stop bit  
Reload  
Writing to timer  
Timer count source  
(n–1)16  
n
16  
6 (n–2)16 (n–3)16  
(n–1)16 (n–2)16 (n–3)16  
16  
Value of timer  
✕✕16  
1
16  
0
16  
FF16  
Read value of timer  
(n–1)16  
n
(✕✕+1)16  
1
16  
0
16  
FF16  
Timer interrupt  
request bit  
Fig. 1.12.2 Timer count t
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-64  
 
HARDWARE  
1.12 Timers  
1.12.2 Description of modes  
(1) Timer mode  
The operations of the timer modes are as explained below.  
1 Start of count operation  
When the count stop bit is cleared to “0,” a count operation starts. When there is a count source  
input, the contents of the timer are decremented by 1.  
Note: Because the count stop bit is “0” immediately after reset release, the count operation is  
automatically started after reset release.  
2 Reload operation  
When the timer overflows, the value resulting from decrementing 1 from the contents of the timer  
latch is transferred (reloaded) to the timer.  
3 Interrupt operation  
2Timer interrupt  
When the timer overflows, an interrupt request occurs, e interrupt request bit is set  
to “1.” The acceptance of interrupt is controlled by tpt enable bit of each timer.  
4 Stop of count operation  
When the counter stop bit is set to “1” by softwarnt operation stops. (The count operation  
continues until the count stop bit is set to “1
Figure 1.12.3 shows an example of timer ration.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-65  
 
HARDWARE  
1.12 Timers  
Count period  
Count period T(s) = 1 ÷ count source frequency (the timer initial value + 1)  
Timer mode operation example  
• OF: Overflow  
“1” is written  
“0” is written  
• RL: Reload  
• n: Timer initial value  
Timer 1 count stop bit  
Timer 1 count source  
RL  
RL  
RL  
RL Count stop  
(n-1)16  
Count restart  
Down count  
OF  
OF  
OF  
FF16  
Time  
T
Timer 1 interrupt  
request bit  
A
A
A
A
Timer 1 interrupt  
enable bit  
• Clearing to the timer interrupt request bit.  
• Clearing the timer interrupt request when the timer interrupt enable bit is “1.”  
A :  
Fig. 1.12.3 Example of timmode operation  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-66  
HARDWARE  
1.12 Timers  
[Setting method]  
1 Set a value to be used according to the count source setting for timers. The count operation of  
the timer is stopped. Refer to “Table 1.12.2 Setting for count stop.”  
Table 1.12.2 Setting for count stop  
Setting item  
Timer 12 mode register  
(T12M: Address 00F816)  
Timer 34 mode register  
(T34M: Address 00F916)  
Timer  
b4  
1
b0  
1
b3  
b0  
Timer 1  
Timer 2  
Timer 3  
Timer 4  
1
1
2 Count source selecting  
Select a count source according to the count source setting for timers shown in Table 1.12.3 to  
Table 1.12.6. Note that selectable count sources are different ag timers.  
Because the 7470/7477 group is not provided with an XCIN piselect f(XCIN) as a count  
source.  
Table 1.12.3 Setting for timer 1 count source  
Setting item  
CPU mode register  
(CM: Address 00FB
Timer 12 mode register  
(T12M: Address 00F816)  
Count source  
to be selected  
f(XIN)/16  
b7  
0
b2  
0
b1  
f(XCIN)  
f(XCIN)/16  
1
0
0
External clock input from  
CNTR0 pin.  
1
Note: When f(XCIN) is selected as a tt source, f(XIN) or f(XCIN) can be selected as a system clock.  
Table 1.12.4 Setting for tiunt source  
Setting ite
CPU mode register  
(CM: Address 00FB16)  
b7  
Timer 12 mode register  
(T12M: Address 00F816)  
Count source  
to be selected  
f(XIN)/16  
b7  
b6  
0
b5  
0
0
1
1
0
0
1
1
f(XIN)/64  
1
0
1
0
1
0
1
0
f(XIN)/128  
f(XIN)/256  
f(XCIN)/16  
f(XCIN)/64  
f(XCIN)/128  
f(XCIN)/256  
0
1
1
Timer 1 overflow signal  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-67  
HARDWARE  
1.12 Timers  
Table 1.12.5 Setting for Timer 3 count source  
Setting item  
CPU mode register  
Timer mode register 2  
Timer 34 mode register  
Count source  
to be selected  
f(XIN)/16  
f(XCIN)  
f(XCIN)/16  
(CM: Address 00FB16)  
(TM2: Address 00FA16) (T34M: Address 00F916)  
b7  
0
b6  
b2  
0
0
b1  
0
1
(Note)  
1
0
0
Timer 1 overflow signal  
Timer 2 overflow signal  
External clock input from  
CNTR1 pin  
0
1
1
1
0
1
Note: When f(XCIN) is selected as a timer count source, f(XIN) or f(XCIN) can be selected as a system clock.  
Table 1.12.6 Setting for Timer 4 count source  
Setting item  
CPU mode register  
Timer mode register 2  
Timer 34 mode register  
Count source  
to be selected  
f(XIN)/16  
(CM: Address 00FB16)  
(TM2: Address 00(T34M: Address 00F916)  
b7  
0
1
b6  
b6  
b5  
0
b4  
1
f(XCIN)/16  
Timer 1 overflow signal  
Timer 2 overflow signal  
Timer 3 overflow signal  
External clock input from  
CNTR1 pin  
1
0
0
(Note) (Note)  
0
0
1
1
Note: If the Timer 1 overflow signal is selected a2 count source at [b5,b4] = [1,0], the Timer 4  
count source becomes the Timer 1 overal regardless of bit 6 of Timer mode register 2.  
3 Set a count value in the tim
Refer to “Table 1.12.7 Adcation  
for timer.”  
Table 1.12.7 Address allocation of timer  
Timer  
Address  
00F016  
00F116  
00F216  
00F316  
Timer 1(T1)  
Timer 2(T2)  
Timer 3(T3)  
Timer 4(T4)  
4 When a value is set according to the count start setting shown in Table 1.12.8, the timer starts  
to count.  
Table 1.12.8 Count start setting  
Setting item  
Timer 12 mode register  
(T12M: Address 00F816)  
Timer 34 mode register  
(T34M: Address 00F916)  
b4  
0
b0  
0
b3  
b0  
Timer  
Timer 1  
Timer 2  
Timer 3  
Timer 4  
0
0
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-68  
HARDWARE  
1.12 Timers  
(2) Event counter mode  
In the event counter mode, the same operations as those in the timer mode are performed, with the  
exception that the signal input from the CNTR pin becomes a count source of Timer 1 and the signal  
0
input from the CNTR1 pin becomes a count source of Timer 3 and Timer 4.  
The operation in the event counter mode are described below.  
1 Start of count operation  
After the count stop bit is cleared to “0,” a count operation starts. Each time a count source is  
input, the contents of the timer are decremented by 1.  
For the active edge of count source, a rise or a fall can be selected by the edge polarity selection  
register (address 00D416).  
Note: Because the count stop bit is “0” immediately after reset release, the count operation is  
automatically started after reset release but the count source is not a CNTR pin input (operates  
as the timer mode).  
2 Reload operation  
When the timer overflows, the value resulting from decrementing m the contents of the timer  
latch is transferred (reloaded) to the timer.  
3 Interrupt operation  
2Timer interrupt  
When the timer overflows, an interrupt request othat the interrupt request bit is set  
to “1.” The acceptance of interrupt is controllinterrupt enable bit of each timer.  
2CNTR interrupt  
An interrupt request is generated from ththe count source input from the CNTR0 pin  
or the CNTR1 pin, so that the interrut is set to “1.” The acceptance of interrupt is  
controlled by the interrupt enable bh timer.  
The edge polarity selection regicts an active edge of count source and a CNTR0/  
CNTR1 interrupt.  
4 Stop of count operation  
When the counter stop bit “1” by software, the count operation stops. (The count operation  
continues until “1” is scount stop bit.)  
Figure 1.12.4 showmple of event counter mode operation.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-69  
HARDWARE  
1.12 Timers  
Count period  
Count period T(s) = 1 ÷ count source frequency (the timer initial value + 1)  
Event counter mode operation example  
“0” is written  
• OF: Overflow  
“1” is written  
• RL: Reload  
• n: Timer initial value  
Timer 1 count stop bit  
Count source  
(CNTR0 pin)  
to B  
Count stop  
Count restart  
RL  
RL  
RL  
Down count  
(n-1)16  
FF16  
OF  
OF  
OF  
Time  
T
CNTR edge  
selection bit  
In this example, the CNTest occurs at rising edge of the count source.  
In this example, earupt request does not occur during executing the CNTR interrupt processing routine.  
CNTR interrupt  
request bit  
A
A
A
A
A
A
A
A
A
A
CNTR interrupt  
enable bit  
B
Timer 1 interrupt  
request bit  
A
A
A
Timer 1 interrupt  
enable bit  
A : • Clearing by writing “0” to the Timer 1 and CNTR interrupt request bits.  
• Clearing by accepting the Timer 1 and CNTR interrupt requests when the timer 1 and  
CNTR interrupt enable bits are “1.”  
Fig. 1.12.4 Example of event counter mode operation  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-70  
HARDWARE  
1.12 Timers  
[Setting method]  
1 The count operation of a timer to be used is stopped.  
Refer to “Table 1.12.2 Setting for count stop.”  
2 Select a count source according to the event counter mode setting shown in Table1.12.9.  
3 Set a count value in the timer.  
Refer to “Table 1.12.7 Address allocation of timer.”  
4 Start a count operation of timer to be used.  
Refer to “Table 1.12.8 Count start setting.”  
Table. 1.12.9 Event counter mode setting  
Timer  
to be  
used  
Timer 1  
Timer 3  
Timer 4  
Edge polarity selection register Timer 12 mode register  
(EG: Address 00D416) (T12M: Address 00F816)  
Timer 34 mode register  
(T34M: Address 00F916)  
Count  
source  
b3  
b2  
b1  
1
b6  
0
b5  
b4  
b2  
b1  
1
Select (Note)  
CNTR0  
CNTR1  
Select  
(Note)  
1
1
1
Note: 0: The falling edge (An input, when it is inverted, becomes a counrce).  
1: The rising edge (An input itself becomes a count source).  
(3) Pulse output mode  
The pulse output mode is a mode resulting from addinoutput operation to a timer mode  
operation. In this mode, a pulse whose polarity is ineach overflow is output from the T0  
(Timer 1 overflow signal/2) pin and the T1 (Timer w signal/2) pin.  
The operations in the pulse output mode are dbelow.  
1 Start of count operation  
After the count stop bit is set to “0,” peration starts. Each time a count source is input,  
the contents of the timer are decrby 1.  
Note: Because the count stop bimmediately after reset release, the count operation is  
automatically started imy after reset release but no pulse is output.  
2 Reload operation  
When the timer overfvalue resulting from decrementing 1 from the contents of the timer  
latch is transferred d) to the timer.  
3 Pulse is output  
• A pulse whose polarity is inverted at each overflow is output from the T0 pin and the T1 pin.  
• “H” or “L” can be selected as a level for a start of pulse output by each division flip-flop.  
• A pulse output is started from the moment when the T0 or T1 pin output is selected by the Timer  
12 mode register or the Timer 34 mode register.  
4 Interrupt operation  
2 Timer interrupt  
When the timer overflows, an interrupt request occurs, so that the interrupt request bit is set.  
The acceptance of interrupt is controlled by the interrupt enable bit of each timer.  
5 Stop of count operation  
When “1” is set in the counter stop bit by software, the count operation stops. (The count operation  
continues until “1” is set in the count stop bit.)  
Figure 1.12.5 shows a example of pulse output mode operation.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-71  
HARDWARE  
1.12 Timers  
Count period  
Count period T(s) = 1 ÷ count source frequency (the timer initial value + 1)  
Pulse output mode operation example  
• OF: Overflow  
• RL: Reload  
• n: Timer initial value  
Writing “1”  
Writing “0”  
Timer 1 count stop bit  
Timer 1 count  
source  
Count stop  
RL  
RL  
RL  
RL  
Down count  
(n-1)16  
Count restart  
OF  
OF  
OF  
FF16  
Time  
T
T
0
output selected  
T0 pin  
Setting to  
output port  
Initial valu
Timer FF register  
bit 0  
Timer 1 interrupt  
request bit  
A
A
A
A
Timer 1 interrupt  
enable bit  
A : • Clearing by writing “0” to the Timer 1 interrupt request bit.  
• Clearing by accepting the Timer 1 interrupt request when the Timer 1 interrupt enable bit is “1.”  
Fig. 1.12.5 Example of pulse output mode operation  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-72  
HARDWARE  
1.12 Timers  
[Setting method]  
1 The count operation of a timer to be used is stopped.  
Refer to “Table 1.12.2 Setting for count stop.”  
2 Set the pulse output mode according to the pulse output mode initial value setting shown in Table  
1.12.10. However, set the timer FF register after setting timer mode register 2.  
Table 1.12.10 Pulse output mode initial value setting  
Setting item  
Timer mode register 2  
(TM2: Address 00FA16)  
Timer FF mode register  
(TF: Address 00F716)  
b1  
1
b0  
1
b1  
b0  
Timer to be used  
Select (Note)  
Timer 1  
Timer 4  
Select (Note)  
Note: 0: The initial value becomes “0.”  
1: The initial value becomes “1.”  
3 Set the pulse output mode according to the pulse output modshown in Table 1.12.11.  
The T0 output port and the T1 output port are used in comP12 and P13, respectively.  
Accordingly, set the bit 2 and bit 3 of the port P1 directer to the output mode.  
Table 1.12.11 Pulse output mode setting  
Timer 12 mode
(T12M: Addr16)  
Timer 34 mode register  
(T34M: Address 00F916)  
Timer  
Output pin  
b7  
b6  
T0  
Timer 1  
Timer 4  
Timer 1 overflow  
signal / 2  
T1  
Timer 4 overflow  
signal / 2  
1
0
4 Set a count value in T0 output) and Timer 4 (T1 output).  
5 When a value is rding to the count start setting shown in Table 1.12.8, the timer starts  
to count.  
Note: When resetting a value in the Timer FF register, be sure to observe the setting methods of  
the above items 1 to 5.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-73  
HARDWARE  
1.12 Timers  
(4) External pulse width measurement mode  
The external pulse width measurement mode is used to measure a pulse width (“H” or “L”) input from  
the CNTR0 or CNTR1 pin.  
The operations in the external pulse width measuring mode are described below.  
1 Start of count operation  
After the count stop bit is cleared to “0,” a count operation starts. Each time a count source is  
input, the contents of the timer are decremented by 1.  
Note: Because the count stop bit is “0” immediately after reset release, the count operation is  
automatically started after reset release but the count source is not a CNTR pin input.  
At this time, the external pulse width measurement mode is not provided.  
2 Reload operation  
When the timer overflows, the value resulting from decrementing 1 from the contents of the timer  
latch is transferred (reloaded) to the timer.  
3 External pulse width measurement mode  
The “H” or “L” level of a pulse can be selected as a pulse meeriod by the Edge polarity  
selection register.  
The difference between the initial value of the timer counter value at a count stop  
becomes a measured pulse width.  
A reload operation by reading the count value erformed automatically. To perform  
measurement continuously, re-set the initial voftware.  
4 Interrupt operation  
2Timer interrupt  
When the timer overflows, an interrut occurs, so that the interrupt request bit is set to  
“1.” The acceptance of interrupt ied by the interrupt enable bit of each timer.  
2CNTR interrupt  
An interrupt request is genem the edge of the pulse input from the CNTR0 pin or the  
CNTR1 pin, so that the inquest bit is set to “1.” Interrupt acceptance is controlled by  
the interrupt enable bit
The pulse active edgCNTR0/CNTR1 interrupt are selected by the Edge polarity selection  
register.  
5 Stop of count ope
The count operation terminates at the falling edge (at “H” level pulse width measurement) or the  
falling edge (“L” level pulse width measurement) of the CNTR pin input. This operation is also  
terminated by setting "1" in the count stop bit by software.  
Figure 1.12.6 shows an example of the operation of the external pulse width measurement mode.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-74  
HARDWARE  
1.12 Timers  
Pulse width  
Pulse width H(s) = 1 ÷ count source frequency (the timer initial value - count value at count stop)  
External pulse width measurement mode operation example  
• n: Timer initial value  
• m: Count value at count stop  
Timer 4 count stop bit  
Timer 4 count  
source  
CNTR0 pin  
CNTR  
edge selection bit  
Setting the initial value  
to timer  
etting the initial value  
to timer  
Count start  
Count start  
(n-1)16  
Count stop  
m
16  
FF16  
Time  
H
H
CNTR interrupt  
request bit  
A
CNTR interrupt  
enable bit  
Timer 4 interrupt  
request bit  
Timer 4 interrupt  
enable bit  
A : • Clearing by writing “0” to the CNTR interrupt request bit.  
• Clearing by accepting the CNTR interrupt request when the CNTR interrupt enable bit is “1.”  
: When the CNTR edge selection bit is “0,” “H” level width of the input pulse is measured.  
Fig. 1.12.6 Example of operation of external pulse width measurement mode  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-75  
HARDWARE  
1.12 Timers  
[Setting method]  
1 The count operation of Timer 4 is stopped by setting bit 3 of the Timer 34 mode register to “1.”  
Refer to “Table 1.12.2 Setting for count stop.”  
2 Set each register according to the external pulse width measuring mode setting shown in Table  
1.12.12.  
3 Set a value in the timer.  
Refer to “Table 1.12.7 Address allocation of timer.”  
4 Clear bit 3 of the Timer 34 mode register to "0" and start the count of timer 4.  
Refer to “Table 1.12.8 Count start setting.”  
Table 1.12.12 External pulse width measurement mode setting  
Timer 34 mode register  
(T34M: Address 00F816)  
b5  
Edge polarity selection register  
(EG: Address 00D416)  
Timer to  
be used  
Measuring  
pulse  
b6  
1
b4  
b4  
b3  
b2  
Select  
(Note 1)  
b5 b4  
CNTR0  
CNTR1  
0
0
0
1
1
0 : Timer 3 overflow sig
1 : f (XIN)/16 or f (X
0 : Timer 1 or Timer w signal  
1 : CNTR1 pin
Timer 4  
Select  
(Note 1)  
1
Notes 1: 0: The count source is counted while the pulse is “H.”  
1: The count source is counted while nal pulse is “L.”  
2: When the measured pulse is the CNdo not select the CNTR1 as the count source of  
Timer 4.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-76  
HARDWARE  
1.12 Timers  
(5) PWM mode  
In the PWM mode, a PWM waveform is output from the T1 pin by using Timer 3 and Timer 4.  
The operations in the PWM mode are described below.  
1 Start of count operation  
After the count stop bit is cleared to “0,” a count operation starts. Each time a count source is  
input, the contents of the timer are decremented by 1.  
Note: The count stop bit is “0” immediately after reset release. Accordingly, a count operation is  
automatically started immediately after reset release but no PWM waveform is output because  
the PWM mode is not provided.  
2 Reload operation  
When the timer overflows, the value resulting from decrementing 1 from the contents of the timer  
latch is transferred (reloaded) to the timer.  
3 PWM output  
In the PWM mode, the following operations are performed.  
1 When the PWM mode is started  
• The PWM waveform starts with “L.”  
• Timer 3: Counts the count sources.  
• Timer 4: Stops  
2When Timer 3 overflows  
• The PWM waveform goes to “H.
• Timer 3: Stops.  
• Timer 4: Counts the count
3 When Timer 4 overflows  
• The PWM waveform g.”  
• Timer 3: Counts thources.  
• Timer 4: Stops.  
The “L” width of the PWM wavset in Timer 3 and the “H” width is set in Timer 4.  
4 Interrupt operation  
2Timer interrupt  
When the timer , an interrupt request occurs, so that the interrupt request bit is set to  
“1.” The acceptainterrupt is controlled by the interrupt enable bit of each timer.  
5 Stop of count operation  
When the counter stop bit is set to “1” by software, the count operation stops. (The count operation  
continues until the count stop bit is set to “1.”)  
Figure 1.12.7 shows an example of the operation of the PWM output mode.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-77  
HARDWARE  
1.12 Timers  
Count period  
Timer 3 count period T3(s) = 1 ÷ timer 3 count source frequency (the timer 3 initial value + 1)  
Timer 4 count period T4(s) = 1 ÷ timer 4 count source frequency (the timer 4 initial value + 1)  
PWM mode operation example  
• OF: Overflow  
• RL: Reload  
• n: Timer 3 initial value  
• m: Timer 4 initial value  
Timer 3 count  
source  
'
"
To B  
To B  
To B  
RL  
RL  
RL  
(Note)  
(Note)  
(n-1)16  
FF16  
OF  
OF  
OF  
Time  
T3  
T3  
is written  
“0” is written  
Timer 4 count stop bit  
Timer 4 count source  
To C  
Count stop  
Count restart  
RL  
RL  
(Note)  
(Note)  
(m-1)16  
OF  
OF  
FF16  
PW
m
Time  
Setting to  
output port  
T4  
T4  
"
"
'
C
'
'
B
B
B
T1 pin  
A
A
A
B
B
Timer 3 interrupt  
request bit  
Timer 3 interrupt  
enable bit  
A
A
'
C
C
Timer 4 interrupt  
request bit  
Timer 4 interrupt  
enable bit  
A : • Clearing by writing “0” to the Timer 3 and Timer 4 interrupt request bits.  
• Clearing by accepting the interrupt request when the Timer 3 and Timer 4 interrupt enable bits are “1.”  
Note: Timer 3 and Timer 4 do not accept count sources in the period from an overflow of the respective  
timer till an overflow of the other timer. Because the timer read value changes at the fall of a count  
source, the read value in this period remains “FF16”.  
Fig.1.12.7 Example of operation of PWM output mode  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-78  
HARDWARE  
1.12 Timers  
[Setting method]  
1 The count operation of a timer to be used is stopped.  
Refer to “Table 1.12.2 Setting for count stop.”  
2 Port P13 is put into the output mode by setting bit 3 of the port P1 direction register (address  
00C116) to “1.”  
3 Select a count source of Timer 3 and Timer 4. However, don't select the Timer 3 overflow signal  
as a count source of Timer 4.  
Refer to “Table 1.12.5 Setting for Timer 3 count source” and “Table 1.12.6 Setting for Timer  
4 count source.”  
4 Set the bit 7 of the Timer 34 mode register to “1.”  
5 Set a value in the timer.  
Refer to “Table 1.12.7 Address allocation of timer.”  
6 Set the bit 7 of the Timer mode register 2 to “1.”  
7 The count operation of a timer to be used is started.  
Refer to “Table 1.12.8 Count start setting.”  
Note: When the PWM mode is started from anoththe PWM waveform starts with the “L”  
state.  
1.12.3 Input latch function  
There is a function which latches the levels of , INT1, CNTR0 and CNTR1 pins to the input latch  
register when Timer 4 overflows. Using this permits knowing the level of each pin accurately the  
moment when a Timer 4 overflow occupolarity of each pin is selected by the edge polarity  
selection register, the level or the revl of each pin are latched to the Input latch register.  
Table 1.12.13 shows the Edge plection register setting related to the input latch.  
Table 1.12.13 Edge polarity n register setting  
Edge polarity selection register  
Input latch register  
Latched contents  
(EG: Address 00D416)  
(ILR: Address 00D616)  
b3  
b2  
b1  
b0  
1
0
INT0 pin level  
Reverse level on INT0 pin  
INT1 pin level  
Reverse level on INT1 pin  
CNTR0 pin level  
Reverse level on CNTR0 pin  
CNTR1 pin level  
b0  
b1  
b2  
b3  
1
0
1
0
1
0
Reverse level on CNTR1 pin  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-79  
 
HARDWARE  
1.12 Timers  
1.12.4 Updating of contents of Timer and Timer latch  
After data is written to the Timer, the contents of the Timer and the Timer latch are updated.  
2  Timer 1 and Timer 2  
When data is written to the Timer, this data is set in the Timer and the Timer latch at the same time.  
As a result, after data is written to the Timer which is in count operation, the count period becomes  
invalid.  
Figure 1.12.8 shows an example of updating of the contents of Timer 1, Time 2 and Timer latch.  
Example of updating of Timer 1  
• OF: Overflow  
• RL: Reload  
• n: Timer 1 initial value before updating  
• m: Timer 1 initial value after updating  
Writing “m16” to timer 1  
m16  
(m-1)16  
RL  
RL  
(n-1)16  
OF  
OF  
OF  
FF16  
Time  
Incorrect count period  
Timer 1 interrupt  
request bit  
A
A
Timer 1 interrupt  
enable bit  
• Clearing by writing “0” to the Timer 1 interrupt request bit.  
A :  
• Clearing by accepting the Timer 1 interrupt request when the Timer 1 interrupt enable bit is “1.”  
Fig. 1.12.8 Example of updating of Timer 1, Timer 2 and Timer latch  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-80  
 
HARDWARE  
1.12 Timers  
Timer 3 and Timer 4  
At PWM mode  
After data is written to the Timer which is in count operation, the written data is set only in the  
Timer latch but not in the Timer. After that, when the Timer overflows, a value resulting from  
decrementing 1 from the value of the Timer latch is written in the Timer.  
When data is written to the Timer being at a stop, the written data is set in both Timer and Timer  
latch.  
In modes other than the PWM mode  
The same operation as “Timer 1 and Timer 2” described in the previous item is performed.  
Figure 1.12.9 shows an example of updating of the contents of Timer 3, Time 4 and Timer latch in  
PWM mode.  
Example of updating of Timer at PWM mode  
• OF: Overflow  
• RL: Reload  
• n: Timer 3 initial value before updating  
• m: Timer 3 initial value after updating  
• k: Timer 4 initial value before updating  
• h: Timer 4 initial value after updaiting  
Writing “m16” to timer 3  
RL  
m16  
(m-1)16  
RL  
(n-1)16  
OF  
FF16  
Time  
Cou
Count of timer 3 by rewriting timer value  
RL  
Writing “h16” to timer 4  
(h-1)16  
(k-1)16  
RL  
OF  
OF  
FF16  
Time  
Count of timer 4 by rewriting timer value  
Count of timer 4  
Timer 3  
Timer 4  
interrupt request bit  
Timer 4  
interrupt  
Timer 3  
interrupt  
Timer 3  
interrupt  
A
A
A
Timer 3  
Timer 4  
interrupt enable bit  
A :  
• Clearing by writing “0” to the Timer 3 or Timer 4 interrupt request bit.  
• Clearing by accepting the Timer 3 and the Timer 4 interrupt request when the Timer 3  
and the Timer 4 interrupt enable bit is “1.”  
Fig. 1.12.9 Example of updating of Timer 3, Timer 4 and Timer latch in PWM mode  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-81  
HARDWARE  
1.12 Timers  
1.12.5 Notes on use  
(1) The contents of the Timer 12 mode register (T12M: Address 00F816) and the Timer 34 mode register  
(T34M: Address 00F916) become “0016” at reset and each timer performs a count operation.  
(2) Figure 1.12.10 shows the relation between Timer value change timing and read value change timing.  
The Timer value changes at the rise of the count source, while the read value changes at the fall of  
the count source. Accordingly, the read value may be larger than the real timer value by “1.”  
Example: Writing “9916” into Timer 1  
Timer count source  
Timer value  
Timer read value  
0116  
0016  
FF16  
9716  
0216  
0116  
0016  
9816  
9716  
Interrupt request bit  
Fig. 1.12.10 Relation between timer value timing and read value change timing  
(3) To select the CNTR pin input as unt source, the frequency of the CNTR count source should  
satisfy the condition shown i.12.14.  
Table 1.12.14 Frequency of CNTR  
Frequency of the CNTR count source  
Main clock  
Upper boundary  
1MHz  
Lower boundary  
There is no  
special restriction.  
4MHz  
8MHz  
2MHz  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-82  
 
HARDWARE  
1.12 Timers  
1.12.6 Related registers  
(1) Timer 1, Timer 2, Timer 3, Timer 4 (T1 to T4: Address 00F016 to 00F316)  
Each Timer is a register consisting of 8 bits.  
Read  
The contents (count value) of the Timer are read by reading the timer.  
Write  
When data is written to the Timer, this data is set in the Timer and the Timer latch at the same  
time.  
When data is written into the Timer being in count operation in the PWM mode, the written data  
is set only in the Timer latch.  
Refer to “1.12.4 Updating of contents of Timer and Timer latch.”  
Timer latch  
The Timer latch is a register that holds a value to be automaticaansferred (reloaded) to the  
Timer as its initial value when the Timer overflows. It is imporead the contents of the  
Timer latch.  
Figure 1.12.11 shows a structure of Timer.  
Timers 1 to 4  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer 1imer 3, Timer 4 (T1, T2, T3, T4)  
[Add6, 00F116, 00F216, 00F316]  
At reset  
Function  
R W  
(Note)  
t “0016 to FF16.”  
•The value is decremented by 1 each time a  
count source is input.  
•Each Timer values are set to the respective  
counter.  
•The count values are read out by reading the  
respective timer.  
Note : Timers 1 and 2 are undefined.  
Timer 3 is “FF16.”  
Timer 4 is “0716.”  
Fig. 1.12.11 Structure of Timers 1 to 4  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-83  
 
HARDWARE  
1.12 Timers  
(2) Timer 12 mode register (T12M: Address 00F816)  
The Timer 12 mode register is a register consisting of bits that control a Timer count source and a  
count operation.  
Figure 1.12.12 shows a structure of Timer 12 mode register.  
Timer 12 mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer 12 mode register (T12M) [Address 00F816]  
B
0
Name  
At reset  
Function  
0 : Count start  
1 : Count stop  
R
W
Timer 1 count stop  
bit  
0
0 : Internal clock  
1 : P32/CNTR0
1
2
Timer 1 count  
source selection bit  
0
0
Timer 1 internal clock 0 : f(XIN)/16
source selection bit  
1 : f(XCIN  
Note 2)  
0 : put  
1 1 overflow  
by 2)  
3
P12/T0 port output  
selection bit  
0
nt start  
ount stop  
Timer 2 count stop  
bit  
4
5
0
0
: Internal clock (Note 1)  
1 : Timer 1 overflow signal  
b7 b6  
Timer 2 coun
source sel
Timer ock  
sourbits  
6, 7  
0 0 : f(XIN)/16 or f(XCIN)/16  
0 1 : f(XIN)/64 or f(XCIN)/64  
1 0 : f(XIN)/128 or f(XCIN)/128  
1 1 : f(XIN)/256 or f(XCIN)/256  
(Note 3)  
0
: In the 7470/7477 group, the internal clock is f(XIN)/16.  
2: Since the 7470/7477 group is not provided the sub-clock  
generating circuit, f(XCIN) cannot be used. Fix this bit to “0.”  
3: Since the 7470/7477 group is not provided the sub-clock  
generating circuit, f(XCIN) cannot be used.  
Fig. 1.12.12 Structure of Timer 12 mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-84  
HARDWARE  
1.12 Timers  
(3) Timer 34 mode register (T34M: Address 00F916)  
The Timer 34 mode register is a register consisting of bits that control a timer count source and a  
count operation.  
Figure 1.12.13 shows a structure of Timer 34 mode register.  
Timer 34 mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
00F916]  
Timer 34 mode register (T34M) [Address  
B
0
Name  
At reset  
Function  
R
W
Timer 3 count stop  
bit  
0 : Count start  
1 : Count stop  
b2 b1  
0
1, 2  
Timer 3 count  
source selection bits  
0 0 : f(XIN)/16
0 1 : f(XCIN  
1 0 : Timor  
ow  
0
1 1
1
external  
(Note 2)  
3
Timer 4 count stop  
bit  
nt start  
ount stop  
0
0
b4 b3  
Timer 4 co
source s
4, 5  
0 0 : Timer 3 overflow  
0 1 : f(XIN)/16 or f(XCIN)/16  
1 0 : Timer 1 overflow or  
Timer 2 overflow  
1 1 : P3  
3/CNTR  
1
external  
clock  
(Notes 1, 2)  
er 4 pulse width  
easurement mode  
selection bit  
7
0 : Timer mode  
1 : External pulse width  
measurement mode  
0
0
P13/T1 port output  
selection bit  
0 : P1  
1 : (Timer 4 overflow divided  
by 2 or PWM output)  
3 port  
T
1
Notes 1: When Timer 1 overflow is selected as a Timer 2  
count source, the Timer 4 count source is the Timer 1  
overflow regardless of the value of bit 6 of the  
Timer mode register 2.  
2: Since the 7470/7477 group is not provided the sub-clock  
generating circuit, f(XCIN) cannot be used.  
Fig. 1.12.13 Structure of Timer 34 mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-85  
HARDWARE  
1.12 Timers  
(4) Timer mode register 2 (TM2: Address 00FA16)  
The Timer mode register 2 consists of bits that control a mode selection and a count source selection.  
Figure 1.12.14 shows a structure of Timer mode register 2.  
Timer mode register 2  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer mode register 2 (TM2) [Address 00FA16]  
B
0
Name  
R
?
W
Function  
At reset  
Timer 1 overflow FF  
set enable bit  
Timer 4 overflow FF  
set enable bit  
0 : Set disable  
1 : Set enable  
0
0 : Set disable  
1 : Set enabl
1
0
?
Nothing is allocated for these bits. Th
write disabled bits and are undefing.  
2
to  
5
Timer 3, timer 4 count  
overflow signal selection bit  
0 verflow  
2 overflow  
inary mode  
WM mode  
6
7
0
0
Timer 3, timer 4  
function selection b
Fig. 1.12.14 Structure of Timer mode regis
(5) Timer FF register (TF: Address
The Timer FF register consistthat are used for initialization in the pulse output mode.  
Figure 1.12.15 shows a of Timer FF register.  
Timer FF register  
b7 b6 b5 b4 b3 b2 b1 b0  
00F716]  
Timer FF register (TF) [Address  
At reset  
B
Name  
Timer 1  
division flip-flop  
Function  
R
W
0 : Initial value is “0”  
1 : Initial value is “1”  
0
0
0 : Initial value is “0”  
1 : Initial value is “1”  
Timer 4  
division flip-flop  
1
0
?
2
to  
7
Nothing is allocated for these bits. These are  
write disabled bits and are undefined at  
reading.  
? ✕  
Fig. 1.12.15 Structure of Timer FF register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-86  
HARDWARE  
1.12 Timers  
(6) Input latch register (ILR: Address 00D616)  
The Input latch register consists of bits that latch the levels of the INT0, INT1, CNTR0 and CNTR1  
pins when the Timer 4 overflows.  
Figure 1.12.16 shows a structure of Input latch register.  
Input latch register  
b7 b6 b5 b4 b3 b2 b1b0  
Input latch register (ILR) [Address 00D616]  
At reset  
B
0
Name  
Function  
R W  
When b0 of EG (Note) is ”:  
reverse level on INT0
P30/INT0 latch bit  
?
?
When b0 of EG (
level on INT0
1
2
When ote) is “0”:  
revINT1 pin  
P31/INT1 latch bit  
P32/CNT
CNTR1 latch bit  
of EG (Note) is “1”:  
n INT1 pin  
When b2 of EG (Note) is “0”:  
reverse level on CNTR0 pin  
?
When b2 of EG (Note) is “1”:  
level on CNTR0 pin  
When b3 of EG (Note) is “0”:  
reverse level on CNTR1 pin  
?
?
When b3 of EG (Note) is “1”:  
level on CNTR1 pin  
Nothing is allocated for these bits. These  
are write disabled bits and are undefined at  
reading.  
4
to  
7
? ✕  
Note: EG is the Edge polarity selection register.  
Fig. 1.12.16 Structure of Input latch register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-87  
HARDWARE  
1.12 Timers  
(7) Edge polarity selection register (EG: Address 00D416)  
The Edge polarity selection register consists of bits that control a polarity selection of each of the  
INT0, INT1, CNTR0 and CNTR1 pins and an INT1 interrupt or key on wake-up interrupt selection at  
stop mode or wait mode.  
Figure 1.12.17 shows a structure of Edge polarity selection register.  
Edge polarity selection register  
b7 b6 b5 b4 b3 b2 b1 b0  
Edge polarity selection register (EG) [Address 00D416]  
At reset  
Name  
Function  
R
W
B
0
INT0 edge selection  
bit  
0 : Falling edge  
1 : Rising edg
0
0 : Falling
1 : Risin
1
2
3
4
5
INT1 edge selection  
bit  
0
0
0 : Fa
1 : e  
edge  
g edge  
CNTR0 edge  
selection bit  
CNTR1 edge  
selection bit  
0
0
NTR0  
CNTR1  
CNTR0/CNTR1  
interrupt selec
INT1 sourc0 : P31/INT1  
bit (at S1 : P0 to P07 “L” level input  
0
0
?
instrution) (for key-on wake-up)  
llocated for these bits. These are  
bled bits and are undefined at reading.  
6, 7  
?
Fig. 1.12.17 Structure of arity selection register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-88  
HARDWARE  
1.13 Serial I/O  
1.13 Serial I/O  
The 7470/7471/7477/7478 group can transmit or receive 8-bit data in series by Serial I/O.  
The Serial I/O transmit/receive method is shown below.  
In the 7470/7471 group, only the clock synchronous is available.  
In the 7477/7478 group, either clock synchronous or clock asynchronous (UART) can be selected.  
There are differences in circuit configuration and applicable registers between them.  
This section explains each of them as “1.13A 7470/7471 group part” and “1.13B 7477/7478 group part.”  
Table 1.13.1 shows defferences between 7470/7471 group and 7477/7478 group.  
Table 1.13.1 7470/7471 group vs. 7477/7478 group serial I/O  
7470/7471 group  
7477/7478 group  
Serial I/O transmit/ Clock synchronous  
,
,
,
,
receive method  
Clock asynchronous  
__________  
1
SRDY signal output✽  
,
,
,
1
SARDY signal output✽  
Byte specification mode✽  
2
__________  
1 SRDY and SARDY signal : Signal that indicates a Serial I/O trany state  
2 Byte specification mode : Mode for transmitting or receividata of a specific cycle out of  
multiple-byte data to be transreceived.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-89  
 
HARDWARE  
1.13 Serial I/O  
1.13A 7470/7471 group part  
1.13A.1 Operation description  
The 7470/7471 group incorporates a clock synchronous Serial I/O.  
The 8 shift clocks obtained by the clock control circuit are used as synchronous clocks for transmitting  
or receiving data. The transmit operation of the transmit side and the receive operation of the receive side  
are simultaneously executed in synchronization with these shift clocks.  
The transmit side transmits data 1 bit by 1 bit from the P15/SOUT pin in synchronization with the fall of  
each shift clock.  
The receive side receives data 1 bit by 1 bit from the P14/SIN pin in synchronization with the rise of each  
shift clock.  
Figure 1.13A.1 shows a Serial I/O block diagram.  
XCIN  
1/2  
nter  
1/4  
X
IN  
1/2  
CM  
7
1/2 1/4  
1/64  
SM  
1
0
SARDY  
SM  
S
RDY  
Synchronous
SM  
5
S
RDY  
CLK input  
(Address 00DE16  
)
CLK output  
ounter (3)  
Serial I/O interrupt  
request  
SM  
6
Byte counter (4)  
Data bus  
(Address 00DE16  
)
(Address 00DD16  
)
S
IN  
Serial I/O register (8)  
S
OUT  
S
R
Q
:  
The 7470 group is not provided with the XCIN pin.  
Fig. 1.13A.1 Serial I/O block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-90  
 
HARDWARE  
1.13 Serial I/O  
2 Communication format  
The half-duplex data communication or the full-duplex data communication are available.  
2 Synchronous clock  
The internal clock or the external clock can be selected as a synchronous clock by bit 2 of the Serial  
I/O mode register (SM: address 00DC16).  
The synchronous clock for the case where the internal clock is selected is shown below.  
• f(XIN)/8  
• f(XIN)/16  
• f(XIN)/32  
When the system clock is f(XIN)  
• f(XIN)/512  
• f(XCIN)/8  
• f(XCIN)/16  
• f(XCIN)/32  
When the system clock is f(XCIN)  
• f(XCIN)/512  
Notes 1: In the 7470 group, f(XCIN) is not available.  
2: When selecting a divided signal of f(XCIN), set the sock to the low-speed mode  
by bit 7 of the CPU mode register.  
When the external clock is selected, the synchronous n external clock input from the P16/  
CLK pin.  
Notes on external clock selection  
When writing data into the Serial I/O regform a write operation while the synchronous  
clock is at “H.”  
The shift operation of the Serial I/O s continued while the synchronous clock is input to  
the Serial I/O circuit. When the eock is selected, stop the synchronous clock at the end  
of 8 cycles. (When the internaselected, the synchronous clock stops automatically.)  
Set the “H” and “L” widths (Tof the pulse used as the external clock source to TWH, TWL  
[s] > 2/(system clock freqz]). For example, when the system clock is 8 MHz, use a clock  
of 2 MHz or less (duty %).  
2 Shift clock  
Usually, when a clock hronous transfer is performed between 2 microcomputers, one microcomputer  
selects the internal clock and outputs the 8 shift clock pulses generated by a start of transfer  
operation from the P16/CLK pin. The other microcomputer selects the external clock and uses the  
clock input from the CLK pin as a synchronous clock.  
__________  
2 SRDY signal, SARDY signal  
__________  
A Serial I/O transfer ready status can be known to the outside by outputting the SRDY signal and the  
SARDY signal.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-91  
HARDWARE  
1.13 Serial I/O  
2 Transmit operation of Serial I/O  
The transmit operation of the Serial I/O is described below.  
Start of transmit operation  
Transmit operation begins by writing transmit data into the Serial I/O register2 in the transmit  
enable state.1 At the time when this data has been written, “7” is set in the Serial I/O counter  
(address 00DE16, bit 4 – 6), so that the synchronous clock is forced to go to “H.”  
1: State in which the register for transmit operation has been initialized. Refer to “[Transmit  
setting method]” which will be described later.  
2: When the external clock is selected, perform a write operation while the synchronous clock is  
at “H.”  
Transmit operation  
1The transmit data written in the Serial I/O register is output from the P15/SOUT pin in synchronization  
with the fall of the synchronous clock. At this time, the Serial I/O counter is decremented by 1.  
2Transmit data is output starting with the least significant bit of trial I/O register. Each time  
one bit is output, the contents of the Serial I/O register are 1 in the direction of the  
least significant bit.  
3After the transmit shift operation is completed, an interrst occurs at the rise of the last  
cycle of the synchronous clock, so that the Serial I/t request bit is set 3 to “1.”  
3: When the internal clock is selected as a synchock, the shift clock supply to the Serial  
I/O register is automatically stopped after ta is transmitted (the Serial I/O counter  
overflows). When the external clock is the contents of the Serial I/O register are  
continuously sifted while the synchronk is input. Accordingly, stop it externally.  
__________  
When using the SRDY output  
__________  
At the time when transmit data haritten, the level of the SRDY signal changes from “H” to  
“L” and the level of the SARDY snges from “L” to “H,” by which a receive ready state can  
_________
be known externally. The SRgoes to “H” at the first fall of the synchronous clock and the  
SARDY signal goes to “L” ae of the last cycle of the synchronous clock.  
Figure 1.13A.2 shows t operation and Figure 1.13A.3 shows a transmit timing chart.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-92  
HARDWARE  
1.13 Serial I/O  
1
Synchronous clock  
Data bus  
Address 00DD16  
Serial I/O register  
Synchronous clock  
b0  
Write transmit data  
D7 D6D5D4 D3D2 D1  
Serial I/O register  
D0  
P15/SOUT  
2
b0  
D7D6D5D4 D3  
Serial I/O register  
D2  
P15/SOUT  
Synchronous clock  
3
b0  
D7  
0
1
Interrupt request  
register 1  
(Address 00FC16)  
by rising edge  
b6  
Fig. 1.13A.2 Serial I/O transmit operation  
Synchronous clock,  
internal clock divided by 8 to 512, or  
external clock  
S
OUT pin  
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
Write signa
serial I/O re
S
RDY signal  
SARDY signal  
Serial I/O interrupt enable bit  
Serial I/O interrupt request bit  
A
A:  
• Clearing by writing “0” to the Serial I/O interrupt request bit.  
• Clearing by accepting the Serial I/O interrupt.  
Fig. 1.13A.3 Serial I/O transmit timing chart  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-93  
HARDWARE  
1.13 Serial I/O  
[Transmit setting method]  
1Clear the Serial I/O interrupt enable bit (bit 6 of the Interrupt control register 1) to “0.”  
2Set the Serial I/O mode register according to “Table 1.13A.1.”  
3When using the Serial I/O interrupt,  
[1] Clear the Serial I/O interrupt request bit (bit 6 of the Interrupt request register 1) to “0.”  
[2] Set the Serial I/O interrupt enable bit to “1.”  
4Write transmit data into the Serial I/O register (address 00DD16).  
Note: When the external clock is selected, perform a write operation while the synchronous clock is  
at “H.”  
Table 1.13A.1 shows a Serial I/O transmit setting.  
Table 1.13A.1 Serial I/O transmit setting  
Serial I/O mode register  
(SM: Address 00DC16)  
Register to be used  
Item  
Bit  
Setting value  
00  
f(XIN)/8  
f(XCIN)/8  
f(XIN)/16  
f(XCIN)/16  
f(XIN)/32  
f(XCIN)/32  
f(XIN)/512  
01  
10  
11  
Synchronous clock (at internal  
b1 • b0  
clock selection)  
(Note 1)  
f(XCIN)/512  
External clock  
Internal clo
Serial I/O OUT, CLK) (Note 2)  
0
1
1
0
1
0
1
0
1
0
1
Synchronous clock selection  
Serial I/O port using  
b2  
b3  
b4  
____________________  
Ordina
_______________  
SRDY signal output selection  
S RDoutput  
_____
____________________  
al  
signal  
nary mode  
SRDY signal selection  
b5  
b6  
b7  
Serial I/O  
Byte specification mode seleyte specification mode  
____________________  
P15/SOUT, SRDY pin outpu
CMOS output  
N channel open drain output  
format  
(Note
Notes 1: Select the internal clock as a synchronous clock in the following condition. In the 7470 group,  
however, f(XCIN) is not available.  
When a divided signal of f(XIN) is selected, the system clock is f(XIN).  
When a divided signal of f(XCIN) is selected, the system clock is f(XCIN).  
Select a system clock state by bit 7 of the CPU mode register.  
2: When the ordinary port is switched over to the Serial I/O port, the Serial I/O interrupt request bit  
may be set to “1.” Clear the Serial I/O interrupt request bit to “0” after one instruction or more  
after switching the ordinary port over to the Serial I/O port.  
3: When ordinary P17 is selected by bit 4 of the Serial I/O mode register, the CMOS output is  
provided regardless of the set value of bit 7.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-94  
HARDWARE  
1.13 Serial I/O  
2 Receive operation of Serial I/O  
The receive operation of the Serial I/O is described below.  
Start of receive operation  
Receive operation begins by writing the following data into the Serial I/O register (SIO: address  
2
1
00DD16) in the receive enable state.  
Transmit data in the full-duplex data communication  
• Arbitrary dummy data in the half-duplex data communication  
At the time when this data has been written, “7” is set in the Serial I/O counter (address 00DE16,  
bit 4 – 6), so that the synchronous clock is forced to go to “H.”  
1: State in which the register for receive operation has been initialized. Refer to “[Receive setting  
method]” which will be described later.  
2: When the external clock is selected, perform a write operation while the synchronous clock is  
at “H.”  
Receive operation  
1Receive data is input from the P14/SIN pin to the Serial I/O rsynchronization with the  
rise of the synchronous clock. At this time, the Serial I/O s decremented by 1.  
2Receive data is input starting into the most significant bit rial I/O register. Each time one  
bit is input, the contents of the Serial I/O register arby 1 in the direction of the least  
significant bit.  
3After the receive shift operation is completed, at request occurs at the rise of the last  
cycle of the synchronous clock, so that the Sinterrupt request bit is set to “1”. 3  
3: When the internal clock is selected as nous clock, the shift clock supply to the Serial  
I/O register is automatically stopped afata is transmitted (the Serial I/O counter overflows).  
When the external clock is seleccontents of the Serial I/O register are continuously  
sifted while the synchronous cput. Accordingly, stop it externally.  
__________  
When using the SRDY outpu
__________  
At the time when data haritten into the Serial I/O register, the level of the SRDY signal  
changes from “H” to “Llevel of the SARDY signal changes from “L” to “H,” by which a  
__________  
receive ready state cown externally. The SRDY signal goes to “H” at the first fall of the  
synchronous clock SARDY signal goes to “L” at the rise of the last cycle of the synchronous  
clock.  
Figure 1.13A.4 shows a receive operation and Figure 1.13A.5 shows a receive timing chart.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-95  
HARDWARE  
1.13 Serial I/O  
Synchronous  
clock  
1
Synchronous clock  
3
b0  
b0  
Serial I/O  
register  
D0  
D7 D6D5 D4 D3D2 D1D0  
P14/SIN  
Serial I/O register  
Synchronous  
clock  
0
2
Interrupt request  
register 1  
by rising edge  
(Address 00FC16)  
1
b6  
D3 D2 D1D0  
Serial I/O register  
P14/SIN  
Fig. 1.13A.4 Serial I/O receive operation  
Synchronous clock,  
internal clock divided by 8 to 512, or  
external clock  
SIN pin  
D0  
D1  
D3  
D4  
D5  
D6  
D7  
Writing data to  
Serial I/O register  
Rerial I/O register  
SRDY signal  
SARDY signal  
Serial I/O interrupt en
Serial I/O interrupt request bit  
A
A:  
• Clearing by writing “0” to the Serial I/O interrupt request bit.  
• Clearing by accepting the Serial I/O interrupt.  
Fig. 1.13A.5 Serial I/O receive timing chart  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-96  
HARDWARE  
1.13 Serial I/O  
[Receive setting method]  
1Clear the Serial I/O interrupt enable bit (bit 6 of the Interrupt control register 1) to “0.”  
2Clear the Port P14 direction register to “0” to set it to the input mode.  
3Clear the Serial I/O mode register according to “Table 1.13A.2.”  
4When using the Serial I/O interrupt,  
[1] Clear the Serial I/O interrupt request bit (bit 6 of the Interrupt request register 1) to “0.”  
[2] Set the Serial I/O interrupt enable bit to “1.”  
5Write the following data into the Serial I/O register.  
Transmit data in the full-duplex data communication  
Arbitrary dummy data in the half-duplex data communication  
Note: When the external clock is selected, write data into the Serial I/O register while the synchronous  
clock is at “H.”  
Table 1.13A.2 shows a Serial I/O receive setting.  
Table 1.13A.2 Serial I/O receive setting  
Serial I/O mode register  
SM: Address 00DC16)  
Register to be used  
Item  
Bit  
Setting value  
00  
f(XIN)/8  
f(XCIN)/8  
f(XIN)/16  
f(XCIN)/16  
f(XIN)/32  
f(XCIN)/32  
f(XIN)/512  
01  
10  
11  
Synchronous clock (at internal  
b1 • b0  
clock selection)  
(Note 1)  
f(XCIN)/512  
0
1
0
1
0
1
0
1
0
1
0
1
External
Intern
Ordt (P15, P16) (Note 2)  
Sport (SOUT, CLK) (Note 3)  
b2  
Synchronous clock selection  
Serial I/O port using  
b3  
b4  
b5  
b6  
b7  
_______________  
y port  
S RDY signal output selection  
signal output  
__  
__________  
DY signal  
SARDY signal  
Ordinary mode  
SRDY signal selection  
Serial I/O  
Byte specification mode setion Byte specification mode  
__________  
P15/SOUT, SRDY pin output  
CMOS output  
N channel open drain output  
format  
(Note 4, Note 5)  
Notes 1: Select the internal clock as a synchronous clock in the following condition. In the 7470 group,  
however, f(XCIN) is not available.  
When a divided signal of f(XIN) is selected, the system clock is f(XIN).  
When a divided signal of f(XCIN) is selected, the system clock is f(XCIN).  
Select a system clock state by bit 7 of the CPU mode register.  
2: When the external clock is selected, the P16/CLK pin becomes clock input pin CLK regardless  
of the set value of bit 3 of the Serial I/O mode register. For this reason, only P15 is available  
as an ordinary port.  
3: When the ordinary port is switched over to the Serial I/O port, the Serial I/O interrupt request bit  
may be set to “1.” Clear the Serial I/O interrupt request bit to “0” after one instruction or more  
after switching the ordinary port over to the Serial I/O port.  
4: When ordinary P17 is selected by bit 4 of the Serial I/O mode register, the CMOS output is  
provided regardless of the set value of bit 7.  
5: When SOUT is selected by bit 3 of the Serial I/O mode register, the data written in the Serial  
I/O register is output from the SOUT pin in synchronization with the fall of the synchronous clock.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-97  
HARDWARE  
1.13 Serial I/O  
1.13A.2 Byte specification mode  
The Serial I/O of the 7470/7471 group has the byte specification mode.  
This mode permits transmitting or receiving specific one-byte data out of multiple-byte data transmitted  
or received through the Serial I/O bus.  
2 Byte counter (Address 00DE16)  
The Byte counter is located at the same address as that of the Serial I/O counter but the Serial  
I/O counter is a read-only type. So this counter is not affected by any write operation to the Byte  
counter. Because the Byte counter is not provided with a reload function, re-set a value to transmit  
or receive data continuously.  
2 SARDY  
When the SARDY signal is selected in the byte specification mode, the N channel open drain is  
__________  
selected as its output type, and the SRDY pins of multiple microcomputers are connected, the SARDY  
signal goes to “H” only when all the microcomputers have become ready for data transfer.  
2 Operations in the byte specification mode  
After setting the Serial I/O mode register, specify a byte correspthe clock to be used for  
a Serial I/O transmit/receive in the Byte counter. Where the vten in the Byte counter is n,  
a Serial I/O transmit/receive is performed by the clock of t)-th byte.  
Start of transmit/receive operation  
A transfer operation is started by writing the data y dummy data in the half-duplex data  
communication)1 to be transmitted to the Seriaster.  
1: When the external clock is selected, wrto the Serial I/O register when the synchronous  
clock is at “H.” However, if the Byr value is a value other than “0,” writing data is  
enabled even if the synchronous at “L.”  
Transmit/receive operation  
1Each time the synchronous nput in 8 cycles, the Byte counter value is decremented by 1.  
2With the synchronous he next 8 cycles after the Byte counter value becomes “0,” a  
Serial I/O transmit/reperformed as in the ordinary mode.2 After completion of the 8-bit  
data output, an intcurs at the rise of the last cycle of the synchronous clock, so that bit  
6 of the Interrut register (address 00FC16) is set to “1.”  
3When the Byte cr overflows, the Serial I/O transfer stops.  
2: When the Byte counter value is a value other than 0, the output of the SOUT pin goes to “H”  
at the fall of the first synchronous clock. If the N channel open drain is selected as the output  
type of the SOUT pin, the output is put into a high-impedance state, so the SOUT pin can be  
connected to the SOUT pin of another microcomputer.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-98  
HARDWARE  
1.13 Serial I/O  
Figure 1.13A.6 shows a transmit/receive operation in the byte specification mode.  
1
Byte counter  
n
16  
(n-1)16  
0
2
When transmit  
When receive  
Synchronous  
clock  
Synchronous  
clock  
b0  
b0  
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
D
0
7
P14/SIN  
al I/O register  
P15/SOUT  
Serial I/O register  
Synchronous clock  
8 cycles  
onous clock  
b0  
D D D  
D7 6 5 D4 D3 2 D1D0  
0
Interrupt request  
register 1  
edge  
(Address 00FC16  
)
3
r  
FF16  
Fig. 1.13A.6 Transmit/reoperation in byte specification mode  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-99  
HARDWARE  
1.13 Serial I/O  
[Byte specification mode setting]  
For a Serial I/O transfer in the byte specification mode, refer to the setting method in the ordinary  
mode in “1.13A.1 Operation description,” and also take the following into consideration.  
Select the byte specification mode. (Set bit 6 of the Serial I/O register to “1.”)  
Be sure to select the external clock as the synchronous clock. (Clear bit 2 of the Serial I/O mode  
register to “0.”)  
[1] When data is received, the ordinary port can be selected by the Serial I/O port selection bit  
(bit 3 of the Serial I/O mode register). P16 pin is used as a external clock input pin CLK. Only  
P15 is available as an ordinary port.  
[2] Write data into the Serial I/O register when the synchronous clock is at “H.” However, if the  
Byte counter value is a value other than “0,” writing data is enabled even if the synchronous  
clock is at “L.”  
When performing a Serial I/O transmit/receive at the n–th byte, write (n – 1) in the Byte counter.  
Note: Because the Byte counter is not provided with a reload function, re-set a value to transmit or  
receive data continuously.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-100  
HARDWARE  
1.13 Serial I/O  
1.13A.3 Pins  
The 7470/7471 group uses 4 pins for data transmit, data receive, shift clock transmit/receive and receive  
ready signal output. All these pins are used in common with P1. A function selection is made by the Serial  
_______________  
I/O port selection bit (bit 3) and the SRDY signal output selection bit (bit 4) of the Serial I/O mode register  
(SM : Address 00DC16).  
The function of each pin is explained below.  
(1) Data transmit pin [SOUT]  
Transmit data is output bit by bit. This pin is used in common with P15. When the Serial I/O port  
selection bit (bit 3) of the Serial I/O mode register is set to “1,” this pin becomes a Serial I/O data  
output pin.  
(2) Data receive pin [SIN]  
Data is input bit by bit. This pin is used in common with P14. When the port P14 direction register  
is put into the input mode, this pin becomes a Serial I/O data input pin.  
(3) Shift clock transmit/receive pin [CLK]  
This pin inputs (receives from the outside) or outputs (supplies to de) the shift clock for data  
transmit/receive. This pin is used in common with P16.  
The internal clock or the external clock can be selected by the Serial I/O mode register.  
(4) Receive enable signal output pins [S___R___D__Y__], [SARDY]  
This pin informs the outside of a receive ready stapin is used in common with P17.  
_S___R___D___Y__ signal  
__________  
SRDY signal output selection bit (bit 4) oO mode register is set to “1.”  
__________  
SRDY signal selection bit (bit 5) of Seode register is cleared to “0.”  
When the above 2 conditions are satilevel of the pin changes from “H” to “L” at the timing  
at which data is written into the Segister, informing the outside of a receive ready state.  
SARDY signal  
__________  
SRDY signal output selecbit 4) of Serial I/O mode register is set to “1.”  
__________  
SRDY signal selection of Serial I/O mode register is set to “1.”  
When the above 2 coare satisfied, the level of the pin changes from “L” to “H” at the timing  
at which data is wthe Serial I/O register, informing the outside of a receive ready state.  
1.13A.4 Notes on use  
When the external clock is selected, take the following points into consideration.  
1When writing data into the Serial I/O register, perform a write operation while the synchronous clock  
is at “H.”  
2The shift operation of the Serial I/O register is continued while the synchronous clock is input to the  
Serial I/O circuit. When the external clock is selected, stop the synchronous clock at the end of 8  
cycles. (When the internal clock is selected, the synchronous clock stops automatically at the end of  
8 cycles.)  
3Set the “H” and “L” widths (TWH, TWL) of the pulse used as the external clock source to TWH, TWL [s]  
> 2/(system clock frequency [Hz]). For example, when the system clock is 8 MHz, use a clock of 2  
MHz or less (duty ratio 50 %).  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-101  
HARDWARE  
1.13 Serial I/O  
1.13A.5 Related registers  
(1) Serial I/O register (SIO: Address 00DD16)  
The Serial I/O register is written Serial I/O transmit data or is read receive data.  
When transmitting data, write transmit data into this register.  
Receive data can be obtained by reading this register.  
Figure 1.13A.7 shows a structure of the Serial I/O register.  
Serial I/O register (7470/7471 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O register (SIO) [Address 00DD16]  
At reset  
B
Function  
R
W
0
to  
7
A value of “0016” to “FF
set as transmit data.  
At the transmit, dmitted one  
bit at a time stae least  
significant bi
At the recreceived one bit  
at a timith the most  
signi
At transmit:  
At receive:  
?
Fig. 1.13A.7 Structure of Serial I/O regi
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-102  
HARDWARE  
1.13 Serial I/O  
(2) Serial I/O counter, Byte counter (Address 00DE16)  
The Serial I/O counter and the Byte counter are located at the same address.  
Serial I/O counter (bit 4 – bit 6)  
The Serial I/O counter is set to “7” by writing transmit data into the Serial I/O register and counts  
the synchronous clock of the Serial I/O eight times. The Serial I/O counter is a read-only type and  
not affected by any write operation to the Byte counter.  
Byte counter (bit 0 – bit 3)  
In the Serial I/O byte specification mode, the value written in the Byte counter is counted down at  
8 cycles of the synchronous clock. When the value becomes “0,” a Serial I/O transmit/receive is  
performed by the synchronous clock of the next 8 cycles. Because a reload function is not available,  
re-set a value to transfer data continuously in the byte specification mode.  
Figure 1.13A.8 shows a structure of the Serial I/O counter and the Byte counter.  
Serial I/O counter and Byte counter (7470/747)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O counter and Bytddress 00DE16]  
At reset  
B
R W  
0
to  
3
Byte counter  
When usispecification mode, set  
a value “0F16.” Supposing that the  
valuen into the byte counter is “n,”  
a mit/receive is performed with the  
“n + 1”-th byte.  
?
O counter  
n the internal clock is selected as a  
nchronous clock, this counter generates 8  
shift clocks.  
When transmit data is written into the Serial  
I/O register, “0716” is set in the Serial I/O  
counter.  
?
?
7
Nothing is allocated for this bit. This is write  
disabled bit and is undefined at reading.  
? ✕  
Fig. 1.13A.8 Structure of Serial I/O counter and Byte counter  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-103  
HARDWARE  
1.13 Serial I/O  
(3) Serial I/O mode register (SM: Address 00DC16)  
The Serial I/O mode register selects a state of the clock or port to be used for a data transfer.  
Figure 1.13A.9 shows a structure of the Serial I/O mode register.  
Serial I/O mode register (7470/7471 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O mode register (SM) [Address 00DC16]  
At reset  
R W  
B
Name  
Function  
b1 b0  
Internal clock  
selection bits  
0, 1  
0 0 : f(XIN)/8 or f(XCIN)/8  
0 1 : f(XIN)/16 or f(XCIN)/16  
1 0 : f(XIN)/32 or f(XCIN)/32  
1 1 : f(XIN)/512 or f(XC2  
0
Synchronous clock 0 : External clo
2
3
0
0
selection bit  
1 : Internal c
0 : Ordin
(P1
Serial I/O port  
selection bit  
1 : SOUT, CLK pin)  
I/O port(P17)  
signal output pin  
SRDY signal output  
selection bit  
4
5
6
7
0
SRDY signal  
selection bit  
DY signal  
SARDY signal  
0
0
Serial I/O b
mode se
0 : Ordinary mode  
1 : Byte specify mode  
P1  
5utput 0 : CMOS output  
0
tion bit  
1 : N-channel open-drain  
output  
ce the 7470 group is not provided with the sub-clock  
generating circuit, do not select f(XCIN).  
Fig. 1.13A.9 Structure ol I/O mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-104  
HARDWARE  
1.13 Serial I/O  
1.13B 7477/7478 group part  
1.13B.1 Operation description  
The 7477/7478 group incorporates a Serial I/O that permits selecting one of the clock synchronous and  
the clock asynchronous. This section describes the operation in each of the clock synchronous serial I/  
O and the clock asynchronous Serial I/O (UART).  
(1) Clock synchronous Serial I/O  
In the clock synchronous Serial I/O, the 8 shift clocks obtained by the clock control circuit are used  
as synchronous clocks for transmitting or receiving. The transmit operation of the transmit side and  
the receive operation of the receive side are simultaneously executed in synchronization with these  
shift clocks.  
The transmit side transmits data bit by bit from the P15/TxD pin in synchronization with the fall of  
each shift clock.  
The receive side receives data bit by bit from the P14/RxD pin in schronization with the rise of  
each shift clock.  
Figure 1.13B.1 shows a clock synchronous Serial I/O block
Data
Address 00E216  
Serial I/O control register  
P1  
6
P1  
4
Address
Receive buffer reg
Receive buffer full flag (RBF)  
Receive interrupt request (RI)  
RXD  
Receive shift
clock  
Receive  
enable bit  
(RE)  
Clock control circuit  
S
CLK  
Serial I/O enable bit  
(SIOE)  
Serial I/O synchronous  
clock selection bit (SCS)  
source  
bit (CSS)  
X
CIN  
Dividing ratio 1/(n+1)  
1/4  
Baud rate generator  
Address 00E416  
1/4  
X
IN  
S
RDY output  
enable bit  
(SRDY)  
/4  
Falling  
Clock control circuit  
S
RDY  
detected  
Shift clock  
Transmit ble  
bit (TE)  
Transmit shift completion flag (TSC)  
Transmit interrupt request (TI)  
Transmit shift register  
TXD  
Transmit interrupt source  
selection bit (TIC)  
Transmit buffer register  
Transmit buffer empty flag (TBE)  
P1  
5
P1  
7
Address 00E016  
Serial I/O status register  
Address 00E116  
Data bus  
: The 7477 group is not provided with the XCIN pin.  
Fig. 1.13B.1 Clock synchronous Serial I/O block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-105  
 
HARDWARE  
1.13 Serial I/O  
2 Communication format  
The half-duplex data communication or the full-duplex data communication are available for  
communication.  
2 Synchronous clock  
The following can be selected as a synchronous clock by bit 1 of the Serial I/O control register  
(SIOCON: address 00E216).  
“0” : Baud rate generator (BRG) output divided by 4  
“1” : External clock input from the SCLK pin  
The BRG output is set by the baud rate generator (BRG: address 00E416), which is an 8-bit  
counter dedicated to the Serial I/O. As an input clock to the BRG, f(XIN)/4 (at “0”), f(XIN)/16 (at  
“1”) can be selected by bit 0 of the Serial I/O control register. In the 7478 Group, f(XCIN)/4 (at “0”),  
f(XCIN)/16 (at “1”) can be also selected.  
Notes on external clock selection  
When setting the transmit enable bit to “1” or writing data Transmit buffer register,  
perform a write operation while the synchronous clock i
The shift operation of the Transmit shift register or the shift register is continued while  
the synchronous clock is input to the Serial I/O circuhe external clock is selected, stop  
the synchronous clock at the end of 8 cycles. (Whenal clock is selected, the synchronous  
clock stops automatically at the end of 8 cyc
Set the “H” and “L” widths (TWH, TWL) of thsed as the external clock source to TWH,  
TWL [s] > 8/(system clock [Hz]). For exaen a system clock is 8 MHz, use a clock of  
500 kHz or less (duty ratio 50 %).  
2 Shift clock  
Usually, when a clock synchronous performed between 2 microcomputers, one microcomputer  
selects the internal clock and the 8 shift clock pulses generated by a start of transmit  
operation from the P16/SCLother microcomputer selects the external clock and uses the  
clock input from the P16as a synchronous clock.  
2 Data transfer rate te)  
In the clock syncSerial I/O, the expression for calculating a data transfer rate (baud rate),  
which is the frequof the synchronous clock is shown below.  
When the internal clock is selected (using the BRG)  
3
f(XIN)✽  
Baud rate [bps] =  
1
2
Division ratio(BRG set value+ 1) 4  
1 Division ratio : Select “4” or “16” by the BRG count source selection bit.  
2 BRG set value : 0 – 255 (0016 – FF16)  
3 In the 7478 Group, f(XCIN) can be also used.  
When the external clock is selected  
Baud rate [bps] = Input clock frequency to SCLK pin  
The BRG is an 8-bit counter dedicated to the Serial I/O, having a reload register, and divides the  
count source by (n + 1) by setting the value n. As a count source, f(XIN)/4 (at “0”), f(XIN)/16 or (at  
“1”) can be selected by bit 0 of the Serial I/O control register.  
In the 7478 Group, f(XCIN)/4 (at “0”), f(XCIN)/16 (at “1”) can be also selected.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-106  
HARDWARE  
1.13 Serial I/O  
2 SRDY signal  
The clock synchronous Serial I/O can inform the outside that a serial transfer has become ready,  
by outputting the SRDY signal.  
2 Transmit operation of the clock synchronous Serial I/O  
The transmit operation of the clock synchronous Serial I/O is described below.  
Start of transmit operation  
Transmit data is transmitted by writing it into the Transmit buffer register (TB: address 00E016)2  
in the transmit enable state.1 When the internal clock is selected as a synchronous clock, 8 shift  
clocks are generated at the time when this set value has been written.  
Transmit operation  
1After transmit data is written into the Transmit buffer register,2 the transmit buffer empty flag  
(bit 0) of the Serial I/O status register is cleared to “0.”  
2The transmit data written in the Transmit buffer register is tranferred to the Transmit shift  
register.3  
3When the data transfer from the Transmit buffer register to the shift register is completed,  
the transmit buffer empty flag is set to “1.4  
4The transmit data transferred to the Transmit shift reoutput from the P15/TxD pin in  
synchronization with the fall of the synchronous cl
5When a transmit shift operation is started, the trift completion flag (b2) of the Serial  
I/O status register is cleared to “0.”5  
6Data is output starting with the least significthe Transmit shift register. Each time one-  
bit data is output, the contents of the Traft register are shifted by 1 bit in the direction  
of the least significant bit.  
7At the time when the transmit shift n has been completed, the Transmit shift register  
shift completion flag is set to “1
1: Status in which the regisansmit operation has been completed. Refer to “[Clock  
synchronous Serial Ig method]” which will be described later.  
2: When the external elected, write data into the Transmit buffer register when the  
synchronous cloc.”  
3: A transmit inteuest occurs immediately after the transfer of 2 when the transmit  
interrupt soit 3) of the Serial I/O control register (SIOCON) is “0,” or at the time of  
7 when the bit is “1.”  
4: While the transmit buffer empty flag is “1,” the next transmit data can be written into the  
Transmit buffer register.  
5: When the internal clock is used as a synchronous clock, the shift clock supply to the Transmit  
shift register is automatically stopped after 8-bit data is transmitted. However, if the next  
transmit data is written to the Transmit buffer register while the Transmit shift register shift  
completion flag is “0,” the shift clock supply is continued and serial data is continuously  
output from the TxD pin.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-107  
HARDWARE  
1.13 Serial I/O  
__________  
When using the SRDY output  
__________  
At the time when data has been written into the Transmit buffer register, the SRDY pin changes from  
__________  
“H” to “L,” informing the outside of a receive ready state. The SRDY pin is restored to “H” at the  
first fall of the synchronous clock.  
Transmit interrupt operation (valid when the Serial I/O is selected)  
Regarding a transmit interrupt, interrupt request generating timing can be selected by bit 3 of the  
Serial I/O control register (SIOCON).  
0: When the Transmit buffer register becomes empty after the data written in the Transmit buffer  
register is transferred to the Transmit shift register, an interrupt request is generated.  
1: When the shift operation of the Transmit shift register is completed, an interrupt request is  
generated.  
Figure 1.13B.2 shows a transmit operation of clock synchronous Serial I/O and Figure 1.13B.3  
shows a transmit timing chart of clock synchronous Serial I/O.  
5
7
1
1
Data bus  
Seriegister  
(A16  
)
Transmit data writing  
Address 00E016  
0
b2  
Transmit buffer register  
b0  
1
Serial I/O status register  
(Address 00E116  
)
Synchronous clock  
b0  
D
7
D
6
D
5
D
4
D
3
D
2
D1  
2
3
Transmit buffer register  
Transmer  
Transmit shift registe
P1  
5
/TxD  
Transmit shift register  
Synchronous clock  
b0  
D
7
0
Serial I/O status reg
(Address 00E116  
Transmit shift register  
P15  
/TxD  
)
1
b0  
When “0” is selected by the bit 3  
of the Serial I/O control register  
0
1
Serial I/O status register  
(Address 00E116  
)
0
Interrupt request register 1  
(Address 00FC16  
)
1
b2  
b6  
When “1” is selected by the bit 3  
of the Serial I/O control register  
Synchronous clock  
4
b0  
0
Interrupt request register 1  
(Address 00FC16  
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D0  
)
Transmit shift register  
P1  
5/TxD  
1
b6  
Fig. 1.13B.2 Transmit operation of clock synchronous Serial I/O  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-108  
HARDWARE  
1.13 Serial I/O  
Synchronous clock,  
BRG divided by 4, or  
external clock  
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
TXD pin  
Write signal to  
transmit buffer register  
S
RDY pin  
Transmit buffer empty flag  
Transmit shift completion flag  
B1  
B2  
Transmit interrupt enable bit  
Transmit interrupt request bit  
A2  
B1  
B2  
: • Clearing by writing “nsmit interrupt request bit.  
• Clearing by accepnsmit interrupt.  
A1  
A2  
B1  
B2  
: When interrueneration is selected, when the Transmit buffer register  
becomes earing the transmit interrupt source selection bit to “0”.  
: When quest generation is selected, when the shift operation of the  
tranegister is completed by setting the transmit interrupt source selection bit to “1”.  
Fig. 1.13B.3 Transmit timing chart of clock synchronous Serial I/O  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-109  
HARDWARE  
1.13 Serial I/O  
[Clock synchronous Serial I/O transmit setting method]  
1Clear the Serial I/O transmit interrupt enable bit (bit 6 of Interrupt control register 1) to “0.”  
2When selecting the internal clock, set the BRG value.  
3Set the Serial I/O control register according to Table 1.13B.1.  
4When using a Serial I/O transmit interrupt  
[1] Clear the Serial I/O transmit interrupt request bit (bit 6 of Interrupt request register 1) to “0.”  
Note: When the ordinary port is switched over to the Serial I/O port, the Serial I/O transmit  
interrupt request bit may be set to “1.” Clear the Serial I/O transmit interrupt request bit  
to “0” after one instruction or more after switching the ordinary port over to the Serial I/  
O port.  
[2] Set the Serial I/O transmit interrupt enable bit to “1.”  
5Write transmit data into the Transmit buffer register (TB: address 00E016).  
Note:When the external clock is selected, perform a write operation while the synchronous clock  
is at “H.”  
Table 1.13B.1 Clock synchronous Serial I/O transmit setting  
rial I/O control register  
IOCON: Address 00E216)  
Register to be used  
Item  
Setting value  
Bit  
BRG count source selection  
(Note 1)  
f(XIN)/4  
f(XIN)/16  
0
1
b0  
BRG output divided by
External clock input  
0
1
0
1
b1  
b2  
Synchronous clock selection  
__________  
Ordinary port  
__________  
SRDY signal output selection  
SRDY signal out
0
1
Transmit buf
When the trt operation is completed  
Transm
Disauplex data communication)  
E-duplex data communication)  
nchronous  
b3  
b4  
b5  
Transmit interrupt request selection  
Transmit enable selection  
Receive enable selection  
1(Note 2)  
0
1
1
1
b6  
b7  
Clock synchronous selection  
Serial I/O enable selection  
o P17 function as serial I/O pins  
Notes 1 : f(XCIN)/4 (setting vaf(XCIN)/16 (setting value : 1) can be selected in the 7478 Group.  
2 : When the externs selected, write “1” in bit 4 (transmit enable bit) while the synchronous  
clock is at “H.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-110  
HARDWARE  
1.13 Serial I/O  
2 Receive operation of clock synchronous Serial I/O  
The receive operation of the clock synchronous Serial I/O is described below.  
Start of receive operation  
Receive operation begins by writing data into the Transmit buffer register (TB: address 00E016)2  
in the receive enable state.1  
• Transmit data in the full-duplex data communication  
• Arbitrary dummy data in the half-duplex data communication  
Receive operation  
1Receive data is input bit by bit from the P14/RxD pin to the Receive shift register in synchronization  
with the rise of the synchronous clock.  
2Receive data is input starting with the most significant bit of the Receive shift register. Each time  
one bit is input, the contents of the Receive shift register are shifted by 1 in the direction of the  
least significant bit.  
3After one-byte data is completely input to the Receive shift register, the contents of the Receive  
shift register are transferred to the receive buffer register (RB
4When receive data has been transferred to the receive buffer the receive buffer full flag  
(b1) of the Serial I/O status register (SIOSTS) is set to “1t a receive interrupt request  
is generated.  
1: Status in which the register for receive operabeen completed. Refer to “[Clock  
synchronous Serial I/O receive setting mehich will be described later.  
2: When the external clock is selected, writto the Transmit buffer register when the  
synchronous clock is at “H.”  
3: If receive data is further input to the shift register when data remains (when the  
receive buffer full flag is “1”) withog out the contents of the Receive buffer register,  
the overrun error flag of the Sertus register is set to “1.” At this time, the data of the  
Receive shift register is not td to the Receive buffer register and the original data of  
the Receive buffer registe
4: The receive buffer full fared to “0” by reading out the Receive buffer register.  
__________  
When using the SRDY
__________  
At the time when dbeen written into the Transmit buffer register, the level of the SRDY  
__________  
signal changes fr“L” by which a receive ready state can be known externally. The SRDY  
signal goes to “He first fall of the synchronous clock of the synchronous clock.  
Receive interrupt operation (Serial I/O select only)  
When receive data is transferred from the receive shift register to the Receive buffer register after  
one-byte data is all input to the Receive shift register, an interrupt request is generated.  
Figure 1.13B.4 shows a receive operation of the clock synchronous Serial I/O and Figure 1.13B.5  
shows a receive timing chart of the clock synchronous Serial I/O.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-111  
HARDWARE  
1.13 Serial I/O  
Synchronous clock  
1
4
b0  
b0  
D
0
Serial I/O status  
register  
(Address 00E116  
0
Receive shift register  
P1  
4/RxD  
)
1
Synchronous clock  
b1  
2
3
D3 D2 D1D0  
0
Interrupt request  
register 1  
(Address 00FC16  
Receive shift register  
P1  
4/RxD  
)
1
b5  
Synchronous clock  
Receive shift  
register  
D7 D6D5D4 D3D2 D1D0  
Receive data transfer  
(Address 00E016  
)
Receive buffer register  
Fig. 1.13B.4 Receive operation of clock synchronous ser
Synchronous clock  
D
7
D
2
D
4
D
5
D
6
D
3
RxD pin  
ading into receive shift register  
Writing data to transmit shift regis
S
RDY pin  
Receive buffer regis
read signal  
Receive buffer full flag  
Receive enable bit  
Receive interrupt request bit  
A
A:  
• Clearing by writing “0” to the receive interrupt request bit.  
• Clearing by accepting the receive interrupt.  
Fig. 1.13B.5 Receive timing chart of clock synchronous serial I/O  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-112  
HARDWARE  
1.13 Serial I/O  
[Clock synchronous Serial I/O receive setting method]  
1Clear the Serial I/O receive interrupt enable bit (bit 5 of interrupt control register 1) to “0.”  
2When selecting the internal clock, set the BRG value.  
3Set the Serial I/O control register according to Table 1.13B.2.  
4When using a Serial I/O receive interrupt  
[1] Clear the Serial I/O receive interrupt request bit (bit 5 of interrupt request register 1) to “0.”  
Note: When the ordinary port is switched over to the Serial I/O port, the Serial I/O receive  
interrupt request bit may be set. Clear the Serial I/O receive interrupt request bit to “0”  
after one instruction or more after switching the ordinary port over to the Serial I/O port.  
[2] Set the Serial I/O receive interrupt enable bit to “1.”  
5Set the following data into the Transmit buffer register (TB).  
• Transmit data in the full-duplex data communication  
• Arbitrary dummy data in the half-duplex data communication  
Note: When the external clock is selected, perform a write operation while the synchronous  
clock is at “H.”  
Table 1.13B.2 Clock synchronous Serial I/O receive setting  
erial I/O control register  
(SIOCON: Address 00E216)  
Register to be used  
Item  
Bit  
Setting value  
BRG count source selection  
(Note 1)  
f(XIN)/4  
f(XIN)/16  
0
1
b0  
BRG output divided
External clock inp
0
1
0
1
b1  
b2  
b4  
Synchronous clock selection  
__________  
Ordinary port  
__________  
SRDY signal output selection  
SRDY signal ote 2)  
Disable (hdata communication)  
Enable x data communication)  
Recele  
Clhronous  
17 function as Serial I/O pins  
0
Transmit enable selection  
1(Note 3)  
b5  
b6  
b7  
1
1
1
Receive enable selection  
Clock synchronous selection  
Serial I/O enable selection  
Notes 1: f(XCIN)/4 (setting value CIN)/16 (setting value : 1) can be selected in the 7478  
Group.  
__________  
2: When the receivrforms an SRDY output by using an external clock, set the  
________  
receive enable SRDY output enable bit, and the transmit enable bit to “1”  
(transmit enable).  
3: When the external clock is selected, write “1” in bit 4 (transmit enable bit) while the  
synchronous clock is at “H.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-113  
HARDWARE  
1.13 Serial I/O  
(2) Clock asynchronous Serial I/O  
In case of the clock asynchronous Serial I/O (UART), the transmit operation of the transmit side and  
the receive operation of the receive side are simultaneously executed by unifying the baud rate and  
the transfer data format between both transmit side and receive side.  
Figure 1.13B.6 shows a UART block diagram.  
Data bus  
Address 00E216  
P1  
4
Receive enable bit  
(RE)  
Serial I/O control register  
RXD  
Address 00E016  
Receive buffer full flag (RBF)  
Receive interrupt request (RI)  
ST detected  
OE  
Receive buffer register  
7 bits  
8 bits  
Receive shift register  
Character length  
selection bit (CHAS)  
UART control register  
SP detected  
PE FE  
1/16  
Address 00E316  
Clock control circuit  
Serial I/O enable bit(SIOE)  
Sernous clock selection bit  
(
S
CLK  
BRG count source  
selection bit (CSS)  
Dividing ratio 1/(n+1)  
Baud rate generator  
X
X
CIN  
IN  
1/4  
1/4  
Address 00E416  
1/16  
Transmit enable bit (TE) Transmit shift register  
ST/SP/PA occur  
hift completion flag (TSC)  
mit interrupt request (TI)  
nsmit buffer empty flag (TBE)  
TXD  
Character length  
selection bit (CHAS)  
Transmit interrupt source  
selection bit (TIC)  
P16 P15  
Transmit buffer register  
Serial I/O status register  
Address 00E0
Address 00E116  
s  
: The 7477 group is not provided with the XCIN
Fig. 1.13B.6 UART block diagr
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-114  
HARDWARE  
1.13 Serial I/O  
2 Synchronous clock  
The following can be selected as a synchronous clock by bit 1 of the Serial I/O control register  
(SIOCON: address 00E216).  
“0” : Baud rate generator (BRG) output divided by 16  
“1” : External clock input from the SCLK pin divided by 16  
The BRG output is set by the baud rate generator (BRG: address 00E416), which is an 8-bit  
counter dedicated to the Serial I/O. As an input clock to the BRG, f(XIN)/4 (at “0”), f(XIN)/16 (at  
“1”) can be selected by bit 0 of the Serial I/O control register. In the 7478 Group, f(XCIN)/4 (at “0”),  
f(XCIN)/16 (at “1”), can be also selected.  
Precaution on internal clock selection  
In the UART, when the internal clock is selected as a synchronous clock, the P16/SCLK pin can  
be used as port P16.  
Notes on external clock selection  
Set the “H” and “L” widths (TWH, TWL) of the pulse used as thrnal clock source to TWH,  
TWL [s] > 2/(f(XIN) [Hz]). For example, when f(XIN) = 8 MHz, ck of 2 MHz or less (duty  
ratio 50 %).  
2 Data transfer speed (Baud rate)  
In the UART, the expression for calculating a data traed (baud rate), which is the frequency  
of the synchronous clock is shown below.  
When the internal clock is selected the BRG)  
XIN)3  
Baud rate [bps] =  
Division r(BRG set value2 + 1) 16  
1 Division ratio : Select ” by the BRG count source selection bit.  
2 BRG set value : 0 16 – FF16)  
3 In the 7478 Grou) can be also used.  
When the externock is selected  
Input clock oscillation frequency to SCLK pin  
Baud rate [bps] =  
16  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-115  
HARDWARE  
1.13 Serial I/O  
The BRG is an 8-bit counter dedicated to the Serial I/O, having a reload register, and divides the  
count source by (n + 1) by setting the value n. As a count source, f(XIN)/4 (at “0”), f(XIN)/16 (at  
“1”) can be selected by bit 0 of the Serial I/O control register. In the 7478 Group, f(XCIN)/4 (at “0”),  
f(XCIN)/16 (at “1”), can be also selected.  
Table 1.13B.3 shows a baud rate reference value.  
Table 1.13B.3 Baud rate reference value  
At f(XIN) = 7.9872 MHz  
At f(XIN) = 3.9936 MHz  
Baud rate [bps]  
BRG set value  
BRG set value  
Count source  
f(XIN)/16  
Count source  
f(XIN)/16  
300  
600  
103(6716 )  
51(3316 )  
25(1916 )  
12(0C16)  
25(1916 )  
12(0C16)  
7(0716)  
51(3316 )  
25(1916 )  
12(0C16)  
25(1916 )  
12(0C16)  
f(XIN)/16  
f(XIN)/16  
f(XIN)/16  
f(XIN)/4  
f(XIN)/4  
f(XIN)/4  
f(XIN)/4  
f(XIN)/4  
f(XIN)/16  
f(XIN)/16  
f(XIN)
f
1200  
2400  
4800  
9600  
15600  
31200  
41600  
3(0316 )  
2(0
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-116  
HARDWARE  
1.13 Serial I/O  
2 Transmit/receive data format  
A transmit/receive data format can be selected by the bits of the UART control register (UARTCON).  
• Start bit (ST)  
: 1-bit  
• Data bit (DATA) : 7-bit or 8-bit  
• Parity bit (PA) : Non or 1-bit  
• Stop bit (SP)  
: 1-bit or 2-bit  
Figure 1.13B.7 shows a transmit/receive data format, Table 1.13B.4 shows a function of each bit of  
transmit data, and Figure 1.13B.8 shows all data formats.  
For 1ST-8DATA-1PA-2SP  
Next transmit data  
continuous output)  
Transmit data  
Data bit (8 bits)  
LSB  
MSB  
PA  
ST  
D
0
D
1
D
6
D
7
P  
ST  
D
0
D
1
Fig. 1.13B.7 UART data format  
Table 1.13B.4 Each bit function of UART trata  
Name  
Function  
Start bit ST  
The “L” signal for 1 ed by the bit indicating a start of data transmission  
immediately before smit data.  
Data bit DATA  
Parity bit PA  
This bit indicatensmit data written in the UART transmit buffer register.  
The “0” data signal and the “1” data is an “H” signal.  
This bit is mmediately after the data bit for improvement of data reliability.  
The conthis bit change according to the contents of the parity selection bit  
so thmber of “1”s in the transmit data including the parity bit may always be  
even d.  
Stop bit SP  
This bit ndicates that data has been transmitted, and is added immediately after the  
data bit (immediately after the parity bit when the parity is valid). The “H” signal for  
1 bit or 2 bits is output.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-117  
HARDWARE  
1.13 Serial I/O  
ST: Start bit  
Di:  
Data bit  
PA: Parity bit  
SP: Stop bit  
For 7-bit UART mode  
LSB  
MSB  
ST  
D
0
D
1
D
D
2
2
D
D
3
3
D
D
4
4
D
D
5
5
D
6
SP  
SP  
PA  
LSB  
D
MSB  
D
ST  
0
D
1
6
SP  
LSB  
D
MSB  
D
ST  
ST  
0
D
D
1
1
D
D
2
2
D
D
3
3
D
D
4
4
D
D
5
5
6
SP  
LSB  
D
MSB  
D
0
6
PA  
SP SP  
For 8-bit UART mode  
LSB  
MSB  
ST  
ST  
D
0
D
D
1
D
D
2
2
D
D
3
3
D
D
4
4
D
D
5
5
D
6
D
LSB  
D
0
1
SP  
SP  
PA  
PA  
LSB  
D
SB  
D
ST  
ST  
0
D
D
1
1
D
D
2
2
D
D
3
3
D
4
D
6
7
SP  
LSB  
D
MSB  
D
0
7
SP SP  
Fig. 1.13B.8 Transmit/receive format
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-118  
HARDWARE  
1.13 Serial I/O  
2 Transmit operation of UART  
The Transmit operation of the UART is described below.  
Start of Transmit operation  
Transmit data is transmitted by writing it into the Transmit buffer register (TB: address 00E016) in  
1
the Transmit enable state.✽  
Transmit operation  
1 After transmit data is written into the Transmit buffer register, the transmit buffer empty flag (bit  
0) of the Serial I/O status register is cleared to “0.”  
2 The transmit data written in the Transmit buffer register is transferred to the Transmit shift  
register. When the data transfer from the Transmit buffer register to the Transmit shift register  
2
is completed, the transmit buffer empty flag is set to “1.”✽  
When the transmit interrupt source bit (bit 3) of the Serial I/O control register (SIOCON) is “0,”  
the interrupt request bit is set to “1,” then a transmit interrupt request occurs.  
3 The transmit data transferred to the transmit shift register is output from the P15/TxD pin in  
synchronization with the fall of the synchronous clock starting the start bit. The start bit,  
the parity bit and the stop bit are automatically generated anaccording to the contents  
of setting of the UART control register.  
4 When a transmit shift operation is started, the transmimpletion flag (b2) of the Serial  
I/O status register is cleared to “0.”  
5 Data is output starting with the least significant biansmit shift register. Each time one-  
bit data is output, the contents of the Transmit ster are shifted by 1 bit in the direction  
of the least significant bit.  
6 After one-half a cycle of the synchronoafter a start of stop bit transmission, the  
transmit shift completion flag is set to
When the bit 3 of the Serial I/O coster is “1” (transmit shift operation is completed),  
at the time the interrupt request to “1” and the Transmit interrupt request occurs.  
1: Status in which the registesmit operation has been completed. Refer to the “[UART  
transmit setting methowill be described later.  
2: While the transmit buty flag is “1,” the next transmit data can be written into the  
Transmit buffer reg
3: In case of two sthe stop bit output period is that of the 2nd bit.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-119  
HARDWARE  
1.13 Serial I/O  
Transmit interrupt operation (valid when the Serial I/O is selected)  
Regarding a transmit interrupt, interrupt request generating timing can be selected by bit 3 of the  
Serial I/O control register (SIOCON).  
0: When the Transmit buffer register becomes empty after the data written in the Transmit buffer  
register is transferred to the Transmit shift register, an interrupt request is generated.  
1: When the shift operation of the Transmit shift register is completed, an interrupt request is  
generated.  
* In case of the UART, an interrupt operation is performed in the same way as when the synchronous  
clock is selected.  
Figure 1.13B.9 shows a transmit operation of UART and Figure 1.13B.10 shows a transmit timing  
of UART.  
1
Data bus  
4
Write transmit data  
Address 00E016  
1
Transmit buffer register  
b0  
1
Serial I/O str  
(Address 0
0
b2  
Serial I/O status register  
(Address 00E116  
)
0
5
6
nous clock  
b0  
2
Transmit buffer register  
Transfer transmit d
Transmit shift register  
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D0  
P1  
5/TxD  
Transmit shift register  
SP  
Synchronous clock  
Serial I/O status register  
(Address 00E116  
)
P1  
5/TxD  
1
b0  
0
When “0” is selected by the bit 3  
of the Serial I/O control regist
Serial I/O status register  
(Address 00E116  
)
1
b2  
Interrupt request register 1  
(Address 00FC16  
)
When “1” is selected by the bit 3  
of the Serial I/O control register  
b6  
Synchronous clock  
3
0
Interrupt request  
register 1  
b0  
ST  
D7 D6 D5D4 D3  
D2  
D1D0  
(Address 00FC16  
)
1
b6  
P1  
5
/TxD  
Transmit shift register  
Fig. 1.13B.9 Transmit operation of UART  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-120  
HARDWARE  
1.13 Serial I/O  
Synchronous clock,  
BRG output divided by 16, or  
external clock divided by 16  
ST  
D
0
D
1
D
2
D
6
SP  
T
X
D pin  
D
7
Serial I/O not used  
Write signal to  
Transmit buffer register  
Transmit buffer empty flag  
Transmit shift completion flag  
Transmit interrupt enable bit  
Transmit interrupt request bit  
A
1
A2  
B2  
A1  
A2  
: • Clearing by writing “nsmit interrupt request bit.  
• Clearing by accepnsmit interrupt.  
: When interrgeneration is selected, when the Transmit buffer register  
becomes learing the transmit interrupt source selection bit to “0”.  
B
1
2
: When irequest generation is selected, when the shift operation of the  
B
Transmit t register is completed by setting the transmit interrupt source selection bit to “1”.  
Fig. 1.13B.10 Transmit timing chart of UART  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-121  
HARDWARE  
1.13 Serial I/O  
[UART transmit setting method]  
1 Clear the Serial I/O transmit interrupt enable bit (bit 6 of Interrupt control register 1) to “0.”  
2 When selecting the internal clock, set the BRG value.  
3 Set the Serial I/O control register according to Table 1.13B.5.  
4 Set the data format according to Table 1.13B.6.  
5 When using a Serial I/O transmit interrupt  
[1] Clear the Serial I/O transmit interrupt request bit (bit 6 of Interrupt request register 1) to “0.”  
Note: When the ordinary port is switched over to the Serial I/O port, the Serial I/O transmit  
interrupt request may be set to “1.” Clear the Serial I/O transmit interrupt request bit  
to “0” after one instruction or more after switching the ordinary port over to the Serial  
I/O port.  
[2] Set the Serial I/O transmit interrupt enable bit to “1.”  
6 Write transmit data into the Transmit buffer register.  
Table 1.13B.5 UART transmit setting  
Serial I/O control register  
Register to be
(SIOCON: Address 00E216  
)
Item  
bit  
setting value  
BRG count source selection  
(Note 1)  
f (XIN)/4  
f (XIN)/16  
0
1
b0  
BRG output divided by 16  
External clock input div16  
0
1
Synchronous clock selection  
__________  
b1  
b2  
b3  
b4  
b5  
SRDY signal output selection  
(Note 2)  
Transmit buffer e
When the transmeration is completed  
Transmit en
Disable (Hx data communication)  
Enable lex data communication)  
Clocronization  
0
1
1
0
1
0
1
Transmit interrupt request selection  
Transmit enable selection  
Receive enable selection  
Clock asynchronous selection  
Serial I/O enable selection  
b6  
b7  
Pfunction as Serial I/O pins (Note 3)  
Notes 1: f(XCIN)/4 (setting value : N)/16 (setting value : 1) can be selected in the 7478 Group.  
2: When the UART is seis bit does not function.  
3: When the internal elected, the P16/SCLK pin can be used as port P16.  
Table 1.13B.6 Set value of UART control register  
UART control register (UARTCON: Address 00E316)  
Serial data transfer format  
b3  
0
0
b2  
b1  
0
0
b0  
0
1
1ST-8DATA-1SP  
1ST-7DATA-1SP  
1ST-8DATA-1PA-1SP  
1ST-7DATA-1PA-1SP  
1ST-8DATA-2SP  
0
0
1
1
Selection  
(Note)  
1
1
0
0
0
1
0
1
_
1ST-7DATA-2SP  
1ST-8DATA-1PA-2SP  
1ST-7DATA-1PA-2SP  
Note: 0: Even parity  
1: Odd parity  
1
1
Selection  
(Note)  
1
1
0
1
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-122  
HARDWARE  
1.13 Serial I/O  
2 Receive operation of UART  
The receive operation of UART is described below.  
Start of receive operation  
Set the receive enable bit (bit 5) of the Serial I/O control register (SIOCON) to the enable state  
1
(“1”) in the receive enable state.With this operation, the start bit is detected and serial data is  
received.  
Receive operation  
1 After a fall of the P14/RxD pin is detected, the level of the P14/RxD pin is checked after one-  
half a cycle of the synchronous clock. If its level is “L,” the bit is judged as a start bit. When  
its level is “H,” it is judged that noise is generated, so that the the receive operation is stopped  
and the UART waits for the start bit.  
2 Receive data is input bit by bit from the P14/RxD pin to the Receive shift register in synchronization  
with the rise of the synchronous clock.  
3 Data, immediately after the start bit, is input starting with the most significant bit of the Receive  
shift register. Each time one bit is received, the contents of the ve shift register are shifted  
by 1 bit in the direction of the least significant bit.  
4 When the specified number of bits are all input in the Recregister, the contents of the  
2, 3  
Receive shift register are transferred to the Receive bister (RB).✽  
5 After 1/2 cycle of the shift clock after a start of stoption, the receive buffer full flag  
4
(bit 1) of the Serial I/O status register (SIOSTS) 1and a receive interrupt request  
is generated.  
6 Error flag detection is started concurrently wccurrence of the receive interrupt request.  
1: Status in which the register for receivon has been completed. Refer to the “[UART  
receive setting method]” which wcribed later.  
2: When the data bit length is 7 bitstents of the Receive buffer register consist of receive  
data of bits 0 to 6 and “0” of B).  
3: If receive data is further ihe Receive shift register when data remains (when the  
receive buffer full flag is ut reading out the contents of the Receive buffer register, the  
overrun error flag of tl I/O status register is set to “1.” At this time, the data of the  
Receive shift registtransferred to the Receive buffer register and the original data of  
the Receive buffr is held.  
4: The receive bflag is cleared to “0” by reading out the Receive buffer register.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-123  
HARDWARE  
1.13 Serial I/O  
Receive interrupt operation (valid when the Serial I/O is selected)  
When receive data is transferred from the Receive shift register to the Receive buffer register after  
one-byte data is all input to the Receive shift register, an interrupt request is generated.  
* In case of the UART, an interrupt operation is performed in the same way as when the synchronous  
clock is selected.  
Figure 1.13B.11 shows a receive operation of UART and Figure 1.13B.12 shows a receive timing  
of UART.  
Synchronous clock  
RxD
Synchronous clock  
“H” level detected  
RxD (noise)  
RxD (ST)  
judge as noise  
0
Serial I/O str  
“L” level detected  
judge as start bit  
(Address 0
1
b1  
Synchronous clock  
0
b0  
quest register 1  
D
0
00FC16  
)
1
b5  
P1  
P1  
4
/RxD  
Receive shift register  
Synchronous clock  
0 0 0 0  
Serial I/O status register  
D3 D2 D
(Address 00E116  
)
1 1 1 1  
b6 b5b4 b3  
4/RxD  
Recgister  
b3(OE)=“1” when the overrun error occurs.  
b4(PE)=“1” when the parity error occurs.  
b5(FE)=“1” when the framing error occurs.  
b6(SE)=“1” when OE U PE U FE=1.  
clock  
Receive shift regi
7D6 D5D4D3  
D
2 D1D0  
Receive dattransfer  
(Address 00E016  
)
Receive buffer register  
Fig. 1.13B.11 Receive operation of UART  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-124  
HARDWARE  
1.13 Serial I/O  
Synchronous clock  
Receive started  
by falling of ST  
Test that level of ST  
is “L”  
RXD pin  
ST  
D1  
D2  
D0  
PAR  
D6  
SP  
Read into Receive shift register  
Receive buffer register  
read out signal  
Receive buffer full flag  
Receive interrupt request bit  
A
Receive enable bit  
: • Clearing by writing “0” ve interrupt request bit.  
• Clearing by acceptine interrupt.  
A
Fig. 1.13B.12 Receive timing chRT  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-125  
HARDWARE  
1.13 Serial I/O  
[UART receive setting method]  
1 Clear the Serial I/O receive interrupt enable bit (bit 5 of Interrupt control register 1) to “0.”  
2 When selecting the internal clock, set the BRG value.  
3 Set the Serial I/O control register according to Table 1.13B.7.  
4 Set the data format according to Table 1.13B.6.  
5 When using a Serial I/O receive interrupt  
[1] Clear the Serial I/O receive interrupt request bit (bit 5 of Interrupt request register 1) to “0.”  
Note: When the ordinary port is switched over to the Serial I/O port, the Serial I/O receive  
interrupt request may be set to “1.” Clear the Serial I/O receive interrupt request bit  
to “0” after one instruction or more after switching the ordinary port over to the Serial  
I/O port.  
[2] Set the Serial I/O receive interrupt enable bit to “1.”  
6 In the full-duplex data communication, set transmit data in the Transmit buffer register (TB).  
Table 1.13B.7 UART receive setting  
Serial I/O control register  
Register to be
(SIOCON: Address 00E216  
)
Item  
bit  
b0  
setting value  
BRG count source selection  
(Note 1)  
f (XIN)/4  
f (XIN)/16  
0
1
BRG output divided by 1
External clock input di16  
0
1
Synchronous clock selection  
__________  
b1  
b2  
b3  
SRDY signal output selection  
(Note 2)  
Transmit buffer e
0
1
0
1
1
0
1
Transmit interrupt request selection  
Transmit enable selection  
When the transeration is completed  
Disable (Haldata communication)  
Enable (Fx data communication)  
Receiv
Clocronous  
Pfunction as serial I/O pins (Note 3)  
b4  
Receive enable selection  
Clock asynchronous selection  
Serial I/O enable selection  
b5  
b6  
b7  
Notes 1: f(XCIN)/4 (setting value : N)/16 (setting value : 1) can be selected in the 7478 Group.  
2: When the UART is sehis bit does not function.  
3: When the internal elected, the P16/SCLK pin can be used as port P16.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-126  
HARDWARE  
1.13 Serial I/O  
1.13B.2 Pins  
The 7477/7478 group uses 4 pins for data transmit, data receive, shift clock transmit/receive and serial  
I/O transfer ready signal output. All these pins are used in common with P1. A function selection is made  
__________  
by the serial I/O enable bit (bit 7) and the SRDY output enable bit (bit 2) of the Serial I/O control register.  
The function of each pin is explained below.  
(1) Data transmit pin[TxD]  
Transmit data is output bit by bit. This pin is used in common with P15. When the transfer enable  
bit and the serial I/O enable bit of the Serial I/O control register is set to “1,” this pin becomes a serial  
I/O data output pin.  
(2) Data receive pin [RxD]  
Data is input bit by bit. This pin is used in common with P14. When the receive enable bit and the  
serial I/O enable bit of serial I/O control register are set to “1,” this pin becomes a serial I/O data  
input pin.  
(3) Shift clock transmit/receive pin [SCLK]  
2 Clock synchronous  
This pin inputs (receives from the outside) or outputs (suppe outside) the synchronous  
clock for data transmit/receive.  
When the serial I/O synchronous clock selection bit (the Serial I/O control register is  
cleared to “0” (use of internal clock), the synchronois output.  
When the same bit is set to “1” (use of internal e synchronous clock is input from the  
outside.  
2 Clock asynchronous (UART)  
When the serial I/O synchronous clock set (bit 1) of the Serial I/O control register is set  
to “1” (use of external clock), the syncclock is supplied from the outside.  
When the same bit is cleared to “0” internal clock), this pin does not function.  
Note: When the internal clock is SCLK pin can be used as port P16.  
(4) Serial transfer enable signal pin [S___R___D___Y_]  
This pin informs the outsideive enable state in the clock synchronous serial I/O.  
In case of the UART, this not function.  
_S__R___D__Y__ signal oute bit (bit 2) of Serial I/O control register is set to “1.”  
Transmit enable it 4) of Serial I/O control register is set to “1.”  
When the above 2 conditions are satisfied, the level of the pin changes from “H” to “L” at the timing  
at which data was written into the Transmit buffer register, informing the outside of a serial transfer  
enable state.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-127  
HARDWARE  
1.13 Serial I/O  
1.13B.3 Notes on use  
(1) Notes on external clock selection  
In the 7477/7478 group, either the internal clock or external clock can be selected as the synchronous  
clock. When the external clock is selected as the synchronous clock, take the following points into  
consideration.  
2 Clock synchronous serial I/O  
1 During data transmission, when setting the transmit enable bit to “1” or writing data into the  
Transmit buffer register, perform a write operation while the synchronous clock is at “H.”  
2 The transmission or the shift operation of the Receive shift register is continued while the  
synchronous clock is input to the serial I/O circuit. When the external clock is selected, stop the  
synchronous clock at the end of 8 cycles. When the internal clock is selected, the synchronous  
clock stops automatically at the end of 8 cycles.  
3 When the external clock is selected, set the “H” and “L” widths (TWH, TWL) of the pulse used  
as the external clock source to TWH, TWL [s] Q 8/(f(XIN) [Hz]). For example, when f(XIN) is 8  
MHz, use a clock of 500 kHz or less (duty ratio 50 %).  
2  UART  
Set the “H” and “L” widths (TWH, TWL) of the pulse used aternal clock source to TWH,  
TWL [s] Q 2/(f(XIN) [Hz]). For example, when f(XIN) z, use a clock of 2 MHz or  
less (duty ratio 50 %).  
(2) When the _S___R__D__Y__ output is performed in the clock nous serial I/O  
When the receive side using the external clock pn _S___R__D__Y__ output, set the receive enable bit,  
__________  
the SRDY output enable and the transmit enab1” (transmit enable).  
(3) When a serial I/O transmit interrupt oI/O receive interrupt is caused  
2  When using a serial I/O transmit
1 Clear the serial I/O transmit iequest bit (bit 6 of IR1) to “0” after one instruction or  
more after setting a value irial I/O control register.  
2 After setting in 1, set tI/O transmit interrupt enable bit (bit 6 of IE1) to “1.”  
2 When using a serial I/O interrupt  
1 Clear the serial I/O terrupt request bit (bit 5 of IR1) to “0” after one instruction or more  
after setting a vae Serial I/O control register.  
2 After setting ithe serial I/O receive interrupt enable bit (bit 5 of IE1) to “1.”  
(4) Transmit interrupt request in the transmit enable state  
After the transmit enable bit is set to “1,” the transmit buffer empty flag and the transmit shift  
completion flag are set to “1.” Accordingly, even if a transmit buffer empty state is selected or a  
termination of shift operation of the Transmit shift register is selected as a transmit interrupt source,  
an interrupt request is generated and the transmit interrupt request bit is set to “1.”  
For this reason, when using a transmit interrupt, set the transmit enable bit to “1,” clear the transmit  
interrupt request bit to “0,” and then set the transmit interrupt enable bit to “1” (enable state).  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-128  
HARDWARE  
1.13 Serial I/O  
(5) Disabling transmission after transmission of 1-byte data  
In the 7477/7478 group, it is possible to make reference to the transmit shift register completion flag  
(TSC flag) to know that data has been transmitted.  
The TSC flag is “0” during data transmission, and becomes “1” after data has been transmitted.  
Accordingly, if data transmission is disabled at the time of confirmation of a change of the TSC flag  
from “0” to “1,” data transmission can be terminated after 1-byte data is transmitted. However, the  
TSC flag is also set to “1” when the serial I/O is enabled and does not become “0” until a synchronous  
clock is generated and transmitted. For this reason, if data transmission is disabled by making  
reference to the TSC flag at this time, data is not transmitted. Make reference to the TSC flag after  
a start of data transmission.  
The change of the TSC flag from “1” to “0” has a delay of 0.5 to 1.5 cycles of the synchronous clock.  
(6) Re-setting the Serial I/O control register (SIOCON)  
Re-set the Serial I/O control register after setting both transmit enable bit and receive enable bit to  
“0” to re-set the transmit circuit and the receive circuit.  
1 Clear both transmit enable bit (TE) and receive enable bit (RE) to “0.”  
2 Set the bit 0 to bit 3 and bit 6 of the Serial I/O control regist
3 Set both transmit enable bit (TE) and receive enable bit (R”  
(It is possible to set 2 and 3 simultaneously with the ruction.)  
(7) Stopping data transmit/receive  
2 In the following cases, clear the transmit enable biransmit disable).  
To stop the transmit operation when data is ted in the clock synchronous serial I/O  
To stop the transmit operation when UARs transmitted  
To stop only the transmit operation whdata is transferred  
2 In the following cases, clear receibit (receive disable) or serial I/O enable bit to “0”  
(serial I/O disable).  
To stop the receive opern data is received in the clock synchronous serial I/O  
2 In the following casese receive enable bit to “0.”  
To stop the reration when UART data is received.  
To stop only theive operation when UART data is transferred.  
2 In the following cases, clear both transmit enable bit and receive enable bit to “0” (transfer  
disable) simultaneously.  
To stop the transmit operation and the receive operation when data is transferred in the clock  
synchronous serial I/O  
Note: When data is transferred in the clock synchronous serial I/O, it is impossible to stop only  
the transmit operation or the receive operation.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-129  
HARDWARE  
1.13 Serial I/O  
(8) Processing upon occurrence of errors  
2 When a parity error, a framing error or a summing error occurs  
When a parity error, a framing error or a summing error occurs, the flag corresponding to each  
error in the Serial I/O status register is set to “1.” These flags are not cleared to “0” automatically.  
Clear them to “0” by software.  
The parity error flag, the framing error flag and the summing error flag can be cleared to “0” by  
one of the following two methods.  
Clear the receive enable bit to “0.”  
Write arbitrary dummy data into the Serial I/O status register.  
2 Processing upon occurrence of overrun error  
An overrun error occurs when data has all been input to the Receive shift register while data is  
stored in the Receive buffer register.  
When an overrun error occurs, the data of the Receive shift register is not transferred to the  
Receive buffer register and the data of the Receive buffer register is held. At this time, even if  
the data of the Receive buffer register is read out, the data of teceive shift register is not  
transferred. Accordingly, the data of the Receive buffer registread out but the data of  
the Receive shift register cannot be read out and becomes
When an overrun error occurs, clear the overrun error flaSerial I/O status register to “0”  
and then make preparations for receiving data again.  
The overrun error flag can be cleared by one of wing methods.  
Clear the serial I/O enable bit to “0.”  
Clear the receive enable bit to “0.”  
Write arbitrary dummy data into the Status register.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-130  
HARDWARE  
1.13 Serial I/O  
1.13B.4 Related registers  
(1) Transmit/receive buffer register (TB/RB: Address 00E016)  
The Transmit/receive buffer register is written serial I/O (used in common with the clock synchronous  
serial I/O and the UART) transmit data and is read out serial I/O receive data.  
To transmit data, write this transmit data into this register.  
Receive data can be obtained by reading this register.  
Figure 1.13B.13 shows a structure of the Transmit/receive buffer register.  
Transmit/receive buffer register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Transmit/receive buffer register (TB/RB) [Addr00E016]  
At reset  
B
Function  
R
W
A value of “0016” to “F
set as transmit data
At transmit:  
At receive:  
0
to  
7
The transmit data ed  
automatically e transmit  
data into thhift register.  
When all a has been input  
into thhift register, the  
receautomatically trans-  
fereceive buffer register.  
?
Fig. 1.13B.13 Structure of Transmibuffer register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-131  
HARDWARE  
1.13 Serial I/O  
(2) Serial I/O status register (SIOSTS: Address 00E116)  
The Serial I/O status register consists of flags for representing the buffer/register state to be used  
for data transfer, and error flags.  
This register is a read-only type.  
Bit 7 is unused and “1” at a read operation.  
Figure 1.13B.14 shows a structure of the Serial I/O status register.  
Serial I/O status register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
1
Serial I/O status register (SIOSTS) [Address 00E116]  
At reset  
R
B
0
Name  
W
Function  
0 : Buffer full  
1 : Buffer empt
Transmit buffer  
empty flag (TBE)  
0
0
0
0
0
0
0
1
Receive buffer full  
flag (RBF)  
0 : Buffer e
1 : Buffer
1
2
3
4
5
6
7
Transmit shift  
completion flag (TSC)  
Overrun error flag  
(OE)  
0 : Traprogress  
1 : completed  
r  
un error  
Parity error flag  
(PE)  
o error  
Parity error  
Framing err
(FE)  
0 : No error  
1 : Framing error  
0 : (OE) U (PE) U (FE) = 0  
1 : (OE) U (PE) U (FE) = 1  
Summ
flag
llocated for this bit. This is a write  
bit. When this bit is read out, the value  
1 ✕  
Fig. 1.13B.14 Structure l I/O status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-132  
HARDWARE  
1.13 Serial I/O  
Each bit of the Serial I/O status register is described below.  
2 Transmit buffer empty flag (TBE, bit 0)  
This flag indicates the state of the Transmit buffer register.  
This bit is set to “1” after the data written in the Transmit buffer register is transferred to the  
Transmit shift register, and cleared to “0” after data is written into the Transmit buffer register.  
This flag is valid in both clock synchronous serial I/O and UART.  
2 Receive buffer full flag (RBF, bit 1)  
This flag indicates the state of the Receive buffer register.  
When 1-byte data has been all input to the Receive shift register and then the receive data has  
been transferred from the Receive shift register to the Receive buffer register, this flag is automatically  
set to “1.” When the transferred data has been read out from the Receive buffer register, the flag  
is automatically cleared to “0.”  
If receive data is further input to the Receive shift register when the receive buffer full flag is “1”  
(without reading out the contents of the Receive buffer register), the overrun error flag is set to  
“1.”  
The receive buffer full flag is valid in both clock synchronous O and UART.  
2 Transmit shift completion flag (TSC, bit 2)  
This flag indicates the state of the transmit shift oper
When transmit data has been transferred to the Traft register and then a shift operation  
has been started with the synchronous clock (tranof the 1st bit of the transmit data), this  
flag is cleared to “0.” When the shift operatioen completed (completion of transmission  
the last bit of the transmit data), the flag i1.”  
This flag is valid in both clock synchronl I/O and UART.  
2 Overrun error flag (OE, bit 3)  
This flag indicates the receive dstate.  
If receive data is further input eceive shift register when the receive buffer full flag is “1”  
(without reading out the cothe Receive buffer register), the overrun error flag is set to  
“1.”  
This flag is cleared to ny operation shown in Table 1.13B.8.  
This flag is valid in ck synchronous Serial I/O and UART.  
2 Parity error flag bit 4)  
This flag indicates a hardware check result on the even parity or odd parity in the UART.  
If there is a difference between the parity of received data and the set parity, the flag is set to  
“1.”  
This flag is cleared to “0” by any operation shown in Table 1.13B.8.  
This flag is valid in the parity enable state in UART.  
2 Framing error flag (FE, bit 5)  
This flag judges a frame synchronization error in UART.  
When the stop bit of receive data cannot be received at the set timing, the flag is set to “1.”  
At stop bit detection, only the 1st stop bit is detected but the 2nd stop bit is not checked.  
This flag is cleared by any operation shown in Table 1.13B.8.  
This flag is valid in UART only.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-133  
HARDWARE  
1.13 Serial I/O  
2 Summing error flag (SE, bit 6)  
This flag judges a serial I/O error.  
If one of an overrun error, a parity error and a framing error occurs, the flag is set to “1.”  
This flag is cleared by any operation shown in Table 1.13B.8.  
This flag is valid in both clock synchronous serial I/O and UART.  
[Error flag clear method]  
The error flags (bit 3 to bit 6) in the Serial I/O status register can be cleared to “0” by the error  
flag clear methods shown in Table 1.13B.8.  
Table 1.13B.8 Error flag clear method  
Clear the serial I/O inter- Clear the receive enable bit Write dummy data into the  
Error flag  
rupt enable bit to “0.”  
,
to “0.”  
SIOSTS.  
Overrun error flag  
Parity error flag  
Framing error flag  
Summing error flag  
,
,
,
,
,
,
,
,
×
×
×
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-134  
HARDWARE  
1.13 Serial I/O  
(3) Serial I/O control register (SIOCON: Address 00E216)  
The Serial I/O control register exerts various types of control over the serial I/O, for example, transfer  
mode, clocks and pin function selection. All the bits of this register can be read and written by  
software.  
Figure 1.13B.15 shows a structure of the Serial I/O control register.  
Serial I/O control register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O control register (SIOCON) [Address 00E216]  
At reset  
B
0
Function  
0 : f(XIN)/4  
1 : f(XIN)/16  
Name  
BRG count source  
selection bit (CSS)  
R W  
0
(
Note 1)  
1
Serial I/O  
synchronous clock  
selection bit (SCS)  
•In clock synchronous
0 : BRG output di
1 : External clo
•In UART m
0
0 : BRG d by 16  
1 : Eput  
2
3
SRDY output enable  
bit (SRDY)  
In the UART mode,  
DY pin operates  
rdinary I/O pin  
17/SRDY pin operates  
as SRDY output pin  
0
0
this bit is invalid.  
Transmit i
source
bit (T
0 : When transmit buffer  
has emptied  
1 : When transmit shift  
operation is completed  
0 : Transmit disabled  
1 : Transmit enabled  
4
nable bit (TE)  
eive enable bit (RE)  
0
0
0 : Receive disabled  
1 : Receive enabled  
Serial I/O mode  
selection bit (SIOM)  
0 : Clock asynchronous  
serial I/O (UART)  
0
1 : Clock synchronous  
7
Serial I/O enable  
bit (SIOE)  
0 : Serial I/O disabled  
(pins operates as ordinary  
0
I/O pins P14–P17)  
1 : Serial I/O enabled  
(pins operates as serial  
I/O pins RXD - SRDY)  
(Note 2)  
Notes 1:  
2:  
CIN  
In the 7478 Group, f(X )/4 (at “0”), f(XCIN )/16 (at “1”) can  
be also selected.  
Port P14–P17 are operates as the serial I/O pin only when  
the serial I/O enable bit is “1” (enable state).  
At this time, Port P17 is also used as an ordinary I/O port.  
In the UART mode, port P1 6 is used as an ordinary I/O port  
when the internal clock is selected.  
Fig. 1.13B.15 Structure of Serial I/O control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-135  
HARDWARE  
1.13 Serial I/O  
Each bit of the Serial I/O control register is described below.  
2 BRG count source selection bit (CSS, bit 0)  
This bit selects a count source to be input to the BRG.  
• “0”: f(XIN)/4  
• “1”: f(XIN)/16  
2 Serial I/O synchronous clock selection bit (SCS, bit 1)  
This bit selects a synchronous clock to be used for the serial I/O.  
In the clock synchronous serial I/O  
• “0”: The BRG output divided by 4 becomes a shift clock.  
• “1”: The external clock (P16/SCLK pin input) becomes a synchronous clock.  
In the UART  
• “0”: The BRG output divided by 16 becomes a shift clock.  
• “1”: The external clock (P16/SCLK pin input) divided by 16 becomes a synchronous clock.  
__________  
2 SRDY output enable bit (SRDY, bit 2)  
__________  
__________  
This bit selects whether the P17/S___R___D__Y__ pin is used as P17 or I/O pin SRDY or SRDY output  
disable.  
In the clock synchronous serial I/O  
__________  
• “0”: SRDY pin output disable (used as port P
__________  
_________  
• “1”: SRDY pin output enable (used as seriSRDY)  
In the UART  
The P17/_S__R___D__Y__ pin is used as P17 regf the value of this bit.  
2 Transmit interrupt request selectTIC, bit 3)  
This bit determines a source for ng a transmit interrupt request.  
• “0”: When the contents onsmit buffer register are transferred to the Transmit shift  
register, a transmit request is generated.  
• “1”: When the shift of the Transmit shift register terminates, a transmit interrupt  
request is ge
2 Transmit enabl, bit 4)  
This bit controls smit operation.  
When the serial I/O enable bit (bit 7) is “0” (serial I/O disable)  
The transmit enable bit is invalid.  
When the serial I/O enable bit (bit 7) is “1” (serial I/O disable)  
The control shown in Table 1.13B.9 is exerted.  
Table 1.13B.9 Transmit enable bit function  
Transmit buffer  
empty flag  
Cleared to “0”  
Flag function is valid.  
Transmit shift  
completion flag  
Cleared to “0”  
Transmit enable bit  
P15/TXD pin function  
1
2
0
1
Port P15  
Serial I/O data transmit pin TXD  
Flag function is valid.  
1: Bit 0 of Serial I/O status register  
2: Bit 2 of Serial I/O status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-136  
HARDWARE  
1.13 Serial I/O  
2 Receive enable bit (bit 5)  
This bit controls the receive operation.  
When the serial I/O enable bit (bit 7) is “1” (serial I/O enable), the control shown in Table  
1.13B.10 is exerted.  
When the serial I/O enable bit (bit 7) is “0” (serial I/O disable), this bit is invalid.  
Table 1.13B.10 Receive enable bit function  
1
2
Receive enable bit  
P14/RXD pin function  
Receive buffer full flag  
Each error flag  
Cleared to “0”  
0
1
Port P14  
Serial I/O data transmit pin R  
Cleared to “0”  
Flag function is valid.  
XD  
Flag function is valid.  
1: Bit 1 of Serial I/O status register  
2: Bit 3,4,5 and 6 of Serial I/O status register  
2 Serial I/O mode selection bit (bit 6)  
This bit selects the clock synchronous serial I/O or the UART.  
• “0”: UART  
• “1”: Clock synchronous serial I/O  
2 Serial I/O enable bit (bit 7)  
This bit selects whether each of the P14/RxD, P15/TxLK and P17/S___R___D___Y_ pins is used as  
a port or a serial I/O pin.  
When using the serial I/O, set this bit to “1.”  
• “0”: The respective pins become P14 to P1
__________  
• “1”: The respective pins become serial I/XD, TxD, SCLK, SRDY.  
Note: In the UART, when the internal clocted, the P16/SCLK pin can be used as port P16.  
However, for the P17/S___R___D__Y__ pin, take tng points into consideration.  
2 In the clock asynchronous ser
__________  
__________  
When using the P17/_S___R__D___Y_ pin I/O pin SRDY, set the SRDY output enable bit (bit 2) to “1.”  
2 In the UART  
The P17/S___R___D__Y__ pin is u17 regardless of the value of the serial I/O enable bit.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-137  
HARDWARE  
1.13 Serial I/O  
(4) UART control register (UARTCON: Address 00E316)  
The UART control register controls the UART transfer data format.  
Figure 1.13B.16 shows a structure of UART control register.  
UART control register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
1 1 1 1  
UART control register (UARTCON) [Address 00E316]  
At reset  
B
0
Name  
Function  
R W  
0: 8 bits  
1: 7 bits  
Character length  
selection bit (CHAS)  
0
0
0
0
0: Parity checking disabled  
1: Parity checking enabled  
1
2
3
Parity enable bit  
(PARE)  
Parity selection bit  
(PARS)  
0: Even parity  
1: Odd parity  
Stop bit length  
0: 1 stop bit  
selection bit (STPS) 1: 2 stop bits  
Nothing is allocated for these bits. Trite  
disabled bits. When these bits arhe  
values are “1.”  
4
to  
7
1
1 ✕  
Fig. 1.13B.16 Structure of UART control register  
Each bit of the UART control register is d below.  
2 Character length selection bit bit 0)  
This bit selects a data bit lene UART transfer data format.  
• “0”: 8-bit length  
• “1”: 7-bit length  
2 Parity enable bit (it 1)  
This bit selects a parity check is made.  
• “0”: No parity c(Parity error flag is invalid.)  
• “1”: Parity check (Parity error flag is valid.)  
2 Parity selection bit (PARS, bit 2)  
This bit selects a parity type of the UART transfer data format.  
• “0”: Even  
• “1”: Odd  
2 Stop bit length selection bit (STPS, bit 3)  
This bit selects a stop bit length of the UART transfer data format.  
• “0”: 1-stop bit  
• “1”: 2-stop bit  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-138  
HARDWARE  
1.14 A-D converter  
1.14 A-D converter  
In the 7470/7471/7477/7478 group, the following A-D converter is incorporated.  
……  
Analog input pins  
7470/7477 group: 4 channels (in common with Port P2)  
7471/7478 group: 8 channels (in common with Port P2)  
Conversion method Successive approximation comparison  
In the 7470/7471 group, when the A-D converter is not used, power dissipation can be suppressed by the  
VREF switch. (The 7477/7478 group is not provided with this function.)  
Figure 1.14.1 shows a block diagram of the A-D converter.  
Data bus  
b4  
b0  
(Note 2)  
A-D coer  
(Add
A-D conversion  
interrupt request  
P2  
P2  
P2  
P2  
P2  
P2  
P2  
P2  
0
1
2
3
4
5
6
7
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
0
1
2
3
4
5
6
7
ntrol circuit  
Comp
A-D conversion register  
(Address 00DA16  
)
Switch tree  
Resistor ladder  
(Note 1)  
V
REF switch (Note 2)  
V
SS  
VREF  
Notes 1. The 7470/7477 group is not provided with the P2  
4
/IN4–P27/IN7 pins.  
2. The 7477/7478 group is not provided with the VREF switch and the VREF connection selection bit  
(bit 4) of the A-D control register.  
Fig. 1.14.1 A-D converter block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-139  
 
HARDWARE  
1.14 A-D converter  
1.14.1 A-D conversion method  
The A-D conversion method is of successive approximation comparison.  
The reference voltage Vref generated internally is compared with the analog input voltage VIN which is  
input from the analog input pin (P20/IN0–P27/IN7), and its result is stored into each bit of the A-D conversion  
register (address 00DA16) successively to obtain a digital value.  
[Internal operation]  
After A-D conversion is started, the following operations are automatically performed.  
1 The contents of the A-D conversion register is set to “0016.”  
2 The most significant bit (bit 7) of the A-D conversion register is set to “1.”  
3 The reference voltage Vref is input to the comparator. The reference voltage Vref is specified by  
the contents n of the A-D conversion register and the reference voltage VREF input from the VREF  
pin.  
An expression for the reference voltage Vref is shown below.  
Relational expression between Vref and VREF  
When n = 0  
Vref = 0  
When n = 1 to 255  
Vref = VREF/256 × (n – 0.5)  
n: The values of A-D conversion register (deciman)  
4 The reference voltage Vref and the analog ltage VIN are compared with 8 times. Upon  
completion of each comparison, the comesult is stored into the A-D conversion register.  
As the A-D conversion register changeference voltage Vref changes.  
[1] Determination of the most sibit (bit 7) of the A-D conversion register (in the 1st  
comparison)  
The reference voltage Vranalog input voltage VIN are compared. Bit 7 is determined  
according to its result s.  
If Vref < VIN , = “1.”  
If Vref > VIN t 7 = “0.”  
[2] Determination of he bit 0 - 6 of the A-D conversion register (after the 2nd comparison).  
First, bit 6 of the A-D conversion register is set to “1.” Next, the reference voltage Vref is  
compared with the analog input voltage VIN. Bit 6 is determined according to its result as  
follows.  
If Vref < VIN , then bit 6 = “1.”  
If Vref > VIN , then bit 6 = “0.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-140  
 
HARDWARE  
1.14 A-D converter  
Likewise, bit 5 to bit 0 are determined according to comparison results of the 3rd to 8th  
comparisons.  
A digital value (contents of the A-D conversion register) corresponding to the analog input  
voltage VIN is determined bit by bit by these operations.  
Figure 1.14.2 shows the changes of the contents of the A-D conversion register and the reference  
voltage during A-D conversion.  
5 After completion of A-D conversion, bit 3 of the A-D control register is set to “1” and an interrupt  
request is generated concurrently with the completion of A-D conversion.  
Notes 1: An A-D conversion result can be obtained by reading the A-D conversion register after  
bit 3 of the A-D control register is set to “1.”  
2: The A-D conversion result is held in the A-D conversion register until bit 3 of the A-D  
control register is set to “1” again after completion of the next A-D conversion.  
ce voltage (Vref) [V]  
Contents of A-D conversion register  
A-D conversion start  
0 0 0 0 0 0 0 0  
0
VREF  
VREF  
512  
VREF  
4
VREF  
4
1
0 0 0 0 0
1st comparison start  
2nd comparison start  
2
VREF  
2
VREF  
2
VREF  
512  
VREF  
8
1 1  
0 0 0  
±
±
±
VREF  
512  
3rd comparison start  
8th comparison start  
1 2 1 0 0 0  
VREF  
2
VREF  
4
VREF  
8
VREF  
256  
.....  
±
±
±
±
4 5 6 7 1  
VREF  
512  
.......  
A-D conversion completion  
(8th comparison completion)  
1 2  
4 5 6 7 8  
3
Digital value corresponding  
to analog input voltage  
m
m
: Value determined by m th (m=1 to 8) result  
Fig 1.14.2 Contents of A-D conversion register and reference voltage during A-D conversion  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-141  
HARDWARE  
1.14 A-D converter  
2 Conversion time  
After a start of A-D conversion, this A-D conversion terminates after 50 cycles (12.5 µs at f(XIN)  
= 8 MHz).  
Main clock input oscillation frequency f(XIN)/2 is used as an operating clock for the A-D converter,  
so the A-D conversion time can be basically obtained by the following expression.  
2
A-D conversion time =  
× conversion cycle (50: cycles)  
f(XIN)  
Note: Because the comparator is configurated by capacity coupling, use the A-D converter in the  
following condition.  
f(XIN) >  1 MHz  
Accordingly, use the A-D converter in the condition that bit 7 of the CPU mode register  
(address 00FB16) is “0” (ordinary mode).  
[Setting method]  
In the 7470/7471 group  
1 Clear the bit of the Port P2 direction register correto the used analog input pin to “0”  
(input mode).  
2 Clear the port pull-up control bit correspondinused analog input pin to “0” (no pull-up).  
3 Clear the A-D conversion interrupt request e Interrupt request register 1 to “0.”  
Note: After A-D conversion is started, the ersion interrupt request bit is not cleared to “0”  
automatically.  
4 When using an A-D conversion intet the A-D conversion interrupt enable bit to “1” to  
provide an interrupt enable state
5 Set the A-D control register a.  
Select an analog input panalog input pin selection bit.  
Set the VREF connecttion bit to “1” and connect VREF to a ladder resistor.  
6 Wait for 1.0 µs or moEF stabilizing time.  
7 Clear the A-D convebit of the A-D control register to “0.” (With this setting, A-D conversion  
is started.)  
In the 7477/7478 group  
1 Clear the A-D conversion interrupt request bit of the Interrupt request register 1 to “0.”  
Note: After A-D conversion is started, the A-D conversion interrupt request bit is not cleared to “0”  
automatically.  
2 When using an A-D conversion interrupt, set the A-D conversion interrupt enable bit to “1” to  
provide an interrupt enable state.  
3 Set the A-D control register as follows.  
Select an analog input pin by the analog input pin selection bit.  
Clear the A-D conversion end bit to “0.” (With this setting, A-D conversion is started.)  
Don't read the contents of the A-D conversion register during A-D conversion.  
For register setting, refer to “Table 1.14.1 Setting at A-D Conversion.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-142  
HARDWARE  
1.14 A-D converter  
Processing after conversion  
1 A termination of conversion can be verified by any of the following operations.  
State of A-D conversion end bit.  
State of A-D conversion interrupt request bit.  
Branch to A-D conversion interrupt routine.  
2 Read the A-D conversion register to obtain a conversion result.  
Notes 1: Be sure to connect VREF to a ladder resistor during A-D conversion (7470/7471 group).  
2: A-D conversion is restarted at the time when the A-D conversion end bit (bit 3) of the  
A-D control register is cleared to “0” during A-D conversion.  
Table 1.14.1 Setting at A-D conversion  
Register  
Bit  
b0  
Value  
1 Port P2 direction register(P2D: Address 00C516)  
(7470/7471 group)  
Clear the bit corresponding to the used ana-  
log input pin one of pins P20/IN0 to P27/  
IN7) to “0” mode).  
Note: In group, only pins P20/IN0  
3 are available.  
0: 3 are not pulled up.  
en one of pins P20/IN0 to P23/IN3  
s used as an analog input pin  
24 to P27 are not pulled up.  
ote: When one of pins P24/IN4 to P27/IN7  
is used as an analog input pin  
(7471 group)  
b7  
b2  
b3  
2
Port P1-P4 pull-up control register (7470 group)  
Port P1-P5 pull-up control register (7471 group)  
(Address 00D116)  
3
4
Interrupt request register 1 (IR1: Address 00FC1
Interrupt control register 1 (IE1: Address 00F
7  
b7  
0: A-D conversion interrupt disabled  
1: A-D conversion interrupt enabled  
5 A-D conversion control register  
b2, b1, b0 • 000: P20/IN0  
• 001: P21/IN1  
(ADCON: Address 00D916)  
• 010: P22/IN2  
• 011: P23/IN3  
• 100: P24/IN4  
• 101: P25/IN5  
• 110: P26/IN6  
• 111: P27/IN7  
Set the value corresponding to the used ana-  
log input pin.  
Note: In the 7470/7477 group, only pins P20/  
IN0 to P23/IN3 are available.  
0: During conversion (A-D conversion is started.)  
1: VREF connection (7470/7471 group)  
Fix this bit to “0.”  
b3  
b4  
b7  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-143  
HARDWARE  
1.14 A-D converter  
1.14.2 Pins  
The pins used in the A-D converter are described below.  
(1) Analog input pin (P20/IN0 to P27/IN7) (P20/IN0 to P23/IN3 in the 7470/7477 group)  
The analog input pin is an input pin for analog voltage.  
Apply a voltage of VSS (AVSS) - VREF to this pin.  
This pin is used in common with P20 to P27 (P20 to P23 in the 7470/7477 group).  
When using the A-D converter, select a pin to be used as an analog input pin by bit 2 to bit 0 of  
the A-D control register (ADCON: address 00D916).  
Use the A-D converter in the following condition in the 7470/7471 group.  
• When the bit of the Port P2 direction register, which corresponds to the used analog input pin,  
is “0” (input mode)  
• When the bit of the Pull-up control register, which corresponds to the used analog input pin, is  
“0” (no pull-up)  
(2) Reference voltage input pin (VREF)  
The reference voltage input pin is an input pin for referege.  
Input a voltage of 0.5 VCC (>2) - VCC [V].  
(3) Analog power source input pin (AVSS)  
Analog power source input pin is an input ND.  
Apply the same potential as the VSS pin in.  
This pin is dedicated to the 56P6N-A product of the 7471/7478 group.  
1.14.3 Notes on use  
When using the A-D convertere following points into consideration.  
2 The comparator is configuapacity coupling, so the charge is lost if the clock input oscillation  
frequency is low.  
Set f(XIN) at 1 Mre during A-D conversion.  
Don’t execute the instruction during A-D conversion.  
2 Apply a voltage of 0.5 VCC (>2) - VCC [V] to the reference voltage input pin VREF.  
Note that if the reference voltage is lowered below the above valve, the A-D conversion precision will  
be degraded.  
2 Apply the same potential as that of the VSS pin to the analog power supply voltage input pin AVSS.  
The AVSS pin is dedicated to the 56P6N-A package product of the 7471/7478 group.  
2 In the 7470/7471 group, clear the bit of the Port P2 direction register which corresponds to the used  
analog input pin to “0” (input mode).  
2 In the 7470/7471 group, clear the bit of the Pull-up control register which corresponds to the used  
analog input pin to “0” (no pull-up).  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-144  
 
 
HARDWARE  
1.14 A-D converter  
1.14.4 References  
2 Definition of A-D conversion precision  
The definition of A-D conversion precision is described.  
Refer to the definition of A-D conversion precision shown in Figure 1.14.3.  
(1) Relative precision  
Zero transition error (VOT)  
Deviation of the input voltage, at which A-D conversion output data changes from “0” to “1,” from  
the ideal A-D conversion characteristics between 0 and VREF  
1
2
VREF  
256  
VOT = (VO –  
×
)/1LSB [LSB]  
Full-scale transition error (VFST)  
Deviation of the ideal A-D conversion characteristics between 0 and VREF of the input voltage  
when the A-D conversion output data changes from “255” to “25
3
2
VREF  
256  
VFST = {(VREF –  
×
) – V254}/1LSB [LSB]  
Non-linearity error  
Deviation of the real A-D conversion characteristics froal characteristics between V0 and V254  
Non-linearity error = {Vn – (1LSB × n + VO)}/B]  
Differential non-linearity error  
Deviation of the input voltage required e output data by “1” from the ideal characteristics  
between V0 and V254  
Differential non-linearity error – Vn) – 1LSB}/1LSB [LSB]  
(2) Absolute precision  
Absolute precis
Deviation of the r-D conversion characteristic from the ideal characteristics between 0 and  
VREF.  
1
2
Absolute precision = {Vn – 1LSB × (n +  
)}/1LSB [LSB]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-145  
 
HARDWARE  
1.14 A-D converter  
Output data  
Full-scale transition error  
(VFST  
)
255  
254  
3
2
LSB  
Differential non-linearity error  
1LSB at relative accuracy  
n+1  
n
Ideal A-D conversion characteristics  
between 0 and VREF  
Actual A-D conversion characteristics  
Non-linearity error  
Absolute acc
1LSB at absolute  
accuracy  
Ideal A-D conversion  
characteristics between  
and V254  
V
0
1
2
LSB  
Zero transition error (VOT  
)
1
0
V
0
V
1
V
n+1  
V
254  
VREF  
Analog voltage  
Fig. 1.14.3 Definition of A-D conrecision  
Vn: Analog input voltage tput data changes from “n” to “n + 1” (n = 0 – 254).  
V254 – V
• 1LSB =  
1LSB at relative precision  
254  
VREF  
256  
• 1LSB =  
(V) 1LSB at absolute precision  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-146  
HARDWARE  
1.14 A-D converter  
1.14.5 Related registers  
(1) A-D conversion register (AD: Address 00DA16)  
The A-D conversion register stores A-D conversion results. This register is a read-only type.  
Figure 1.14.4 shows a structure of the A-D conversion register.  
A-D conversion register  
b7 b6 b5 b4 b3 b2 b1 b0  
A-D conversion register (AD) [Address 00DA16]  
At reset  
R
B
Function  
W
0
to  
7
This is a read-only register to store A-D  
conversion results.  
?
Fig. 1.14.4 Structure of A-D conversion register  
(2) A-D control register (ADCON: Address 00D9
The A-D control register consists of bits that rious types of control over the A-D converter.  
Figure 1.14.5 shows a structure of the ol register.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-147  
 
HARDWARE  
1.14 A-D converter  
A-D control register  
b7 b6 b5 b4 b3 b2 b1 b0  
0
A-D control register (ADCON) [Address 00D916]  
At reset  
R
W
B
0
Name  
Function  
b2 b1 b0  
A-D input selection  
bits  
0 0 0 : P20/IN0  
0 0 1 : P21/IN1  
0 1 0 : P22/IN2  
0 1 1 : P23/IN3  
1 0 0 : P24/IN4  
1 0 1 : P25/IN5  
1 1 0 : P26/IN6  
1 1 1 : P27/IN7  
0
1
2
0
(Note 1)  
0
1
A-D conversion end  
3
4
0 : Under conversion  
1 : End conversion  
bit  
(Note 2)  
VREF connection  
0 : The VREF pin is  
separated from the  
comparison voltag
The 7477/7478 group is not  
selection bit  
0
generator.  
1 : The VREF pi
connected
provided with this bit.  
This bit is undefined at  
reset.  
compari
gene
Nothing is allocated for thes
These are write disabled
undefined at reading.  
5, 6  
7
?
0
? ✕  
Fix this bit to “0.”  
0 0  
Notes 1: Since the group is not provided with pins  
P24–Pet.  
2: •A-n is started by setting bit 3 to “0.”  
nto bit 3 is valid. Even if “1” is written into  
bit is not set to “1.” Accordingly, when writing a  
nto the A-D control register without affecting bit 3,  
bit 3 to “1.”  
Fig. 1.14.5 Structure of A-D egister  
Each bit of the A-D cister is described below.  
Analog input pin selection bit (Bit 2 to 0)  
These bits select an analog input pin.  
Pins that are not used as analog input pins of P2 function as programmable I/O ports (input ports  
in the 7477/7478 group).  
A-D conversion end bit (Bit 3)  
This bit indicates the operation state of the A-D converter.  
This bit is cleared to “0” during A-D conversion and set to “1” upon termination of A-D conversion.  
A-D conversion is started by clearing this bit to “0.” (At the time when the bit is cleared to “0” during  
A-D conversion, A-D conversion is restarted.)  
VREF connect selection bit (Bit 4) (The 7477/7478 group is not provided with this bit.)  
This bit connects the VREF pin to a ladder resistor.  
When using the A-D converter, be sure to set this bit to “1.”  
When the A-D converter is not used, power consumption can be reduced by clearing this bit to “0.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-148  
HARDWARE  
1.15 Reset  
1.15 Reset  
_________________________  
The microcomputer is reset by applying the “L” level to the RESET pin for 2 µs or more when the power  
___________________________  
source voltage is within the standard value range. After that, when the “H” level is applied to the RESET  
pin, the reset state of the microcomputer is released, so that the program is run starting with the reset  
vector address.  
1.15.1 Operation description  
Figure 1.15.1 shows an internal processing sequence after reset release.  
V
CC  
X
IN  
Internal clock φ  
2 µs or more  
RESET  
32768 counts of XIN pin input signal  
Internal reset  
Address bus  
Data bus  
FFFE16 FFFF16  
AL,AH  
A
L
A
H
SYNC  
Internal cl
U reference clock frequency = f(XIN)/2 (ordinary mode immediately  
after reset release)  
L :  
Content of reset vector address  
CPU operation code fetch cycle  
YNC :  
(This is a internal signal, so that it cannot be observed from the external unit.)  
Undefined  
:
Fig. 1.15.1 Internal processing sequence after reset release  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-149  
 
 
HARDWARE  
1.15 Reset  
When the “H” level is applied to the RESET pin at the reset state, the contents of timer 3 and timer 4 and  
the count source are automatically set as shown in Table 1.15.1, so that the internal reset state is  
released by an overflow of timer 4.  
Table 1.15.1 Timer 3 and 4 at reset  
Item  
Setting value  
Timer 3  
FF16  
Timer 4  
0716  
overflow of  
timer 3  
count source  
f(XIN)/16  
_________________________  
After the “H” level is applied to the RESET pin, only the main clock oscillates regardless of the oscillation  
state precedent to the reset state, so that the microcomputer starts to operate in the ordinary mode. The  
XCIN pin and the XCOUT pin become P50 and P51, respectively.  
After the reset state is released, the microcomputer runs the program starting with the high-order address  
corresponding to the contents of address FFFF16 and the low-order address corresponding to the contents  
of address FFFE16.  
Note: The 7470/7477 group is not provided with the XCIN and XCOUT
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-150  
HARDWARE  
1.15 Reset  
1.15.2 Internal status immediately after reset release  
Figure 1.15.2 shows an internal register status immediately after reset release.  
Address  
(C116)•••  
(C316)•••  
0016  
0016  
0016  
(1) Port P0 direction register (P0D)  
(2) Port P1 direction register (P1D)  
(3) Port P2 direction register (P2D)  
(The 7477/7478 group is not provided.)  
(4) Port P4 direction register (P4D)  
(C516)•••  
(C916)•••  
0 0 0 0  
(D016)•••  
(D116)•••  
(D416)•••  
(D916)•••  
(5) Port P0 pull-up control register  
0016  
(6) Port P1–P5 pull-up control register  
(In the 7470/7477 group, port P1–P4 pull-up control register)  
(7) Edge polarity selection register (EG)  
0
0 0 0 0 0  
0 0 0 0 0  
0 1 0 0 0  
0016  
(8) A-D control register (ADCON)  
(9) Serial I/O mode register (SM)  
(The 7477/7478 group is not provided.)  
(10) Serial I/O status register (SIOSTS)  
(The 7470/7471 group is not provided.)  
(11) Serial I/O control register (SIOCON)  
(The 7470/7471 group is not provided.)  
(12) UART control register (UARTCON)  
(The 7470/7471 group is not provided.)  
(13) Timer 3 (T3)  
(DC
•••  
1 0  
0 0 0 0 0 0  
0016  
1 1 0 0 0 0  
FF16  
E316)•••  
(F216)•••  
1
1
(14) Timer 4 (T4)  
0716  
(F316)•••  
(F716)•••  
0 0  
(13) Timer FF register (TF)  
(14) Timer 12 mode register (T
(15) Timer 34 mode regist
(F816)•••  
0016  
0016  
(F916)•••  
(FA16)•••  
(16) Timer mode reg)  
(17) CPU mode PUM)  
(18) Interrupt egister 1 (IR1)  
0 0  
0 0  
(FB16)•••  
0 0 0 0  
0 0 0  
0 0 0  
0 0 0 0  
0 0 0  
(FC16)•••  
(FD16)•••  
(19) Interrupt request register 2 (IR2)  
(20) Interrupt control register 1 (IE1)  
(21) Interrupt control register 2 (IE2)  
(FE16)•••  
(FF16)•••  
0 0 0  
0 0 0 0  
0 0 0  
(22) Program counter (PCH)  
Contents of address FFFF16  
Contents of address FFFE 16  
1
(PCL)  
(23) Processor status register (PS)  
: The contents are undefined at reset release.  
Note : Since the contents of the registers and RAM not mentioned above are undefined at reset,  
initialize them by software.  
The bits are different depending on the product. Refer to the structure of each register.  
Fig. 1.15.2 Internal status immediately after reset release  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-151  
 
HARDWARE  
1.15 Reset  
1.15.3 Notes on use  
1. The timer continues to perform a count operation after reset release.  
2. After the reset state is released, the microcomputer runs the program starting with the high-order  
address corresponding to the contents of address FFFF16 and the low-order address corresponding to  
the contents of address FFFE16.  
3. After the “H” level is applied to the RESET pin, only the main clock oscillates regardless of the  
oscillation state precedent to the reset state, so that the microcomputer starts to operate in the  
ordinary mode. The XCIN pin and the XCOUT pin become P50 and P51, respectively.  
(The 7470/7477 group is not provided with the XCIN and XCOUT pins.)  
4. When the STP instruction is executed in the ordinary mode, I/O ports are held in the state just  
precedent to a stop of system clock oscillation. After that, the I/O ports are put into the input mode  
after a reset operation of the microcomputer is performed, so that they go to the high-impedance state.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-152  
 
HARDWARE  
1.16 Oscillation circuit  
1.16 Oscillation circuit  
The 7470/7471/7477/7478 group has the following circuits to obtain clocks required for operations.  
• 7470/7477 group: Main clock oscillation circuit  
• 7471/7478 group: Main clock oscillation circuit and sub-clock oscillation circuit  
1.16.1 Oscillation circuit  
(1) Clock generating circuit  
The clock generating circuit controls the oscillation of the oscillation circuit and a generated clock  
(internal clock φ) is supplied to the CPU and peripheral units.  
Figure 1.16.1 shows a clock generating circuit block diagram.  
Interrupt disable flag I  
Interrupt request  
Reset  
Internal system clock selection bit (CM  
Main clock (XIN–XOUT) stop bit (CM  
7
6
)
)
Q
S
R
STP instruction  
XIN  
XCIN  
XOUT  
Q
R
1/2  
1/8  
WIT
Internal system clock  
selection bit (CM  
XCOUT  
7)  
1/2  
Res
Internal clock φ  
S
R
Timer 3 count  
source  
selection bits  
CNTR1  
STP  
instruction  
T34M  
T34M  
1
2
Timer 1 or timer 2  
overflow signal  
Timer 3 count stop bit  
(T34M  
0
)
Timer 3  
Timer 4 count source selection bits  
T34M  
T34M  
4
5
Timer 4 count stop bit  
(T34M  
3)  
.
Timer 4  
Note : The 7470/7477 group is not provided with pins XCIN and XCOUT.  
Fig. 1.16.1 Clock generating circuit block diagram  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-153  
 
HARDWARE  
1.16 Oscillation circuit  
This oscillation circuit can stop and start oscillation.  
• XIN-XOUT oscillation circuit ........................ Main clock f(XIN)  
• XCIN-XCOUT oscillation circuit .................... Sub-clock f(XCIN)  
There are two oscillation circuits (the main clock only in the 7470/7477 group) as shown above. The  
clock obtained by dividing a signal input to the clock input pin XIN or XCIN becomes an internal clock  
+
φ
which is used as a reference for operations.  
+: The internal clock φ varies with the operation modes of the microcomputer.  
• Ordinary mode ................ Signal input to the XIN pin divided by 2  
• Low-speed mode............. Signal input to the XCIN pin divided by 2  
(2) Oscillation circuit using a ceramic resonator or a crystal oscillator  
An oscillation circuit can be formed by connecting a ceramic resonator or a crystal oscillator between  
the XIN pin and the XOUT pin and between the XCIN pin and the XCOUT pin.  
For a circuit example, refer to “Chapter 2 Application, 2.7 Oscillation Circuit.”  
Please ask the oscillator maker for information on circuit constants and then set the value recommended  
by the maker.  
(3) External clock input circuit  
It is also possible to supply a clock to the oscillation circuit frutside.  
As an external clock to be input to the XIN and XCIN pins, use signal with a duty ratio of 50 %.  
At this time, make the XOUT and XCOUT pins open.  
For a circuit example, refer to “Chapter 2 Applicatiocillation Circuit.”  
Note: Because the 7470/7477 group is not provided CIN and XCOUT pins, the sub-clock f(XCIN)  
is not available.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-154  
HARDWARE  
1.16 Oscillation circuit  
1.16.2 Sub-clock oscillation circuit  
In the 7471/7478 group, the sub-clock f(XCIN) is available when the P50/XCIN pin and the P51/XCOUT pin  
are used as the XCIN pin and the XCOUT pin.  
The power supplied to the sub-clock oscillation circuit is given through a voltage reduction regulator to  
reduce power dissipation in the sub-clock mode. That is, power is reduced by reducing the voltage applied  
to the VCC pin by the voltage reduction regulator. The supply voltage to this oscillation circuit can be set  
to one of the 2 stages of high power mode and low power mode in bit 5 of the CPU mode register.  
Notes 1: When using the sub-clock, set f(XCIN) < 50 kHz < f(XIN)/3.  
2: When using the sub-clock f(XCIN) in the 7471/7478 group, set the P50-P53 pull-up control bit (bit  
6) of the P1-P5 pull-up control register to “0” and disconnect the pull-up transistor of the P50/XCIN  
pin and P51/XCOUT pin.  
3: When using the sub-clock as the internal clock φ, use it in one of the following states.  
Fix the XCOUT drive capacity to the high power mode (set the XCOUT drive capacity selection  
bit of the CPU mode register to “1”).  
When fixing the XCOUT drive capacity to the Low power mode (set the XCOUT drive capacity  
+
selection bit of the CPU mode register to “0”), lower the value he resistor Rd in the sub-  
clock oscillation circuit to a level at which the oscillation odoes not stop.  
+ “Resistor Rd”: Refer to the circuit example in “Chapter 2 on, 2.7 Oscillation circuit.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-155  
 
HARDWARE  
1.16 Oscillation circuit  
1.16.3 Oscillation operation  
(1) Oscillation operation  
The microcomputer is put into the ordinary mode at reset release. At this time, only the main clock  
oscillates and the P50/XCIN pin and the P51/XCOUT pin function as input ports P50 and P51.  
Notes 1: The 7470/7477 group is not provided with XCIN and XCOUT pins.  
2: When using the sub-clock f(XCIN) in the 7471/7478 group, set the P50-P53 pull-up control bit  
(bit 6) of the P1-P5 pull-up control register to “0” and disconnect the pull-up transistor of the  
P50/XCIN pin and P51/XCOUT pin.  
2 Ordinary mode  
The clock resulting from dividing a signal input to the XIN pin by 2 becomes internal clock φ.  
Changing the mode to the low-speed mode (7471/7478 group)  
Execute the following procedure.  
1 Set the P50, P51/XCIN, XCOUT selection bit (bit 4) of the CPU mogister to “1” (XCIN, XCOUT).  
2 Set the XCOUT drive capacity selection bit (bit 5) of the CPU gister to “1” (High power).  
3 Generate oscillation stabilizing wait time of f(XCIN) by so
4 Set the system clock selection bit (bit 7) of the CPU mster to “1” f(XCIN). At that time,  
set the XCOUT drive capacity selection bit to “0” (loas required.  
2 Low-speed mode (7471/7478 group)  
The clock resulting from dividing a signal inpuXCIN pin by 2 becomes internal clock φ.  
In the low-speed mode, a low power dissipatiion can be attained by setting the main clock  
(XIN-XOUT) stop bit (bit 6) of the CPU moter to “1.”  
Changing the mode to the ordina
Execute the following procedure.  
1 Clear the main clock (XIN-Xp bit (bit 6) of the CPU mode register to “0” (oscillate).  
2 Generate oscillation stabit time of f(XIN) by software.  
3 Clear the system clocn bit (bit 7) of the CPU mode register to “0” f(XIN).  
Notes 1: Switch between the mode and the low-speed mode after the oscillation of the main clock  
and the sub-cloces stable. For the oscillation stablizing time, ask the oscillator maker for  
information.  
2: Use the low-speed mode in one of the following states.  
Fix the XCOUT drive capacity to the high power mode (set the XCOUT drive capacity selection  
bit of the CPU mode register to “1”).  
When fixing the XCOUT drive capacity to the Low power mode (clear the XCOUT drive capacity  
+
selection bit of the CPU mode register to “0”), lower the value of the resistor Rd in the sub-  
clock oscillation circuit to a level at which the oscillation of f(XCIN) does not stop.  
+ Resister Rd: Refer to a example of circuit in “chapter 2 application, 2.7 Oscillation circuit.”  
3: When using the sub-clock especially, it takes a long time until the oscillation becomes stable.  
When the ordinary mode is changed to the stop mode while the sub-clock is in the oscillation  
state and then the ordinary mode is restored from the stop mode, the oscillation of the sub-clock  
is not stabilized even if the main clock becomes stable and the CPU is restored.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-156  
 
HARDWARE  
1.16 Oscillation circuit  
(2) Oscillation operation in the stop mode  
After the stop mode is provided by execution the STP instruction, all oscillation stops. After that,  
when the previous mode is restored from the stop mode by inputting the reset signal or generating  
a restoration interrupt request, the oscillation starts.  
For the details of the stop mode, refer to “1.17.1 Stop mode.”  
(3) Oscillation operation in the wait mode  
When the wait mode is provided by execution the WIT instruction, the internal clock φ supplied to the  
CPU stops.  
When the previous mode is restored from the wait mode by inputting the reset signal or generating  
an interrupt request, the supply of internal clock φ to the CPU starts.  
For the details of the wait mode, refer to “1.17.2 Wait mode.”  
(4) State transitions of internal clock  
Refer to “1.18 State transitions.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-157  
HARDWARE  
1.16 Oscillation circuit  
1.16.4 Oscillation stabilizing time  
In the oscillation circuit using a ceramic resonator or a crystal oscillator, the oscillation becomes unstable  
for a certain period at a start of oscillation of the oscillator. The time required for stabilization of oscillation  
is called oscillation stabilizing time.  
A proper oscillation stabilizing wait time fit for the used oscillation circuit is required. For the oscillation  
stabilizing time, ask the oscillator maker for information.  
(1) Oscillation stabilizing wait time at power on  
In the 7470/7471/7477/7478 group, the oscillation stabilizing wait time for 32768 counts of the XIN  
pin input signal is automatically generated in the period from power on to reset release.  
Figure 1.16.2 shows a oscillation stabilizing wait time after power on.  
2.7V  
V
CC  
2 µs or more  
RESET  
X
IN  
Oscillation stabilizing wait time  
32768 counts of XIN pin input sig
Internal reset  
ase internal reset state  
: At f(XIN) = (2.2 VCC – 2) MHz  
Fig. 1.16.2 Oscillation stabait time after power on  
(2) Oscillation stabiliziait time at recovery from stop mode  
In the stop mode, oscillation stops. When the previous mode is restored from the stop mode by  
inputting a reset signal or generating an interrupt, the oscillation stabilizing wait time for 32768  
counts of the XIN pin input signal or the XCIN pin input signal is automatically generated in the same  
way as the power on time.  
At recovery by reset, f(XIN) becomes a count source that generates oscillation stabilizing wait time.  
At recovery by interrupt, the count source of timer 3 set immediately before execution of the STP  
instruction becomes a count source that generates oscillation stabilizing wait time. Note that when  
f(XIN) is the system clock, the oscillation of the f(XCIN) side may not be stabilized after the lapse  
of this oscillation stabilizing wait time.  
For the details of the stop mode, refer to “1.17.1 Stop mode.”  
Note: In the 7470/7477 group, f(XCIN) is not available.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-158  
 
HARDWARE  
1.16 Oscillation circuit  
1.16.5 Notes on use  
1. When inputting the external clock to the XIN pin or the XCIN pin, use a pulse signal with a duty ratio  
of 50 % as an input signal. At this time, make the XOUT pin and the XCOUT pin open.  
Refer to a example of circuit in “Chapter 2 application, 2.7 Oscillation circuit.”  
2. When using the sub-clock f(XCIN) in the 7471/7478 group, set f(XCIN) < 50 kHz < f(XIN)/3.  
3. In the 7471/7478 group, switch between the ordinary mode and the low-speed mode after the oscillation  
of the main clock and the sub-clock becomes stable. For the oscillation stabilizing time, ask the  
oscillator maker for information.  
4. Use the low-speed mode in one of the following states.  
• Fix the XCOUT drive capacity to the high power mode (Set the XCOUT drive capacity selection bit  
of the CPU mode register to “1”).  
• When fixing the XCOUT drive capacity to the Low-power mode (clear the XCOUT drive capacity  
+
selection bit of the CPU mode register to “0”), lower the value of tsistor Rd in the sub-clock  
oscillation circuit to a level at which the oscillation of f(XCIN) dtop.  
+ Resister Rd: Refer to a example of circuit in “Chapter 2 an, 2.7 Oscillation circuit.”  
5. When using the sub-clock f(XCIN) in the 7471/7478 groupa long time until the oscillation  
becomes stable.  
When the ordinary mode is changed to the stop mode sub-clock is in the oscillation state and  
then the ordinary mode is recovered from the stop moscillation of the sub-clock is not stabilized  
even if the main clock becomes stable and the estored.  
Note: In the 7470/7477 group, the sub-clock fnot available because neither XCIN pin nor XCOUT  
pin is provided.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-159  
 
HARDWARE  
1.17 Low-power dissipation function  
1.17 Low-power dissipation function  
The 7470/7471/7477/7478 group is provided with a function to put the CPU into a wait state with low-power  
dissipation by stopping the CPU operation by softoware.  
The low-power dissipation function has the following 2 modes.  
Stop mode by a STP instruction  
Wait mode by a WIT instruction  
Figure 1.17.1 shows the operation states of the microcomputer at low-power dissipation and Figure 1.17.2  
shows a state transition.  
WIT
Oscillation stops Oscillperating  
STP mode  
Stop  
Stop  
CPU  
Peripheral device  
Timer  
A-D converter  
Serial I/O  
Operating  
n using an  
ternal clock,  
timer and serial  
I/O are operating.  
External i
Operating  
Operating  
Fig. 1.17.1 Operation states of the microcomputer at low-power dissipation  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-160  
 
HARDWARE  
1.17 Low-power dissipation function  
STP mode  
WIT mode  
Interrupt  
Interrupt  
Reset  
Reset  
Registers except timers  
3, 4 and RAM are held.  
Only RAM is held and the  
other registers are reset.  
Registers and RAM are  
held.  
Oscillation stabilizing wait time:  
32768 counts of the specified  
count source are counted  
Oscillation stabilizing wait time :  
f(XIN)/16 is counted  
No oscillation stabilizing wait time  
Reset release  
(Program execution  
from reset vector)  
Interrupt processing  
Proceed to the next  
address of the STP or  
WIT instruction  
(Program is continued)  
Fig. 1.17.2 State transition at low-power dissip
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-161  
HARDWARE  
1.17 Low-power dissipation function  
1.17.1 Stop mode  
To switch to the stop mode, execute the STP instruction. In the stop mode, the oscillation of both f(XIN)  
and f(XCIN) stops and the internal clock φ stops.  
Accordingly, the CPU stops and the peripheral units also stop. This leads to a reduction of power dissipation.  
Note: In the 7470/7477 group, the f(XCIN) is not available.  
(1) State of stop mode  
Table 1.17.1 shows a state of stop mode.  
Note: When the STP instruction is executed, “FF16” and “0716” are automatically set in timer 3 and  
timer 4, respectively.  
Table 1.17.1 State of stop mode  
Item  
Oscillation  
State of stop mode  
Stop  
CPU  
Stop  
tate at execution STP  
instruction is held.  
When internal count source selected : Stop  
When external count source selected : Operate  
Internal clock mode: Stop  
External clock mode: Operate  
Held  
I/O port P0
Timer  
S
PU register  
Held (except timer3, timer4)  
Held  
+
+ CPU register :  
The following 6 registers are incorporated in the  
CPU.  
• Accumulator  
• Index register X  
• Index register Y  
• Stack pointer  
• Program counter  
• Processor status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-162  
 
HARDWARE  
1.17 Low-power dissipation function  
(2) Releasion of stop mode  
The stop mode is released by inputting a reset signal or generating an interrupt request. There is a  
difference in restore processing from the stop mode between the use of reset input and the use of  
interrupt.  
2 Recovery by reset input  
____________________  
The microcomputer is reset by applying the "L" level to the RESET pin for 2 s or more in the stop  
mode, thereby releasing the stop mode.  
After the stop mode is released, oscillator starts. (At this time, the inside is in the reset state.)  
The reset state is released after 32768 counts of the XIN pin input after the “H” level is applied to  
the RESET pin.  
At a start of oscillation of the oscillator, the oscillation is unstable. It takes time before stabilization  
of oscillation (oscillation stabilizing time). The oscillation stabilizing wait time is secured by the time  
for holding this internal reset state.  
For the details of the reset, Refer to “1.15 Reset.”  
Note: When the stop mode is released, the contents of the RAM e reset are held. However,  
the contents of the CPU register and the SFR cannot but are reset.  
Figure 1.17.3 shows the oscillation stabilizing wait time at from stop mode by reset input.  
Stop mode  
V
CC  
2 µs
cillation stabilizing wait time : 32768 counts of XIN pin input signal  
RESET  
X
IN  
Undefined  
X
IN: in higstate  
(Note)  
XOUT: “
Execute STP ins
Recovered by reset input  
Note: No waveform may binput to XIN (in low-speed mode).  
Fig. 1.17.3 oscillation stabilizing wait time at recovery from stop mode by reset input  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-163  
HARDWARE  
1.17 Low-power dissipation function  
2 Recovery by interrupt  
When an interrupt request is generated in the stop mode, this stop mode is released and oscillation  
is started. The interrupt sources that are available for recovery are shown below.  
INT0, INT1  
CNTR0, CNTR1  
Serial I/O at using external clock  
Timer (timer 1, timer 2) at using external clock  
Key input (key on wake up)  
However, when the above interrupt sources are used for recovery from the stop mode, perform the  
following setting and then execute the STP instruction to permit an interrupt to be used.  
[Register setting]  
1 Clear the interrupt enable bit of timer 3 and timer 4 to “0.” (Disabled)  
2 Set the count stop bit of timer 3 and timer 4 to “1.” (Stop)  
3 Select a count source of timer 3 in consideration of the oson stabilizing time of the  
oscillator.  
Note: Re-set the previous count source at recovery.  
4 Clear the interrupt request bit of the interrupt source ed for recovery to “0.”  
5 Set the interrupt enable bit of the interrupt source d for recovery to “1.”(Enabled)  
6 Clear the count stop bit of timer 3 and timer 4 tount starts)  
7 When using the sub-clock, set the XCOUT drive to high power. (Refer to “1.16.2 Sub-  
clock oscillation circuit.”)  
8 Clear the interrupt disable flag I to “0.” (
Note: In the stop mode, A-D conversion stops. Accordingly, execute the STP instruction  
after termination of the A-D cn.  
For the details of the Interrupt“1.11 Interrupts.”  
At a start of oscillation of the r, the oscillation is unstable. It takes time before stabilization  
of oscillation (oscillation stime). At recovery by interrupt, the waiting time for the supply  
+1  
+2  
of internal clock φ to thtimer 3 and timer 4 is automatically generated . The oscillation  
stabilizing time of thclock side is secured by this waiting time.  
Figure 1.17.4 shoample of restoration sequence from the stop mode by the INT0 interrupt.  
+1: When the STP instruction is executed, “FF16” and “0716” are automatically set in the counter  
and latch of timer 3 and the counter and latch of timer 4, respectively.  
+2: The count source is supplied to timer 3 immediately after a start of oscillation, thereby starting  
a count operation. The supply of internal clock φ to the CPU is started when timer 4 overflows.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-164  
HARDWARE  
1.17 Low-power dissipation function  
When recovering from stop mode by using INT0 interrupt (rising edge selected)  
Oscillation stabilizing wait time  
2048 counts of timer 3  
count source (Note)  
Stop mode  
X
IN or XCIN  
Undefined  
XIN, XCIN ; in high-impedance stat  
XOUT ; “H”  
INT  
0 pin  
Count down  
“FF16”  
“0716”  
Timer 3  
Timer 4  
interrupt  
INT  
0
request bit  
Operating  
Operating  
Stop  
ating  
Peripheral device  
CPU  
Stop  
Operating  
•INT  
0
inte
signal
(INT
•Timer 4 overflow  
•Start supplying internal  
clock φ to CPU  
•STP instruction  
execution  
res)  
start  
count start  
•Accept INT  
request  
0 interrupt  
Note: The count source iurce of timer 3 before execution of the STP instruction.  
Fig. 1.17.4 Example of reequence from stop mode by INT0 interrupt  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-165  
HARDWARE  
1.17 Low-power dissipation function  
1.17.2 Wait mode  
To switch to the wait mode, execute the WIT instruction. In the wait mode, oscillation is continued but the  
internal clock φ stops. Accordingly, the CPU stops but the peripheral units operate since oscillation is  
continued.  
(1) State of wait mode  
Table 1.17.2 shows a state of wait mode.  
Table 1.17.2 State of wait mode  
Item  
Oscillation  
State of wait mode  
Operate  
CPU  
Stop  
State at execution WIT instruc-  
I/O port P0 to P5  
tion is held.  
Operate  
erate  
d  
Timer  
Serial I/O  
RAM  
SFR  
CPU regis
eld  
Held  
CPU
Thg 6 registers are incorporated in the  
ccumulator  
Index register X  
• Index register Y  
• Stack pointer  
• Program counter  
• Processor status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-166  
 
HARDWARE  
1.17 Low-power dissipation function  
(2) Releasion of wait mode  
The wait mode is released by inputting a reset signal or generating an interrupt request. There is a  
difference in restore processing from the wait mode between the use of reset input and the use of  
interrupt.  
  
Recovery by reset input  
________________  
The microcomputer is reset by applying the “L” level to the RESET pin for 2 s or more in the wait  
mode, thereby releasing the wait mode.  
After the wait mode is released by inputting the reset signal, the supply of internal clock φ to the  
CPU is started.  
The reset state is released after 32768 counts of the XIN pin input signal after the “H” level is  
________________  
applied to the RESET pin.  
For the details of the reset, refer to “1.15 Reset.”  
Note: When the wait mode is released, the contents of the RAM before reset are held. However,  
the contents of the CPU register and the SFR cannot be held but are reset.  
Figure 1.17.5 shows the reset input time.  
Wait mode  
V
CC  
abilizing wait time : 32768 counts of XIN pin input signal  
2 µs or more  
RESET  
X
IN  
(Note)  
Execute WIT instruction  
ecovered by reset input  
Note: No waveform may input to XIN (in low-speed mode).  
Fig. 1.17.5 Reset input time  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-167  
HARDWARE  
1.17 Low-power dissipation function  
2 Recovery by interrupt  
In the wait mode, oscillation is continued. Accordingly, as soon as the wait mode is released, an  
instruction is executed.  
When an interrupt request is generated in the wait mode, this wait mode is released and the supply  
of internal clock φ to the CPU is started. At the same time, the interrupt request used for recovery  
is accepted, so that the interrupt processing routine is executed.  
The interrupt sources that are available for recovery are shown below.  
INT0, INT1  
CNTR0, CNTR1  
Serial I/O  
A-D conversion  
Timer 1 to timer 4  
Key input (key on wake up)  
However, when the above interrupt sources are used for recoverhe wait mode, perform the  
following setting and then execute the WIT instruction to perterrupt to be used.  
[Register setting]  
1 Clear the interrupt request bit of the interrupt sourcsed for recovery to “0.”(No request)  
2 Set the interrupt enable bit of the interrupt souused for recovery to “1.”(Enabled)  
3 Clear the interrupt disable flag I to “0.” (Ena
For the details of the Interrupt, refer to “1rupts.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-168  
HARDWARE  
1.17 Low-power dissipation function  
1.17.3 Notes on use  
[Notes on use of the stop mode]  
2 Clock after recovery  
After recovery from the stop mode by interrupt, the contents of the CPU mode register before  
execution of the STP instruction are held. Accordingly, if both f(XIN) and f(XCIN) were oscillating  
before execution of the STP instruction, the oscillation of both f(XIN) and f(XCIN) is restarted after  
recovery by interrupt.  
In the above case, if f(XIN) is set as the system clock, the oscillation stabilizing wait time for 32768  
counts of the XIN pin input signal is secured at recovery from the stop mode.  
Note that the f(XCIN) clock may not be stabilized even after the lapse of the f(XIN) oscillation  
stabilizing wait time.  
Note: In the 7470/7477 group, the f(XCIN) is not available.  
2 Interrupt processing after recovery  
After recovery from the stop mode, the interrupt request bit and timer 4 is “1.” Clear  
it to “0” if necessary. The interrupt request bit of timer 1 anmay also be set to “1.” Clear  
it to “0” as required.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-169  
 
HARDWARE  
1.17 Low-power dissipation function  
1.17.4 Related register  
(1) CPU mode register (Address 00FB16)  
+1  
+2  
The CPU mode register consists of a stack page selection bit and system clock control bits  
.
+1: In series having a RAM capacity of 192 bytes or less, this bit is not used because no RAM is  
located on page 1. (Be sure to set this bit to “0.”)  
+2: In the 7470/7477 group, which is not provided with a sub-clock generating circuit, this bit is not  
used. (Be sure to set this bit to “0.”)  
Figure 1.17.6 shows a structure of CPU mode register.  
CPU mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
0 0  
CPU mode register (CPUM) [Address 00F
B
Name  
F
At reset R W  
0
Fix these bits to “0.”  
0, 1  
0area  
1 area  
Stack page selection  
bit  
2
0
(Note 1)  
3
4
Nothing is allocbit. This is write  
enabled bit aned at reading.  
?
0
? ✕  
P5  
0, P51/
0: P50, P51  
selecti
1: XCIN, XCOUT (Note 2)  
0: Low  
1: High  
X
Capacity  
0
0
5
(Note 2)  
(Note 2)  
ock (XIN–XOUT  
bit  
)
0: Oscillates  
1: Stops  
Internal system clock  
selection bit  
0: XIN–XOUT selected  
(Ordinary mode)  
1: XCIN–XCOUT selected  
(Low speed mode)  
(Note 2)  
0
Notes 1:  
2:  
In the products having a RAM capacity of 192 bytes or  
less, set this bit to “0.”  
Since the 7470/7477 group is not provided with the  
sub-clock generating circuit, f(XCIN) cannot be used.  
Fix these bits to “0.”  
Fig. 1.17.6 Structure of CPU mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-170  
 
HARDWARE  
1.18 State transitions  
1.18 State transitions  
The operation modes of the 7470/7471/7477/7478 group are classified as follows.  
Reset  
Oridinary mode  
Low-speed mode (7471/7478 group)  
Sub-clock mode (7471/7478 group)  
Stop mode  
Wait mode  
Figure 1.18.1 shows a state transitions.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-171  
 
HARDWARE  
1.18 State transitions  
Reset  
Wait mode  
State E  
Stop mode  
State F  
Ordinary mode  
WIT  
instruction  
STP  
instruction  
State A  
b7 b6 b5 b4  
CPUM 0  
0
0 0  
I
nternal clock  
φ: Stopped  
Internal clock φ: Stopped  
f(XIN): Oscillating  
f(XCIN): Stopped  
f(XIN): Stopped  
f(XCIN): Stopped  
Internal clock φ: f(XIN)/2  
f(XIN): Oscillating  
f(XCIN): Stopped  
Interrupt  
Interrupt (Note 1)  
Ordinary mode  
WIT  
instruction  
State B  
STP  
b7 b6 b5 b4  
inst
0 —  
CPUM 0  
1
Internal clock φ: Stopped  
nternal clock  
φ: Stopped  
f(XIN): Oscillating  
f(XCIN): Oscillating  
f(XIN): Stopped  
f(XCIN): Stopped  
Internal clock φ: f(XIN)/2  
f(XIN): Oscillating  
f(XCIN): Oscillati
Interrupt  
rupt (Note 1)  
(Note 2)  
3)  
State C  
Lmode  
STP  
WIT  
(Not
instruction  
instruction  
b5 b4  
I
nternal clock  
φ
: Stopped  
I
nternal clock φ: Stopped  
f(XIN): Oscillating  
f(XCIN): Oscillating  
1
0
f(XIN): Stopped  
f(XCIN): Stopped  
rnal clock φ: f(XCIN)/2  
Interrupt (Note 1)  
In
f(XIN): Oscillating  
f(XCIN): Oscillating  
(Note 3)  
Low-speed mode  
STP  
instruction  
Sub-clock mode  
State G  
nternal clock φ: Stopped  
WIT  
instruction  
(Note 4)  
State D  
b7 b6 b5 b4  
I
nternal clock  
φ: Stopped  
1 1 — 1  
CPUM  
I
f(XIN): Stopped  
f(XCIN): Stopped  
f(XIN): Stopped  
f(XCIN): Oscillating  
Internal clock φ: f(XCIN)/2  
f(XIN): Stopped  
f(XCIN): Oscillating  
Interrupt (Note 1)  
Interrupt  
Fig. 1.18.1 State transitions  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-172  
HARDWARE  
1.18 State transitions  
Notes 1: When changing from the stop mode to another mode, oscillation stabilizing wait time is generated  
automatically by connecting timer 3 and timer 4.  
2: In the 7471/7478 group, where oscillating the stopped clock and switching the system clock, it  
is necessary to wait at software until oscillation is stabilized. At this time, set the bit 5 of the CPU  
mode register to “1” and set the XCOUT drive capacity to the high power mode. After the oscil-  
lation of sub-clock f(XCIN) becomes stable, clear the bit to “0” (low power mode) as required.  
3: In the 7471/7478 group, when returning from the low-speed mode to the ordinary mode, use the  
main clock f(XIN) as a count source of the internal clock φ (state B). After that, clear bit 4 of the  
CPU mode register to “0” to stop the oscillation of f(XCIN) if necessary.  
4: When using the low-speed mode in the 7471/7478 group, use it in one of the following states.  
Fix the XCOUT drive capacity to the high power mode (set the XCOUT drive capacity selection bit  
of the CPU register to “1.”)  
When fixing the XCOUT drive capacity to the low power mode (clear the XCOUT drive capacity  
+
selection bit of the CPU mode register to “0”), lower the value of the resistor Rd in the sub-  
clock oscillation circuit to a level at which the oscillation of f(XCIN) does not stop.  
+ “Resistor Rd”: Refer to the circuit example in “Chapter 2 Appln, 2.7 Oscillation circuit.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-173  
HARDWARE  
1.18 State transitions  
Reset Ordinary mode (State A)  
Immediately after reset, the main clock divided by 2 (f(XIN)/2) is selected as an internal clock φ and  
the I/O pins XCIN and XCOUT of the sub-clock f(XCIN) become ordinary ports. “FF16” and “0716” are  
set in timer 3 and timer 4 respectively, and also the main clock divided by 16 (f(XIN)/16) is selected  
as a count source of timer 3 and the overflow signal of timer 3 is selected as a count source of  
timer 4. Then a down-count is started.  
When timer 4 overflows, the internal reset is released and the program starts from the address  
specified by reset vector.  
Low-speed mode (Stae C and state D)  
To the low-speed mode (state C and state D) using the sub-clock divided by 2 (f(XCIN)/2) as an  
internal clock φ, a transition is made by way of the ordinary mode (state A)  
state B ( state  
C).  
In the 7470/7477 group, which is not provided with a sub-clock oscillation circuit, this mode is not  
provided.  
Wait mode (State E)  
In this mode, all the states of registers, I/O ports and internal e held. The internal clock  
φ stops at “H” but the oscillator does not stop.  
From any of state A, state B, state C and state D, a reture to the wait mode by executing  
the WIT instruction. When a return is made from the sthe wait mode, the sub-clock mode  
in which only the timer function operates is provthe 7470/7477 group, which is not  
provided with a sub-clock oscillation circuit, the mode is not provided.)  
Refer to “1.17.2 Wait mode.”  
Stop mode (State F)  
In this mode, all the states of registerts and internal RAMs except timer 3 and timer 4  
are held and the oscillation of both b-clock is stopped. From any of state A, B, C and D,  
a return is made to the stop moecuting the STP instruction.  
Refer to “1.17.1 Stop mode.
Sub-clock mode (State
Only the clock-functioe to operate by sub-clock mode at low-power dissipation.  
The sub-clock mod) is provided by executing the WIT instruction in the low-speed mode  
(state D), and refrom this state to the low-speed mode is attached by each interrupt.  
In the 7470/7477 , which is not provided with a sub-clock oscillation circuit, this mode is not  
provided.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-174  
HARDWARE  
1.19 Built-in PROM version  
1.19 Built-in PROM version  
In contrast with the mask ROM version, a microcomputer incorporating a programmable ROM is called  
built-in PROM version.  
There are two types of built-in PROM version as shown below.  
One Time PROM version  
Writing to the built-in PROM can be performed only once. Neither erase nor rewrite operations are  
enabled.  
Built-in EPROM version  
The built-in EPROM version is a programmable microcomputer with window and can perform write,  
erase, and rewrite operations.  
The built-in PROM version has the EPROM mode for writing to the built-in PROM in addition to the same  
functions as those of the mask ROM version.  
For an outline of performance, a pin configuration and a functional block diagram of the built-in PROM  
version, refer to “1.3 Performance overview”, “1.4 Pin configuration”and “1.6 Functional block  
diagram”, respectively.  
The 7470/7471/7477/7478 group supports the built-in PROM versions n Table 1.19.1.  
Table 1.19.1 7470/7471/7477/7478 group built-in PROM versiorting products  
(P)ROM size RAM size  
Product name  
I/O Ports  
ckage  
Remarks  
(bytes)  
(bytes)  
I/O ports
(Includalog  
inp
M37470E4-XXXSP  
8192  
192  
One Time PROM version  
32P4B  
M37470E8-XXXSP  
16384  
8192  
384  
192  
Is: 4  
M37471E4-XXXSP  
M37471E4-XXXFP  
M37471E8-XXXSP  
M37471E8-XXXFP  
M37471E8SS  
42P4B  
56P6N-A  
42P4B  
orts: 28  
ncluding 8 analog  
input pins.)  
One Time PROM version  
16384  
1
384  
56P6N-A  
Input ports: 8  
42S1B-A EPROM version  
I/O ports: 18  
Input ports: 8  
(Including 4 analog  
input pins.)  
M37477E8-XXXSP  
M37477E8-XXXFP  
M37478E8-XXXSP  
M37478E8-XXXFP  
M37478E8SS  
32P4B  
One Time PROM version  
32P2W-A  
42P4B  
I/O ports: 20  
One Time PROM version  
Input ports: 16  
(Including 8 analog  
input pins.)  
384  
16384  
56P6N-A  
42S1B-A  
EPROM version  
(As of Dec. 1997)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-175  
 
HARDWARE  
1.19 Built-in PROM version  
1.19.1 EPROM mode  
The built-in PROM version has the EPROM mode in addition to the same operation modes as those of  
the mask ROM version. The EPROM mode permits writing to the built-in PROM and reading from the built-  
in PROM. To the built-in PROM, writing, reading and erasing can be performed by the same operations  
as those of the M5M27C256K.  
Table 1.19.2 shows a pin function in EPROM mode and Figure 1.19.1 to 1.19.6 show a connections in  
EPROM mode.  
Table 1.19.2 Pin functions in EPROM mode  
Built-in PROM version  
M5M27C256K  
VCC  
P33  
VCC  
VPP  
VSS  
VSS  
P11 to P17, P20 to P23,  
P30, P31, P40, P41  
P00 to P07  
Pin name  
A0 to A14  
D0 to D7  
C___E__  
VREF  
P32  
O___E__  
(TOP VIEW)  
A10  
A9  
1
2
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
D7  
D6  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
A8  
A7  
D5  
D4  
A6  
A5  
A4  
D3  
D2  
D1  
8
D0  
A3  
A2  
A1  
A0  
9
A14  
A13  
VPP  
OE  
A12  
A11  
2  
1/IN1  
P20/IN0  
VREF  
P41  
P40  
10  
11  
12  
13  
14  
15  
16  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
VCC  
CE  
XIN  
XOUT  
VSS  
VSS  
VCC  
VSS  
Outline 32P4B  
: Same functions as M5M27C256K  
Fig. 1.19.1 Pin connection in EPROM mode of 7470 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-176  
 
HARDWARE  
1.19 Built-in PROM version  
(TOP VIEW)  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
1
2
3
4
5
6
7
P53  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/T0  
P11  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
A10  
A9  
A8  
A7  
A6  
A5  
A4  
D7  
D6  
D5  
D4  
D3  
D2  
D1  
D0  
8
9
P10  
10  
11  
12  
13  
14  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
A14  
A13  
VPP  
P40  
A3  
A2  
A1  
A0  
CE  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
P51/X
P5
15  
16  
17  
18  
19  
20  
21  
E  
A11  
XIN  
XOUT  
VSS  
VSS  
VCC  
VSS  
Outline 42P4B (N
42S1BE8SS)  
: Same functions as M5M27C256K  
Note: The only difference between thckage product and the 56P6N-A package product  
are package shape, absolutratings and the fact that the 56P6N-A package  
product has an AVSS pin.  
Fig. 1.19.2 Pin connection in Eode of 7471 group (1)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-177  
HARDWARE  
1.19 Built-in PROM version  
(TOP VIEW)  
45  
28  
27  
26  
25  
24  
23  
22  
21  
NC  
RESET  
NC  
46  
D
D
D
5
6
7
P0  
P0  
P0  
P5  
5
6
7
2
VSS  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
P5  
1
/XCOUT  
/XCIN  
P50  
NC  
M37471E4-XXXFP  
M37471E8-XXXFP  
V
V
CC  
SS  
NC  
V
VSS  
V
SS  
P53  
A10  
P1  
P1  
P1  
7
/SRDY  
A
A
9
8
6
/CLK  
/SOUT  
NC  
X
UT  
IN  
5
NC  
line 56P6N-A (Note)  
NC: No conne
: Same s M5M27C256K  
Note: The onlfference between the 42P4B package product and the 56P6N-A package product  
are package shape, absolute maximum ratings and the fact that the 56P6N-A package  
product has an AVSS pin.  
Fig. 1.19.3 Pin connection in EPROM mode of 7471 group (2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-178  
HARDWARE  
1.19 Built-in PROM version  
(TOP VIEW)  
1
2
32  
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
A10  
A9  
D7  
D6  
D5  
D4  
D3  
D2  
D1  
D0  
A14  
A13  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
3
A8  
A7  
4
5
A6  
A5  
A4  
6
7
8
P10  
9
A3  
A2  
A1  
A0  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
P41  
P40  
10  
11  
12  
13  
14  
15  
16  
VPP  
OE  
A12  
A11  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT
RESE
VC
CE  
XIN  
XOUT  
VSS  
VSS  
VCC  
VSS  
Outline 32P4B (Note)  
1
2
1  
30  
29  
28  
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
A10  
A9  
D7  
D6  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
3
A8  
A7  
D5  
D4  
A6  
A5  
A4  
D3  
D2  
D1  
D0  
9
A3  
A2  
A1  
A0  
A14  
A13  
VPP  
OE  
A12  
A11  
N1  
0/IN0  
VREF  
P41  
P40  
10  
11  
12  
13  
14  
15  
16  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
VCC  
CE  
XIN  
XOUT  
VSS  
VCC  
VSS  
VSS  
Outline 32P2W-A (Note)  
: Same functions as M5M27C256K  
Note: The only difference between the 32P2W-A package product and the 32P4B package  
product are package shape, absolute maximum ratings.  
Fig. 1.19.4 Pin connection in EPROM mode of 7477 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-179  
HARDWARE  
1.19 Built-in PROM version  
(TOP VIEW)  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
1
2
3
4
5
6
7
P53  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
A10  
D7  
D6  
D5  
D4  
D3  
D2  
D1  
D0  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
A9  
A8  
A7  
A6  
A5  
A4  
8
9
P10  
10  
11  
12  
13  
14  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
A14  
A13  
VPP  
P40  
A3  
A2  
A1  
A0  
CE  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESE
P51
P
15  
16  
17  
18  
19  
20  
21  
OE  
A12  
A11  
XIN  
XOUT  
VSS  
VSS  
VSS  
VCC  
Outline 42P4B (Not
42S1B-A SS)  
NC: No connection  
: Same functions as M5M27C256K  
Note: The only difference between tackage product and the 56P6N-A package product  
are package shape, absoluratings and the fact that the 56P6N-A package  
product has an AVSS pin
Fig. 1.19.5 Pin connection in mode of 7478 group (1)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-180  
HARDWARE  
1.19 Built-in PROM version  
(TOP VIEW)  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
28  
NC  
RESET  
NC  
27  
D
D
D
5
6
7
P0  
P0  
P0  
P5  
5
6
7
2
VSS  
26  
25  
24  
23  
8  
17  
P5  
P5  
1
/XCOUT  
/XCIN  
0
NC  
V
V
CC  
SS  
NC  
V
CC  
M37478E8-XXXFP  
VSS  
V
SS  
P53  
VSS  
NC  
A10  
P1  
P1  
P1  
7
/SRDY  
/SCLK  
A
A
9
8
X
X
OUT  
6
IN  
5
/T  
X
D
NC  
NC  
Outline 56P6N-A (Note)  
NC: No co
: Samns as M5M27C256K  
Note: The only difference between the 42P4B package product and the 56P6N-A package product  
are package shape, absolute maximum ratings and the fact that the 56P6N-A package  
product has an AVSS pin.  
Fig. 1.19.6 Pin connection in EPROM mode of 7478 group (2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-181  
HARDWARE  
1.19 Built-in PROM version  
1.19.2 Pin description  
Table 1.19.3 to Table 1.19.5 show the description of pin functions in the ordinary mode and the EPROM  
mode.  
Table 1.19.3 Pin description (1)  
Input/  
Output  
Pin  
Name  
Functions  
Mode  
VCC, VSS  
Power source  
• Apply the following voltage to the VCC pin:  
2.7 V to 4.5 V (at f(XIN) = (2.2 VCC–2) MHz) or  
4.5 V to 5.5 V (at f(XIN) = 8 MHz).  
• Apply 0 V to the VSS pin.  
Ordinary  
/EPROM  
AVSS  
VREF  
Analog power  
source  
• Ground level input pin for the A-D converter.  
• Apply the same voltage as the VSS pin to the  
AVSS pin.  
Note: This pin is dedicated to 56P6N-A package  
products amog the 7471/7478 group.  
• Reference voltput pin for the A-D con-  
verter.  
Ordinary  
/EPROM  
Reference  
voltage input  
Input  
Ordinary  
• When usiD converter, apply 0.5 VCC  
(Q2) to
• Wheng the A-D converter, connect to  
V
__________  
Mode input  
Reset input  
Input  
Input  
rks as CE input.  
t input pin  
EPROM  
Ordinary  
_________________________  
RESET  
e microcomputer is put into a reset state by  
_________________________  
keeping the RESET pin at “L” for 2 ms or more,  
and the reset state is released by returning the  
______________________  
RESET pin to “H.”  
Reset input  
Clock inp
put  
Input  
• Connect to the VSS pin.  
• An input pin and an output pin for the main  
clock generating circuit.  
EPROM  
Ordinary  
/EPROM  
XIN  
• Connect a ceramic resonator or a quartz-crys-  
tal oscillator between pins XIN and XOUT.  
• A feedback resistor is incorporated between the  
XIN and the XOUT pins.  
• To use an external clock input, connect the  
clock oscillation source to the XIN pin and leave  
the XOUT pin open.  
XOUT  
P00–P07  
output  
I/O port P0  
Output  
Ordinary  
/EPROM  
Input/  
output  
• Port P0 is an 8-bit I/O port.  
Ordinary  
EPROM  
• The output structure is CMOS output.  
• In input mode, a pull-up transistor is connect-  
able in units of one bit.  
• In input mode, a key-on wake up function is  
provided.  
Data I/O D0–D7  
Input/  
• Port P0 works as data I/O (D0 – D7)  
output  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-182  
 
HARDWARE  
1.19 Built-in PROM version  
Table 1.19.4 Pin description (2)  
Input/  
Output  
Input/  
output  
Pin  
Name  
Functions  
Mode  
P10–P17  
I/O port P1  
• Port P1 is an 8-bit I/O port.  
Ordinary  
• The output structure is CMOS output.  
• In input mode, pull-up transistor can be con-  
nected in units of 4-bit.  
• Pins P12 and P13 are in common with timer  
output pins T0, T1 respectively.  
• In the case of the 7470/7471 group, P14 – P17  
are in common with serial I/O pins SIN, SOUT,  
_________  
CLK, SRDY respectively.  
• In the case of the 7470/7471 group, the out-  
puts of pins SOUT and the _S__R__D__Y__ can be N-channel  
open drain outputs.  
• In the case of te 7477/7478 group, pins  
P14 – P17 are mon with serial I/O pins  
RXD, TXD, SY, respectively.  
• The P11are address (A4 – A10) input  
pins. nto the open state.  
• Port 8-bit I/O port.  
• Tstructure is CMOS output.  
mode, pull-up transistor can be con-  
d in units of 4-bit.  
Address input  
A4–A10  
I/O port P2  
(7470/7471  
group)  
Input  
EPROM  
Ordinary  
P20–P27  
Input/  
output  
ns P20–P27 are in common with analog input  
pins IN0–IN7 respectively.  
Note: The 7470 group has only the 4 pins  
P20–P23 (IN0–IN3).  
Input port P
(7477/747
group)  
put  
Input  
• Port P2 is an 8-bit input port.  
• It is impossible to connect a pull-up transistor.  
• Pins P20–P27 are in common with analog input  
pins IN0–IN7 respectively.  
Note: The 7477 group has only the 4 pins  
P20–P23 (IN0–IN3) are available.  
ss input  
–A3  
• The P20 to P23 pins are address (A0–A3) input  
pins.  
EPROM  
• In the case of the 7471/7478 group, put the  
P24–P27 pins into the open state.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-183  
HARDWARE  
1.19 Built-in PROM version  
Table 1.19.5 Pin description (3)  
Input/  
Output  
Input  
Pin  
Name  
Functions  
Mode  
P30–P33  
Input port P3  
• Port P3 is a 4-bit input port.  
Ordinary  
• Pins P30, P31 are in common with external in-  
terrupt input pins INT0, INT1 respectively.  
• Pins P32, P33 are in common with timer input  
pins CNTR0, CNTR1 respectively.  
Address input  
A11, A12  
Mode input  
VPP input  
Input  
• The P30 and P31 pins are the address (A11,  
EPROM  
Ordinary  
A12) input pins.  
_____  
• The P32 pin becomes an OE input pin.  
• The P33 pin is a VPP input pin and VPP is applied  
to it when the VPP is input and the program is  
verified.  
P40–P43  
I/O port P4  
Input/  
• Port P4 is a 4-bit I/O port.  
output  
• The output structe is CMOS output.  
• In input mode, p transistor can be con-  
nected in unit.  
Note: The 7 group has only 2 pins P40  
an
Address input  
A13, A14  
Input  
Inp
• The 41 pins are the address (A13, A14)  
in
ase of the 7471/7478 group, put the  
nd P43 pins into the open state.  
rt P5 is a 4-bit input port.  
EPROM  
Ordinary  
P50–P53  
Input port P5  
Pull-up transistor can be connected in units of  
4-bit.  
• Pins P50, P51 are in common with input/output  
pins for sub-clock generating circuit XCIN, XCOUT  
respectively.  
• When using pins P50 and P51 as pins XCIN  
and XCOUT, connect a quartz-crystal oscillator  
between pins XCIN and XCOUT.  
• When using pins P50 and P51 as pins XCIN  
and XCOUT, a feedback resistor is connected  
between pins XCIN and XCOUT.  
• To use an external clock input, connect the  
clock oscillation source to the XCIN pin and leave  
the XCOUT pin open.  
Note: Only the 7471/7478 group has pins P50  
to P53.  
Input port P5  
Input  
• Put this port into the open state.  
EPROM  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-184  
HARDWARE  
1.19 Built-in PROM version  
1.19.3 Writing, reading, and erasing to built-in PROM  
_____________  
The built-in PROM version is put into the EPROM mode by applying the “L” level to the RESET pin. Write,  
read and erase operations to the built-in PROM in the EPROM mode are described below.  
Table 1.19.6 shows input signals in each mode.  
(1) Reading  
_____________  
Apply 0 V to the RESET pin and 5 V to the VCC pin.  
_____  
_____  
When an address signal (A0-A14) is input and the CE pin and the OE pin are caused to go “L”, the  
contents of the PROM appear to data I/O pins (D0-D7).  
_____  
_____  
The data I/O pins (D0-D7) are put into a floating when either the CE pin or the OE pin is in the “H”  
state.  
(2) Writing  
_____________  
Apply 0 V to the RESET pin and 5 V to the VCC pin.  
_____  
When the OE pin is caused to go to “H” and VPP is applied to the VPP pin, the program mode is  
provided.  
Set an address to the address input pins (A0-A14) and give write o the data I/O pins (D0-D7)  
in parallel.  
_____  
In the above condition, a write operation is performed by ce CE pin to go to “L”.  
When using a PROM programmer, specify an address inllowing area.  
Address 600016 to address 7FFF16 (for the M37
Address 400016 to address 7FFF16 (for the M
(3) Erasing  
An erase operation is enabled only in t-in EPROM version with window (M37471E8SS/  
M37478E8SS).  
Data can be erased by irradiatinlet rays having a wave length of 2537Å.  
2
The minimum amount of irradiuired for an erase operation is 15 W•s/cm .  
Table 1.19.6 Input/Output signah mode  
___  
____________  
C___E__  
OE  
VPP  
VCC  
VCC  
RESET  
D0 to D7  
Pin  
Mode  
Reading  
Output disable  
Writing  
V
VIL  
VIH  
VIH  
VIL  
VIH  
VIH  
VIL  
VIH  
VCC  
VCC  
VPP  
VPP  
VPP  
Output  
Floating  
Input  
0 V  
Writing verify  
Writing disable  
Output  
Floating  
Note: VIL denotes an “L” input voltage and VIH denotes an “H” input voltage.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-185  
 
HARDWARE  
1.19 Built-in PROM version  
1.19.4 Notes on use  
The notes on using the built-in PROM version are shown below.  
(1) All built-in PROM version products  
Precautions at write operation  
Be careful not to apply an overvoltage to pins because a high voltage is used for a write  
operation. Exercise special care when turning on the power supply.  
For writing the contents of the PROM, use a dedicated programming adapter. This permits using  
a general-purpose PROM programmer for writing data. For details of dedicated programming  
adapters, refer to the “DEVELOPMENT SUPPORT TOOLS FOR MICROCOMPUTERS” data  
book.  
Precautions at read operation  
When reading the contents of the PROM, use a dedicated prograing adapter, so that reading  
can be performed by a general-purpose PROM programmer. For of dedicated programming  
adapters, refer to the “DEVELOPMENT SUPPORT TOOLICROCOMPUTERS” data  
book.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-186  
 
HARDWARE  
1.19 Built-in PROM version  
(2) One Time PROM version  
Precautions before use  
The PROM of the One Time PROM version is  
not tested or screened in the assembly process  
and following processes. To ensure proper  
operation after programming, the procedure  
shown in Figure 1.19.7 is recommended to  
verify programming.  
Programming with PROM programmer  
Screening (Caution)  
(Leave at 150°C for 40 hours)  
Verification with PROM programmer  
check in target device  
he screening temperature is far higher  
e storage temperature. Never expose to  
C exceeding 100 Hours.  
Fig. 1.19.7 Programming and testing of One  
Time PROM version  
(3) Built-in EPROM version  
Precautions on erasing  
Sunlight and fluorest include light that may erase the information written in the built-in  
PROM. When usilt-in EPROM version in the read mode, be sure to cover the transparent  
glass portion al.  
This seal to covhe transparent glass portion is prepared on our side. Be careful not to bring  
the seal into contact with the microcomputer lead wires when covering the portion with the seal  
because this seal is made of metal (aluminum).  
Before erasing data, clean the transparent glass. If any finger stain or seal adhesive is stuck to  
the transparent glass, this prevents ultraviolet rays from passing, thereby affecting the erase  
characteristic adversely.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-187  
HARDWARE  
1.20 Electrical characteristics  
1.20 Electrical characteristics  
1.20.1 Electrical characteristics  
(1) 7470 group electrical characteristics  
Table 1.20.1 shows the absolute maximum ratings of the 7470 group. Table 1.20.2 shows the  
recommended operating conditions. Table 1.20.3 shows the electrical characteristics.  
Table 1.20.4 shows the A-D converter characteristics.  
Table 1.20.1 Absolute maximum ratings (7470 group)  
Symbol  
VCC  
VI  
VO  
Pd  
Topr  
Tstg  
Parameter  
Power source voltage  
Input voltage  
Conditions  
Ratings  
Unit  
V
V
–0.3 to +7  
All voltages are based on VSS.  
Output transistors are cut-off.  
Ta = 25 °C  
–0.3 to VCC+0.3  
–0.3 to VCC+0.3  
1000  
–20 to +85  
–40 150  
Output voltage  
V
Power dissipation  
Operating temperature  
Storage temperature  
mW  
°C  
°C  
Table 1.20.2 Recommended operating conditions (7470 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta o +85 °C, unless otherwise noted)  
Limits  
Typ.  
5.0  
Symbol  
Parameter  
f(XIN) = 8.0 MHz  
f(XIN) = (2.2VCC–2
Unit  
Min.  
4.5  
2.7  
Max.  
5.5  
4.5  
V
V
V
VCC  
Power source voltage  
Power source voltage  
VSS  
0
VIH  
VIH  
“H” input voltage P00 to P07, P10 to P17, P30 t
0.8VCC  
0.7VCC  
VCC  
VCC  
V
V
“H” input voltage P20 to P23, P40, P41  
_______  
VIH  
“H” input voltage XIN, RESET  
0.8VCC  
VCC  
V
VIL  
VIL  
VIL  
VIL  
IOH(sum)  
IOH(sum)  
IOL(sum)  
IOL(sum)  
“L” input voltage P00 to P07, P10 to P133  
“L” input voltage P20 to P23, P40, P4
0
0
0
0
0.2VCC  
0.25VCC  
0.16VCC  
0.12VCC  
–30  
–30  
60  
60  
V
V
V
V
mA  
mA  
mA  
mA  
“L” input voltage XIN  
_______  
“L” input voltage RESET  
“H” sum output current of P0d P40 and P41  
“H” sum output current of and P20 to P23  
“L” sum output current o07, P40 and P41  
“L” sum output currenP17 and P20 to P23  
“H” peak output cu
P00 to P07, P10 0 to P23, P40, P41  
“L” peak output c
P00 to P07, P10 to 7, P20 to P23, P40, P41  
“H” average output current  
IOH(peak)  
IOL(peak)  
IOH(avg)  
IOL(avg)  
–10  
20  
mA  
mA  
mA  
mA  
–5  
P00 to P07, P10 to P17, P20 to P23, P40, P41 (Note 1)  
“L” average output current  
P00 to P07, P10 to P17, P20 to P23, P40, P41 (Note 1)  
10  
Timer input frequency  
f(XIN) = 8 MHz  
MHz  
MHz  
2
1
f(CNTR)  
CNTR0 (P32),  
f(XIN) = 4 MHz  
CNTR1 (P33) (Note 2)  
f(XIN) = 8 MHz  
f(XIN) = 4 MHz  
VCC = 4.5 V to 5.5 V  
VCC = 2.7 V to 4.5 V  
MHz  
MHz  
MHz  
MHz  
Serial I/O clock input frequency  
CLK (P16) (Note 2)  
Clock input oscillation frequency  
(Note 2)  
2
1
8
f(CLK)  
f(XIN)  
2.2VCC–2.0  
Notes 1: The average output current IOH (avg) or IOL (avg) are the average value during a 100 ms.  
2: The oscillation frequency is at 50 % duty cycle.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-188  
 
 
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.3 Electrical characteristics (7470 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Test conditions  
Unit  
Min.  
3.0  
Max.  
“H” output voltage  
VCC = 5 V, IOH = –5 mA  
VCC = 3 V, IOH = –1.5 mA  
VCC = 5 V, IOL = 10 mA  
VCC = 3 V, IOL = 3 mA  
V
V
V
V
VOH  
P00 to P07, P10 to P17  
P20 to P23, P40, P41  
“L” output voltage  
P00 to P07, P10 to P17  
P20 to P23, P40, P41  
Hysteresis P00 to P07  
2.0  
2.0  
1.0  
VOL  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
0.5  
0.3  
0.5  
0.3  
0.5  
0.3  
V
V
V
V
V
VT+ – VT–  
P30 to P33  
_______  
VT+ – VT– Hysteresis RESET  
Hysteresis P14/SIN  
VT+ – VT–  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3
Use as SIN or CLK  
P16/CLK  
V
VI = 0 V  
–5  
–3  
–1.0  
–0.35  
–5  
–3  
–5  
–3  
µA  
µA  
mA  
mA  
µA  
µA  
µA  
µA  
mA  
mA  
µA  
µA  
“L” input current  
P00 to P07, P10 to P17,  
P40, P41  
Not use pull-up transistor  
VI = 0 V  
Use pull-up transistor  
IIL  
IIL  
IIL  
–0.5  
–0.18  
“L” input current P30 to P33 VI = 0 V  
V
I
= 0 V, not use pull-up tran- VCC =
sistor, not use as analog input VC
= 0 V, use pull-up transistor, 
not use as analog input  
VI = 0 V  
“L” input current  
P20 to P23  
V
I
–0.25  
–0.08  
–0.5  
–0.18  
–1.0  
–0.35  
–5  
V  
5 V  
C = 3 V  
“L” input current  
_______  
XIN, RESET  
IIL  
XIN is at stop mode  
–3  
“H” input current  
P00 to P07, P10 to P17,  
P40, P41  
µA  
µA  
VCC = 5 V  
VCC = 3 V  
5
3
VI = VCC  
Not use pull-u
IIH  
VCC = 5 V  
VCC = 3 V  
= pull-up tran- VCC = 5 V  
µA  
µA  
µA  
µA  
µA  
µA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
µA  
µA  
V
5
3
5
3
5
3
14  
7
3.6  
15  
8
4
4
2
1
1
10  
5.5  
IIH  
IIH  
IIH  
“H” input current P30 to P33 VI = VCC  
“H” input current  
P20 to P23  
V
I
sisas analog input VCC = 3 V  
“H” input current  
XIN, RESET  
t stop mode  
m op-  
VCC = 5 V  
VCC = 3 V  
_______  
f(XIN) = 8 MHz  
7
3.5  
1.8  
7.5  
4
2
2
1
,  
conversion  
not executed f(XIN) = 4 MHz  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
At system op- f(XIN) = 8 MHz  
eration,  
A-D conversion  
f(XIN) = 4 MHz  
is executed  
ICC  
Power source current  
RAM retention voltage  
f(XIN) = 8 MHz  
At wait mode  
f(XIN) = 4 MHz  
VCC = 3 V  
Ta = 25 °C  
Ta = 85 °C  
0.5  
0.1  
1
At stop mode VCC = 5 V  
Stop all oscillation  
VRAM  
2.0  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-189  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.4 A-D converter characteristics (7470 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = –20 °C to +85 °C, f(XIN) = 4 MHz, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Resolution  
Non-linearity error  
Differential non-linearity error  
Test conditions  
Unit  
Min.  
Max.  
8
±2  
±0.9  
2
3
4
7
12.5  
25  
bits  
LSB  
LSB  
LSB  
LSB  
LSB  
LSB  
µs  
V
V
V
CC = VREF = 5.12 V, IOL(sum) = 0 mA  
CC = VREF = 3.072 V, IOL(sum) = 0 mA  
CC = VREF = 5.12 V  
Zero transition error  
Full scale transition error  
Conversion time  
VOT  
VFST  
VCC = VREF = 3.072 V  
f(XIN) = 8 MHz  
f(XIN) = 4 MHz  
TCONV  
VREF  
µs  
0.5VCC  
(Note)  
Reference input voltage  
VCC  
V
Ladder resistance value  
Analog supply voltage  
2
0
5
10  
VREF  
kΩ  
V
RLADDER  
VIA  
Note: Set the VREF voltage to 0.5 VCC or more and 2 V or more. When using no A-D converter, connect  
it to VCC.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-190  
HARDWARE  
1.20 Electrical characteristics  
(2) 7471 group electrical characteristics  
Table 1.20.5 shows the absolute maximum ratings of the 7471 group. Table 1.20.6 shows the  
recommended operating conditions. Table 1.20.7 shows the electrical characteristics.  
Table 1.20.8 shows the A-D converter characteristics.  
Table 1.20.5 Absolute maximum ratings (7471 group)  
Symbol  
VCC  
VI  
VO  
Pd  
Topr  
Tstg  
Parameter  
Power source voltage  
Input voltage  
Conditions  
All voltages are based on VSS.  
Output transistors are cut-off.  
Ta = 25 °C  
Ratings  
Unit  
V
V
–0.3 to +7  
–0.3 to VCC+0.3  
–0.3 to VCC+0.3  
1000 (Note)  
–20 to +85  
–40 to +150  
Output voltage  
V
Power dissipation  
Operating temperature  
Storage temperature  
mW  
°C  
°C  
Note: The rating is 500 mW for the 56P6N-A package product.  
Table 1.20.6 Recommended operating conditions (7471 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
5.0  
Symbol  
Parameter  
f(XIN) = 8.0 MHz  
f(XIN) = (2.2VCC–2.0) MHz  
Unit  
Max.  
5.5  
4.5  
V
V
VCC  
Power source voltage  
VSS  
AVSS  
VIH  
Power source voltage  
Analog supply voltage  
“H” input voltage P00 to P07, P10 to P17, P30 to P33  
0
0
V
V
V
V
0.8VCC  
0.7VCC  
VCC  
VCC  
VIH  
“H” input voltage P20 to P27, P40 to P43, P50 to P53
_______  
VIH  
“H” input voltage XIN, RESET  
0.8VCC  
VCC  
V
VIL  
VIL  
VIL  
VIL  
IOH(sum)  
IOH(sum)  
IOL(sum)  
IOL(sum)  
“L” input voltage P00 to P07, P10 to P17, P30 to
“L” input voltage P20 to P27, P40 to P43, P5ote 1)  
0
0
0
0
0.2VCC  
0.25VCC  
0.16VCC  
0.12VCC  
–30  
–30  
60  
60  
V
V
V
V
mA  
mA  
mA  
mA  
“L” input voltage XIN  
_______  
“L” input voltage RESET  
“H” sum output current of P00 to P07 o P43  
“H” sum output current of P10 to P0 to P27  
“L” sum output current of P00 to P40 to P43  
“L” sum output current of P1d P20 to P27  
“H” peak output current  
P00 to P07, P10 to P17, , P40 to P43  
“L” peak output curre
P00 to P07, P10 to o P27, P40 to P43  
“H” average outp
IOH(peak)  
IOL(peak)  
IOH(avg)  
IOL(avg)  
–10  
20  
mA  
mA  
mA  
mA  
–5  
P00 to P07, P10 P20 to P27, P40 to P43 (Note 2)  
“L” average output rrent  
P00 to P07, P10 to P17, P20 to P27, P40 to P43 (Note 2)  
10  
Timer input frequency  
CNTR0 (P32)  
CNTR1 (P33) (Note 3)  
Serial I/O clock input frequency f(XIN) = 8 MHz  
CLK (P16) (Note 3) f(XIN) = 4 MHz  
Clock input oscillation frequency VCC = 4.5 V to 5.5 V  
(Note 3) VCC = 2.7 V to 4.5 V  
Sub-clock input oscillation frequency (Note 3, 4)  
f(XIN) = 8 MHz  
2
1
MHz  
MHz  
f(CNTR)  
f(CLK)  
f(XIN) = 4 MHz  
2
1
MHz  
MHz  
MHz  
MHz  
kHz  
8
2.2VCC–2.0  
50  
f(XIN)  
f(XCIN)  
32  
Notes 1: Except when P50 is used as XCIN.  
2: The average output current IOH(avg) or IOL(avg) are the average value during a 100 ms.  
3: The oscillation frequency is at 50 % duty cycle.  
4: Set f(XCIN) < f(XIN)/3 when the sub-clock is used.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-191  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.7 Electrical characteristics (7471 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Test conditions  
Unit  
Min.  
3.0  
Max.  
“H” output voltage  
VCC = 5 V, IOH = –5 mA  
VCC = 3 V, IOH = –1.5 mA  
VCC = 5 V, IOL = 10 mA  
VCC = 3 V, IOL = 3 mA  
V
V
V
V
VOH  
P00 to P07, P10 to P17  
P20 to P27, P40 to P43  
“L” output voltage  
P00 to P07, P10 to P17  
P20 to P27, P40 to P43  
Hysteresis P00 to P07  
2.0  
2.0  
1.0  
VOL  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
0.5  
0.3  
0.5  
0.3  
0.5  
0.3  
V
V
V
V
V
VT+ – VT–  
P30 to P33  
_______  
VT+ – VT– Hysteresis RESET  
Hysteresis P14/SIN  
VT+ – VT–  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3
When used as SIN or CLK  
P16/CLK  
V
VI = 0 V  
–5  
–3  
–1.0  
–0.35  
–5  
–3  
–5  
–3  
µA  
µA  
mA  
mA  
µA  
µA  
µA  
µA  
mA  
mA  
µA  
µA  
“L” input current  
P00 to P07, P10 to P17,  
P40 to P43, P50 to P53  
Not use pull-up transistor  
VI = 0 V  
Use pull-up transistor  
IIL  
IIL  
IIL  
IIL  
IIH  
–0.5  
–0.18  
VI = 0V  
“L” input current P30 to P33  
VI  
= 0 V, not use pull-up tran- VCC =
sistor, not use as analog input VC
= 0 V, use pull-up transis- 
tor, not use as analog inpuV  
“L” input current  
P20 to P27  
V
I
–0.25  
–0.08  
–0.5  
–0.18  
–1.0  
–0.35  
–5  
VI = 0 V  
5 V  
C = 3 V  
“L” input current  
_______  
XIN, RESET  
XIN is at stop mode  
–3  
VCC = 5 V  
VCC = 3 V  
5
3
µA  
µA  
“H” input current  
P00 to P07, P10 to P17,  
P40 to P43, P50 to P53  
VI = VCC  
Not use pull-or  
VCC = 5 V  
VCC = 3 V  
se pull-up tran- VCC = 5 V  
5
3
5
3
5
3
14  
7
3.6  
15  
8
µA  
µA  
µA  
µA  
µA  
IIH  
IIH  
IIH  
VI = V
“H” input current P30 to P33  
VI  
“H” input current  
P20 to P27  
se as analog input VCC = 3 V  
C  
at stop mode  
ystem op-  
tion,  
A-D conversion  
is not executed  
VCC = 5 V  
VCC = 3 V  
“H” input current  
_______  
µA  
XIN, RESET  
f(XIN) = 8 MHz  
7
3.5  
1.8  
7.5  
4
mA  
mA  
mA  
mA  
mA  
mA  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
f(XIN) = 4 MHz  
f(XIN) = 8 MHz  
f(XIN) = 4 MHz  
At system op-  
eration,  
A-D conversion  
is executed  
VCC = 3 V  
VCC = 5 V  
2
4
In low-speed mode, Ta = 25°C, low-power mode  
f(XCIN) = 32 kHz  
At A-D conversion is not executed  
f(XIN) = 8 MHz  
µA  
µA  
30  
15  
80  
40  
VCC = 3 V  
VCC = 5 V  
ICC  
Power source current  
2
1
0.5  
4
2
1
mA  
mA  
mA  
At wait mode  
f(XIN) = 4 MHz  
VCC = 3 V  
VCC = 5 V  
At wait mode, Ta = 25°C,  
low-power mode, f(XCIN) =  
32 kHz  
µA  
µA  
3
2
12  
8
VCC = 3 V  
Ta = 25 °C  
Ta = 85 °C  
0.1  
1
1
10  
5.5  
µA  
µA  
V
At stop mode, VCC = 5 V  
Stop all oscillation  
VRAM  
2.0  
RAM retention voltage  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-192  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.8 A-D converter characteristics (7471 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –20 °C to +85 °C, f(XIN) = 4 MHz, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Resolution  
Non-linearity error  
Differential non-linearity error  
Test conditions  
Unit  
Min.  
Max.  
8
±2  
±0.9  
2
3
4
7
12.5  
25  
bits  
LSB  
LSB  
LSB  
LSB  
LSB  
LSB  
µs  
V
V
CC = VREF = 5.12 V, IOL(sum) = 0 mA  
CC = VREF = 3.072 V, IOL(sum) = 0 mA  
V = VREF = 5.12 V  
Zero transition error  
Full scale transition error  
Conversion time  
VOT  
VFST  
VCC = VREF = 3.072 V  
f(XIN) = 8 MHz  
f(XIN) = 4 MHz  
TCONV  
VREF  
µs  
0.5VCC  
(Note)  
Reference input voltage  
VCC  
V
Ladder resistance value  
Analog input voltage  
2
0
5
10  
VREF  
kΩ  
V
RLADDER  
VIA  
Note: Set the VREF voltage to 0.5 VCC or more and 2 V or more. When usng no A-D converter, connect  
it to VCC.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-193  
HARDWARE  
1.20 Electrical characteristics  
(3) 7477 group electrical characteristics  
Table 1.20.9 shows the absolute maximum ratings of the 7477 group. Table 1.20.10 shows the  
recommended operating conditions. Table 1.20.11 shows the electrical characteristics.  
Table 1.20.12 shows the A-D converter characteristics.  
Table 1.20.9 Absolute maximum ratings (7477group)  
Symbol  
VCC  
VI  
VO  
Pd  
Topr  
Tstg  
Parameter  
Power source voltage  
Input voltage  
Conditions  
All voltages are based on VSS.  
Output transistors are cut-off.  
Ta = 25 °C  
Ratings  
Unit  
V
V
–0.3 to +7  
–0.3 to VCC+0.3  
–0.3 to VCC+0.3  
1000 (Note)  
Output voltage  
V
Power dissipation  
Operating temperature  
Storage temperature  
mW  
°C  
°C  
–20 to +85  
–40 to +150  
Note : The rating is 500 mW for the 32P2W-A package product.  
Table 1.20.10 Recommended operating conditions (7477 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = –5 °C, unless otherwise noted)  
Limits  
Typ.  
5.0  
Symbol  
Parameter  
f(XIN) = 8.0 MHz  
f(XIN) = (2.2VCC–2.0) M
Unit  
n.  
4.5  
2.7  
Max.  
5.5  
4.5  
V
V
V
VCC  
Power source voltage  
Power source voltage  
VSS  
0
VIH  
VIH  
VIH  
“H” input voltage P00 to P07, P10 to P17, P30 to P3
0.8VCC  
0.7VCC  
0.8VCC  
VCC  
VCC  
VCC  
V
V
V
“H” input voltage P20 to P23, P40, P41  
_______  
“H” input voltage XIN, RESET  
VIL  
VIL  
VIL  
VIL  
IOH(sum)  
IOH(sum)  
IOL(sum)  
IOL(sum)  
“L” input voltage P00 to P07, P10 to P17, P3
“L” input voltage P20 to P23, P40, P41  
0
0
0
0
0.2VCC  
0.25VCC  
0.16VCC  
0.12VCC  
–30  
–30  
60  
60  
V
V
V
V
mA  
mA  
mA  
mA  
“L” input voltage XIN  
_______  
“L” input voltage RESET  
“H” sum output current P00 to P0P41  
“H” sum output current P10 to
“L” sum output current P00 tand P41  
“L” sum output current P1
“H” peak output current  
P00 to P07, P10 to P41  
“L” peak output cu
P00 to P07, P140, P41  
“H” average outpuent  
IOH(peak)  
IOL(peak)  
IOH(avg)  
IOL(avg)  
f(CNTR)  
–10  
20  
mA  
mA  
mA  
mA  
–5  
P00 to P07, P10 to P17, P40, P41 (Note 1)  
“L” average output current  
P00 to P07, P10 to P17, P40, P41 (Note 1)  
10  
Timer input frequency  
CNTR (P3 ), CNTR (P3  
f(XIN) = 8 MHz  
) (Note 2) f(XIN) = 4 MHz  
2
1
500  
250  
2
1
8
MHz  
MHz  
kHz  
0
2
1
3
Use as clock synchro- f(XIN) = 8 MHz  
Serial I/O clock input frequency nous serial I/O mode f(XIN) = 4 MHz  
kHz  
f(SCLK)  
SCLK (P16) (Note 2)  
Use as UART f(XIN) = 8 MHz  
mode f(XIN) = 4 MHz  
MHz  
MHz  
MHz  
MHz  
Clock input oscillation frequency  
(Note 2)  
VCC = 4.5 V to 5.5 V  
VCC = 2.7 V to 4.5 V  
f(XIN)  
2.2VCC–2.0  
Notes 1: The average output current IOH (avg) or IOL (avg) are the average value during a 100 ms.  
2: The oscillation frequency is at 50 % duty cycle.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-194  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.11 Electrical characteristics (7477 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Test conditions  
Unit  
Min.  
3.0  
Max.  
“H” output voltage  
P00 to P07, P10 to P17  
P40, P41  
“L” output voltage  
P00 to P07, P10 to P17  
P40, P41  
VCC = 5 V, IOH = –5 mA  
VCC = 3 V, IOH = –1.5 mA  
VCC = 5 V, IOL = 10 mA  
VCC = 3 V, IOL = 3 mA  
V
V
V
V
VOH  
2.0  
2.0  
1.0  
VOL  
Hysteresis P00 to P07  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
0.5  
0.3  
0.5  
0.3  
0.5  
0.3  
V
V
V
V
V
VT+ – VT–  
P30 to P33  
_______  
VT+ – VT– Hysteresis RESET  
Hysteresis P14/RxD  
VT+ – VT–  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3
VCC =
VC
V  
When used as RxD or SCLK  
P16/SCLK  
V
VI = 0 V  
Not use pull-up transistor  
VI = 0 V  
–5  
–3  
–1.0  
–0.35  
–5  
–3  
–5  
–3  
–5  
µA  
µA  
mA  
mA  
µA  
µA  
µA  
µA  
µA  
µA  
“L” input current  
P00 to P07, P10 to P17,  
P40, P41  
IIL  
–0.5  
–0.18  
Use pull-up transistor  
IIL  
IIL  
IIL  
“L” input current P30 to P33 VI = 0V  
“L” input current  
P20 to P23  
VI = 0 V,  
Not use as analog input  
VI = 0 V  
“L” input current  
_______  
XIN, RESET  
XIN is at stop mode  
–3  
“H” input current  
P00 to P07, P10 to P17,  
P40, P41  
µA  
µA  
= 5 V  
CC = 3 V  
5
3
VI = VCC  
Not use pull-up tran
IIH  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
5
3
5
3
5
3
14  
7
3.6  
15  
8
4
4
2
1
1
10  
5.5  
µA  
µA  
µA  
µA  
µA  
µA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
µA  
µA  
V
IIH  
IIH  
IIH  
“H” input current P30 to P33  
VI = VCC  
“H” input current  
P20 to P23  
VI = VCC  
Not use input  
VI =
XImode  
sion  
ecuted  
“H” input current  
_______  
XIN, RESET  
f(XIN) = 8 MHz  
7
3.5  
1.8  
7.5  
4
2
2
1
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
f(XIN) = 4 MHz  
ystem op-  
f(XIN) = 8 MHz  
tion,  
A-D conversion  
is executed  
f(XIN) = 4 MHz  
f(XIN) = 8 MHz  
f(XIN) = 4 MHz  
ICC  
Power source
RAM retention voltage  
At wait mode  
VCC = 3 V  
Ta = 25 °C  
Ta = 85 °C  
0.5  
0.1  
1
At stop mode, VCC = 5 V  
Stop all oscillation  
VRAM  
2.0  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-195  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.12 A-D converter characteristics (7477 group)  
(VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Resolution  
Test conditions  
Unit  
Min.  
Max.  
8
±3  
12.5  
25  
bits  
LSB  
µs  
Absolute accuracy  
V
V
CC = 4.5 V to 5.5 V, f(XIN) = 8 MHz  
CC = 2.7 V to 5.5 V, f(XIN) = 4 MHz  
Conversion time  
TCONV  
µs  
0.5VCC  
(Note)  
Reference input voltage  
VCC  
V
VREF  
5
Ladder resistance value  
Analog input voltage  
2
0
10  
VREF  
kΩ  
V
RLADDER  
VIA  
Note : Set the VREF voltage to 0.5 VCC or more and 2 V or more. When using no A-D converter, connect  
it to VCC.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-196  
HARDWARE  
1.20 Electrical characteristics  
(4) 7478 group electrical characteristics  
Table 1.20.13 shows the absolute maximum ratings of the 7478 group. Table 1.20.14 shows the  
recommended operating conditions. Table 1.20.15 shows the electrical characteristics.  
Table 1.20.16 shows the A-D converter characteristics.  
Table 1.20.13 Absolute maximum ratings (7478 group)  
Symbol  
VCC  
VI  
VO  
Pd  
Topr  
Tstg  
Parameter  
Power source voltage  
Input voltage  
Conditions  
All voltages are based on VSS.  
Output transistors are cut-off.  
Ta = 25 °C  
Ratings  
Unit  
V
V
–0.3 to +7  
–0.3 to VCC+0.3  
–0.3 to VCC+0.3  
1000 (Note)  
–20 to +85  
–40 to +150  
Output voltage  
V
Power dissipation  
Operating temperature  
Storage temperature  
mW  
°C  
°C  
Note : The rating is 500 mW for the 56P6N-A package product.  
Table 1.20.14 Recommended operating conditions (7478 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –25 °C, unless otherwise noted)  
Limits  
Typ.  
5.0  
Symbol  
Parameter  
f(XIN) = 8.0 MHz  
f(XIN) =(2.2VCC–2.0) M
Unit  
in.  
4.5  
2.7  
Max.  
5.5  
4.5  
V
V
VCC  
Power surce voltage  
VSS  
AVSS  
VIH  
VIH  
VIH  
Power surce voltage  
Analog supply voltage  
“H” input voltage P00 to P07, P10 to P17, P30 to
“H” input voltage P20 to P27, P40 to P43, P50 te 1)  
“H” input voltage XIN, RESET  
0
0
V
V
V
V
0.8VCC  
0.7VCC  
0.8VCC  
VCC  
VCC  
VCC  
_______  
V
VIL  
VIL  
VIL  
VIL  
IOH(sum)  
IOH(sum)  
IOL(sum)  
IOL(sum)  
“L” input voltage P00 to P07, P10 to P17, 3  
“L” input voltage P20 to P27, P40 to PP53 (Note 1)  
0
0
0
0
0.2VCC  
0.25VCC  
0.16VCC  
0.12VCC  
–30  
–30  
60  
60  
V
V
V
V
mA  
mA  
mA  
mA  
“L” input voltage XIN  
_______  
“L” input voltage RESET  
“H” sum output current of P00 P40 to P43  
“H” sum output current of P
“L” sum output current of 7 and P40 toP43  
“L” sum output current P17  
“H” peak output curr
P00 to P07, P10 tto P43  
“L” peak output
P00 to P07, P10 to , P40 to P43  
“H” average output current  
IOH(peak)  
IOL(peak)  
IOH(avg)  
IOL(avg)  
f(CNTR)  
–10  
20  
mA  
mA  
mA  
mA  
–5  
P00 to P07, P10 to P17, P40 to P43 (Note 2)  
“L” average output current  
P00 to P07, P10 to P17, P40 to P43 (Note 2)  
10  
Timer input frequency  
CNTR (P3 ), CNTR (P3  
f(XIN) = 8 MHz  
) (Note 3) f(XIN) = 4 MHz  
2
1
500  
250  
2
1
MHz  
MHz  
kHz  
0
2
1
3
Use as clock synchro- f(XIN) = 8 MHz  
Serial I/O clock input frequency nous serial I/O mode f(XIN) = 4 MHz  
SCLK (P16) (Note 3) Use as UART f(XIN) = 8 MHz  
mode f(XIN) = 4 MHz  
Clock input oscillation frequency VCC = 4.5 V to 5.5 V  
(Note 3) VCC = 2.7 V to 4.5 V  
Sub-clock input oscillation frequency (Notes 3, 4)  
kHz  
f(SCLK)  
MHz  
MHz  
MHz  
MHz  
kHz  
8
2.2VCC–2.0  
50  
f(XIN)  
f(XCIN)  
32  
Notes 1: Except when P50 is used as XCIN.  
2: The average output current IOH (avg) and IOL (avg) are the average value during a 100 ms.  
3: The oscillation frequency is at 50 % duty cycle.  
4: Set f(XCIN) < f(XIN)/3 when the sub-clock is used.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-197  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.15 Electrical characteristics (7478 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Test conditions  
Unit  
Min.  
3.0  
Max.  
“H” output voltage  
P00 to P07, P10 to P17  
P40 to P43  
“L” output voltage  
P00 to P07, P10 to P17  
P40 to P43  
VCC = 5 V, IOH = –5 mA  
VCC = 3 V, IOH = –1.5 mA  
VCC = 5 V, IOL = 10 mA  
VCC = 3 V, IOL = 3 mA  
V
V
V
V
VOH  
2.0  
2.0  
1.0  
VOL  
Hysteresis P00 to P07  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
0.5  
0.3  
0.5  
0.3  
0.5  
0.3  
V
V
V
V
V
VT+ – VT–  
P30 to P33  
_______  
VT+ – VT– Hysteresis RESET  
Hysteresis P14/RxD  
VT+ – VT–  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3
VCC =
VC
V
V  
When used as RxD or SCLK  
P16/SCLK  
V
VI = 0 V  
Not use pull-up transistor  
VI = 0 V  
–5  
–3  
–1.0  
–0.35  
–5  
–3  
–5  
–3  
–5  
µA  
µA  
mA  
mA  
µA  
µA  
µA  
µA  
µA  
µA  
“L” input current  
P00 to P07, P10 to P17,  
P40 to P43, P50 to P53  
IIL  
–0
–0.5  
–0.18  
Use pull-up transistor  
IIL  
IIL  
IIL  
VI = 0V  
“L” input current P30 to P33  
VI = 0 V  
Not use as analog input  
VI = 0 V  
“L” input current  
P20 to P27  
“L” input current  
_______  
XIN is at stop mode  
–3  
XIN, RESET  
= 5 V  
VCC = 3 V  
5
3
µA  
µA  
“H” input current  
P00 to P07, P10 to P17,  
P40 to P43, P50 to P53  
VI = VCC,  
Not use pull-up tra
IIH  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
VCC = 3 V  
5
3
5
3
5
3
14  
7
3.6  
15  
8
µA  
µA  
µA  
µA  
µA  
IIH  
IIH  
IIH  
VI = VCC  
“H” input current P30 to P33  
VI = VC
Not uog input  
VI
op mode  
p-  
f(XIN) = 8 MHz  
“H” input current  
P20 to P27  
“H” input current  
_______  
µA  
XIN, RESET  
7
3.5  
1.8  
7.5  
4
mA  
mA  
mA  
mA  
mA  
mA  
VCC = 5 V  
VCC = 3 V  
VCC = 5 V  
ersion  
executed f(XIN) = 4 MHz  
t system op- f(XIN) = 8 MHz  
eration,  
A-D conversion  
f(XIN) = 4 MHz  
is executed  
VCC = 3 V  
VCC = 5 V  
2
4
At low-speed mode,  
power mode, (XCIN  
T
a
=
25°C, low-  
µA  
µA  
30  
15  
80  
40  
f
)
=
32 kHz, A-D  
VCC = 3 V  
VCC = 5 V  
ICC  
conversion is not executed  
Power source current  
f(XIN) = 8 MHz  
2
1
0.5  
4
2
1
mA  
mA  
mA  
At wait mode  
f(XIN) = 4 MHz  
VCC = 3 V  
VCC = 5 V  
At wait mode, Ta = 25°C, low-  
power mode, f (XCIN) = 32  
kHz  
µA  
µA  
3
2
12  
8
VCC = 3 V  
Ta = 25 °C  
Ta = 85 °C  
0.1  
1
1
10  
5.5  
µA  
µA  
V
At stop mode, VCC = 5 V  
Stop all oscillation  
VRAM  
2.0  
RAM retention voltage  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-198  
HARDWARE  
1.20 Electrical characteristics  
Table 1.20.16 A-D converter characteristics (7478 group)  
(VCC = 2.7 V to 5.5 V, VSS = AVSS = 0 V, Ta = –20 °C to +85 °C, unless otherwise noted)  
Limits  
Typ.  
Symbol  
Parameter  
Resolution  
Test conditions  
Unit  
Min.  
Max.  
8
±3  
12.5  
25  
bits  
LSB  
µ˚s  
Absolute accuracy  
VCC = 4.5 V to 5.5 V, f(XIN) = 8 MHz  
VCC = 2.7 V to 5.5 V, f(XIN) = 4 MHz  
Conversion time  
TCONV  
µ˚s  
0.5VCC  
(Note)  
Reference input voltage  
VCC  
V
VREF  
Ladder resistance value  
Analog input voltage  
2
0
10  
VREF  
kΩ  
V
RLADDER  
VIA  
5
Note : Set the VREF voltage to 0.5 V or more and 2 V or more. When using no A-D converter, connect it  
to VCC.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-199  
HARDWARE  
1.20 Electrical characteristics  
1.20.2 Timing requirements, switching characteristics  
(1) 7470/7471 group timing requirements, switching characteristics  
Table 1.20.17 shows the timing requirements and switching characteristics of the 7470/7471 group.  
Figure 1.20.1 shows the timing chart.  
Table 1.20.17 Timing requirements and switching characteristics (7470/7471 group)  
(VCC = 4.0 V to 5.5 V, VSS = 0V, Ta = –20 °C to +85°C, f(XIN) = 4 MHz)  
Limits  
Typ.  
Symbol  
tc(CLK)  
tWH(CLK)  
tWL(CLK)  
tsu(SIN–CLK)  
th(CLK-SIN)  
td(CLK-SOUT)  
Parameter  
Serial I/O clock input cycle time  
Serial I/O clock input “H” pulse width  
Serial I/O clock input “L” pulse width  
Serial I/O input set up time  
Unit  
Min.  
1000  
400  
400  
200  
200  
Max.  
150  
ns  
ns  
ns  
ns  
ns  
ns  
Serial I/O input hold time  
Serial I/O output delay time  
tc(CLK)  
tWL(CLK)  
0.8VCC  
0.8
0.8VCC  
CLK  
0.2VCC  
0.2VCC  
su(SIN-CLK)  
t
LK-SIN)  
0.8VCC  
0.2V
0.8VCC  
0.2VCC  
SIN  
td(CLK-SOUT)  
S
OUT  
Fig. 1.20.1 Timing chart (7470/7471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-200  
 
HARDWARE  
1.20 Electrical characteristics  
(2) 7477/7478 group timing requirements, switching characteristics  
Table 1.20.18 shows the timing requirements and switching characteristics of the 7477/7478 group.  
Figure 1.20.2 shows the timing chart.  
Table 1.20.18 Timing requirements and switching characteristics (7477/7478 group)  
(VCC = 4.5 V to 5.5 V, VSS = 0V, Ta = –20 °C to +85°C, f(XIN) = 8 MHz)  
Limits  
Typ.  
Symbol  
Parameter  
Unit  
Min.  
2000  
880  
880  
160  
80  
Max.  
100  
tc(SCLK)  
tWH(SCLK)  
tWL(SCLK)  
tsu(RXD–SCLK)  
th(SCLK-RXD)  
td(SCLK-TXD)  
tc(SCLK)  
tWH(SCLK)  
tWL(SCLK)  
Serial I/O clock input cycle time  
Serial I/O clock input “H” pulse width  
Serial I/O clock input “L” pulse width  
Serial I/O input set up time  
Serial I/O input hold time  
Serial I/O output delay time  
Serial I/O clock input cycle time  
Serial I/O clock input “H” pulse width  
Serial I/O clock input “L” pulse width  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
500  
220  
220  
tc(SCLK)  
tWL(SCLK)  
WH(SCLK)  
0.8VCC  
0.8VCC  
S
CLK  
0.2VCC  
0.2V
t
su(RX  
th(SCLK-RXD)  
0
0.8VCC  
0.2VCC  
R
X
D
D
td  
(SCLK-T  
TX  
Fig. 1.20.2 Timing chart (7477/7478 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-201  
HARDWARE  
1.20 Electrical characteristics  
1.20.3 Power source current standard characteristics  
The power source current standard characteristics described in this section are mentioned as an characteristic  
example of the 7470/7471/7477/7478 group but not guaranteed by us. For standard values, refer to  
“1.20.1 Electrical characteristics.”  
Figure 1.20.3 shows the power source current standard characteristics measuring circuit.  
1
In ordinary mode (f(XIN) = 8 MHz, 4 MHz)  
2 In low-speed mode (f(XCIN) = 32 kHz, 7471/7478 group)  
M3747x  
M3747x  
ICC  
ICC  
VCC  
VCC  
VSS  
VSS  
A
A
XIN XOUT  
XCIN XCO
0 V to 5.5 V  
0 V to 5.5 V  
Fig. 1.20.3 Power source current standard characmeasuring circuit  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-202  
 
HARDWARE  
1.20 Electrical characteristics  
(1) 7470/7471 group power source current standard characteristics  
Figure 1.20.4 to Figure 1.20.6 show the ICC - VCC characteristics of the 7470/7471 group.  
[Measuring condition : 25 °C, f(X IN) = 8 MHz]  
9.0  
8.0  
In ordinary mode  
7.0  
6.0  
5.0  
4.0  
3.0  
2.0  
In wait mode  
1.0  
In stop mode  
6.0  
0.0  
2.0  
3.0  
4.0  
5.0  
7.0  
Power source voltage VCC [V]  
Fig. 1.20.4 ICC – VCC characteristic= 8 MHz, 7470/7471 group)  
[Measuring conditioXIN) = 4 MHz]  
In ordinary mode  
4.0  
3.0  
2.0  
1.0  
0.0  
In wait mode  
In stop mode  
6.0  
2.0  
3.0  
4.0  
5.0  
7.0  
Power source voltage VCC [V]  
Fig. 1.20.5 ICC – VCC characteristics (f(XIN) = 4 MHz, 7470/7471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-203  
HARDWARE  
1.20 Electrical characteristics  
[Measuring condition : 25 °C, f(XCIN) = 32 kHz]  
40.0  
30.0  
20.0  
10.0  
0.0  
In low-speed mode  
µ
ode  
p mode  
2.0  
3.0  
4.0  
6.0  
7.0  
CC  
Power age V [V]  
Fig. 1.20.6 ICC – VCC characteristics (f(XCIN) = 3471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-204  
HARDWARE  
1.20 Electrical characteristics  
(2) 7477/7478 group power source current standard characteristics  
Figure 1.20.7 to Figure 1.20.9 show the ICC - VCC characteristics of the 7477/7478 group.  
[Measuring condition : 25 °C, f(XIN) = 8 MHz]  
8.0  
In ordinary mode  
7.0  
6.0  
5.0  
4.0  
3.0  
2.0  
In wait mode  
1.0  
In stop mode  
6.0  
0.0  
2.0  
3.0  
5.0  
7.0  
r source voltage VCC [V]  
Fig. 1.20.7 ICC – VCC characteristics (f(MHz, 7477/7478 group)  
[Measuring condition : 25 4 kHz]  
5
In ordinary mode  
3.0  
2.0  
1.0  
0.0  
In wait mode  
In stop mode  
6.0  
2.0  
3.0  
4.0  
5.0  
7.0  
Power source voltage VCC [V]  
Fig. 1.20.8 ICC – VCC characteristics (f(XIN) = 4 MHz, 7477/7478 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-205  
HARDWARE  
1.20 Electrical characteristics  
[Measuring condition : 25 °C, f(XCIN) = 32 kHz]  
30.0  
20.0  
10.0  
0.0  
In low-speed mode  
µ
In wait mode  
In stode  
2.0  
3.0  
4.0  
5.0  
7.0  
Power source vo]  
Fig. 1.20.9 ICC – VCC characteristics (f(XCIN) = 32 kHz, 747
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-206  
HARDWARE  
1.20 Electrical characteristics  
1.20.4 Port standard characteristic  
The port standard characteristics described in this section are mentioned as a characteristic example of  
the 7470/7471/7477/7478 group but not guaranteed by us. For standard values, refer to “1.20.1 Electrical  
characteristics.”  
Figure 1.20.10 shows the port standard characteristic measuring circuits.  
1
IOH–VOH characteristic  
measuring circuit  
2
IOL–VOL characteristic  
measuring circuit  
3
IIL–VIL characteristic  
measuring circuit  
M3747x  
M3747x  
M3747x  
VCC  
VCC  
VCC  
0 V to 5.5 V  
0 V to 5.5 V  
A
A
IOL  
P00  
P00  
P00  
IOH  
A
0 V to 5.5 V  
VSS  
VSS  
VSS  
Fig. 1.20.10 Port standard characteristic measurits  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-207  
 
HARDWARE  
1.20 Electrical characteristics  
(1) 7470/7471 group port standard characteristic  
Figure 1.20.11 to Figure 1.20.13 show the port standard characteristics of the 7470/7471 group.  
[Measuring condition : Port P0  
–60.0  
0, 25 °C]  
–50.0  
–40.0  
V
CC = 5 V  
–30.0  
–20.0  
–10.0  
0.0  
V
CC = 3 V  
–5.0  
–4.0  
–3.0  
–1.0  
0.0  
“H” output voltCC [V]  
Fig. 1.20.11 IOH – VOH characteristics of programmport (CMOS output)  
P-channel side (7470/7471 group)  
[Measuring condition : Port P0  
60.0  
0, 25 °C
V
CC = 5 V  
50.0  
3.0  
20.0  
10.0  
V
CC = 3 V  
1.0  
2.0  
3.0  
4.0  
5.0  
0.0  
“L” output voltage VOL [V]  
Fig. 1.20.12 IOL – VOL characteristics of programmable I/O port (CMOS output)  
N-channel side (7470/7471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-208  
HARDWARE  
1.20 Electrical characteristics  
[Measuring condition : Port P0  
–0.7  
0, 25 °C]  
V
CC = 5 V  
V
CC = 3 V  
0.0  
–5.0  
–4.0  
–3.0  
–2.0  
0.0  
Supply voltage VIL–VCC [V
Fig. 1.20.13 IIL – VIL characteristics of programmable I/O OS output)  
pull-up transistor (7470/7471 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-209  
HARDWARE  
1.20 Electrical characteristics  
(2) 7477/7478 group port standard characteristic  
Figure 1.20.14 to Figure 1.20.16 show the port standard characteristics of the 7477/7478 group.  
[Measuring condition : Port P0  
–60.0  
0, 25 °C]  
–50.0  
–40.0  
–30.0  
–20.0  
–10.0  
V
CC = 5 V  
V
CC = 3 V  
0.0  
–5.0  
–4.0  
–3.0  
–1.0  
0.0  
“H” output voltage [V]  
Fig. 1.20.14 IOH – VOH characteristics of programmport (CMOS output)  
P-channel side (7477/7478 group)  
[Measuring condition : Port P0  
60.0  
0, 25
V
CC = 5 V  
50.0  
.0  
20.0  
10.0  
V
CC = 3 V  
0.0  
1.0  
2.0  
3.0  
4.0  
5.0  
“L” output voltage VOL [V]  
Fig. 1.20.15 IOL – VOL characteristics of programmable I/O port (CMOS)  
N-channel side (7477/7478 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-210  
HARDWARE  
1.20 Electrical characteristics  
[Measuring condition : Port P0  
–0.6  
0, 25 °C]  
V
CC = 5 V  
V
CC = 3 V  
0.0  
–5.0  
–4.0  
–3.0  
–2.0  
0  
0.0  
Supply voltage VIL–VCC [V
Fig. 1.20.16 IIL – VIL characteristics of programmable I/O OS output)  
pull-up transistor (7477/7478 group)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-211  
HARDWARE  
1.20 Electrical characteristics  
1.20.5 A-D conversion standard characteristic  
(1) Relative precision (7470/7471 group)  
Figure 1.20.17 to Figure 1.20.18 show the A-D conversion standard characteristics on the relative  
precision of the 7470/7471 group.  
In the graph, the lower line indicates a deviation from the ideal value at the point where the output  
code changes, namely, relative precision error (ERROR). For example, in Figure 1.20.17, the change  
of “3F16 to 4016” of the output code occurs ideally at the point of IN0 = 757.32 mV. However, since  
the relative precision error is -3.567 mV, “757.32 - 3.567 = 753.753 mV” represents a measuring  
change point.  
In the graph, the upper line indicates an input voltage width (1 LSB WIDTH) in which the output code  
is the same. For example, in Figure 1.20.17, since the measured value of input voltage width, when  
the output code is “3F16”, is 10.701 mV, the differential nonlinear error on the relative precision  
represents “10.701 -11.89 = -1.189 mV (-0.1 LSB)”.  
✽ ✽ ✽ M37471M8 A/D CONV. ERROR & STEP WIDTH ✽ ✽ ✽  
n  
ZERO TRANSITION ERROR  
2.25 [mV]  
FULL - SCALE TRANSITION E
25.5 [mV]  
: 1LSB WIDTH  
: ERROR  
VCC = 3.1 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25.0 [deg. C]  
VREF = 3.072 [V]  
ANALOG INPUT  
IN0  
+1LSB  
11.890  
0
-1LSB  
+1LSB  
-11.89  
0
8
16  
24  
32  
56  
64  
STEP No.  
72  
80  
88  
96  
104  
112  
120  
128  
11.890  
0
-11.89  
-1LSB  
128  
136  
144  
152  
160  
168  
176  
184  
192  
200  
208  
216  
224  
232  
240  
248  
256  
STEP No.  
Fig. 1.20.17 A-D conversion standard characteristics, relative precision error (1)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-212  
 
HARDWARE  
1.20 Electrical characteristics  
✽✽✽ M37471M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Relative precision  
: 1LSB WIDTH  
ZERO TRANSITION ERROR  
VCC = 5.2 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25 [deg. C]  
VREF = 5.12 [V]  
ANALOG INPUT  
7.5 [mV]  
FULL - SCALE TRANSITION ERROR  
18.75 [mV]  
: ERROR  
IN0  
+1LSB  
19.896  
0
-19.89  
-1LSB  
0
8
16  
24  
32  
40  
48  
56  
64  
72  
80  
88  
96  
112  
120  
128  
STEP No.  
+1LSB  
19.896  
0
-1LSB  
-19.89  
128  
136  
144  
152  
160  
168  
176  
184  
208  
216  
224  
232  
240  
248  
256  
Fig. 1.20.18 A-D conversion standacteristics, relative precision error (2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-213  
HARDWARE  
1.20 Electrical characteristics  
(2) Absolute precision  
Figure 1.20.19 to Figure 1.20.23 show the A-D conversion standard characteristics on the absolute  
precision of the 7470/7471/7477/7478 group.  
In the graph, the lower line indicates a deviation from the ideal value at the point where the output  
code changes, namely, absolute precision error (ERROR). For example, in Figure 1.20.17, the change  
of “3F16 to 4016” of the output code occurs ideally at the point of IN0 = 762 mV. However, since the  
absolute precision error is -8.4 mV, “762 - 8.4 = 753.6 mV represents the measuring change point.  
In the graph, the upper line indicates an input voltage with (1 LSB WIDTH) in which the output code  
is the same. For example, since the measured value of input voltage width, when the output code  
is “3F16”, is 10.8 mV, the differential nonlinear error represents “10.8 - 12 = -1.2 mV (-0.1 LSB).  
✽✽✽ M37471M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Absolute preci
1LSB WIDTH  
VCC = 3.1 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25.0 [deg. C]  
VREF = 3.072 [V]  
ANALOG INPUT  
RROR  
IN0  
36  
24  
12  
36  
24 +2LSB  
12  
0
0
-12  
-24  
-36  
-2LSB  
0
8
16  
24  
32  
40  
48  
4  
72  
80  
88  
96  
104  
112  
120  
128  
EP No.  
36  
36  
24  
12  
0
24 +2LSB  
12  
0
-12  
-2LSB  
-24  
-36  
128  
136  
144  
152  
160  
168  
176  
184  
192  
200  
208  
216  
224  
232  
240  
248  
256  
STEP No.  
Fig. 1.20.19 A-D conversion standard characteristics, absolute precision error (1)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-214  
HARDWARE  
1.20 Electrical characteristics  
✽✽✽ M37471M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Absolute precision  
: 1LSB WIDTH  
VCC = 5.2 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25 [deg. C]  
VREF = 5.12 [V]  
ANALOG INPUT  
: ERROR  
IN0  
30  
20  
10  
30  
20 +1LSB  
10  
0
0
-10  
-20  
-30  
30  
-1LSB  
0
8
16  
24  
32  
40  
48  
56  
64  
STEP No.  
72  
80  
88  
96  
112  
120  
128  
30  
20 +1LSB  
20  
10  
10  
0
0
-10  
-20  
-30  
-1LSB  
128  
136  
144  
152  
160  
168  
176  
184  
208  
216  
224  
232  
240  
248  
256  
Fig. 1.20.20 A-D conversion standaracteristics, absolute precision error (2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-215  
HARDWARE  
1.20 Electrical characteristics  
✽✽✽ M37478M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Absolute precision  
: 1LSB WIDTH  
: ERROR  
VCC = 3.1 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25 [deg. C]  
VREF = 3.072 [V]  
ANALOG INPUT  
IN0  
18  
12  
6
18  
12 +1LSB  
6
0
0
-6  
-1LSB  
-12  
-18  
0
8
16  
24  
32  
40  
48  
56  
64  
72  
80  
88  
96  
112  
120  
128  
STEP No.  
18  
12  
6
18  
12 +1LSB  
6
0
0
-6  
-1LSB  
-12  
-18  
128  
136  
144  
152  
160  
168  
176  
184  
208  
216  
224  
232  
240  
248  
256  
Fig. 1.20.21 A-D conversion standacteristics, absolute precision error (3)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-216  
HARDWARE  
1.20 Electrical characteristics  
✽✽✽ M37478M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Absolute precision  
: 1LSB WIDTH  
VCC = 5.2 [V] ,  
XIN = 4.0 [MHZ] ,  
Temp. = 25 [deg. C]  
VREF = 5.12 [V]  
ANALOG INPUT  
: ERROR  
IN0  
30  
30  
20  
10  
0
20 +1LSB  
10  
0
-10  
-20  
-30  
30  
20  
10  
0
-1LSB  
0
8
16  
24  
32  
40  
48  
56  
64  
STEP No.  
72  
80  
88  
96  
112  
120  
128  
30  
20 +1LSB  
10  
0
-10  
-1LSB  
-20  
-30  
128  
136  
144  
152  
160  
168  
176  
184  
208  
216  
224  
232  
240  
248  
256  
Fig. 1.20.22 A-D conversion standacteristics, absolute precision error (4)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-217  
HARDWARE  
1.20 Electrical characteristics  
✽✽✽ M37478M8 A/D CONV. ERROR & STEP WIDTH ✽✽  
Absolute precision  
: 1LSB WIDTH  
: ERROR  
VCC = 5.2 [V] ,  
XIN = 8.0 [MHZ] ,  
Temp. = 25 [deg. C]  
VREF = 5.12 [V]  
ANALOG INPUT  
IN0  
30  
30  
20  
10  
0
20 +1LSB  
10  
0
-10  
-20  
-30  
30  
20  
-1LSB  
0
8
16  
24  
32  
40  
48  
56  
64  
STEP No.  
72  
80  
88  
96  
112  
120  
128  
30  
20 +1LSB  
10  
0
10  
0
-10  
-20  
-30  
-1LSB  
128  
136  
144  
152  
160  
168  
176  
184  
208  
216  
224  
232  
240  
248  
256  
Fig. 1.20.23 A-D conversion standacteristics, absolute precision error (5)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
1-218  
CHAPTER 2  
APPLICATION  
2.1 I/O pins  
2.2 Interrupts  
2.3 Timers  
2.4 Serial I/O  
2.5 A-D converter  
2.6 Reset  
2.7 Oscillation circuit  
2.8 Low-power  
dissipation function  
2.9 Countermeasures  
against noise  
2.10 Notes on programming  
2.11 Differences between  
7470/7471 group and  
7477/7478 group  
2.12 Example of application  
circuit  
APPLICATION  
2.1 I/O pins  
7470 7471 7477 7478  
2.1 I/O pins  
2.1.1 I/O port  
(1) Port register  
Table 2.1.1 shows a memory allocation of port register corresponding to each port.  
Table 2.1.1 Port register memory allocation  
Address of port register  
Port  
7470 group 7471 group 7477 group 7478 group  
00C016 00C016 00C016 00C016  
00C216 00C216 00C216 00C216  
00C416 00C416 00C416 00C416  
00C616 00C616 00C616 00C616  
00C816 00C816 00C816 00C816  
P0  
P1  
P2  
P3  
P4  
P5  
00CA16  
00CA16  
Note: In the 74group, P2 is 4 bits of b0  
- b3 a2 bits of b0 and b1.  
In th478 group, P5 is 4 bits of b0 -  
b
In Chapter 2, each page describes the correspondints by using the following table.  
M37470Mx/Ex-XXXSP  
M37471Mx/Ex-XXXSP/FP  
M37477Mx/E8-XXXSP/FP  
M37478Mx/E8-XXXSP/FP  
77471 7477 7478  
Non-corresponding products  
Corresponding products  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-2  
 
 
APPLICATION  
2.1 I/O pins  
(2) Port Pi direction register (i = 0 to 5)  
7470 7471 7477 7478  
, , , ,  
Switching between input and output for programmable I/O ports is performed by the port direction  
register corresponding to each port. Table 2.1.2 shows a memory allocation of the port direction  
register corresponding to each port and Figure 2.1.1 shows an example of port direction register  
setting.  
Table 2.1.2 Port direction register memory  
allocation  
Address of port direction register  
7470 group 7471 group 7477 group 7478 group  
Port  
P0  
P1  
P2  
P3  
P4  
P5  
00C116 00C116 00C116 00C116  
00C316 00C316 00C316 00C316  
00C516 00C516  
00C9916 00C916 00C916  
Note: In group, P2 is 4 bits of b0 - b3  
2 bits of b0 and b1.  
7477 group, P4 is 2 bits of b0 and  
b7  
0 1 1 0
When “6A16” (  
) is set in the Port P0 direction register  
ort P0 I/O direction  
P0
6  
P05  
P04  
P03  
P02  
P01  
P00  
Input Output Output Input Output Input Output Input  
Fig. 2.1.1 Example of port direction register setting  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-3  
APPLICATION  
2.1 I/O pins  
(3) Pull-up control register  
7470 7471 7477 7478  
, , , ,  
The ports shown in Table 2.1.3 can be pulled up by software. A pull-up operation can be performed  
by the P0 pull-up control register (address 00D016) and P1-P5 pull-up control register (address  
00D116).  
Table 2.1.3 I/O ports that permit pull-up by software  
Register  
Device  
7470 group  
Port P0 pull-up control register  
Port P1-P5 pull-up control register*  
Control by 4-bit unit  
P1, P2, P4  
Control by 1-bit unit  
P0  
P0  
P0  
P0  
7471 group  
7477 group  
7478 group  
P1, P2, P4, P5  
P1, P4  
P1, P4, P5  
*: In the 7470/7477 group, the P1-P4 pull-up control register is arranged.  
Note: In the 7470 group, P2 is 4 bits of b0 - b3 and P4 is 2 bits of b0 4.  
In the 7477 group, P4 is 2 bits of b0 and b1.  
In the 7471/7478 group, P5 is 4 bits of b0 - b3.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-4  
APPLICATION  
2.1 I/O pins  
2.1.2 Notes on use  
7470 7471 7477 7478  
When using I/O pins, take the following points into consideration.  
(1) Double function ports  
Table 2.1.4 shows double function ports. For setting, refer to a structure of each register.  
Table 2.1.4 Double function port and control register  
Double function port  
7470/7471 group 7477/7478 group  
Control register  
Pin  
7470/7471 group  
7477/7478 group  
T0  
T1  
Timer 12 mode register (T12M: Address 00F816)  
Timer 34 mode register (T34M: Address 00F916)  
P12  
P13  
Serial I/O mode register  
Serial I/O control register  
SIN  
RXD  
P14  
(SM: Address 00DC16)  
Serial I/O mode register  
Serial I/O mode register  
Serial I/O mode register  
TS: Address 00E216)  
I/O control register  
ial I/O control register  
erial I/O control register  
SOUT  
CLK  
TXD  
SCLK  
P15  
P16  
P17  
P20  
P21  
P22  
P23  
P24  
P25  
P26  
P27  
P30  
P31  
P32  
P33  
P50  
P51  
SRDY  
IN0  
IN1  
IN2  
IN3  
IN4  
IN5  
IN6  
IN7  
INT0  
INT1  
CNTR0  
CNTR1  
XCIN  
A-D control registeN: Address 00D916)  
A-register  
rol register  
ontrol register  
control register  
-D control register  
A-D control register  
A-D control register  
Erity selection register (EG: Address 00D416)  
Edge polarity selection register  
polarity selection register, Timer 12 mode register  
ge polarity selection register, Timer 34 mode register  
CPU mode register (CPUM: Address 00FB16)  
CPU mode register  
XCOUT  
Note: In the 7470/7477 is 4 bits of b0 to b3. The 7470/7477 group is not provided with P5.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-5  
 
APPLICATION  
2.1 I/O pins  
(2)Description of Pull-up control  
7470 7471 7477 7478  
When pulling up a port by software, take the following points into consideration.  
When P1 is used in the serial I/O mode, the pull-up settings corresponding to P14 to P17 are  
invalidated. (Pull-up is impossible.)  
Pull-up control is exerted in the following bit units.  
P0  
: 1-bit unit  
P1 to P5 : 4-bit unit  
When using an external pull-up resistor and software pull-up control for the same port in combined  
form, use P0, which can be controlled in bit units.  
(3)Notes on external circuit design for I/O ports  
1 When designing an external circuit for I/O ports, be sure to set the following items within the  
standard value range.  
Sum output current  
Peak output current  
Average output current  
Figure 2.1.2 shows the example of external circuit r I/O port.  
V
CC=5 V  
M3747x  
Maximum standard value  
“L” sum output current  
OL2=36 mA  
I
OL0  
+
I
OL1  
+
I
< 60 mA  
P0  
0
I
OL0=12 mA  
R0=250 Ω  
“L” peak output current  
OL2=12 mA  
I
OL0  
=
I
OL1  
=
I
<
20 mA  
P0  
1
I
I
OL1=12 mA  
R
R
=250 Ω  
“L” average output current (within 100 ms)  
P0  
2
12 mA10 ms5  
OL2=12 mA  
= 6 mA < 10 mA  
2
100 ms  
10 ms  
Ports P00 – P02  
Timing of LED on  
(duty ratio: 50 %)  
: LED (VF= 2 V) used  
10 ms  
Fig. 2.1.2 Example of external circuit design for I/O port  
2 When performing multiple key-in operations by forming a key matrix, design in consideration of  
the port input current for multiple key-in operations.  
2 For other notes, refer to “1.10 I/O Pins.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-6  
APPLICATION  
2.2 Interrupts  
7470 7471 7477 7478  
2.2 Interrupts  
, , , ,  
2.2.1 Memory allocation  
Figure 2.2.1 shows a memory map of interrupt related registers.  
Address  
Edge polarity selection register (EG)  
00D416  
Interrupt request registe
Interrupt request regR2)  
Interrupt control 1 (IE1)  
Interrupt conster 2 (IE2)  
00FC16  
00FD16  
00FE16  
00FF16  
Fig. 2.2.1 Memory map of intlated registers  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-7  
 
 
APPLICATION  
2.2 Interrupts  
2.2.2. Processor status register (PS)  
7470 7471 7477 7478  
The Processor status register consists of 8 bits.  
Figure 2.2.2 shows the structure of the Processor status register. Bit 2 related to interrupts is described  
below.  
2 Interrupt disable flag: b2  
The interrupt disable flag controls the acceptance of interrupt requests other than the BRK instruction.  
When this flag is “1,” the acceptance of interrupt requests is disabled. When the flag is “0,” the  
acceptance of interrupt requests is enabled. The instruction to set this flag to “1” is the SEI instruction  
and the instruction to set this flag to “0” is the CLI instruction.  
At a branch to an interrupt processing routine, this flag is automatically set to “1,” thereby multiple  
interrupts are disabled. To use multiple interrupt, set this flag to “0” by using the CLI instruction in  
the interrupt processing routine.  
Processor status register  
b7  
b2  
b0  
Unde-  
fined  
1
Procesegister (PS)  
Undefined  
2
3
4
5
6
7
Flag name  
: Carry flag  
Z : Zero flag  
I : Interrupt disable flag  
: Decimal mode flag  
: Break flag  
D
B
T
V
: Index X mode flag  
: Overflow flag  
N: Negative flag  
b7  
b0  
denotes the initial value immediately after reset release.  
The value in  
Fig. 2.2.2 Structure of Processor status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-8  
 
APPLICATION  
2.2 Interrupts  
2.2.3 Application example  
7470 7471 7477 7478  
, , , ,  
(1)External event detection by CNTR  
To detect a rising edge or a falling edge of the level of an input pin by using a pin other than the  
INT0 pin and the INT1 pin, it is possible to use the CNTR pin. Examples of use are shown below.  
When the CNTR0 pin is used  
+1  
<Interrupt source>  
<Setting>  
CNTR interrupt  
1 Set the edge polarity selection register.  
• Select a CNTR0 edge polarity.  
• Select CNTR0 as an interrupt source.  
2 Clear the CNTR interrupt request bit to “0.”  
3 Execute the NOP instruction.  
4 Set the CNTR interrupt enable bit to “1.”  
When the CNTR1 pin is used  
+1,+2  
<Interrupt source>  
<Setting>  
Timer 3 interrupt  
1 Stop the count operation of timer 3.  
2 Select CNTR1 as a count source of time
3 Select a CNTR1 edge polarity by the arity selection register.  
4 Set timer 3 to “0.”  
5 Clear the timer 3 interrupt reque“0.”  
6 Set the timer 3 interrupt enab“1.”  
7 Start the count operation o
+1: It is possible to use the in for a timer interrupt and the CNTR1 pin for a CNTR interrupt.  
+2: It is possible to use s an interrupt source.  
2.2.4 Notes on use  
2 For notes on use, refer to “1.11 Interrupts.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-9  
 
 
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
2.3 Timers  
, , , ,  
2.3.1 Memory allocation  
Figure 2.3.1 shows a memory map of timer related registers.  
Address  
00D416 Edge polarity selection register (EG)  
00D516  
Input latch register (ILR)  
00D616  
00F016  
00F116  
00F216  
Timer 1 (T1)  
Timer 2 (T2)  
Timer 3 (T
00F316 Timer 4
00F716  
00F8
00
FF register (TF)  
er 12 mode register (T12M)  
Timer 34 mode register (T34M)  
Timer mode register 2 (TM2)  
CPU mode register (CPUM)  
Interrupt request register 1 (IR1)  
B16  
00FC16  
00FD16  
00FE16  
00FF16  
Interrupt request register 2 (IR2)  
Interrupt control register 1 (IE1)  
Interrupt control register 2 (IE2)  
Fig. 2.3.1 Memory map of timer related registers  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-10  
 
 
APPLICATION  
2.3 Timers  
2.3.2 Application example  
(1) Each mode of timer  
7470 7471 7477 7478  
, , , ,  
For timers 1, 2, 3 and 4, the following 5 operation modes are available. For each timer mode and  
the details of it, refer to “1.12 Timers.”  
1 Timer mode  
2 Event counter mode  
3 Pulse output mode  
4 External pulse width measurement mode  
5 PWM mode  
Each timer mode has relation to the T0, T1, CNTR0 and CNTR1 pins as shown in Table 2.3.1. There  
are some modes that cannot be used for some combinations of timer and pin. Consider this when  
designing timers.  
Table 2.3.1 Relation between timer-used pins and modes  
Pin  
T0  
T1  
×
R0  
CNTR1  
Timer  
Timer 1  
Pulse output  
mode  
counter mode  
×
×
×
×
×
×
×
Timer 2  
Timer 3  
Event counter mode  
Event counter mode  
M  
mode  
Puls
External pulse width  
measurement mode External pulse width  
measurement mode  
×
Timer 4  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-11  
 
APPLICATION  
2.3 Timers  
(2) Example of use of each mode  
7470 7471 7477 7478  
×
,
×
,
An example of use of each mode is shown below.  
1 Timer mode: One-second measurement (timer function)  
Outline: Divide the clock by the timer. Count one second by a timer 1 interrupt that is generated  
at an internal of 0.4 ms. Cause the timer to count up at each second.  
Specifications: Divide f(XCIN) = 32 kHz by timer 1 to generate an interrupt. Check the value of  
the counter that counts with an timer 1 interrupt by the main routine. If one  
second has elapsed, execute timer count-up processing.  
Figure 2.3.2 shows an example of control procedure.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-12  
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
RESET  
Initialization  
Set the interrupt disable flag (each interrupt disabled)  
Clear the timer 1 interrupt enable bit  
(timer 1 interrupt disabled)  
Set the timer 12 mode register  
0
✕ ✕ ✕ ✕ ✕ 1  
1
T12M (Address 00F816  
Timer 1 count stop  
)
Timer 1 count source  
Timer 1 internal clock count source  
f(XCIN  
Internal clock  
)
Set the CPU mode register  
0
CPUM (Address 00FB16)  
✕ ✕ 1 1 ✕ ✕  
0
Fixed to “0”  
Select XCIN, XCOUT  
X
COUT drive capacity High power  
For concrete time, ask the acture for information.  
Wait the f(XCIN) oscillation stabilizing time  
Set the Timer 1 to “7F16  
1 second = 1/32 k250  
Count by interrupt processing  
Set the Timer 12 mode register  
0
✕ ✕ ✕ ✕ ✕ 1  
0
T12M (Address 00F816  
Timer 1 count start  
)
Clear the timer 1 interrupt request bit  
Set the timer 1 interrupt enable bit  
(Timer 1 interrupt enabled)  
at every 0.4 ms  
Timer 1 interrupt  
Clear the interrupt disable flag (each interrupt
1 second counter + 1  
Y
Clock
RTI  
N
apsed ?  
ter = 250 ?)  
Y
Clear 1 second counter  
Clock count up (second–year)  
Processing for timer  
set is completed ?  
N
Y
When re-starting the clock from zero second  
after completing to set the clock, set timers again.  
Set the Timer 1 to “7F16  
Clear the Timer 1 interrupt request bit  
Clear 1 second counter  
Set the timer so that every processing within the loop marked may  
be executed in a period of 1 second or less.  
Fig. 2.3.2 Example of control procedure [Clock function]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-13  
APPLICATION  
2.3 Timers  
2 Event counter mode: Frequency measurement  
7470 7471 7477 7478  
, , , ,  
Outline: The frequency of the pulse input to the CNTR0 pin (“H” active) is measured by the  
number of events in a certain period.  
Specifications: A count operation is started specifying the count source of timer 1 as CNTR0.  
Timer 2 (count source: f(XIN)/64) detects 1 ms and the frequency of the pulse  
input to CNTR0 is calculated from the number of events counted within 1 ms.  
Note: The number of events of an input pulse is specified as 255 or less within 1 ms.  
Figure 2.3.3 shows an example of measurement method of frequency and Figure 2.3.4 shows an  
example of control procedure.  
Timer 2 interrupt request bit  
1 ms has elapsed  
Count stop  
Count start  
CN
Count start  
Count stop  
X times  
X times  
Pulse frequency of CNTR0 input =  
kHz  
1 ms  
Fig. 2.3.3 Example of measurement method of frequency  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-14  
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
Frequency measurement routine  
Clear the timer 2 interrupt enable bit  
(Timer 2 interrupt disabled)  
Set the Timer 12 mode register  
T12M (Address 00F816  
Timer 1 count stop  
Timer 2 count stop  
)
✕ ✕ ✕ 1 ✕ ✕  
1
Set the Edge polarity selection register  
✕ ✕ ✕ ✕ ✕ 1 ✕ ✕  
EG (Address 00D416  
)
CNTR rising edge selected  
0
Set the Timer 12 mode register  
1 1 T12M (Address 00F816  
)
0 1 0 1 ✕  
Timer 1 count source CNTR  
0
Timer 2 count source  
Internal clock  
Timer 2 internal clock count source  
f(XIN)/64  
Set the Timer 1 to “FF16  
Set the Timer 2 to “7C16  
According to required accuracy, the event count  
value within 1 ms is detected repeatedly, and its  
results are averaged.  
Clear the timer 2 interrubit  
Set the timer 2 able bit  
(Timer 2 abled)  
Set the Timemode register  
Timer 2 interrupt  
1 0  
0 1 0 0 ✕  
T12M (Address 00F816)  
Timer 1 count start  
Timer 2 count start  
Set the Timer 12 mode register  
0 1 0 1 ✕ ✕ 1 1  
T12M (Address 00F816  
Timer 1 count stop  
Timer 2 count stop  
)
Read timer 1  
(Timer 1 set value FF16) – (Timer 1 read value)  
Event count value within 1 ms  
RTS  
RTI  
Fig. 2.3.4 Example of control procedure [Frequency measurement]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-15  
APPLICATION  
2.3 Timers  
3
Pulse output mode: Piezoelectric buzzer output  
7470 7471 7477 7478  
Outline: The pulse output function of the timer is applied for a piezoelectric buzzer output.  
Specifications: A square wave obtained by dividing the clock f(XIN) = 8 MHz into about 2 kHz is  
output from the T0 pin. While the buzzer output stops, the level of the T0 pin is  
fixed at “H.”  
Figure 2.3.5 shows an example of a peripheral circuit. Figure 2.3.6 shows a connection of the timer  
and setting of the division ratio. Figure 2.3.7 shows an example of control procedure.  
While the piezoelectric buzzer output stops, the “H” level is output.  
M3
T
0
250 µs  
250 µs  
Set the division ratio so that the underflow
timer 1 may be equal to this value.  
Fig. 2.3.5 Example of a peripheral circuoutput mode]  
Fix  
Timer 1  
f(XI
8MHz  
1/2  
1/16  
1/125  
T0  
Fig. 2.3.6 Connection of timer and setting of division ratio  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-16  
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
RESET  
Initialization  
Set the interrupt disable flag (each interrupt disabled)  
Clear the timer 1 interrupt enable bit  
(Timer 1 interrupt disabled)  
Set the Timer 12 mode register  
A piezoelectric buzzer output stops.  
0 0 1  
✕ ✕ ✕ ✕ 1  
T12M (Address 00F816  
Timer 1 count stop  
)
Timer 1 count source  
Internal clock  
Timer 1 internal clock count source  
f(XIN)/16  
T0 output selected  
Set the Timer mode register 2  
✕ ✕ ✕ ✕ ✕ ✕ ✕ 1  
TM2 (Address 00FA16  
)
Timer 1 division flip flop set enabled  
Set the Timer FF register  
✕ ✕ ✕ ✕ ✕ ✕ ✕ 0  
TF (Address 00F716  
)
Timer 1 division flip flop initial value 0  
Set the port P1  
Port P1  
2
as an output  
2
“H”  
8 MHz  
Set the Timer 1 to “7C16  
kHz =  
16 (124+1) 2  
Timer 1 overflow divided by 2  
Fixed dividion ratio  
Set the Timer 1 interrupt enable b
(Timer 1 interrupt enabled)  
7C16  
Count by interrupt processing  
Clear the interrupt disable flag (ealed)  
A piezoelectric buzzer request generated in the  
main processing is processed in the output unit.  
Masing  
Output unit  
Y (= 0 Request)  
A piezoeletric buzzer is requested ?  
N
N (= No request)  
Set the Timer 12 mode register  
Buzzer output stop  
Immediately after no request?  
Buzzer output start  
Y
0
✕ ✕ ✕ ✕ 1 0  
1
T12M (Address 00F816  
Timer 1 count stop  
)
Set the Timer 1 to “7C16  
Set the Timer 12 mode register  
Port P12 “H”  
✕ ✕ ✕ ✕ 1 0 0 0  
T12M (Address 00F816  
Timer 1 count start  
)
Fig. 2.3.7 Example of control procedure [Piezoelectric buzzer output]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-17  
APPLICATION  
2.3 Timers  
4 Pulse width measurement mode: Feedback control of phase control  
7470 7471 7477 7478  
signal  
, , , ,  
Outline: The phase control signal is adjusted by using the pulse width measurement mode.  
Specifications: The M3747x controls a load by phase control. At this time, the width of the pulse  
output from the load as a feedback signal is measured. With this result, the control  
over the load is compensated.  
Figure 2.3.8 shows an example of peripheral circuit and Figure 2.3.9 shows an example of control  
procedure.  
M3747x  
CNTR  
0
Load  
Port  
V
AC  
Fig. 2.3.8 Example of peal circuit [Pulse width measurement mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-18  
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
, , , ,  
Pulse width measurement routine  
Set the Timer 34 mode register  
T34M (Address 00F916  
Timer 4 count stop  
)
✕ ✕ ✕ ✕ 1 ✕  
Set the Edge polarity selection register  
0 ✕ ✕  
✕ ✕ ✕ 0 ✕  
EG (Address 00D416)  
Select the measurement of CNTR0 “H” width  
Interrupt CNTR0 selected  
Set the Timer 34 mode register  
✕ ✕ ✕  
1 ✕ ✕ 1  
T34M (Address 00F916  
Timer 4 count source  
)
select according to a
External pulse wid
measurement m
Set the Timer 4
Clear the CNTquest bit  
Set the e register  
1
34M (Address 00F916  
Timer 4 count start  
)
N
CNTR interrupt request ?  
Y
Measurement completed  
Set the Timer 34 mode register  
✕ ✕ ✕  
1 ✕ ✕ 1  
T34M (Address 00F916  
Timer 4 count stop  
)
Read Timer 4  
(Timer 4 set value FF16) – (Timer 4 read value)  
Input pulse “H” width measurement value  
RTS  
Fig. 2.3.9 Example of control procedure [Pulse width measurement mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-19  
APPLICATION  
2.3 Timers  
5 PWM mode: Analog output  
7470 7471 7477 7478  
, , , ,  
Outline: An analog output is performed by using the PWM function of the timer.  
Specifications: A count source of Timer 3 and Timer 4 is selected and a PWM waveform is output  
from the T1 pin. The PWM waveform is converted into an analog voltage by the  
external circuit of the T1 pin, and then this voltage is output.  
Note: The analog voltage to be output varies depending on the duty of the PWM waveform.  
Figure 2.3.10 shows an example of peripheral circuit and Figure 2.3.11 shows an example of  
control procedure.  
M3747x  
3 : 2  
5 V  
T1  
0
Fig. 2.3.10 Example of peripheral circuit [PWM mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-20  
APPLICATION  
2.3 Timers  
7470 7471 7477 7478  
Analog output routine  
Set the Timer 34 mode register  
✕ ✕ ✕ ✕ 1 ✕  
1
T34M (Address 00F916)  
Timer 3 count stop  
Timer 4 count stop  
Set port P13 as an output  
Set the Timer 34 mode regi
1 ✕ ✕ ✕ 1 ✕ ✕ 1 T34M (A16)  
Select source  
Selunt source  
put  
mer 3  
et the Timer 4  
he Timer mode register 2  
✕ ✕ ✕ TM2 (Address 00FA16)  
✕ ✕ ✕ ✕  
Select PWM mode  
Set the Timer 34 mode register  
1 ✕ ✕ ✕ 0 0 T34M (Address 00F916)  
Timer 3 count start  
Timer 4 count start  
RTS  
Fig. 2.3.11 Example of control procedure [PWM mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-21  
APPLICATION  
2.3 Timers  
2.3.3 Notes on use  
7470 7471 7477 7478  
, , , ,  
2  When using a 16-bit counter by using two timers, take the following points into consideration  
according to “1.12.5 Notes on use (2).”  
The timing at which the timer value and the read value change, when two 8-bit timers are  
connected in series, is shown in Figure 2.3.12, taking the case where timer 1 and timer 2 are  
connected as an example (When Timer 1 and Timer 2 are connected and the set value of the  
Timer 1 is 216 and the set value of the Timer 2 is 116).  
The count source of timer 2 is the overflow signal of timer 1. In this case, the read value of timer  
2 changes at the fall of the count source. When Timer 1 and Timer 2 are read continuously as  
a 16-bit counter, the count source of timer 2 changes at the falling edge of the count source of  
timer 1, so the A section can not be distinguished from the B section. Likewise, the C section  
cannot be distinguished from the D section.  
Timer 1 count source  
Timer 1 value  
1
0
FF  
1
1
0
FF  
1
0
2
1
0
FF  
FF  
1
0
FF  
1
0
Timer 1 read value  
Writing to timer 1  
Timer 1 interrupt request  
Timer 2 count source  
Timer 2 value  
FF  
0
FF  
A
B
C
D
0
FF  
0
Timer 2 read value  
g to timer 2  
Timer 2 interrupt request  
Fig. 2.3.12 Timing at which timer value and read value change in the case where two timers are  
connected in series  
2 For other notes on use, refer to “1.12 timers.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-22  
 
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
2.4 Serial I/O  
2.4.1 7470/7471 group memory allocation  
Figure 2.4.1 shows a memory map of serial I/O related registers in the 7470/7471 group.  
Address  
Serial I/O mode register (SM  
Serial I/O register (SIO)  
)
00DC16  
00DD16  
00DE16  
Serial I/O counter  
Byte coun
00FC16  
00FD16  
Interrupt requesr 1 (IR1)  
00FE16 Interrupt egister 1 (IE1)  
00FF16  
Fig. 2.4.1 Memory map of seelated registers in 7470/7471 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-23  
 
 
APPLICATION  
2.4 Serial I/O  
2.4.2 Application example  
7470 7471 7477 7478  
, ,  
×
×
(1) Clock synchronous serial I/O mode  
Outline: Clock synchronous communication is performed among the 7470/7471 group.  
……  
Specifications: M3747x1  
Transmit side in half-duplex communication  
• Synchronous clock: f(XIN)/16  
• Port P17 is used as an SRDY signal input pin.  
……  
M3747x2  
Receive side in half-duplex communication  
• Synchronous clock: External clock  
SRDY signal output  
Figure 2.4.2 shows an example of connections and Figure 2.4.3 shows an example of control  
procedure.  
Full-duplex communication  
Half-duplex communication  
use  
2
1
M3747x  
M3747x  
P17  
CLK  
SRDY  
CLK  
SIN  
SOUT  
SOUT  
Fig. 2.4.2 Example of connections [Clock synchronous serial I/O mode, 7470/7471 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-24  
 
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
, ,  
×
×
M3747x1  
M3747x2  
Clear the serial I/O interrupt enable bit  
(Serial I/O interrupt disabled)  
Clear the serial I/O interrupt enable bit  
(Serial I/O interrupt disabled)  
Set port P1  
7 to input  
Set port P1  
4 to input  
Set the Serial I/O mode register  
Set the Serial I/O mode register  
0
0 0 0 1 1  
1
SM (Address 00DC16  
Internal clock f(XIN)/16  
)
S(Address 00DC16  
)
0 ✕ ✕  
0 0 0 1 1  
Synchronous clock  
Internal clock  
ous clock  
External clock  
Select SOUT, CLK  
t SOUT, CLK  
DY signal output  
Select SRDY signal  
Select port P1  
7
Mode Ordinary mode  
CMOS output  
Mode Ordinary mode  
CMOS output  
Clear the serial I/O interrupt request bit  
ar the serial I/O interrupt request bit  
Set the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
Set the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
Write the transmit data into the Serial I/O register  
(Write the dummy data in the half-duplex communication)  
N
Port P1  
7
= “L” ?  
Y
Write the transmit data into the Ser  
Serial I/O interrupt  
I/O interrupt  
Fig. 2.4.3 Example of control procedure [Clock synchronous serial I/O mode, 7470/7471 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-25  
APPLICATION  
2.4 Serial I/O  
(2)Byte specification mode  
7470 7471 7477 7478  
, ,  
×
×
Outline: Among the 7470/7471 group, transfer is performed for two or more microcomputers by  
using the clock synchronous byte specification mode.  
Specifications: Transmit side M3747x1  
• Synchronous clock: f(XIN)/32  
• Port P17 is used as an SRDY signal input pin.  
• Port P10 is used as an transmit preparation command signal output pin.  
Receive side M3747x2 , M3747x3 , M3747x4  
• Synchronous clock: External clock  
SARDY signal output  
• Port P10 is used as an transmit preparation command signal output pin.  
Figure 2.4.4 shows an example of connections and Figure 2.4.5 and 2.4.6 show an example of  
control procedure.  
Transmit side (M3747x1
Serial I/O mode regist
0
0
0
0
1
• Set port P1  
• Connect a pull-ort P1  
• Set port P1 
(Port P1 : ation  
comma
7 as an
7
0
0
LK  
S
OUT P1  
0
SARDY  
CLK  
ta  
Transmit/receive preparation command signal  
S
RDY(SARDY)  
S
RDY(SARDY  
)
S
IN  
S
IN  
P10  
P1  
0
CLK  
S
RDY(SARDY) CLK  
S
IN  
P10  
CLK  
• Set port P1  
0
as an input  
• Set port P1  
(Port P1  
0
as an input  
• Set port P1 as an input  
0
(Port P1  
command signal)  
• Set port P1 as an input  
0
: Transmit/receive preparation  
0
: Transmit/receive preparation  
command signal)  
• Set port P1 as an input  
(Port P1 : Transmit/receive preparation  
command signal)  
• Set port P1 as an input  
0
4
4
4
Serial I/O mode register  
Serial I/O mode register  
Serial I/O mode register  
1
1
1
1
1
0
0
0
1
1
1
1
1
0
0
0
1
1
1
1
1
0
0
0
Byte counter (Initial value) = 0  
Byte counter (Initial value) = 1  
Byte counter (Initial value) = 2  
Receive side 1 (M3747x 2)  
Receive side 2 (M3747x 3)  
Receive side 3 (M3747x 4)  
Fig. 2.4.4 Example of connections [Byte specification mode, 7470/7471 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-26  
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
, ,  
×
×
Transmit side (M3747x 1)  
Clear the serial I/O interrupt enable bit  
Receive side 1 (M3747x2)  
Clear the serial I/O interrupt enable bit  
(Serial I/O interrupt disabled)  
(Serial I/O interrupt disabled)  
Set port P1  
Set port P1  
4
0
as an input  
as an input  
Set port P1 as an input  
7
Connect a pull-up transistor to port P17  
Set port P1 as an output  
Set the Serial I/O mode register  
0
0 0 0  
1 1 1 1 1  
SM (Ads 00DC16  
)
Set the serial I/O mode register  
1 1 0  
S
LK  
signal output pin.  
RDY signal  
Byte specify mode  
annel open-drain output  
External clock  
0 0 0 0 1  
SM (Address 00DC16  
)
Internal clock f(XIN)/32  
Synchronous clock  
Select SOUT, CLK  
Internal clock  
Select port P1  
7
Mode Ordinary mode  
CMOS output  
rial I/O interrupt request bit  
the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
Clear the serial I/O interrupt request bit  
Set the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
Transmit preparation  
signal port P1  
0 “L” ?  
N
Transmit preparation signal port P1 
Y
Set the initial value of “0” of the receive side 1 in the byte counter  
N
Port P1  
7
=
Write the dummy data into the Serial I/O register  
0
Transmit preal port P1 “H”  
Write the tradata to receive side 1  
into the Serial I/O register  
Serial I/O interrupt  
Serial I/O interrupt  
Write the transmit data to receive side 2  
into the Serial I/O register  
Serial I/O interrupt  
Write the transmit data to receive side 3  
into the Serial I/O register  
Serial I/O interrupt  
Fig. 2.4.5 Example of control procedure (1) [Byte specification mode, 7470/7471 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-27  
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
, ,  
×
×
Receive side 3 (M3747x4)  
Receive side 2 (M3747x 3)  
Clear the serial I/O interrupt enable bit  
(Serial I/O interrupt disabled)  
Clear the serial I/O interrupt enable bit  
(Serial I/O interrupt disabled)  
Set port P1  
Set port P1  
4
0
as an input  
as an input  
Set port P1  
Set port P1  
4
0
as an input  
as an input  
Set the Serial I/O mode register  
Set the Serial I/O mode register  
0 0 0  
0 0 0  
1 1 1 1 1  
1 1 1 1 1  
SM (Address 00DC16  
)
ddress 00DC16  
)
Synchronous clock  
External clock  
us clock  
External clock  
Select SOUT, CLK  
SOUT, CLK  
Select SRDY signal output pin.  
Select SARDY signal  
ct SRDY signal output pin  
elect SARDY signal  
Mode Byte specify mode  
N-channel open-drain output  
Mode Byte specify mode  
N-channel open-drain output  
Clear the serial I/O interrupt request bit  
he serial I/O interrupt request bit  
Set the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
Set the serial I/O interrupt enable bit  
(Serial I/O interrupt enabled)  
N
Transmit preparation  
signal port P10 “L” ?  
Transmit preparation  
signal port P10 “L” ?  
Y
Y
Set the initial value of “1” of the receive side unter  
Set the initial value of “2” of the receive side 3 in the Byte counter  
g  
Write the dummy data into the Serial I/O register  
Write the dummy data into register  
Serial I/O interrupt  
Serial I/O interrupt  
Fig. 2.4.6 Example of control procedure (2) [Byte specification mode, 7470/7471 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-28  
APPLICATION  
2.4 Serial I/O  
2.4.3 7477/7478 group memory allocation  
7470 7471 7477 7478  
×
×
, ,  
Figure 2.4.7 shows a memory map of serial I/O related registers in the 7477/7478 group.  
Address  
00E016 Transmit/receive buffer register (TB/RB)  
Serial I/O status register (SIOSTS)  
00E116  
Serial I/O control register (SIOCON)  
UART control register (UARTCON)  
Baud rate generator (BRG)  
00E216  
00E316  
00E416  
00FC16  
00FD16  
00FE16  
00FF16  
Interrupt request (IR1)  
Interrupt ister 1 (IE1)  
Fig. 2.4.7 Memory map of O related registers in 7477/7478 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-29  
 
APPLICATION  
2.4 Serial I/O  
2.4.4 Application examples  
7470 7471 7477 7478  
×
×
, ,  
(1) Clock synchronous serial I/O mode  
Outline: Clock synchronous communication is performed among the 7477/7478 group.  
……  
Specifications: M3747x1  
Transmit side in half-duplex communication.  
• Synchronous clock: BRG output (f(XIN)/4 or f(XIN)/16)/4.  
_________  
• Port P17 is used as an SRDY signal input pin.  
……  
M3747x2  
Receive side in half-duplex communication  
• Synchronous clock: External clock  
_________  
SRDY signal output  
Figure 2.4.8 shows an example of connections and Figure 2.4.9 shows an example of control  
procedure.  
se Full-duplex communication  
No use Half-duplex communication  
M3747x1  
M3747x2  
P17  
SRDY  
SCLK  
TxD  
RxD  
SCLK  
RxD  
TxD  
Fig. 2.4.8 Example of connections [Clock synchronous serial I/O mode, 7477/7478 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-30  
 
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
×
×
, ,  
M3747x2  
M3747x1  
Clear the serial I/O transmit interrupt enable bit  
(Serial I/O transmit interrupt disable)  
Clear the serial I/O transmit interrupt enable bit  
(Serial I/O transmit interrupt disabled)  
Clear the serial I/O receive interrupt enable bit  
(Serial I/O receive interrupt disable)  
Clear the serial I/O receive interrupt enable bit  
(Serial I/O receive interrpt disabled)  
Set the Serial I/O cor  
Set baud rate generator  
ress 00E216  
)
1 1 ✕  
1 1 1 1 ✕  
Set port P1  
7 as an input  
count source  
ous clock  
External clock  
output enabled  
Set the Serial I/O control register  
ect transmit interrupt source  
ransmit enabled  
Receive enabled  
Clock synchronous serial I/O selected  
Serial I/O enabled  
0
SIOCON (Address 00E216  
Select BRG count source  
)
1 1 1 1 0  
Synchronous clock  
BRG output divided by 4  
S
RDY output disabled  
Select transmit interrupt source  
Transmit enabled  
Receive enabled  
Clock synchronous serial I/O selected  
Serial I/O enabled  
NOP  
Clear the serial I/O transmit interrupt request bit  
Clear the serial I/O receive interrupt request bit  
NOP  
Set the serial I/O transmit interrupt enable bit  
(Serial I/O transmit interrupt enabled)  
Set the serial I/O receive interrupt enable bit  
(Serial I/O receive interrupt enabled)  
Clear the serial I/O transmit interrupt request bit  
Clear the serial I/O receive interrupt request bit  
Set the serial I/O transmit interrupt ena
(Serial I/O transmit interrupt en
Set the serial I/O receive interrup
Write the transmit data into the Transmit buffer register  
(Write the dummy data in the half-duplex communication)  
(Serial I/O receive interru
N
Port P
Y
Serial I/O transmit interrupt  
Serial I/O receive interrupt  
Write the transmit data into the Transmit buffer register  
Serial I/O transmit interrupt  
Serial I/O receive interrupt  
Fig. 2.4.9 Example of control procedure [Clock synchronous serial I/O mode, 7477/7478 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-31  
APPLICATION  
2.4 Serial I/O  
(2)Clock asynchronous serial I/O mode  
7470 7471 7477 7478  
×
×
, ,  
Outline: Clock asynchronous communication is performed among the 7477/77478 groups.  
……  
Specifications: M3747x1  
Transmit side in half-duplex communication  
f(XIN)  
4 × (XX16 + 1) × 16  
Receive side in half-duplex communication  
• Baud rate:  
bps  
……  
M3747x2  
f(XIN)  
bps  
• Baud rate:  
4 × (XX16 + 1) × 16  
“XX16” is a set value of the baud rate generator.  
Figure 2.4.10 shows an example of connections and Figure 2.4.11 shows an example of control  
procedure.  
Uull-duplex communication  
e Half-duplex communication  
M3747x1  
747x2  
TxD  
R
RxD  
TxD  
Fig. 2.4.10 Example of connections [Clock asynchronous serial I/O mode, 7477/7478 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-32  
APPLICATION  
2.4 Serial I/O  
7470 7471 7477 7478  
×
×
, ,  
M3747x1  
M3747x2  
Clear the serial I/O transmit interrupt enable bit  
Clear the serial I/O transmit interrupt enable bit  
(Serial I/O transmit interrupt disabled)  
Clear the serial I/O receive interrupt enable bit  
(Serial I/O receive intept disabled)  
(Serial I/O transmit interrupt disabled)  
Clear the serial I/O receive interrupt enable bit  
(Serial I/O receive interrupt disabled)  
Set baud rate generator  
Set baud or  
(Set “✕✕16” to BRG)  
(Set G)  
Set the Serial I/O control register  
Set the Serregister  
SIOCON (Address 00E216  
)
1 0 1 1 ✕ ✕ 0 0  
ON (Address 00E216  
)
1 0 1 1
BRG count source f(XIN)/4  
RG count source f(XIN)/4  
Synchronous clock  
BRG output divided by 16  
Synchronous clock  
BRG output divided by 16  
Select transmit interrupt source  
Transmit enabled  
Receive enabled  
Clock asynchronous serial I/O selected  
Serial I/O enabled  
Select transmit interrupt source  
Transmit enabled  
Receive enabled  
Clock asynchronous serial I/O selected  
Serial I/O enabled  
NOP  
NOP  
Clear the serial I/O transmit interrupt request bit  
Clear the serial I/O receive interrupt request bit  
Clear the serial I/O transmit interrupt re
Clear the serial I/O receive interrupt
Set the serial I/O transmit ibit  
(Serial I/O transmit in)  
Set the serial I/O receable bit  
(Serial I/O recebled)  
Set the serial I/O transmit interrupt enable bit  
(Serial I/O transmit interrupt enabled)  
Set the serial I/O receive interrupt enable bit  
(Serial I/O receive interrupt enabled)  
Write the transmit data into ransmit buffer register  
Write the transmit data to the Transmit buffer register  
in the full-duplex communication  
Serial I/O transmit interrupt  
Serial I/O receive interrupt  
Serial I/O transmit interrupt  
Serial I/O receive interrupt  
Fig. 2.4.11 Example of control procedure [Clock asynchronous serial I/O mode, 7477/7478 group]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-33  
APPLICATION  
2.4 Serial I/O  
2.4.5 Notes on use  
7470 7471 7477 7478  
, , , ,  
2 For notes on use, refer to “1.13 Serial I/O.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-34  
 
APPLICATION  
2.5 A-D converter  
7470 7471 7477 7478  
2.5 A-D converter  
, , , ,  
2.5.1 Memory allocation  
Figure 2.5.1 shows a memory map of A-D conversion related registers.  
Address  
A-D control register (ADCON)  
A-D conversion register (AD)  
00D916  
00DA16  
Interrupt request regis
Interrupt contr1 (IE1)  
00FC16  
00FD16  
00FE16  
00FF16  
Fig. 2.5.1 Memory map of A-D cn related registers  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-35  
 
 
APPLICATION  
2.5 A-D converter  
2.5.2 Application examples  
7470 7471 7477 7478  
, , , ,  
(1) A-D conversion value determination methods  
For improvement of the accuracy of A-D conversion results, we recommend you perform sampling  
several times to determine a value.  
The following A-D conversion value sampling methods are available (m, n: Arbitrary values based on  
the specification).  
n
Example: 1Sampling 2 times  
n
2Moving sampling 2 times  
n
3Sampling (2 + 2) times  
For value determination, the following methods are available.  
Example: [1] The sum of sampling result is divided by sampling times.  
n
[2] After execution of sampling (2 + 2) times, the minvalue and the maximum  
n
value are excluded and then the remaining values d and then divided by 2  
times.  
[3] When updating the average value calculate[2], this average value is not  
updated if the difference from the previois ± m or more.  
In “2.5.2 Application examples, (2) Example of A-sion setting,” an example of using the  
sampling methods 2 + 3 and the determinatio[3] is shown.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-36  
 
APPLICATION  
2.5 A-D converter  
(2) Example of A-D conversion setting  
7470 7471 7477 7478  
, , , ,  
An example of A-D conversion setting using the sampling methods 2 + 3 and the determination  
method [3] described on the previous page is shown below.  
Specifications: After execution of 6-time moving sampling the maximum value and the minimum  
value are excluded and then the remaining values are added. This result is  
divided by 4 (times). If the difference from the previous value is less than ±5, the  
value is updated. If the same difference is ±5 or more, it is not updated.  
Figure 2.5.2 shows an example of control procedure.  
Maximum  
Minimum  
value  
value  
Sampling point  
A-D conversion result  
A616  
A816  
A916  
A716  
A81
A-D conversion routine  
Set the port P20 as an input  
Clear the A-D conversion interrupt  
request bit  
N
A-D conversion completed ?  
(Note 3)  
Set the A-D control register  
Y
0
0 ✕ ✕ 1 1 0  
0
ADCON (A16)  
AD input N0  
End c
The contents of A-D conversion register is read  
and stored into RAM.  
(ADRAM) AB16  
VRed (Note 1)  
F
After execution of 6-time samplings to this time, the  
minimum value and the maximum value are excluded and  
then the remaining values are added.  
Wait tabilizing time  
(1.0 µore) (Note 2)  
A816+A916+A716+A816=2A016  
Set the A-D control register  
Total of 4-time sampling  
4
2A016  
4
=A816  
0 0 0  
0 ✕ ✕ 1 0  
ADCON (Address 00D916)  
Clear the A-D conversion  
completion bit  
±5 or more  
Compare with the previous fixed  
value  
less than ±5  
Notes 1: The 7477/7478 group is not provided with this bit.  
2: Performs this operation only in the 7470/7471  
group.  
Renewal of fixed value  
3:  
A termination of A-D conversion is verified by the  
state of the A-D conversion completion bit, the  
state of the A-D conversion completion interrupt  
request bit and a branch to the A-D conversion  
completion interrupt processing routine.  
RTS  
Fig. 2.5.2 Example of A-D conversion control procedure  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-37  
APPLICATION  
2.5 A-D converter  
2.5.3 Notes on use  
7470 7471 7477 7478  
The analog input internal equivalent circuit is shown in Figure 2.5.3. For correct A-D conversion,  
it is necessary that the internal capacitor should be completely charged within the specified time.  
The maximum value of output impedance of the analog input source required to terminate capacitor  
charging within this time is shown below.  
• At f(XIN) = 4 MHz, Approximately 10 kΩ  
• At f(XIN) = 8 MHz, Approximately 2 kΩ  
If the maximum value of output impedance exceeds the above value, take a proper measure, for  
example, insert a capacitor (0.1 µF to 1 µF) between analog input pin and VSS.  
V
CC  
C1  
=10 pF  
±50 %  
R=4 kΩ ±60%  
SW1(Note 2)  
C2=6 pF ±
Port P2i/INi  
(i=0 to 7)  
SW2  
V
SS  
VSS  
Amplifier  
(Note 1)  
Referen
gene
dder  
VREF switch (Note 3)  
V
SS  
VREF  
Notes 1: This diode of the output transistor.  
2: on only when the analog input pin is selected.  
witch is not provided in the 7477/7478 group.  
Fig. 2.5.3 Analog input l equivalent circuit  
For other notes on use, refer to “1.14 A-D converter.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-38  
 
APPLICATION  
2.6 Reset  
7470 7471 7477 7478  
2.6 Reset  
, , , ,  
2.6.1 Reset circuit  
Figure 2.6.1 shows an example of reset circuit.  
M3747x  
M3747x  
Supply voltage  
detection circuit  
RESET  
RESET  
V
CC  
VCC  
RESET, VCC pin number  
32P  
18  
56P  
42P  
25  
RESET  
CC  
28  
V
17  
22  
Fig. 2.6.1 Example of reset circuit  
2.6.2 Notes on use  
2 For notes on use“1.15 Reset.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-39  
 
 
 
APPLICATION  
2.7 Oscillation circuit  
7470 7471 7477 7478  
2.7 Oscillation circuit  
(1) Oscillation circuit using a ceramic resonator  
An oscillation circuit can be formed by connecting a ceramic resonator or a crystal oscillator between  
the XIN pin and the XOUT pin and between the XCIN pin and the XCOUT pin.  
Figure 2.7.1 shows an example of oscillation circuit using a ceramic resonator.  
Regarding such circuit constants as Rd, CIN and COUT, ask the oscillator maker for information and  
then set the recommended value.  
7471/7478 group  
7470/7477 group  
X
IN  
X
OUT  
X
C
X
COUT  
24  
X
IN  
XOUT  
15  
14  
19  
(18)  
20  
(19)  
(26)  
R
d
R
d
Rd'  
C
IN  
C
CIN  
CCOUT  
C
IN  
COUT  
Note: The number in paenotes the case of a flat package.  
Fig. 2.7.1 Example of Oscillation circuit using resonator  
(2) External clock input  
To the main clock and timer clock n circuits, clocks can also be supplied from the outside.  
Figure 2.7.2 shows an example in this case. At this time, make the XOUT (XCOUT) pin open.  
As an external clock to be ine XIN (XCIN) pin, use a pulse signal with a duty ratio of 50 %.  
7471/7478 group  
7470/7477 g
X
IN  
XOUT  
X
CIN  
X
COUT  
24  
X
IN  
XOUT  
14  
15  
19  
(18)  
20  
(19)  
23  
(25)  
(26)  
Open  
Open  
R
d
External oscillation circuit  
CC  
External oscillation circuit  
CC  
SS  
V
V
V
C
IN  
COUT  
VSS  
Duty ratio 50%  
Duty ratio 50%  
Note: The number in parentheses denotes the case of a flat package.  
Fig. 2.7.2 Example of external clock input circuit  
Note: The XCIN and the XCOUT pin are not provided in the 7470/7477 group.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-40  
 
APPLICATION  
2.8 Low-power dissipation function  
7470 7471 7477 7478  
2.8 Low-power dissipation function  
2.8.1 CPU mode register  
+1  
The CPU mode register consists of a stack page selection bit  
and internal system clock control  
+2  
bits  
.
+1: In the products having a RAM capacity of 192 bytes or less, a RAM is not arranged on page 1,  
so this bit is not available. (Be sure to set this bit to “0.”)  
+2: In the 7470/7477 group, which is not provided with a sub-clock (f(XCIN)) generating circuit, f(XCIN)  
is not used. (Be sure to set this bit to “0.”)  
Figure 2.8.1 shows a structure of CPU mode register.  
CPU mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
0 0  
CPU mode register (CPUM00FB16  
]
B
Name  
Function  
At reset R W  
0
Fix these bits
0, 1  
0: In page 0 area  
1: In page 1 area  
Stack pan  
bit  
2
0
(Note 1)  
3
llocated for this bit. This is write  
bit and is undefined at reading.  
?
0
? ✕  
P51/XCIN,XCOUT  
0: P50, P51  
ection bit  
1: XCIN, XCOUT (Note 2)  
0: Low  
1: High  
X
COUT drive capacity  
0
0
6
(Note 2)  
(Note 2)  
selection bit  
Main clock (XIN–XOUT  
stop bit  
)
0: Oscillates  
1: Stops  
Internal system clock  
selection bit  
0: XIN–XOUT selected  
(Ordinary mode)  
1: XCIN–XCOUT selected  
(Low speed mode)  
(Note 2)  
7
0
Notes 1:  
2:  
In the products having a RAM capacity of 192 bytes or  
less, set this bit to “0.”  
Since the 7470/7477 group is not provided with the  
sub-clock generating circuit, f(XCIN) cannot be used.  
Fix these bits to “0.”  
Fig. 2.8.1 Structure of CPU mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-41  
 
 
APPLICATION  
2.8 Low-power dissipation function  
2.8.2 Application examples  
7470 7471 7477 7478  
, , , ,  
As examples of application, examples of setting between modes are shown below.  
(1) Ordinary mode Stop mode Ordinary mode  
(2) Ordinary mode Wait mode Ordinary mode  
(3) Ordinary mode Low speed mode  
(4) Low speed mode Ordinary mode  
Note: In the 7470/7477 group, which is not provided with a sub-clock generating circuit, the low-  
speed mode is not available.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-42  
 
APPLICATION  
2.8 Low-power dissipation function  
(1) Ordinary mode Stop mode Ordinary mode  
7470 7471 7477 7478  
Specifications: The stop mode is executed by the STP instruction.  
Restoration to the ordinary mode is attained by INT0 interrupt.  
Figure 2.8.2 shows an example of control procedure.  
Clear the timer 3 interrupt enable bit (timer 3 interrupt disabled)  
Clear the timer 4 interrupt enable bit (timer 4 interrupt disabled)  
Stop the timer 3 and timer 4 and select the timer 3 count  
source  
(Set the Timer 34 mode register)  
✕ ✕ ✕ ✕ 1 ✕  
1
T34M (Address 00F916  
)
Select the timer 3 count source  
Set the return interrupt source  
Clear the INT interrupt request bit  
Execute the NOP instruction  
Set the INT interrupt enable bit  
(INT interrupt enabled)  
0
0
0
Set the timer 3 and 4 count state  
(Set the Timer 34 mode register)  
✕ ✕ ✕ ✕ 0 ✕ ✕ 0  
T34M (Addre
Timer 3 co
Timer 4
Clear the interrupeach interrupt enabled)  
e STP instruction  
INT0 interrupt  
RTI  
Set the interrupt disable flag (each interrupt disabled)  
Re-set the timer 3 and 4  
Timer 34 mode register  
Timer 3 register  
Timer 4 register  
Clear the interrupt disable flag (each interrupt enabled)  
Fig. 2.8.2 Example of control procedure [Ordinary mode Stop mode Ordinary mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-43  
APPLICATION  
2.8 Low-power dissipation function  
(2) Ordinary mode Wait mode Ordinary mode  
7470 7471 7477 7478  
Specifications: The wait mode is executed by the WIT instruction.  
Restoration to the ordinary mode is attained by INT0 interrupt.  
Figure 2.8.3 shows an example of control procedure.  
Set the return interrupt source  
Clear the INT interrupt request bit  
Execute the NOP instruction  
Set the INT interrupt enable bit  
(INT interrupt enable)  
0
0
0
Clear the interrupt disable flag (each inter
Execute the WIT in
INT0 interrupt  
RTI  
The next address of the WIT instruction  
Fig. 2.8.3 Example of control procedure [Ordinary mode Wait mode Ordinary mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-44  
APPLICATION  
2.8 Low-power dissipation function  
(3) Ordinary mode Low speed mode  
7470 7471 7477 7478  
×
,
×
,
Specifications: The system clock is switched from the main clock (f(XIN) = 8 MHz) to the sub-  
clock (f(XCIN) = 32 kHz). The main clock is stopped.  
Figure 2.8.4 shows an example of control procedure.  
Set the CPU mode register  
0 0  
0 0 1 1 ✕  
CPUM (Address 00FB16)  
Fixed to “0”  
XCIN, XCOUT selected  
XCOUT drive capacity Hlected  
Main clock oscillatio
System clock Ordelected  
Wait f(XCIN) oscillzing time  
For certain tioscillator manufacturer for  
information.  
PU mode register  
0
1 ✕ ✕  
0
CPUM (Address 00FB16)  
Fixed to “0”  
XCIN, XCOUT selected  
XCOUT drive capacity High power selected  
Main clock stop  
System clock Low speed mode selected  
Fig. 2.8.4 Example of control procedure [Ordinary mode Low speed mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-45  
APPLICATION  
2.8 Low-power dissipation function  
(4) Low speed mode Ordinary mode  
7470 7471 7477 7478  
×
,
×
,
Specifications: The system clock is switched from the sub-clock (f(XCIN) = 32 kHz) to the main  
clock (f(XIN) = 8 MHz). The sub-clock is stopped.  
Figure 2.8.5 shows an example of control procedure.  
Set the CPU mode register  
0 0  
1 0 1 1 ✕  
CPUM (Address 00FB16)  
Fixed to “0”  
XCIN, XCOUT selected  
XCOUT drive capacity Higcted  
Main clock oscillation  
System clock Low-selected  
Wait f(XIN) oscillatng time  
For certain tioscillator manufacturer.  
U mode register  
0
✕ ✕  
0
CPUM (Address 00FB16)  
Fixed to “0”  
P50, P51 selected  
Main clock oscillation  
System clock Ordinary mode selected  
Fig. 2.8.5 Example of control procedure [Low speed mode Ordinary mode]  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-46  
APPLICATION  
2.8 Low-power dissipation function  
2.8.3 Notes on use  
7470 7471 7477 7478  
, , , ,  
2 For notes on use, refer to “1.17 Low-power dissipation function.”  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-47  
 
APPLICATION  
2.9 Countermeasures against noise  
7470 7471 7477 7478  
2.9 Countermeasures against noise  
, , , ,  
Countermeasures against noise are described below. The following countermeasures are effective against  
noise in theory, however, it is necessary not only to take measures as follows but to evaluate before actual  
use.  
2.9.1 Shortest wiring length  
The wiring on a printed circuit board can be as an antenna which feeds noise into the microcomputer.  
The shorter the total wiring length (by mm unit), the less the possibility of noise insertion into a microcomputer.  
____________________  
(1) Wiring for the RESET pin  
_______________  
Make the length of wiring which is connected to the RESET pin as short as possible. Especially,  
_______________  
connect a capacitor across the RESET pin and the VSS pin with the shortest possible wiring (within  
20mm).  
Reason  
The reset works to initialize a microcomputer.  
_______________  
The width of a pulse input into the RESET pin is determined ming necessary conditions. If  
___________  
noise having a shorter pulse width than the standard is inpRESET pin, the reset is released  
before the internal state of the microcomputer is complalized. This may cause a program  
runaway.  
Noise  
Reset  
circuit  
Reset  
circuit  
RESET  
VSS  
RESET  
VSS  
VSS  
VSS  
7470/7471/  
7477/7478  
group  
7470/7471/  
7477/7478  
group  
N.G.  
O.K.  
____________________  
Fig. 2.9.1 Wiring for the RESET pin  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-48  
 
 
APPLICATION  
2.9 Countermeasures against noise  
7470 7471 7477 7478  
(2) Wiring for clock input/output pins  
, , , ,  
Make the length of wiring which is connected to clock I/O pins as short as possible.  
Make the length of wiring (within 20mm) across the grounding lead of a capacitor which is connected  
to an oscillator and the VSS pin of a microcomputer as short as possible.  
Separate the VSS pattern only for oscillation from other VSS patterns.  
Reason  
A microcomputer’s operation synchronizes with a clock generated by the oscillator (circuit). If noise  
enters clock I/O pins, clock waveforms may be deformed. This may cause a malfunction or program  
runaway.  
Also, if a potential difference is caused by the noise between the VSS level of a microcomputer and  
the VSS level of an oscillator, the correct clock will not be input in the microcomputer.  
An VSS patterns on the  
ua printed circuit board  
Noise  
Oscill
patle  
X
X
V
IN  
OUT  
SS  
X
X
V
IN  
X
X
V
IN  
OUT  
SS  
OUT  
SS  
Separate the VSS line for oscillation from other VSS lines  
N.G.  
O.K.  
Fig. 2.9.2 Wiring for clock I/O pi
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-49  
APPLICATION  
2.9 Countermeasures against noise  
(3) Wiring for the VPP pin of the One Time PROM version and the  
EPROM version  
7470 7471 7477 7478  
, , , ,  
Make the length of wiring which is connected to the  
VPP pin as short as possible.  
Connect an approximately 5 kresistor to the VPP  
pin in serial.  
The P33 pin is also used as the VPP pin.  
7470/7471/7477/7478 group  
Approximately  
Reason  
5kΩ  
The VPP pin of the One Time PROM and the EPROM  
version is the power source input pin for the built-in  
PROM. When programming in the built-in PROM, the  
impedance of the VPP pin is low to allow the electric  
current for wiring flow into the PROM. Because of  
this, noise can enter easily. If noise enters the VPP  
pin, abnormal instruction codes or data are read from  
the built-in PROM, which may cause a program runaway.  
P33/VPP  
Fig. ring for the VPP pin of the One  
Time PROM and the EPROM  
version  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-50  
APPLICATION  
2.9 Countermeasures against noise  
2.9.2 Connection of a bypass capacitor across the Vss line and  
7470 7471 7477 7478  
the Vcc line  
Connect an approximately 0.1 µF bypass capacitor across  
the VSS line and the VCC line as follows:  
Connect a bypass capacitor across the VSS pin and  
the VCC pin at equal length.  
Connect a bypass capacitor across the VSS pin and  
the VCC pin with the shortest possible wiring.  
Use lines with a larger diameter than other signal lines  
for VSS line and VCC line.  
V
CC  
Chip  
Chip  
VCC  
V
SS  
V
CC  
VSS  
VSS  
2.9.3 Wiring to analog input pins  
Connect an approximately 100 to 1 kresistor to an  
analog signal line which is connected to an analog  
input pin in series. Besides, connect the resistor to the  
microcomputer as close as possible.  
Connect an approximately 1000 pF capacitor across  
the VSS pin and the analog input pin. Besides, connect  
the capacitor to the VSS pin as close as possible. Also,  
connect the capacitor across the analog input pin and  
the VSS pin at equal length.  
Fig. pass capacitor across the VSS  
line and the VCC line  
Noise  
Reason  
Signals which is input in an analog input pin (sn  
A-D converter input pin) are usually output rom  
sensor. The sensor which detects a chavent is  
installed far from the printed circd with a  
microcomputer, the wiring to an anapin is longer  
necessarily.  
(Note)  
Microcomputer  
Analog  
input pin  
Thermistor  
This long wiring functions as nna which feeds  
noise into the microcomputcauses noise to an  
analog input pin.  
N.G.  
O.K.  
VSS  
If a capacitor between og input pin and the VSS  
pin is grounded at a posn far away from the VSS pin,  
noise on the GND line may enter a microcomputer through  
the capacitor.  
Note : The resistor is for dividing resistance  
with a thermister.  
Fig. 2.9.5 Analog signal line and a resistor  
and a capacitor  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-51  
 
 
APPLICATION  
2.9 Countermeasures against noise  
2.9.4 Consideration for oscillator  
7470 7471 7477 7478  
Take care to prevent an oscillator that generates clocks  
for a microcomputer operation from being affected by other  
signals.  
(1) Keeping an oscillator away from large current signal  
lines  
Microcomputer  
Mutual inductance  
M
Install a microcomputer (and especially an oscillator)  
as far as possible from signal lines where a current  
larger than the tolerance of current value flows.  
XIN  
Large  
current  
XOUT  
VSS  
<Reason>  
GND  
In the system using a microcomputer, there are signal  
lines for controlling motors, LEDs, and thermal heads  
or others. When a large current flows through those  
signal lines, strong noise occurs because of mutual  
inductance.  
Fig. ring for a large current signal  
line  
(2) Keeping an oscillator away from signal lines where  
potential levels change frequently  
Install an oscillator and a connecting patter
osillator away from signal lines where poten
change frequently.  
Also, do not cross such signal lines clock  
lines or the signal lines which are to noise.  
CNTR  
Do not cross  
XIN  
XOUT  
VSS  
<Reason>  
Signal lines where potentiahange frequently  
(such as the CNTR pin laffect other lines at  
signal rising or falling such lines cross over  
a clock line, clock wmay be deformed, which  
causes a microcompailure or a program runaway.  
Fig. 2.9.7 Wiring to a signal line where  
p o t e n t i a l l e v e l s c h a n g e  
frequently  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-52  
 
APPLICATION  
2.9 Countermeasures against noise  
2.9.5 Setup for I/O ports  
7470 7471 7477 7478  
, , , ,  
Setup I/O ports using hardware and software as follows:  
<Hardware>  
Connect a resistor of 100 or more to an I/O port  
inseries.  
Noise  
<Software>  
O.K.  
As for an input port, read data several times by a  
program for checking whether input levels are equal  
or not.  
As for an output port, since the output data may  
reverse because of noise, rewrite data to its port  
latch at fixed periods.  
Data bus  
Noise  
Direction register  
N.G.  
Port latch  
I/O port  
pins  
Rewrite data to direction registers and pull-up control  
registers (only the product having it) at fixed periods.  
When a direction register is set for input port again  
at fixed periods, a several-nanosecond short pulse  
may be output from this port. If this is undesirable,  
connect a capacitor to this port to remove t
noise pulse.  
.8 Setup for I/O ports  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-53  
 
APPLICATION  
2.9 Countermeasures against noise  
2.9.6 Providing of watchdog timer function by software  
7470 7471 7477 7478  
, , , ,  
If a microcomputer runs away because of noise or others, it can be detected by a software watchdog timer  
and the microcomputer can be reset to normal operation. This is equal to or more effective than program  
runaway detection by a hardware watchdog timer. The following shows an example of a watchdog timer  
provided by software.  
In the following example, to reset a microcomputer to normal operation, the main routine detects errors  
of the interrupt processing routine and the interrupt processing routine detects errors of the main routine.  
This example assumes that interrupt processing is repeated multiple times in a single main routine  
processing.  
<The main routine>  
Assigns a single byte of RAM to a software watchdog timer (SWDT) and writes the initial value  
N in the SWDT once at each execution of the main routine. The initial value N should satisfy the  
following condition:  
N + 1 Q (Counts of interrupt processing executed in n routine)  
As the main routine execution cycle may change becausterrupt processing or others, the  
initial value N should have a margin.  
Watches the operation of the interrupt processiby comparing the SWDT contents with  
counts of interrupt processing count after thalue N has been set.  
Detects that the interrupt processing routiiled and determines to branch to the program  
initialization routine for recovery procehe following cases:  
If the SWDT contents do not changterrupt processing.  
<The interrupt processing routine>  
Decrements the SWDT contat each interrupt processing.  
Determins that the main rorates normally when the SWDT contents are reset to the initial  
value N at almost fixe(at the fixed interrupt processing count).  
Detects that the mahas failed and determines to branch to the program initialization  
routine for recovessing in the following case:  
When the contee SWDT reach 0 or less by continuative decrement without initializing to  
the initial value N
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-54  
 
APPLICATION  
2.9 Countermeasures against noise  
7470 7471 7477 7478  
Interrupt processing routine  
Main routine  
(SWDT) (SWDT)—1  
N  
(SWDT)  
CLI  
Interrupt processing  
Main processing  
> 0  
(SWDT)  
0 ?  
RTI  
N  
0  
(SWDT)  
= N ?  
Retur
= N  
Main routine  
errors  
Interrupt processing  
routine errors  
Fig. 2.9.9 Watchdog timer by software  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-55  
APPLICATION  
2.10 Notes on programming  
7470 7471 7477 7478  
2.10 Notes on programming  
, , , ,  
2.10.1 Processor status register  
(1) Initialization of processor status register  
After a reset, the contents of the processor  
status register (PS) are undefined except for  
the I flag which is “1.” Therefore, flags which  
affect program execution must be initialized  
after a reset.  
Reset  
Flags initializing  
Main program  
In particular, it is essential to initialize the T  
and D flags because they have an important  
effect on calculations.  
(2) How to reference the processor status  
register  
To reference the contents of the processor  
status register (PS), execute the PHP instruction  
once then read the contents of (S + 1). If  
necessary, execute the PLP instruction to return  
the PS to its original status. A NOP instruction  
should be executed after every PLP instruction.  
Fig. 2.10.1 Inin of flags in PS  
(S)  
Saved PS  
(S) + 1  
Fig. 2.10.2 Stack memory contents after PHP  
instruction execution  
PLP instruction  
NOP instruction  
Fig. 2.10.3 Note to execute by PLP instruction  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-56  
 
 
APPLICATION  
2.10 Notes on programming  
2.10.2 Decimal calculations  
7470 7471 7477 7478  
, , , ,  
(1) Execution of decimal calculations  
The ADC and SBC are the only instructions  
which will yield proper decimal results in decimal  
mode. To calculate in decimal notation, set  
the decimal mode flag (D) to “1” with the SED  
instruction. After executing the ADC or SBC  
instruction, execute another instruction before  
executing the SEC, CLC, or CLD instruction.  
Set D Flag to “1”  
ADC or SBC instruction  
NOP instruction  
(2) Note on flags in decimal mode  
When decimal mode is selected, the values of  
three of the flags in the status register (the N,  
V, and Z flags) are invalid after a ADC or SBC  
instruction is executed.  
SCLD instruction  
The Carry flag (C) is set to “1” if a carry is  
generated as a result of the calculation, or is  
cleared to “0” if a borrow is generated. To  
determine whether a calculation has generated  
a carry, the C flag must be initialized to “0”  
before each calculation. To check for a bor-  
row, the C flag must be initialized before each  
calculation.  
FiNote for decimal operation  
2 For other notes, refer to the notes des
each section.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-57  
 
APPLICATION  
2.11 Differences between 7470/7471 group and 7477/7478 group  
7470 7471 7477 7478  
2.11 Differences between 7470/7471 group  
and 7477/7478 group  
Table 2.11.1 shows differences between the 7470/7471 group and the 7477/7478 group. Exercise due  
care at substitution.  
Table 2.11.1 Differences between 7470/7471 group and 7477/7478 group  
7470/7471 group  
128/192/384 bytes  
7477/7478 group  
192/384 bytes  
RAM size  
ROM size  
8K/16K byte  
Y
4K/8K/16K byte  
N
32-pin SOP  
Operating temperature  
range  
-20 to 85°C  
-20 to 85 °C  
Interrupt source types  
Serial I/O  
Byte specification mode  
Port P2  
Software pull-up control  
A-D conversion VREF  
OFF function  
12  
Clock synchronous  
Y
13  
ynchronous / UART  
N
General I/O port / Analog input  
P0, P1, P2, P4, P5  
eral input port / Analog input  
P0, P1, P4, P5  
Y
N
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-58  
 
APPLICATION  
2.12 Example of application circuit  
7470 7471 7477 7478  
2.12 Example of application circuit  
×
×
×
Figures 2.12.1 and 2.12.2 show examples of application circuit using the 7470 group, the 7478 group respectively.  
M37470M2  
Fig. 2.12.1 Application circuit example (cleaner)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
2-59  
 
CHAPTER 3  
APPENDIX  
3.1 Control registers  
3.2 Mask ROM ordering  
method  
3.3 ROM programming  
ordering method  
3.4 Mark specification form  
3.5 Package outline  
3.6 SFR memory map  
3.7 Pin configuration  
APPENDIX  
3.1 Control registers  
3.1 Control registers  
Port Pi direction register  
b7 b6 b5 b4 b3b2 b1 b0  
Port Pi direction register (PiD) (i = 0,1,2,4)  
[Address 00C116, 00C316, 00C516, 00C916]  
At reset  
R W  
B
0
Name  
Function  
0 : Port Pi0 input mode  
1 : Port Pi0 output mode  
Port Pi direction  
register  
0
0 : Port Pi1 input mode  
1 : Port Pi1 output mode  
1
2
3
4
0
0
0
0
0
0
0
0 : Port Pi2 input mode  
1 : Port Pi2 output mode  
0 : Port Pi3 input mode  
1 : Port Pi3 output mode  
0 : Port Pi4 inpu
1 : Port Pi4 o
0 : Port Pie  
1 : Port mode  
5
6
0 : Pt mode  
1 utput mode  
7
7 input mode  
Pi7 output mode  
Notes 1: The 7477p is not provided with the port P2  
directiinput only).  
2: The provided as below:  
•7roup has 2 bits of P4 0 and P41  
8 group has 4 bits of P4 0 to P43.  
Fig. 3.1.1 Structure of Port Pi directter (i=0, 1, 2, 4)  
Port P0 pull-up register  
b7 b6 b5 b0  
Port P0 pull-up control register  
[Address 00D016]  
Function  
At reset  
B
0
Name  
R W  
Port P00 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
0
Port P01 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
1
2
3
4
0
0
0
0
0
0
0
Port P02 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
Port P03 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
Port P04 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
Port P05 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
5
6
Port P06 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
Port P07 pull-up  
control bit  
0 : No pull-up  
1 : Pull-up  
7
Fig. 3.1.2 Structure of Port P0 pull-up control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-2  
 
APPENDIX  
3.1 Control registers  
Ports P1 to P5 pull-up control register  
b7 b6 b5 b4 b3 b2 b1 b0  
Ports P1 to P5 pull-up control register [Address 00D116]  
At reset  
b
0
Function  
0 : No pull-up  
1 : Pull-up  
Name  
R W  
Ports P10 to P13  
pull-up control bit  
Ports P14 to P17  
pull-up control bit  
0
0
0
0
0
?
0 : No pull-up  
1 : Pull-up  
1
Ports P2  
0
to P2  
3
pull-up  
(Note 2)  
0 : No pull-up  
1 : Pull-up  
2
3
control bit  
0 : No pull-up  
1 : Pull-up  
Ports P2  
control bit  
Ports P4  
control bit  
4
to P2  
7
pull-up  
(Notes 2, 3)  
0 : No pull-up  
1 : Pull-up  
0
to P4  
3
pull-up  
(Note 4)  
4
5
6
Nothing is allocated for this bit. This is w
disabled bit and is undefined at readin
?
?
Ports P5  
0
to P5  
3
pull-up  
(Note 3)  
0 : No pull-u
1 : Pull-u
0
?
control bit  
Nothing is allocated for this brite  
disabled bit and is undefing.  
7
Notes  
1 : In the 7470/7477 grto P4 Pull-up control register  
is provided.  
2 : In the 7477/74othing is allocated to these bits.  
They are uneading.  
3 : In the 747up, nothing is allocated to these bits.  
They ard at reading.  
4 : The group is provided with only P40 and P41.  
Fig. 3.1.3 Structure of Ports P1 to Pcontrol register  
Edge polarity sregister  
b7 b6 b5 1 b0  
Edge polarity selection register (EG) [Address 00D416]  
At reset  
Name  
Function  
R
W
B
0
INT0 edge selection  
bit  
0 : Falling edge  
1 : Rising edge  
0
0 : Falling edge  
1 : Rising edge  
1
2
3
4
5
INT1 edge selection  
bit  
0
0
0 : Falling edge  
1 : Rising edge  
0 : Falling edge  
1 : Rising edge  
CNTR0 edge  
selection bit  
CNTR1 edge  
selection bit  
0
0
0 : CNTR0  
1 : CNTR1  
CNTR0/CNTR1  
interrupt selection bit  
INT1 source selection 0 : P31/INT1  
bit (at STP or WIT 1 : P0 to P07 “L” level input  
0
0
?
instruction execution) (for key-on wake-up)  
Nothing is allocated for these bits. These are  
write disabled bits and are undefined at reading.  
6, 7  
?
Fig. 3.1.4 Structure of Edge polarity selection register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-3  
APPENDIX  
3.1 Control registers  
Input latch register  
b7 b6 b5 b4 b3 b2 b1b0  
Input latch register (ILR) [Address 00D616  
]
At reset  
B
0
Name  
Function  
When b0 of EG (Note) is “0”:  
reverse level on INT pin  
R W  
P30  
/INT  
0
latch bit  
0
?
When b0 of EG (Note) is “1”:  
level on INT pin  
0
1
2
3
When b1 of EG (Note) is “0”:  
reverse level on INT pin  
P31  
P32  
P33  
/INT  
1
latch bit  
1
?
When b1 of EG (Note) is “1”:  
level on INT pin  
1
When b2 of EG (Note) is “0”:  
reverse level on CNTR0 pin  
/CNTR  
/CNTR  
0
1
latch bit  
latch bit  
When b2 of EG (Note) is “1
level on CNTR pin  
0
When b3 of EG (
reverse level o
?
?
When b3 “1”:  
level o
Nothing is allocated hese  
are write disabled defined at  
reading.  
4
to  
7
?
Note: EG is the selection register.  
Fig. 3.1.5 Structure of Input latch regist
A-D control re
b7 b6 b5 b4 b3
0
A-D control register (ADCON) [Address 00D916  
]
At reset  
R
B
0
Name  
Function  
W
b2 b1 b0  
A-D input selection  
bits  
0 0 0 : P2  
0 0 1 : P2  
0 1 0 : P2  
0 1 1 : P2  
1 0 0 : P2  
1 0 1 : P2  
1 1 0 : P2  
1 1 1 : P2  
0
1
2
3
4
5
6
7
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
/IN  
0
1
2
3
4
5
6
7
0
1
2
0
(Note 1)  
0
1
A-D conversion end  
3
4
0 : Under conversion  
1 : End conversion  
bit  
(Note 2)  
V
REF connection  
selection bit  
The 7477/7478 group is not  
0 : The VREF pin is  
separated from the  
comparison voltage  
0
generator.  
1 : The VREF pin is  
connected to  
provided with this bit.  
This bit is undefined at  
reset.  
comparison voltage  
generator.  
Nothing is allocated for these bits.  
These are write disabled bits and are  
undefined at reading.  
5, 6  
7
?
0
? ✕  
Fix this bit to “0.”  
0 0  
Notes 1: Since the 7470/7477 group is not provided with pins  
P2 –P2 , do not set.  
4
7
2: •A-D conversion is started by setting bit 3 to “0.”  
•Writing “0” into bit 3 is valid. Even if “1” is written into  
bit 3, this bit is not set to “1.” Accordingly, when writing a  
value into the A-D control register without affecting bit 3,  
set bit 3 to “1.”  
Fig. 3.1.6 Structure of A-D control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-4  
APPENDIX  
3.1 Control registers  
A-D conversion register  
b7 b6 b5 b4 b3 b2 b1 b0  
A-D conversion register (AD) [Address 00DA16]  
At reset  
R
B
Function  
W
0
to  
7
This is a read-only register to store A-D  
conversion results.  
?
Fig. 3.1.7 Structure of A-D conversion register  
Serial I/O mode register (7470/up)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial egister (SM) [Address 00DC16]  
At reset  
R W  
B
ame  
Function  
b1 b0  
al clock  
lection bits  
0 0 : f(XIN)/8 or f(XCIN)/8  
0 1 : f(XIN)/16 or f(XCIN)/16  
1 0 : f(XIN)/32 or f(XCIN)/32  
1 1 : f(XIN)/512 or f(XCIN)/512  
(Note)  
0
Synchronous clock 0 : External clock  
2
3
0
0
selection bit  
1 : Internal clock  
0 : Ordinary I/O port  
(P15, P16)  
Serial I/O port  
selection bit  
1 : Serial I/O port (SOUT, CLK pin)  
0 : Ordinary I/O port(P17)  
1 : SRDY signal output pin  
SRDY signal output  
selection bit  
4
5
6
7
0
SRDY signal  
selection bit  
0 : SRDY signal  
1 : SARDY signal  
0
0
Serial I/O byte specify  
mode selection bit  
0 : Ordinary mode  
1 : Byte specify mode  
P1  
5/SOUT, SRDY output 0 : CMOS output  
0
structure selection bit  
1 : N-channel open-drain  
output  
Note: Since the 7470 group is not provided with the sub-clock  
generating circuit, do not select f(XCIN).  
Fig. 3.1.8 Structure of Serial I/O mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-5  
APPENDIX  
3.1 Control registers  
Serial I/O register (7470/7471 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O register (SIO) [Address 00DD16]  
At reset  
B
Function  
R
W
0
to  
7
A value of “0016” to “FF16” can be  
set as transmit data.  
At the transmit, data is transmitted one  
bit at a time starting with the least  
significant bit.  
At the receive, data is received one bit  
at a time starting with the most  
significant bit.  
At transmit:  
At receive:  
?
Fig. 3.1.9 Structure of Serial I/O register  
Serial I/O counter and unter (7470/7471 group)  
b7 b6 b5 b4 b3 b2 b1 b
al I/O counter and Byte counter [Address 00DE16]  
At reset  
B
Function  
R W  
0
to  
3
Byte counter  
When using the byte specification mode, set  
a value of “0016” to “0F16.” Supposing that the  
value to be written into the byte counter is “n,”  
a Serial transmit/receive is performed with the  
clock of the “n + 1”-th byte.  
?
4
to  
6
Serial I/O counter  
When the internal clock is selected as a  
synchronous clock, this counter generates 8  
shift clocks.  
When transmit data is written into the Serial  
I/O register, “0716” is set in the Serial I/O  
counter.  
?
?
7
Nothing is allocated for this bit. This is write  
disabled bit and is undefined at reading.  
? ✕  
Fig. 3.1.10 Structure of Serial I/O counter and Byte counter  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-6  
APPENDIX  
3.1 Control registers  
Transmit/receive buffer register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Transmit/receive buffer register (TB/RB) [Address 00E016]  
At reset  
B
Function  
R
W
A value of “0016” to “FF16” can be  
set as transmit data.  
At transmit:  
At receive:  
0
to  
7
The transmit data is transferred  
automatically by writing the transmit  
data into the Transmit shift register.  
When all receive data has been input  
into the Receive shift register, the  
receive data is automatically tr
ferred to the receive buffer r
?
Fig. 3.1.11 Structure of Transmit/receive buffer r
Serial I/O status regist/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
1
l I/O status register (SIOSTS) [Address 00E116]  
At reset  
R
W
B
0
Name  
Function  
0 : Buffer full  
1 : Buffer empty  
Transmit buffer  
empty flag (TBE)  
0
Receive buffer full  
flag (RBF)  
0 : Buffer empty  
1 : Buffer full  
1
2
3
4
5
6
7
0
0
0
0
0
0
1
Transmit shift  
completion flag (TSC)  
Overrun error flag  
(OE)  
0 : Transmit shift in progress  
1 : Transmit shift completed  
0 : No error  
1 : Overrun error  
Parity error flag  
(PE)  
0 : No error  
1 : Parity error  
Framing error flag  
(FE)  
0 : No error  
1 : Framing error  
0 : (OE) U (PE) U (FE) = 0  
1 : (OE) U (PE) U (FE) = 1  
Summing error  
flag (SE)  
Nothing is allocated for this bit. This is a write  
disabled bit. When this bit is read out, the value  
is “1.”  
1 ✕  
Fig. 3.1.12 Structure of Serial I/O status register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-7  
APPENDIX  
3.1 Control registers  
Serial I/O control register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
Serial I/O control register (SIOCON) [Address 00E216  
]
At reset  
B
0
Function  
Name  
BRG count source  
selection bit (CSS)  
R W  
0 : f(XIN)/4 or f(XCIN)/4  
1 : f(XIN)/16 or f(XCIN)/16  
0
1
Serial I/O  
synchronous clock  
selection bit (SCS)  
•In clock synchronous mode  
0 : BRG output divided by 4  
1 : External clock input  
•In UART mode  
0
0 : BRG output divided by 16  
1 : External clock input  
divided by 16  
2
3
S
RDY output enable  
0 : P1  
as ordinary I/O pin  
1 : P1 /SRDY pin operates  
7/SRDY pin operates  
bit (SRDY)  
In the UART mode,  
0
7
this bit is invalid.  
as SRDY output pin  
Transmit interrupt  
source selection  
bit (TIC)  
0 : When transmit bu
has emptied  
1 : When transm
operation
0 : Trans
1 : Tra
4
5
6
Transmit enable bit (TE)  
Receive enable bit (RE)  
0
0
0 : led  
1 abled  
Serial I/O mode  
selection bit (SIOM)  
synchronous  
l I/O (UART)  
0
ock synchronous  
7
Serial I/O e
bit (SIOE
0 : Serial I/O disabled  
(pins operates as ordinary  
0
I/O pins P14–P17)  
1 : Serial I/O enabled  
(pins operates as serial  
I/O pins RXD - SRDY  
)
(Note)  
Port P1  
the serial I/O enable bit is “1” (enable state).  
At this time, Port P1 is also used as an ordinary I/O port.  
In the UART mode, port P1 is used as an ordinary I/O port  
when the internal clock is selected.  
4–P17 are operates as the serial I/O pin only when  
7
6
Fig. 3.1.13 Structure of I/O control register  
UART control register (7477/7478 group)  
b7 b6 b5 b4 b3 b2 b1 b0  
1 1 1  
1
UART control register (UARTCON) [Address 00E316  
]
At reset  
B
0
Name  
Function  
R W  
0: 8 bits  
1: 7 bits  
Character length  
selection bit (CHAS)  
0
0
0
0
0: Parity checking disabled  
1: Parity checking enabled  
1
2
3
Parity enable bit  
(PARE)  
Parity selection bit  
(PARS)  
0: Even parity  
1: Odd parity  
Stop bit length  
0: 1 stop bit  
selection bit (STPS) 1: 2 stop bits  
Nothing is allocated for these bits. These are write  
disabled bits. When these bits are read out, the  
values are “1.”  
4
to  
7
1
1 ✕  
Fig. 3.1.14 Structure of UART control register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-8  
APPENDIX  
3.1 Control registers  
Timers 1 to 4  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer 1, Timer 2, Timer 3, Timer 4 (T1, T2, T3, T4)  
[Address 00F016, 00F116, 00F216, 00F316]  
At reset  
B
Function  
R W  
0
to  
7
(Note)  
•Set “0016 to FF16.”  
•The value is decremented by 1 each time a  
count source is input.  
•Each Timer values are set to the respective  
counter.  
•The count values are read out by reading the  
respective timer.  
Note : Timers 1 and 2 are undefined.  
Timer 3 is “FF16.”  
Timer 4 is “0716.”  
Fig. 3.1.15 Structure of Timers 1 to 4  
Timer FF register  
b7 b6 b5 b4
00F716]  
Timer FF register (TF) [Address  
Name  
At reset  
B
0
Function  
R
W
Timer 1  
division flip-flop  
0 : Initial value is “0”  
1 : Initial value is “1”  
0 : Initial value is “0”  
1 : Initial value is “1”  
0
0
?
Timer 4  
division flip-flop  
1
2
to  
7
Nothing is allocated for these bits. These are  
write disabled bits and are undefined at  
reading.  
? ✕  
Fig. 3.1.16 Structure of Timer FF register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-9  
APPENDIX  
3.1 Control registers  
Timer 12 mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer 12 mode register (T12M) [Address 00F816  
]
B
0
Name  
At reset  
0
Function  
0 : Count start  
1 : Count stop  
R
W
Timer 1 count stop  
bit  
0 : Internal clock  
1 : P32/CNTR0 external clock  
(Note 1)  
1
2
Timer 1 count  
source selection bit  
0
0
Timer 1 internal clock 0 : f(XIN)/16 or f(XCIN)/16  
source selection bit 1 : f(XCIN (Note 2)  
)
0 : P1  
2 port output  
3
P1 /T port output  
selection bit  
2
0
1 : T (Timer 1 overflow  
0
0
divided by 2)  
0 : Count start  
1 : Count stop  
Timer 2 count stop  
bit  
4
5
0
0
0 : Internal clock (Note 1)  
1 : Timer 1 overflow signal  
b7 b6  
Timer 2 count  
source selection bit  
Timer 2 internal clock  
source selection bits  
6, 7  
0 0 : f(XIN)/16 or f(XCIN)/16  
0 1 : f(XIN)/64 or f(XCIN)/64  
1 0 : f(XIN)/128 or f(XCIN)/12
1 1 : f(XIN)/256 or f(XCIN)
(
Notes 1: In the 7470/7477 group, the inter)/16.  
2: Since the 7470/7477 group is nsub-clock  
generating circuit, f(XCIN) caix this bit to “0.”  
3: Since the 7470/7477 groud the sub-clock  
generating circuit, f(XCed.  
Fig. 3.1.17 Structure of Timer 12 mode register  
Timer 34 mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
00F916  
]
e register (T34M) [Address  
Name  
At reset  
0
Function  
R
W
mer 3 count stop  
bit  
0 : Count start  
1 : Count stop  
b2 b1  
, 2  
Timer 3 count  
source selection bits  
0 0 : f(XIN)/16 or f(XCIN)/16  
0 1 : f(XCIN  
)
1 0 : Timer 1 overflow or  
Timer 2 overflow  
0
1 1 : P3  
3
/CNTR  
1
external  
(Note 2)  
clock  
3
Timer 4 count stop  
bit  
0 : Count start  
1 : Count stop  
0
0
b4 b3  
Timer 4 count  
source selection bits  
4, 5  
0 0 : Timer 3 overflow  
0 1 : f(XIN)/16 or f(XCIN)/16  
1 0 : Timer 1 overflow or  
Timer 2 overflow  
1 1 : P3  
3/CNTR  
1
external  
clock  
(Notes 1, 2)  
Timer 4 pulse width  
measurement mode  
selection bit  
6
7
0 : Timer mode  
1 : External pulse width  
measurement mode  
0
0
P1  
3/T1 port output  
0 : P1  
1 : (Timer 4 overflow divided  
by 2 or PWM output)  
3 port  
selection bit  
T
1
Notes 1: When Timer 1 overflow is selected as a Timer 2  
count source, the Timer 4 count source is the Timer 1  
overflow regardless of the value of bit 6 of the  
Timer mode register 2.  
2: Since the 7470/7477 group is not provided the sub-clock  
generating circuit, f(XCIN) cannot be used.  
Fig. 3.1.18 Structure of Timer 34 mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-10  
APPENDIX  
3.1 Control registers  
Timer mode register 2  
b7 b6 b5 b4 b3 b2 b1 b0  
Timer mode register 2 (TM2) [Address 00FA16]  
B
Name  
R
?
W
Function  
At reset  
Timer 1 overflow FF  
set enable bit  
Timer 4 overflow FF  
set enable bit  
0 : Set disable  
1 : Set enable  
0
0
0 : Set disable  
1 : Set enable  
1
0
?
Nothing is allocated for these bits. These are  
write disabled bits and are undefined at reading.  
2
to  
5
Timer 3, timer 4 count  
overflow signal selection bit  
0 : Timer 1 overflow  
1 : Timer 2 overflow  
0 : Ordinary m
1 : PWM m
6
7
0
0
Timer 3, timer 4  
function selection bit  
Fig. 3.1.19 Structure of Timer mode register 2  
CPU mode register  
b7 b6 b5 b4 b3 b2 b1 b0  
0 0  
CPU mode reM) [Address 00FB16]  
B
Function  
At reset R W  
0
Fto “0.”  
0, 1  
0: In page 0 area  
1: In page 1 area  
age selection  
0
(Note 1)  
4
Nothing is allocated for this bit. This is write  
enabled bit and is undefined at reading.  
?
0
? ✕  
P50, P51/XCIN,XCOUT  
selection bit  
0: P50, P51  
1: XCIN, XCOUT (Note 2)  
0: Low  
1: High  
XCOUT drive capacity  
selection bit  
0
0
5
6
(Note 2)  
Main clock (XIN–XOUT)  
stop bit  
0: Oscillates  
1: Stops  
(Note 2)  
Internal system clock  
selection bit  
0: XIN–XOUT selected  
(Ordinary mode)  
1: XCIN–XCOUT selected  
(Low speed mode)  
(Note 2)  
7
0
Notes 1:  
2:  
In the products having a RAM capacity of 192 bytes or  
less, set this bit to “0.”  
Since the 7470/7477 group is not provided with the  
sub-clock generating circuit, f(XCIN) cannot be used.  
Fix these bits to “0.”  
Fig. 3.1.20 Structure of CPU mode register  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-11  
APPENDIX  
3.1 Control registers  
Interrupt request register 1  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt request register 1 (IR1) [Address 00FC16]  
At reset  
B
0
Name  
Function  
R W  
0
0 : No interrupt request  
1 : Interrupt requested  
Timer 1 interrupt  
request bit  
1
2
3
4
5
Timer 2 interrupt  
request bit  
0 : No interrupt request  
1 : Interrupt requested  
0
0
0
?
0
Timer 3 interrupt  
request bit  
Timer 4 interrupt  
request bit  
Nothing is allocated for this bit. This is write  
disabled bit and is undefined at reading.  
0 : No interrupt request  
1 : Interrupt requested  
0 : No interrupt request  
1 : Interrupt requested  
?
Serial I/O receive interrupt  
request bit  
0 : No interrupt requ
1 : Interrupt reque
(7477/7478 group)(Note)  
0 : No interr
1 : Interrud  
Serial I/O interrupt request  
6
bit (7470/7471group)  
Serial I/O transmit  
interrupt request bit  
(7477/7478 group)  
0
0
7
A-D conversion completion errupt request  
interrupt request bit rrupt requested  
Note: In the 7470/7othing is allocated for bit 5. This is write  
disabled biefined at reading.  
: “0” is set e, but not “1.”  
Fig. 3.1.21 Structure of Interrupt requster 1  
Interrupt requster 2  
b7 b6 b5 b
Interrupt request register 2 (IR2) [Address 00FD16]  
At reset  
B
0
Name  
Function  
R W  
0
0 : No interrupt request  
1 : Interrupt requested  
INT0 interrupt request  
bit  
1
2
INT1 interrupt request 0 : No interrupt request  
0
0
?
bit  
1 : Interrupt requested  
CNTR0 or CNTR1  
interrupt request bit  
0 : No interrupt request  
1 : Interrupt requested  
Nothing is allocated for these bits. There are write  
disabled bits and are undefined at reading.  
3
to  
7
?
: “0” is set by software, but not “1.”  
Fig. 3.1.22 Structure of Interrupt request register 2  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-12  
APPENDIX  
3.1 Control registers  
Interrupt control register 1  
b7 b6 b5 b4 b3 b2 b1 b0  
Interrupt control register 1 (IE1) [Address 00FE16]  
At reset  
B
0
Name  
Function  
R W  
0
0
0
0
0 : Interrupt disabled  
1 : Interrupt enabled  
Timer 1 interrupt  
enable bit  
Timer 2 interrupt  
enable bit  
1
2
3
4
5
0 : Interrupt disabled  
1 : Interrupt enabled  
Timer 3 interrupt  
enable bit  
Timer 4 interrupt  
enable bit  
Nothing is allocated for this bit. This is write  
disabled bit and is undefined at reading.  
0 : Interrupt disabled  
1 : Interrupt enabled  
0 : Interrupt disabled  
1 : Interrupt enabled  
?
0
?
Serial I/O receive interrupt  
enable bit (7477/7478  
group) (Note)  
0 : Interrupt dis
1 : Interrupt e
Serial I/O interrupt enable  
bit (7470/7471 group)  
Serial I/O transmit interrupt  
enable bit (7477/7478 group)  
0 : Interd  
1 : Inbled  
6
7
0
0
A-D conversion completiorupt disabled  
interrupt enable bit errupt enabled  
Note: In the 7470/Nothing is allocated for bit 5.  
This is wribit and undefined at reading.  
Fig. 3.1.23 Structure of Interrupt contter 1  
Interrupt conter 2  
b7 b6 b5 b0  
Interrupt control register 2 (IE2) [Address 00FF16]  
At reset  
B
0
Name  
Function  
R W  
0
0 : Interrupt disabled  
1 : Interrupt enabled  
INT0 interrupt enable  
bit  
1
2
INT1 interrupt enable  
bit  
CNTR0 or CNTR1  
interrupt enable bit  
0 : Interrupt disabled  
1 : Interrupt enabled  
0
0
?
0 : Interrupt disabled  
1 : Interrupt enabled  
Nothing is allocated for these bits. There are write  
disabled bits and are undefined at reading.  
3
to  
7
?
Fig. 3.1.24 Structure of Interrupt control register 2  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-13  
APPENDIX  
3.2 Mask ROM ordering method  
3.2 Mask ROM ordering method  
GZZ-SH02-91B<9YA0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M2-XXXSP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in iate box).  
If at least two of the three sets of EPROMs submitted concal data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if OM data on the products we produce differ from  
this data. Thus, the customer must be especially careful in e data contained in the EPROMs submitted.  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
EPRO
EPROM address  
000016  
0
000016  
Area for ASCII  
codes of the name  
of the product  
‘M37470M2–’  
for ASCII  
des of the name  
of the product  
‘M37470M2–’  
Area for ASCII  
codes of the name  
of the product  
‘M37470M2–’  
000F16  
001016  
016  
000F16  
001016  
2FFF16  
300016  
6FFF16  
700016  
EFFF16  
F00016  
ROM (4K)  
ROM (4K)  
ROM (4K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37470M2–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37470M2–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘0’ = 3016  
‘M’ = 4D16  
‘2’ = 3216  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-14  
 
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-91B<9YA0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M2-XXXSP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37470M2–’ a .BYTEa ‘M37470M2–’ a .BYTEa ‘M37470M2–’  
Note : If the name of the product written to the EPROMs does not match the name of the masconfirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the typbeing ordered fill out the appropriate  
mark specification form (32P4B for M37470M2-XXXSP) and attach to OM confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-15  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-92B<9YA0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M4-XXXSP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROed.  
Three sets of EPROMs are required for each pattern (Check @ in iate box).  
If at least two of the three sets of EPROMs submitted concal data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if OM data on the products we produce differ from  
this data. Thus, the customer must be especially careful in e data contained in the EPROMs submitted.  
Checksum code foROM  
EPROM type (indicate the type used)  
(hexadecimal notation)  
27128  
27512  
EPROM address  
EPRO
EPROM address  
000016  
000016  
Area for ASCII  
codes of the name  
of the product  
‘M37470M4–’  
for ASCII  
des of the name  
of the product  
‘M37470M4–’  
Area for ASCII  
codes of the name  
of the product  
‘M37470M4–’  
000F16  
001016  
6  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
ROM (8K)  
ROM (8K)  
ROM (8K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37470M4–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37470M4–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘0’ = 3016  
‘M’ = 4D16  
‘4’ = 3416  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-16  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-92B<9YA0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M4-XXXSP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37470M4–’ a .BYTEa ‘M37470M4–’ a .BYTEa ‘M37470M4–’  
Note : If the name of the product written to the EPROMs does not match the name of the masconfirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the typbeing ordered fill out the appropriate  
mark specification form (32P4B for M37470M4-XXXSP) and attach to OM confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-17  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-93B<9YA0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M8-XXXSP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted concal data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if OM data on the products we produce differ from  
this data. Thus, the customer must be especially careful in e data contained in the EPROMs submitted.  
Checksum code foROM  
EPROM type (indicate the type used)  
(hexadecimal notation)  
27256  
EPROM address  
EPRO
000016  
0
Area for ASCII  
codes of the name  
of the product  
‘M37470M8–’  
for ASCII  
des of the name  
of the product  
‘M37470M8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
ROM (16K)  
ROM (16K)  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37470M8–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37470M8–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘0’ = 3016  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘M’ = 4D16  
‘8’ = 3816  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-18  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-93B<9YA0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470M8-XXXSP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37470M8–’ a .BYTEa ‘M37470M8–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered fill out the appropriate  
mark specification form (32P4B for M37470M8-XXXSP) and attach to OM confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-19  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-94B<9YB0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M2-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROMs s
Three sets of EPROMs are required for each pattern (Check @ in the abox).  
If at least two of the three sets of EPROMs submitted contain data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if the data on the products we produce differ from  
this data. Thus, the customer must be especially careful in verita contained in the EPROMs submitted.  
Microcomputer name :  
M37471M2-XXXSP  
M37471M2-XXXFP  
(hexadecimal notation)  
Checksum code for ent
EPROM type (indicate the type used)  
27128  
2
27512  
EPROM address  
000016  
EPROM ad
EPROM address  
0000
000016  
Area for ASCII  
codes of the name  
of the product  
CII  
the name  
product  
7471M2–’  
Area for ASCII  
codes of the name  
of the product  
‘M37471M2–’  
‘M37471M2–’  
000F16  
001016  
000F16  
001016  
2FFF16  
300016  
FFF16  
700016  
EFFF16  
F00016  
ROM (4K)  
ROM (4K)  
ROM (4K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37471M2–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37471M2–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘1’ = 3116  
‘M’ = 4D16  
‘2’ = 3216  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-20  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-94B<9YB0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M2-XXXSP/FP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37471M2–’ a .BYTEa ‘M37471M2–’ a .BYTEa ‘M37471M2–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type pag ordered fill out the appropriate  
mark specification form (42P4B for M37471M2-XXXSP, 56P6N for M37XFP) and attach to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-21  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-95B<9YB0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted concal data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if OM data on the products we produce differ from  
this data. Thus, the customer must be especially careful in e data contained in the EPROMs submitted.  
Microcomputer name :  
M37471M4-XXX
M37471M4-XXXFP  
Checksum code foROM  
(hexadecimal notation)  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
000016  
EPRO
EPROM address  
0
000016  
Area for ASCII  
codes of the name  
of the product  
or ASCII  
es of the name  
of the product  
‘M37471M4–’  
Area for ASCII  
codes of the name  
of the product  
‘M37471M4–’  
‘M37471M4–’  
000F16  
001016  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
ROM (8K)  
ROM (8K)  
ROM (8K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37471M4–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37471M4–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘1’ = 3116  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘M’ = 4D16  
‘4’ = 3416  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-22  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-95B<9YB0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37471M4–’ a .BYTEa ‘M37471M4–’ a .BYTEa ‘M37471M4–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type eing ordered fill out the appropriate  
mark specification form (42P4B for M37471M4-XXXSP, 56P6N for XXXFP) and attach to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-23  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-96B<9YB0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted concal data, we will produce masks based in  
this data. We shall assume the responsibility for errors only if OM data on the products we produce differ from  
this data. Thus, the customer must be especially careful in e data contained in the EPROMs submitted.  
M37471M8-XXXS
M37471M8-XXXFP  
Microcomputer name :  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Area for ASCII  
codes of the name  
of the product  
or ASCII  
es of the name  
of the product  
‘M37471M8–’  
‘M37471M8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
ROM (16K)  
ROM (16K)  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37471M8–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37471M8–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘1’ = 3116  
‘M’ = 4D16  
‘8’ = 3816  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-24  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH02-96B<9YB0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37471M8–’ a .BYTEa ‘M37471M8–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation, the ROM processing  
is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered fill out the appropriate  
mark specification form (42P4B for M37471M8-XXXSP, 56P6N for XXXFP) and attach to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-25  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-67B<2XA1>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idenwe will produce masks based on this data. We  
shall assume the responsibility for errors only if the mask ROthe products we produce differs from this data.  
Thus, extreme care must be taken to verify the data in the PROMs.  
Microcomputer name :  
M37477M4-XXX
M37477M4-XXXFP  
Checksum code foROM  
(hexadecimal notation)  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
000016  
EPRO
EPROM address  
0
000016  
Product name  
oduct name  
ASCII code :  
‘M37477M4–’  
Product name  
ASCII code :  
‘M37477M4–’  
ASCII code :  
‘M37477M4–’  
000F16  
001016  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
data  
data  
data  
ROM 8192 bytes  
ROM 8192 bytes  
ROM 8192 bytes  
3FFF16  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘7’ = 3716  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
(2) The ASCII codes of the product name “M37477M4–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
‘M’ = 4D16  
‘4’ = 3416  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-26  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-67B<2XA1>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to set the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37477M4–’ a .BYTEa ‘M37477M4–’ a .BYTEa ‘M37477M4–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation form, the ROM  
will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the packrdered. Fill out the appropriate mark  
specification form (32P4B for M37477M4-XXXSP, 32P2W for M37XFP) and attach it to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-27  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-68B<2XA1>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idewe will produce masks based on this data. We  
shall assume the responsibility for errors only if the mask Rthe products we produce differs from this data.  
Thus, extreme care must be taken to verify the data in the PROMs.  
M37477M8-XXX
M37477M8-XXXFP  
Microcomputer name :  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Product name  
roduct name  
ASCII code :  
‘M37477M8–’  
ASCII code :  
‘M37477M8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
data  
data  
ROM 16384 bytes  
ROM 16384 bytes  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘7’ = 3716  
‘M’ = 4D16  
‘8’ = 3816  
‘ – ’ = 2D16  
FF16  
(2) The ASCII codes of the product name “M37477M8–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-28  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-68B<2XA1>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to set the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37477M8–’ a .BYTEa ‘M37477M8–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation form, the ROM  
will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the packrdered. Fill out the appropriate mark  
specification form (32P4B for M37477M8-XXXSP, 32P2W for M37XFP) and attach it to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-29  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-70B<2XA0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idenwe will produce masks based on this data. We  
shall assume the responsibility for errors only if the mask ROthe products we produce differs from this data.  
Thus, extreme care must be taken to verify the data in the PROMs.  
M37478M4-XXXS
M37478M4-XXXFP  
Microcomputer name :  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
000016  
EPRO
EPROM address  
0
000016  
Product name  
oduct name  
ASCII code :  
‘M37478M4–’  
Product name  
ASCII code :  
‘M37478M4–’  
ASCII code :  
‘M37478M4–’  
000F16  
001016  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
data  
data  
data  
ROM 8192 bytes  
ROM 8192 bytes  
ROM 8192 bytes  
3FFF16  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘8’ = 3816  
‘M’ = 4D16  
‘4’ = 3416  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
(2) The ASCII codes of the product name “M37478M4–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-30  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-70B<2XA0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478M4-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to set the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37478M4–’ a .BYTEa ‘M37478M4–’ a .BYTEa ‘M37478M4–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation form, the ROM  
will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the packrdered. Fill out the appropriate mark  
specification form (42P4B for M37478M4-XXXSP, 56P6N for M37XFP) and attach it to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-31  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-71B<2XA0>  
Mask ROM number  
Date:  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idenwe will produce masks based on this data. We  
shall assume the responsibility for errors only if the mask ROthe products we produce differs from this data.  
Thus, extreme care must be taken to verify the data in the PROMs.  
Microcomputer name :  
M37478M8-XXX
M37478M8-XXXFP  
Checksum code foROM  
(hexadecimal notation)  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Product name  
duct name  
ASCII code :  
‘M37478M8–’  
ASCII code :  
‘M37478M8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
data  
data  
ROM 16384 bytes  
ROM 16384 bytes  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘8’ = 3816  
‘ – ’ = 2D16  
FF16  
(2) The ASCII codes of the product name “M37478M8–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘M’ = 4D16  
‘8’ = 3816  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-32  
APPENDIX  
3.2 Mask ROM ordering method  
GZZ-SH06-71B<2XA0>  
Mask ROM number  
740 FAMILY MASK ROM CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478M8-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to set the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37478M8–’ a .BYTEa ‘M37478M8–’  
Note : If the name of the product written to the EPROMs does not match the name of the mask confirmation form, the ROM  
will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the packrdered. Fill out the appropriate mark  
specification form (42P4B for M37478M8-XXXSP, 56P6N for M37XFP) and attach it to the mask ROM  
confirmation form.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-33  
APPENDIX  
3.3 ROM programming ordering method  
3.3 ROM programming ordering method  
GZZ-SH03-60B<06A0>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470E4-XXXSP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROed.  
Three sets of EPROMs are required for each pattern (Check @ in iate box).  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only idata on the products we produce differ from this  
data. Thus, the customer must be especially careful in verita contained in the EPROMs submitted.  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
EPRO
EPROM address  
000016  
0
000016  
Area for ASCII  
codes of the name  
of the product  
‘M37470E4–’  
for ASCII  
des of the name  
of the product  
‘M37470E4–’  
Area for ASCII  
codes of the name  
of the product  
‘M37470E4–’  
000F16  
001016  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
ROM (8K)  
ROM (8K)  
ROM (8K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37470E4–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37470E4–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘0’ = 3016  
‘E’ = 4516  
‘4’ = 3416  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-34  
 
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH03-60B<06A0>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470E4-XXXSP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37470E4–’ a .BYTEa ‘M37470E4–’ a .BYTEa ‘M37470E4–’  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation, the  
ROM processing is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Timicrocomputer).  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-35  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH02-97B<9YA0>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470E8-XXXSP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only if ata on the products we produce differ from this  
data. Thus, the customer must be especially careful in verifta contained in the EPROMs submitted.  
Checksum code foROM  
EPROM type (indicate the type used)  
(hexadecimal notation)  
27256  
EPROM address  
EPRO
000016  
0
Area for ASCII  
codes of the name  
of the product  
‘M37470E8–’  
for ASCII  
des of the name  
of the product  
‘M37470E8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
ROM (16K)  
ROM (16K)  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37470E8–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37470E8–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘0’ = 3016  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘E’ = 4516  
‘8’ = 3816  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-36  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH02-97B<9YA0>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37470E8-XXXSP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a .BYTEa ‘M37470E8–’ a .BYTEa ‘M37470E8–’  
a*=a$0000  
The pseudo-command  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation, the  
ROM processing is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Timicrocomputer).  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-37  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH03-59B<06B0>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471E4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only if ata on the products we produce differ from this  
data. Thus, the customer must be especially careful in verifta contained in the EPROMs submitted.  
Microcomputer name :  
M37471E4-XXXS
M37471E4-XXXFP  
Checksum code foROM  
(hexadecimal notation)  
EPROM type (indicate the type used)  
27128  
27512  
EPROM address  
000016  
EPRO
EPROM address  
0
000016  
Area for ASCII  
or ASCII  
es of the name  
of the product  
‘M37471E4–’  
Area for ASCII  
codes of the name  
of the product  
‘M37471E4–’  
codes of the name  
of the product  
‘M37471E4–’  
000F16  
001016  
016  
000F16  
001016  
1FFF16  
200016  
5FFF16  
600016  
DFFF16  
E00016  
ROM (8K)  
ROM (8K)  
ROM (8K)  
3FFF16  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37471E4–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37471E4–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘1’ = 3116  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘E’ = 4516  
‘4’ = 3416  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-38  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH03-59B<06B0>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471E4-XXXSP/FP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27128  
27256  
27512  
a*=a$C000  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37471E4–’ a .BYTEa ‘M37471E4–’ a .BYTEa ‘M37471E4–’  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation, the  
ROM processing is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Timcrocomputer) for M37471E4-XXXSP or  
the 56P6N Mark Specification Form the M37471E4-XXXFP.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-39  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH02-98B<9YB0>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three sets of EPROMs are required for each pattern (Check @ in tate box).  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only if ata on the products we produce differ from this  
data. Thus, the customer must be especially careful in verifta contained in the EPROMs submitted.  
M37471E8-XXXS
M37471E8-XXXFP  
Microcomputer name :  
(hexadecimal notation)  
Checksum code foROM  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Area for ASCII  
or ASCII  
es of the name  
of the product  
‘M37471E8–’  
codes of the name  
of the product  
‘M37471E8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
ROM (16K)  
ROM (16K)  
7FFF16  
FFFF16  
(1) Set “FF16” in the shaded area.  
Address  
Address  
(2) Write the ASCII codes that indicates the name of the  
product ‘M37471E8–’ to addresses 000016 to 000F16.  
ASCII codes ‘M37471E8–’ are listed on the right. The  
addresses and data are in hexadecimal notation.  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘1’ = 3116  
‘E’ = 4516  
‘8’ = 3816  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘ – ’ = 2D16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-40  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH02-98B<9YB0>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37471E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Recommend to writing the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a*=a$0000  
The pseudo-command  
a .BYTEa ‘M37471M8–’ a .BYTEa ‘M37471M8–’  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation, the  
ROM processing is disabled. Write the data correctly.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Time rocomputer) for the M37471E8-XXXSP  
or the 56P6N Mark Specification Form for the M37471E8-XXXFP.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-41  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH06-79B<2XA1>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only if ata on the products we produce differs from this  
data. Thus, extreme care must be taken to verify the data itted EPROMs.  
M37477E8-XXXS
M37477E8-XXXFP  
Microcomputer name :  
(hexadecimal notation)  
Checksum code foOM  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Product name  
oduct name  
ASCII code :  
‘M37477E8–’  
ASCII code :  
‘M37477E8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
data  
data  
ROM 16384 bytes  
ROM 16384 bytes  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘7’ = 3716  
‘E’ = 4516  
‘8’ = 3816  
‘ – ’ = 2D16  
FF16  
(2) The ASCII codes of the product name “M37477E8–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-42  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH06-79B<2XA1>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37477E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a .BYTEa ‘M37477E8–’ a .BYTEa ‘M37477E8–’  
a*=a$0000  
The pseudo-command  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation, the  
ROM will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Time rocomputer) for the M37477E8-XXXSP  
or the 32P2W Mark Specification Form for the M37477E8-XXXFP.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-43  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH06-81B<2XA0>  
ROM number  
Date:  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
Section head Supervisor  
signature signature  
Note : Please fill in all items marked .  
Submitted by  
Supervisor  
TEL  
(
Company  
name  
)
Customer  
Date  
issued  
Date:  
1. Confirmation  
Specify the name of the product being ordered and the type of EPROd.  
Three EPROMs are required for each pattern.  
If at least two of the three sets of EPROMs submitted contain idewe will produce ROM programming based on  
this data. We shall assume the responsibility for errors only if tOM data on the products we produce differs from  
this data. Thus, extreme care must be taken to verify the dubmitted EPROMs.  
Microcomputer name :  
M37478E8-XXXS
M37478E8-XXXFP  
Checksum code foROM  
(hexadecimal notation)  
EPROM type (indicate the type used)  
27256  
EPROM address  
000016  
EPRO
0
Product name  
duct name  
ASCII code :  
‘M37478E8–’  
ASCII code :  
‘M37478E8–’  
000F16  
001016  
016  
3FFF16  
400016  
BFFF16  
C00016  
data  
data  
ROM 16384 bytes  
ROM 16384 bytes  
7FFF16  
FFFF16  
(1) Set the data in the unused area (the shaded area of  
the diagram) to “FF16”.  
Address  
000016  
000116  
000216  
000316  
000416  
000516  
000616  
000716  
Address  
000816  
000916  
000A16  
000B16  
000C16  
000D16  
000E16  
000F16  
‘M’ = 4D16  
‘3’ = 3316  
‘7’ = 3716  
‘4’ = 3416  
‘7’ = 3716  
‘8’ = 3816  
‘ – ’ = 2D16  
FF16  
(2) The ASCII codes of the product name “M37478E8–”  
must be entered in addresses 000016 to 000816. And  
set the data “FF16” in addresses 000916 to 000F16.  
The ASCII codes and addresses are listed to the right  
in hexadecimal notation.  
FF16  
FF16  
FF16  
FF16  
FF16  
FF16  
‘E’ = 4516  
‘8’ = 3816  
(1/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-44  
APPENDIX  
3.3 ROM programming ordering method  
GZZ-SH06-81B<2XA0>  
ROM number  
740 FAMILY ROM PROGRAMMING CONFIRMATION FORM  
SINGLE-CHIP MICROCOMPUTER M37478E8-XXXSP/FP  
MITSUBISHI ELECTRIC  
We recommend the use of the following pseudo-command to the start address of the assembler source program.  
EPROM type  
27256  
27512  
a*=a$8000  
a .BYTEa ‘M37478E8–’ a .BYTEa ‘M37478E8–’  
a*=a$0000  
The pseudo-command  
Note : If the name of the product written to the EPROMs does not match the name of the ROM programming confirmation form,  
the ROM will not be processed.  
2. Mark specification  
Mark specification must be submitted using the correct form for the type being ordered. Please submit the  
shrink DIP package Mark Specification Form (only for built-in One Time rocomputer) for the M37478E8-XXXSP  
or the 56P6N Mark Specification Form for the M37478E8-XXXFP.  
3. Comments  
(2/2)  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-45  
APPENDIX  
3.4 Mark specification form  
3.4 Mark specification form  
32P4B (32-PIN SHRINK DIP) MARK SPECIFICATION FORM  
Mitsubishi IC catalog name  
Please choose one of the marking types below (A, B, C), and enter the Mitsubishi IC catalog name and the special mark (if needed).  
A. Standard Mitsubishi Mark  
#
!
Mitsubishi lot number  
(6-digit or 7-digit)  
Mitsubishi IC catalog name  
q
!
B. Customer’s Parts Number + Mitsubishi catalog name  
#
Customer’s Parts Number  
Note : The fonts and size of characters  
are standard Mitsubishi type.  
Mitsubishi IC catalog name  
Mitsubishr  
(6-git)  
q
!
Note1 : The mark field should be written rig
2 : The fonts and size of characters d Mitsubishi type.  
3 : Customer’s Parts Number ca6 characters : Only 0 ~ 9, A ~ Z, +, –, /, (, ), &,  
,
,
(periods), and (commas) are usable.  
.
4 : If the Mitsubishi logo  
is , check the box on the right.  
Mitsubishi logo is not required  
C. Special Mark Required  
#
!
q
!
Note1 : If the Special Mark is to be Printed, indicate the desired layout of the mark in the upper figure. The layout will be duplicated as  
close as possible. Mitsubishi lot number (6-digit or 7-digit) and Mask ROM number (3-digit) are always marked.  
2 : If the customer’s trade mark logo must be used in the Special Mark, check the  
Special logo required  
box on the right. Please submit a clean original of the logo. For the new special  
character fonts a clean font original (ideally logo drawing) must be submitted.  
3 : The standard Mitsubishi font is used for all characters except for a logo.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-46  
 
APPENDIX  
3.4 Mark specification form  
32P2W-A (32-PIN SOP) MARK SPECIFICATION FORM  
Mitsubishi IC catalog name  
Please choose one of the marking types below (A, B, C), and enter the Mitsubishi catalog name and the special mark (if needed).  
A. Standard Mitsubishi Mark  
#
!
Mitsubishi IC catalog name  
Mitsubishi IC catalog name  
Mitsubishi lot number  
(6-digit or 7-digit)  
q
!
B. Customer’s Parts Number + Mitsubishi catalog name  
CustoNumber  
#
!
Nonts and size of characters are standard Mitsubishi  
.  
i IC catalog name  
: The mark field should be written right aligned.  
2 : The fonts and size of characters are standard Mitsubishi  
type.  
Mitsubishi lot numbe
(6-digit or 7-di
3 : Customer’s Parts Number can be up to 13 characters :  
,
Only 0 ~ 9, A ~ Z, +, –, /, (, ), &,  
mas) are usable.  
,
(periods), (com-  
.
4 : If the Mitsubishi logo  
below.  
is not required, check the box  
q
!
Mitsubishi logo is not required  
C. Special Mark Required  
#
!
Note1 : If the Special Mark is to be Printed, indicate the desired  
layout of the mark in the left figure. The layout will be  
duplicated as close as possible.  
Mitsubishi lot number (6-digit or 7-digit) and Mask ROM  
number (3-digit) are always marked.  
2 : If the customer’s trade mark logo must be used in the  
Special Mark, check the box below.  
Please submit a clean original of the logo.  
For the new special character fonts a clean font original  
(ideally logo drawing) must be submitted.  
q
!
Special logo required  
3 : The standard Mitsubishi font is used for all characters  
except for a logo.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-47  
APPENDIX  
3.4 Mark specification form  
42P4B (42-PIN SHRINK DIP) MARK SPECIFICATION FORM  
Mitsubishi IC catalog name  
Please choose one of the marking types below (A, B, C), and enter the Mitsubishi IC catalog name and the special mark (if needed).  
A. Standard Mitsubishi Mark  
$
@
Mitsubishi lot number  
(6-digit or 7-digit)  
Mitsubishi IC catalog name  
q
@
B. Customer’s Parts Number + Mitsubishi catalog name  
$
Customer’s Parts Number  
Note : The fonts and size of characters  
are standard Mitsubishi type.  
Mitsubishi IC catalog name  
Mitsubishi
(6-dig
q
@
Note1 : The mark field should be written rig
2 : The fonts and size of characters d Mitsubishi type.  
,
3 : Customer’s Parts Number ca5 characters : Only 0 ~ 9, A ~ Z, +, –, /, (, ), &,  
,
(periods), and (commas) are usable.  
.
4 : If the Mitsubishi logo  
is , check the box on the right.  
Mitsubishi logo is not required  
C. Special Mark Required  
$
@
q
@
Note1 : If the Special Mark is to be Printed, indicate the desired layout of the mark in the upper figure. The layout will be duplicated as  
close as possible. Mitsubishi lot number (6-digit or 7-digit) and Mask ROM number (3-digit) are always marked.  
2 : If the customer’s trade mark logo must be used in the Special Mark, check the  
Special logo required  
box on the right. Please submit a clean original of the logo. For the new special  
character fonts a clean font original (ideally logo drawing) must be submitted.  
3 : The standard Mitsubishi font is used for all characters except for a logo.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-48  
APPENDIX  
3.4 Mark specification form  
56P6N-A (56-PIN QFP) MARK SPECIFICATION FORM  
Mitsubishi IC catalog name  
Please choose one of the marking types below (A, B, C), and enter the Mitsubishi IC catalog name and the special mark (if needed).  
A. Standard Mitsubishi Mark  
$
@
$
@
Mitsubishi lot number  
(6-digit or 7-digit)  
Mitsubishi IC catalog name  
%
!
q
!
B. Customer’s Parts Number + Mitsubishi IC catalog name  
$ @  
Customer’s r  
Note : d size of characters are standard Mitsubishi  
$
@
Mittalog name and Mitsubishi lot number  
mark field should be written right aligned.  
The fonts and size of characters are standard Mitsubishi  
type.  
3 : Customer’s Parts Number can be up to 11 characters :  
,
Only 0 ~ 9, A ~ Z, +, –, /, (, ), &,  
(comma) are usable.  
, (period), and  
.
4 : If the Mitsubishi logo  
below.  
is not required, check the box  
%
q
Mitsubishi logo is not required  
5 : Arrangement of Mitsubishi IC catalog name and  
Mitsubishi lot number is dependent on number of  
Mitsubishi IC catalog name and that Mitsubishi logo is  
required or not.  
C. Special Mark Required  
Note1 : If the Special Mark is to be Printed, indicate the desired  
layout of the mark in the left figure. The layout will be  
duplicated as close as possible.  
$
$
@
@
Mitsubishi lot number (6-digit or 7-digit) and Mask ROM  
number (3-digit) are always marked.  
2 : If the customer’s trade mark logo must be used in the  
Special Mark, check the box below.  
Please submit a clean original of the logo.  
For the new special character fonts a clean font original  
(ideally logo drawing) must be submitted.  
%
q
!
!
Special logo required  
3 : The standard Mitsubishi font is used for all characters  
except for a logo.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-49  
APPENDIX  
3.4 Mark specification form  
SHRINK DIP MARK SPECIFICATION FORM  
for One Time PROM version microcomputers  
Enter the catalog number of the microcomputer for which this mark specification is intended. (If you do not know the ROM code number,  
enter XXX in its place.)  
The catalog number of the microcomputer  
M
A. Standard Mitsubishi Mark  
Customer specified part number will be printed together with the ROM code number on the top line.  
Enter the desired part number left aligned in the box below. (up to 10 characters)  
Note2 :  
RXXX  
Mitsubishi catalog name  
(blank model number before writing)  
Mitsubishi lot number  
(6-digit or 7-digit)  
Note1 : The following characters can be used in the part numbe
Uppercase alphabet, numbers, ampersand, hyphen, ma, +, /, (, ),  
x
will be printed at 1.5 character width)  
(
2 : XXX is the ROM code number.  
B. Special Mark Required  
If you desire anything other than the standai mark, it will be treated as a special mark.  
Special marks will take longer to producbe avoided if possible.  
If a special mark is to be printed, indiired layout of the mark in the figure below. The layout will be duplicated as closely as  
possible.  
Note1 : If the customer’s trademark logo must be used in the Special Mark, please submit a clean original logo.  
Note that special marks require extra cost and time to produce.  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-50  
APPENDIX  
3.5 Package outline  
3.5 Package outline  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-51  
 
APPENDIX  
3.5 Package outline  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-52  
APPENDIX  
3.6 SFR memory map  
3.6 SFR memory map  
Figure 3.6.1 shows the special function register (SFR) memory map.  
Port P0  
Transmit/receive buffer register  
00C016  
00C116  
00C216  
00C316  
00C416  
00C516  
00C616  
00C716  
00E016  
00E116  
00E216  
00E316  
00E416  
00E516  
00E616  
00E716  
00E816  
00E916  
00EA16  
00EB16  
00EC16  
00ED16  
00EE16  
00E
0
16  
0F416  
00F516  
00F616  
Port P0 direction register  
Port P1  
Serial I/O status register  
Serial I/O control register  
UART control register  
Baud rate generator  
(Note 5)  
Port P1 direction register  
Port P2  
Port P2 direction register (Note 1)  
Port P3  
00C816 Port P4  
Port P4 direction register  
00C916  
00CA16 Port P5 (Note 2)  
00CB16  
00CC16  
00CD16  
00CE16  
00CF16  
Port P0 pull-up control register  
Port P1-P5 pull-up control register (Note 3)  
r 1  
imer 2  
Timer 3  
Timer 4  
00D016  
00D116  
00D216  
00D316  
00D416 Edge polarity selection register  
00D516  
Input latch register  
00D616  
00D716  
00D816  
00D916  
00F716 Timer FF register  
Timer 12 mode register  
Timer 34 mode register  
00F816  
00F916  
A-D control register  
00DA16 A-D conversion register  
00DB16  
00FA16 Timer mode register 2  
CPU mode register  
00FB16  
00FC16  
Serial I/O mode r
Interrupt request register 1  
00DC16  
(Note 4)  
00DD16 Serial I/O regi
00FD16 Interrupt request register 2  
Interrupt control register 1  
00FF16 Interrupt control register 2  
00DE16  
00DF16  
00FE16  
Serial I/O coe counter  
Notes 1: In the 7477/7478 group, this register is not located.  
2: In the 7470/7477 group, this register is not located.  
3: This address is allocated P1-P4 pull-up control register for the 7470/7477 group.  
4: In the 7477/7478 group, this register is not located.  
5: In the 7470/7471 group, this register is not located.  
Fig. 3.6.1 SFR memory map  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-53  
 
APPENDIX  
3.7 Pin configuration  
3.7 Pin configuration  
Figures 3.7.1 to 3.7.4 show the pin configuration of 7470/7471/7477/7478 group.  
1
2
32  
31  
30  
29  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/T0  
P11  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
3
4
5
6
28  
27  
26  
25  
24  
23  
7
8
P10  
9
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
P41  
P40  
10  
11  
12  
22  
21  
20  
P33/CNTR
P32/CNT
P31/IN
P3
13  
14  
19  
18  
XIN  
XOUT  
VSS  
15  
16  
17  
Outline 32P4B (
Note: The M37470M2-XXXSP and M37470M4/re included in the 32P4B package. All of  
these products are pin-compatible.  
Fig. 3.7.1 Pin configuration of 7470 g
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-54  
 
APPENDIX  
3.7 Pin configuration  
42  
41  
40  
39  
38  
37  
1
2
3
P53  
P17/SRDY  
P16/CLK  
P15/SOUT  
P14/SIN  
P13/T1  
P12/T0  
P11  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
4
5
6
7
36  
35  
34  
33  
32  
31  
30  
29  
28  
27  
26  
8
9
P10  
10  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
11  
12  
13  
14  
15  
16  
17  
P40  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
18  
19  
20  
21  
25  
24  
23  
22  
XIN  
XOUT  
VSS  
P51/X
P5
Outline 42P4B (Note 1
42S1B-A (MS)  
45  
46  
47  
28  
27  
26  
RESET  
NC  
P51/XCOUT  
P50/XCIN  
NC  
VCC  
VSS  
AVSS  
NC  
XOUT  
XIN  
NC  
P05  
P06  
P07  
P52  
N
25  
24  
M37471M8-XXXFP  
M37471E8-XXXFP  
23  
22  
21  
20  
19  
18  
17  
52  
53  
54  
55  
56  
P17/
P16/CLK  
P15/SOUT  
NC  
NC  
NC: No connection  
Outline 56P6N-A (Note 2)  
Notes 1 : The M37471M2-XXXSP and M37471M4/E4-XXXSP are included in the 42P4B package. All of these  
products are pin-compatible.  
2 : The M37471M2-XXXFP and M37471M4/E4-XXXFP are included in the 56P6N-A package. All of  
these products are pin-compatible.  
3 : The only differences between the 42P4B package product and the 56P6N-A package product are  
package shape, absolute maximum ratings and the fact that the 56P6N-A package product has an AVSS pin.  
Fig. 3.7.2 Pin configuration of 7471 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-55  
APPENDIX  
3.7 Pin configuration  
1
2
32  
31  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
3
4
30  
29  
5
28  
27  
6
7
26  
25  
8
P10  
9
24  
23  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
P41  
P40  
10  
11  
12  
13  
14  
15  
16  
22  
21  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
VCC  
20  
19  
XIN  
XOUT  
VSS  
18  
17  
Outline 32P4B (Note 1)  
1
2
32  
31  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
04  
P03  
P02  
P01  
P00  
3
4
5
6
7
26  
25  
8
P10  
24  
23  
P23/IN3  
P22/IN2  
P21/IN
P2
P41  
P40  
3  
14  
15  
16  
22  
21  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
VCC  
20  
19  
T  
VSS  
18  
17  
Outline 32P2W-A (Note 2)  
Notes 1 : The M37477M4-XXXSP is included in the 32P4B package.  
These products are pin-compatible.  
2 : The M37477M4-XXXFP is included in the 32P2W-A package.  
These products are pin-compatible.  
3 : The only differences between the 32P4B package product and the 32P2W-A package product are  
package shape and absolute maximum ratings.  
Fig. 3.7.3 Pin configuration of 7477 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-56  
APPENDIX  
3.7 Pin configuration  
1
2
42  
41  
40  
P53  
P17/SRDY  
P16/SCLK  
P15/TXD  
P14/RXD  
P13/T1  
P12/T0  
P11  
P52  
P07  
P06  
P05  
P04  
P03  
P02  
P01  
P00  
P43  
P42  
P41  
3
4
5
6
39  
38  
37  
36  
7
35  
34  
33  
8
9
P10  
10  
11  
12  
13  
14  
P27/IN7  
P26/IN6  
P25/IN5  
P24/IN4  
P23/IN3  
P22/IN2  
P21/IN1  
P20/IN0  
VREF  
32  
31  
30  
29  
28  
27  
26  
25  
24  
23  
22  
P40  
P33/CNTR1  
P32/CNTR0  
P31/INT1  
P30/INT0  
RESET  
15  
16  
17  
18  
19  
20  
21  
XIN  
XOUT  
VSS  
P51/X
P5
Outline 42P4B (Note 1)  
42S1B-A (M)  
45  
28  
RESET  
NC  
P51/XCOUT  
P50/XCIN  
NC  
VCC  
VSS  
AVSS  
NC  
XOUT  
XIN  
NC  
P05  
P06  
P07  
P52  
N
46  
4
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
M37478M8-XXXFP  
M37478E8-XXXFP  
52  
53  
54  
P1
P16/SLK  
P15/TXD  
NC  
55  
56  
NC  
Outline 56P6N-A (Note 2)  
NC: No connection  
Notes1 : The M37478M4-XXXSP is included in the 42P4B package.  
These products are pin-compatible  
2 : The M37478M4-XXXFP is included in the 56P6N-A package.  
These products are pin-compatible  
3 : The only differences between the 42P4B package product and the 56P6N-A package product are package  
shape, absolute maximum ratings and the fact that the 56P6N-A package product has an  
AVSS pin.  
Fig. 3.7.4 Pin configuration of 7478 group  
7470/7471/7477/7478 GROUP USER’S MANUAL  
3-57  
MITSUBISHI SEMICONDUCTORS  
USER’S MANUAL  
7470/7471/7477/7478 Group  
Jan. First Edition 1998  
Editioned by  
Committee of editing of Mitsubishi Semiconductor USER’S MANUAL  
Published by  
Mitsubishi Electric Corp., Semiconductor Marketing Division  
This book, or parts thereof, may not be reproduced in any form without permission  
of Mitsubishi Electric Corporation.  
©1998 MITSUBISHI ELECTRIC CORPORATION  
User’s Manual  
7470/7471/7477/7478 Group  
New publication, effective Jan. 1998.  
© 1998 MITSUBISHI ELECTRIC CORPORATION.  
Specifications subject to change without notice.  
REVISION DESCRIPTION LIST  
7470/71, 7477/78 USER’S MANUAL  
Rev.  
Rev.  
date  
Revision Description  
No.  
1.0 First Edition  
980131  
(1/1)  

相关型号:

M37470M8AXXXSP

Microcontroller, 8-Bit, MROM, MELPS740 CPU, 8MHz, CMOS, PDIP32, PLASTIC, DIP-32
MITSUBISHI

M37471E4-XXXFP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI

M37471E4-XXXFP

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES
RENESAS

M37471E4-XXXSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI

M37471E4-XXXSP

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES
RENESAS

M37471E4FP

Microcontroller, 8-Bit, OTPROM, 4MHz, CMOS, PQFP56, 0.80 MM PITCH, PLASTIC, QFP-56
MITSUBISHI

M37471E4SP

Microcontroller, 8-Bit, OTPROM, 4MHz, CMOS, PDIP42, SHRINK, PLASTIC, DIP-42
MITSUBISHI

M37471E8-XXXFP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI

M37471E8-XXXFP

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES
RENESAS

M37471E8-XXXSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI

M37471E8-XXXSP

8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 7470 SERIES
RENESAS

M37471E8FP

Microcontroller, 8-Bit, OTPROM, 4MHz, CMOS, PQFP56, 0.80 MM PITCH, PLASTIC, QFP-56
MITSUBISHI