LAPIS Semiconductor ML610472, ML610Q472, ML610471, ML610Q473, ML610473, ML610Q471 User Manual
Specifications and Main Features
Frequently Asked Questions
User Manual
FEUL610473-09
ML610471/ML610472/ML610473
ML610Q471/ML610Q472/ML610Q473
User’s Manual
Issue Date: Jan. 7, 2013
NOTES
No copying or reproduction of this document, in part or in whole, is permitted without the consent of LAPIS Semiconductor Co., Ltd.
The content specified herein is subject to change for improvement without notice.
The content specified herein is for the purpose of introducing LAPIS Semiconductor 's products (hereinafter "Products"). If you wish
to use any such Product, please be sure to refer to the specifications, which can be obtained from LAPIS Semiconductor upon request.
Examples of application circuits, circuit constants and any other information contained herein illustrate the standard usage and
operations of the Products. The peripheral condit ions must be taken into account when designing circuits for mass production.
Great care was taken in ensu ring the accuracy of the infor mation specified in this do cument. However, should you incur any damage
arising from any inaccuracy or mi sprint of such information, LAPIS Semiconductor shall bear no responsibility for such damage.
The technical informati on specified herein is intended only to show the typical functions of and examples of application circuits for
the Products. LAPIS Semiconductor does not grant you, explicitly or implicitly, any license to use or exercise intellectual property or
other rights held by LAPIS Semiconductor and other parties. LAPIS Semiconductor shall bear no responsibility whatsoever for any
dispute arising from the use of such technical information.
The Products specified in this document are intended to be used with general-use electronic equipment or devices (such as audio
visual equipment, o ffice-automation equipment, communication devices, electronic appliances and amusement devices).
The Products specified in this document are not designed to be radiation tolerant.
While LAPIS Semiconductor always makes efforts to enhance the quality and reliability of its Products, a Product may fail or
malfunction for a variety of reasons.
Please be sure to implement in your equ ipment using t he Products safety measures to gu ard against the po ssibility of ph ysical injury,
fire or any other damage caused in the event of the failure of any Product, such as derating, redundancy, fire control and fail-safe
designs. LAPIS Semiconductor shall bear no responsibility whatsoever for your use of any Product outside of the prescribed scope or
not in accordance with the i nstruction manual.
The Products are not designed or manufactured to be used with any equipment, device or system which requires an extremely high
level of reliability the failure or malfunction of which may result in a direct threat to human life or create a risk of human injury (such
as a medical instrument, transportation equ ipment, aerospace machinery, nuclear-reactor controller, fuel-controller or other safety
device). LAPIS Semiconductor shall bear no responsibility in any way for use of any of the Products for the above special purposes. If
a Product is intended to be used for any such special purpo se, please contact a ROHM sales representative before purchasing.
If you intend to export or ship overseas any Product or technology specified herein that may be controlled under the Foreign Exchange
and the Foreign Trade Law, you will be required to obtain a license or permit under the Law.
This manual describes the operation of the hardware of the 8-bit microcontroller
ML610471/ML610472/ML610473/ML610Q471/ML610Q472/ML610Q473.
The following manuals are also available. Read them as necessary.
nX-U8/100 Core Instruction Manual
Description on the basic architecture and the each instruction of the nX-U8/100 Core.
MACU8 Assembler Package User’s Manual
Description on the method of operating the relocatable assembler, the linker, the
librarian, and the object converter and also on the specifications of the assembler
language.
CCU8 User’s Manual
Description on the method of operating the compiler.
CCU8 Programming Guide
Description on the method of programming.
CCU8 Langua ge Re fer ence
Description on the language specifications.
DTU8 Debugger User’s Manual
Description on the method of operating the debugger DTU8.
IDEU8 User’s Manual
Description on the integrated development environment IDEU8.
HTU8 User’s Manual
Description on the integrated development support software HTU8.
uEASE User’s Manual
Description on the on-chip debug tool uEASE.
FWuEASE Flash Writer Host Program User’s Manual
Description on the Flash Writer host program.
Notation
Classification Notation Description
♦ Numeric value xxh, xxH Indicates a hexadeci mal number. x: Any value in the range of 0 to F xxb Indicates a binary number; “b” may be omitted. x: A value 0 or 1
♦ Unit word, W 1 word = 16 bits byte, B 1 byte = 8 bits
nibble, N 1 nibble = 4 bits
maga-, M 10
kilo-, K 2
kilo-, k 10
milli-, m 10
micro-, µ 10
nano-, n 10
second, s (lower case) second
♦ Terminology “H” level, “1” level Indicates high voltage signal levels V
“L” level, “0” level Indicates low voltage signal levels V
♦ Register description
R/W: Indicates that Read/Write attribute. “R” indicates that data can be read and “W” indicates that data can be written.
“R/W” indicates that data can be read or written.
Register name
MSB LSB
6
10
= 1024
3
= 1000
-3
-6
-9
and VOH as specified by the
IH
electrical characteristics.
and VOL as specified by the
IL
electrical characteristics.
Invalid bit: This bit reads “0” when read. Write to this bit is ignored.
1.1 Features .......................................................................................................................................................1-1
1.2 Configuration of Functional Blocks............................................................................................................1-4
1.2.1 Block Diagram of ML610471/ML610472/ML610473.......................................................................... 1-4
1.2.2 Block Diagram of ML610Q471/ML610Q472/ML610Q473.................................................................1-5
1.3.1.7 Pin Layout of ML610471 Chip...................................................................................................... 1-12
1.3.1.8 Pin Layout of ML610472 Chip...................................................................................................... 1-13
1.3.1.9 Pin Layout of ML610473 Chip...................................................................................................... 1-14
1.3.1.10 Pin Layout of ML610Q471 Chip.................................................................................................1-15
1.3.1.11 Pin Layout of ML610Q472 Chip.................................................................................................1-16
1.3.1.12 Pin Layout of ML610Q473 Chip.................................................................................................1-17
1.3.1.13 Pad Coordinates of ML610471/ML610472/M610473 Chip .......................................................1-18
1.3.1.14 Pad Coordinates of ML610Q471/ML610Q472/M610Q473 Chip............................................... 1-19
1.3.2 List of Pins ...........................................................................................................................................1-20
1.3.4 Handling of Unused Pins ..................................................................................................................... 1-25
Chapter 2
Contents
2. CPU and Memory Space...................................................................................................................................2-1
2.2 Program Memory Space ............................................................................................................................... 2-1
2.3 Data Memory Space......................................................................................................................................2-2
2.5 Data Type......................................................................................................................................................2-3
2.6 Description of Registers................................................................................................................................2-4
2.6.1 List of Registers .....................................................................................................................................2-4
2.6.2 Data Segment Register (DSR)................................................................................................................ 2-5
3.1.3 List of Pins .............................................................................................................................................3-1
3.2 Description of Registers.............................................................................................................................. 3-2
3.2.1 List of Registers .....................................................................................................................................3-2
3.2.2 Reset Status Register (RSTAT)..............................................................................................................3-2
3.3 Description of Operation.............................................................................................................................3-3
3.3.1 Operation of System Reset Mode...........................................................................................................3-3
Chapter 4
4. MCU Control Function.................................................................................................................................... 4-1
4.2 Description of Registers..............................................................................................................................4-2
4.2.1 List of Registers .....................................................................................................................................4-2
4.2.3 Standby Control Register (SBYCON) ...................................................................................................4-4
4.2.4 Block Control Register 0 (BLKCON0).................................................................................................. 4-5
4.2.5 Block Control Register 1 (BLKCON1).................................................................................................. 4-6
4.2.6 Block Control Register 2 (BLKCON2).................................................................................................. 4-7
4.2.7 Block Control Register 4 (BLKCON4).................................................................................................. 4-8
4.3 Description of Operation.............................................................................................................................4-9
4.3.1 Program Run Mode................................................................................................................................ 4-9
4.3.2 HALT Mode........................................................................................................................................... 4-9
4.3.3.1 STOP Mode When CPU Operates with Low-Speed Clock...........................................................4-10
4.3.3.2 STOP Mode When CPU Operates with High-Speed Clock..........................................................4-11
4.3.4 Note on Return Operation from STOP/HALT Mode...........................................................................4-12
4.3.5 Block Control Function........................................................................................................................4-13
5.2 Description of Registers..............................................................................................................................5-2
5.2.1 List of Registers .....................................................................................................................................5-2
5.3 Description of Operation...........................................................................................................................5-14
5.3.4 Notes on Interrupt Routine...................................................................................................................5-16
6.1.3 List of Pins .............................................................................................................................................6-2
6.2 Description of Registers..............................................................................................................................6-2
6.2.1 List of Registers .....................................................................................................................................6-2
6.2.2 Frequency Control Register 0 (FCON0)................................................................................................6-3
6.2.3 Frequency Control Register 1 (FCON1)................................................................................................6-4
6.3 Description of Operation.............................................................................................................................6-5
6.3.2.2 Operation of High-Speed Clock Generation Circuit........................................................................ 6-8
6.3.3 Switching of System Clock.................................................................................................................... 6-9
6.4 Specifying Port Registers..........................................................................................................................6-10
6.4.1 Functioning P21 (OUTCLK) as the high-speed clock output..............................................................6-10
6.4.1 Functioning P20 (LSCLK) as the low-speed clock output...................................................................6-11
Chapter 7
7. Time Base Counter..........................................................................................................................................7-1
7.2 Description of Registers.............................................................................................................................. 7-3
7.2.1 List of Registers .....................................................................................................................................7-3
7.2.2 Low-Speed Time Base Counter Register (LTBR).................................................................................7-4
7.2.3 High-Speed Time Base Counter Divide Register (HTBDR) ................................................................. 7-5
7.2.4 Low-Speed Time Base Counter Frequency Adjustment Registers L and H (LTBADJL, LTBADJH)..7-6
7.3 Description of Operation.............................................................................................................................7-7
7.3.1 Low-speed Time Base Counter.............................................................................................................. 7-7
7.3.2 High-Speed Time Base Counter............................................................................................................. 7-8
7.3.3 Low-Speed Time Base Counter Frequency Adjustment Function......................................................... 7-9
7.3.4 A signal generation for 16-bit timer 2-3 frequency measurement mode..............................................7-10
8.1.3 List of Pins .............................................................................................................................................8-1
8.2 Description of Registers..............................................................................................................................8-2
8.2.1 List of Registers .....................................................................................................................................8-2
8.2.2 Capture Control Register (CAPCON)....................................................................................................8-3
8.2.3 Capture Status Register (CAPSTAT)..................................................................................................... 8-4
8.2.4 Capture Data Register 0 (CAPR0) .........................................................................................................8-5
8.2.5 Capture Data Register 1 (CAPR1) .........................................................................................................8-6
8.2.6 Capture Time Base Data Register (CAPTB).......................................................................................... 8-7
8.3 Description of Operation.............................................................................................................................8-8
9.1.3 List of Pins .............................................................................................................................................9-2
9.2 Description of Registers................................................................................................................................9-3
9.2.1 List of Registers .....................................................................................................................................9-3
9.2.2 Timer 2 Data Register (TM2D).............................................................................................................. 9-4
9.2.3 Timer 3 Data Register (TM3D).............................................................................................................. 9-5
10.2 Description of Registers..........................................................................................................................10-2
10.2.1 List of Registers .................................................................................................................................10-2
10.2.2 Watchdog Timer Control Register (WDTCON)................................................................................ 10-3
10.3 Description of Operation.........................................................................................................................10-5
10.3.1 Handling example when you do not want to use the watch dog timer............................................... 10-7
11.1.3 List of Pins .........................................................................................................................................11-2
11.2 Description of Registers..........................................................................................................................11-2
11.2.1 List of Registers .................................................................................................................................11-2
11.2.6 UART0 Baud Rate Registers L, H (UA0BRTL, UA0BRTH)...........................................................11-8
11.2.7 UART0 Status Register (UA0STAT) ................................................................................................ 11-9
11.3 Description of Operation.....................................................................................................................11-11
11.3.1 Transfer Data Format.......................................................................................................................11-11
11.4 Specifying Port Registers....................................................................................................................11-20
11.4.1 Functioning P43(TXD0) and P42(RXD0) as the UART.................................................................11-20
11.4.1 Functioning P43(TXD0) and P02(RXD0) as the UART .................................................................11-21
Chapter 12
12. Port 0 ...........................................................................................................................................................12-1
12.1.3 List of Pins .........................................................................................................................................12-1
Contents –3
ML610471/ML610472/ML610473 User’s Manual
12.2 Description of Registers..........................................................................................................................12-2
12.2.1 List of Registers .................................................................................................................................12-2
12.2.2 Port 0 Data Register (P0D) ................................................................................................................12-3
12.2.3 Port 0 Control Registers 0, 1 (P0CON0, P0CON1)...........................................................................12-4
12.2.4 External Interrupt Control Registers 0, 1 (EXICON0, EXICON1) ...................................................12-5
12.2.5 External Interrupt Control Register 2 (EXICON2)............................................................................12-6
12.3 Description of Operation.........................................................................................................................12-7
13. Port 2 ...........................................................................................................................................................13-1
13.1.3 List of Pins .........................................................................................................................................13-1
13.2 Description of Registers..........................................................................................................................13-2
13.2.1 List of Registers .................................................................................................................................13-2
13.2.2 Port 2 Data Register (P2D) ................................................................................................................13-3
13.2.3 Port 2 Control Registers 0, 1 (P2CON0, P2CON1)...........................................................................13-4
13.2.4 Port 2 Mode Register (P2MOD) ........................................................................................................13-5
13.3 Description of Operation.........................................................................................................................13-6
13.3.1 Output Port Function.......................................................................................................................... 13-6
14. Port 3 ...........................................................................................................................................................14-1
14.1.3 List of Pins .........................................................................................................................................14-1
14.2 Description of Registers..........................................................................................................................14-2
14.2.1 List of Registers .................................................................................................................................14-2
14.2.2 Port 3 Data Register (P3D) ................................................................................................................14-3
14.2.3 Port 3 Direction Register (P3DIR)..................................................................................................... 14-4
14.2.4 Port 3 Control Registers 0, 1 (P3CON0, P3CON1)...........................................................................14-5
14.2.5 Port 3 Mode Register 0 (P3MOD0) ...................................................................................................14-6
14.3 Description of Operation.........................................................................................................................14-7
14.3.1 Input/Output Port Functions............................................................................................................... 14-7
15. Port 4 ...........................................................................................................................................................15-1
15.1.3 List of Pins .........................................................................................................................................15-2
15.2 Description of Registers........................................................................................................................15-3
15.2.1 List of Registers .................................................................................................................................15-3
15.2.2 Port 4 Data Register (P4D) ................................................................................................................15-4
15.2.3 Port 4 Direction Register (P4DIR)..................................................................................................... 15-5
15.2.4 Port 4 Control Registers 0, 1 (P4CON0, P4CON1)...........................................................................15-6
15.2.5 Port 4 Mode Registers 0, 1 (P4MOD0, P4MOD1) ............................................................................15-8
15.3 Description of Operation.......................................................................................................................15-10
15.3.1 Input/Output Port Functions............................................................................................................. 15-10
15.3.2 Secondary and Tertiary Functions....................................................................................................15-10
Chapter 16
16. Port 6 ...........................................................................................................................................................16-1
16.1 General Description................................................................................................................................. 16-1
16.1.3 List of Pins .........................................................................................................................................16-1
16.2 Description of Registers..........................................................................................................................16-2
16.2.1 List of Registers .................................................................................................................................16-2
16.2.2 Port 6 Data Register (P6D) ................................................................................................................16-3
16.2.3 Port 6 Control Register 0 (P6CON0) .................................................................................................16-4
16.3 Description of Operation.......................................................................................................................16-5
16.3.1 Output Port Function.......................................................................................................................... 16-5
Chapter 17
17. RC Oscillation Type A/D Converter...........................................................................................................17-1
17.1.3 List of Pins .........................................................................................................................................17-2
17.2 Description of Registers..........................................................................................................................17-3
17.2.1 List of Registers .................................................................................................................................17-3
17.2.2 RC-ADC Counter A Registers (RADCA0–1)....................................................................................17-4
17.2.3 RC-ADC Counter B Registers (RADCB0–1).................................................................................... 17-5
17.2.5 RC-ADC Control Register (RADCON)............................................................................................. 17-7
17.3 Description of Operation.........................................................................................................................17-8
17.4 Specifying Port Registers......................................................................................................................17-18
17.4.1 Functioning P47(RT1), P46(RS1), P45(CS1) and P44(IN1) as the RC-ADC(Ch1)........................ 17-18
18.1.1 Features ............................................................................................................................................18-2
18.1.2 Configuration of the LCD Drivers .....................................................................................................18-2
18.1.3 Configuration of the Bias Generation Circuit ....................................................................................18-3
18.1.4 List of Pins .........................................................................................................................................18-5
18.2 Description of Registers..........................................................................................................................18-6
18.2.1 List of Registers .................................................................................................................................18-6
18.2.2 Bias Circuit Control Register 0 (BIASCON)..................................................................................... 18-7
18.2.4 Display Control Register (DSPCON) ................................................................................................ 18-9
18.2.5 Display Registers (DSPR00 to DSPR15).........................................................................................18-10
18.3 Description of Operation.......................................................................................................................18-12
18.3.1 Operation of LCD Drivers and Bias Generation Circuit.................................................................. 18-12
18.3.2 Segment Mapping When the Programmable Display Allocation Function is Not Used ................. 18-13
18.3.3 Common Output Waveforms...........................................................................................................18-14
19. Power Supply Circuit.................................................................................................................................. 19-1
19.1.3 List of Pins .........................................................................................................................................19-1
21. Software Development ................................................................................................................................. 21-1
This LSI is a high performance CMOS 8-bit microcontroller equipped with an 8-bit CPU nX-U8/100 and integrated with
peripheral functions such as the UART, RC oscillation type A/D converter, and LCD driver.
The CPU nX-U8/100 is capable of efficient instruction execution in 1-intruction 1-clock mode by 3-stage pipe line
architecture parallel processing. Additionally, it adopts the low-/high-speed dual clock system, standby mode, and
process that prohibits leak current at high temperatures, and is most suitable for battery-driven applications.
MTP version (ML610Q471/ML610Q472/ML610Q473) can rewrite programs on-board, which can contribute to
reduction in product development TAT. The flash memory incorporated into this MTP version implements the mask
ROM-equivalent low-voltage operation (1.25V or higher) and low-power consumption (typically 5uA at low-speed
operation), enabling volume production by the MTP version.
For industrial use, ML610471P/ML610472P/ML610473P/ML610Q471P/ML610Q472P/ML610Q473P with the
extended operating ambient temperature ranging from -40°C to 85°C are available.
z CPU
- 8-bit RISC CPU (CPU name: nX-U8/100)
- Instruction system: 16-bit length instruction
- Instruction set: Transfer, arithmetic operations, comparison, logic operations, multiplication/division, bit
manipulations, bit logic operations, jump, conditional jump, call return stack manipulations, arithmetic shift,
and so on
- Flash Memory rewrite function (MTP version only)
- Minimum instruction execution time
30.5 μs (@ 32.768 kHz system clock)
2 μs (@ 500 kHz system clock)
z Internal memory
- ML610471/ML610472/ML610473
Internal 8KByte Mask ROM (4K x 16 bits) (including unusable 256Byte TEST area)
Internal 512Byte RAM (512 x 8 bits)
- ML610Q471/ML610Q472/ML610Q473
Internal 8KByte Flash ROM (4K x 16 bits) (including unusable 256Byte TEST area)
Internal 512Byte RAM (512 x 8 bits)
xxx: ROM code number (xxx of the blank product is NNN, MTP version only)
Q: MTP version
P: Wide range temperature version (P version)
WA: Chip (Die)
TBZ0ARL: 64pin TQFP
TPZ0AAL: 48pin TQFP
z Guaranteed Operation Range
− Operating temperature: -20°C to +70°C (P version: -40°C to +85°C)
− Operating voltage: V
= 1.25V to 3.6V
DD
1-3
ML610471/472/473/Q471/Q472/Q473 User's Manual
)
(
)
Chapter 1 Overview
1.2 Configuration of Functional Blocks
1.2.1 Block Diagram of ML610471/ML610472/ML610473
EPSW1−3
PSW
Timing
Controller
VDD
V
SS
Flash
Writer
RESET_N
TEST0
RESET &
TEST
XT0
XT1
LSCLK*
OSC
V
DDL
Power
RCM*
IN1*
CS1*
RS1*
RT1*
RC-ADC
×1
* Secondary function or Tertiary function
(*1) Select among 11 segments x 5 commons, 12 segments x 4 commons, 13 segments x 3 commons, and 14
segments x 2 commons with the register
(*2) Select among 15 segments x 5 commons, 16 segments x 4 commons, 17 segments x 3 commons, and 18
segments x 2 commons with the register
(*3) Select among 19 segments x 5 commons, 20 segments x 4 commons, 21 segments x 3 commons, and 22
segments x 2 commons with the register
Figure 1-1 Block Diagram of ML610471/ML610472/ML610473
CPU (nX-U8/100)
GREG
0−15
ALU
Instruction
Decoder
INT
1
INT
1
INT
4
INT
2
ELR1−3
LR
EA
SP
Instruction
Register
Data-bus
RAM
512 byte
Interrupt
Controller
WDT
TBC
Capture
×2
8bit Timer
×2
Display
register
110bit
ECSR1−3
DSR/CSR
PC
BUS
Controller
INT
INT
5
Program
Memory
(Mask)
8Kbyte
1
UART
GPIO
LCD
Driver
LCD
BIAS
RXD0*
TXD0*
P00 to P03
P20, P21
P35
P42 to P47
P60 to P67 (ML610471)
P60 to P63 (ML610472)
COM0 to COM4 (*1)(*2)(*3
SEG0 to SEG13 (ML610471) (*1)
SEG0 to SEG17 (ML610472) (*2)
SEG0 to SEG21
VL1, VL2, V
C1, C2
L3
ML610473) (*3
1-4
ML610471/472/473/Q471/Q472/Q473 User's Manual
)
(
)
1.2.2 Block Diagram of ML610Q471/ML610Q472/ML610Q473
CPU (nX-U8/100)
EPSW1−3
PSW
Timing
Controller
Flash
Writer
GREG
0−15
ALU
Instruction
Decoder
ELR1−3
LR
EA
SP
Instruction
Register
ECSR1−3
DSR/CSR
PC
BUS
Controller
Program
Memory
(Flash)
8Kbyte
Chapter 1 Overview
VPP
VDD
V
SS
RESET_N
TEST0
XT0
XT1
LSCLK*
V
DDL
RCM*
IN1*
CS1*
RS1*
RT1*
RESET &
TEST
OSC
Power
RC-ADC
×1
Data-bus
RAM
512 byte
Interrupt
INT
1
INT
4
INT
2
Controller
WDT
TBC
Capture
×2
8bit Timer
×2
INT
1
INT
INT
5
1
UART
GPIO
RXD0*
TXD0*
P00 to P03
P20, P21
P35
P42 to P47
P60 to P67 (ML610Q471)
P60 to P63 (ML610Q472)
COM0 to COM4 (*1)(*2)(*3
SEG0 to SEG13 (ML610Q471) (*1)
SEG0 to SEG17 (ML610Q472) (*2)
SEG0 to SEG21
VL1, VL2, V
C1, C2
L3
ML610Q473) (*3
*
Secondary function or Tertiary function
Display
register
110bit
LCD
Driver
LCD
BIAS
(*1) Select among 11 segments x 5 commons, 12 segments x 4 commons, 13 segments x 3 commons, and 14
segments x 2 commons with the register
(*2) Select among 15 segments x 5 commons, 16 segments x 4 commons, 17 segments x 3 commons, and 18
segments x 2 commons with the register
(*3) Select among 19 segments x 5 commons, 20 segments x 4 commons, 21 segments x 3 commons, and 22
segments x 2 commons with the register
Figure 1-2 Block Diagram of ML610Q471/ML610Q472/ML610Q473