Lapis ML610Q111 User manual

ML610Q111/ML610Q112
User’s Manual
Issue Date: Nov. 16, 2016
FEUL610Q111-05

ML610Q111/ML610Q112 User’s Manual
FEUL610Q111 1
NOTES
1) The information contained herein is subject to change without notice.
2) Although LAPIS Semiconductor is continuously working to improve product reliability and quality, semiconductors can
break down and malfunction due to various factors. Therefore, in order to prevent personal injury or fire arising from failure,
please take safety measures such as complying with the derating characteristics, implementing redundant and fire
prevention designs, and utilizing backups and fail-safe procedures. LAPIS Semiconductor shall have no responsibility for
any damages arising out of the use of our Products beyond the rating specified by LAPIS Semiconductor.
3) Examples of application circuits, circuit constants and any other information contained herein are provided only to illustrate
the standard usage and operations of the Products.The peripheral conditions must be taken into account when designing
circuits for mass production.
4) The technical information specified herein is intended only to show the typical functions of the Products and examples of
application circuits for the Products. No license, expressly or implied, is granted hereby under any intellectual property
rights or other rights of LAPIS Semiconductor or any third party with respect to the information contained in this
document; therefore LAPIS Semiconductor shall have no responsibility whatsoever for any dispute, concerning such rights
owned by third parties, arising out of the use of such technical information.
5) The Products are intended for use in general electronic equipment (i.e. AV/OA devices, communication, consumer systems,
gaming/entertainment sets) as well as the applications indicated in this document.
6) The Products specified in this document are not designed to be radiation tolerant.
7) For use of our Products in applications requiring a high degree of reliability (as exemplified below), please contact and
consult with a LAPIS Semiconductor representative: transportation equipment (i.e. cars, ships, trains), primary
communication equipment, traffic lights, fire/crime prevention, safety equipment, medical systems, servers, solar cells, and
power transmission systems.
8) Do not use our Products in applications requiring extremely high reliability, such as aerospace equipment, nuclear power
control systems, and submarine repeaters.
9) LAPIS Semiconductor shall have no responsibility for any damages or injury arising from non-compliance with the
recommended usage conditions and specifications contained herein.
10) LAPIS Semiconductor has used reasonable care to ensure the accuracy of the information contained in this document.
However, LAPIS Semiconductor does not warrant that such information is error-free and LAPIS Semiconductor shall have
no responsibility for any damages arising from any inaccuracy or misprint of such information.
11) Please use the Products in accordance with any applicable environmental laws and regulations, such as the RoHS Directive.
For more details, including RoHS compatibility, please contact a ROHM sales office. LAPIS Semiconductor shall have no
responsibility for any damages or losses resulting non-compliance with any applicable laws or regulations.
12) When providing our Products and technologies contained in this document to other countries, you must abide by the
procedures and provisions stipulated in all applicable export laws and regulations, including without limitation the US
Export Administration Regulations and the Foreign Exchange and Foreign Trade Act.
13) This document, in part or in whole, may not be reprinted or reproduced without prior consent of LAPIS Semiconductor.
Copyright 2013-2016 LAPIS Semiconductor Co., Ltd.
2-4-8 Shinyokohama, Kouhoku-ku,
Yokohama 222-8575, Japan
http://www.lapis-semi.com/en/

ML610Q111/ML610Q112 User’s Manual
FEUL610Q111 2
Preface
This manual describes the operation of the hardware of the 8-bit microcontroller ML610Q111 /
ML610Q112.
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 Language Reference
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.
uEASE User’s Manual
Description on the on-chip debug tool uEASE.
uEASE connection Manual for ML610QXXX
Description about the connection between uEASE and ML610Q111 and ML610Q112.
FWuEASE Flash Writer Host Program User’s Manual
Description on the Flash Writer host program.

ML610Q111/ML610Q112 User’s Manual
FEUL610Q111 3
Notation
Classification Notation Description
♦Numeric value xxh, xxH Indicates a hexadecimal 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 106
kilo-, K 210 = 1024
kilo-, k 103= 1000
milli-, m 10-3
micro-, µ 10-6
nano-, n 10-9
second, s (lower case) second
♦Terminology “H” level, “1” level Indicates high voltage signal levels VIH and VOH as specified by the electrical
characteristics.
“L” level, “0” level Indicates low voltage signal levels VIL and VOL as specified by the electrical
characteristics.
♦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.
MSB
LSB
FCON0 OUTC1 OUTC0 OSCM1 OSCM0 SYSC1 SYSC0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
1
1
0
1
0
1
Bit name
Register name
Initial value after reset
Invalid bit: This bit reads “0” when read. Write to this bit is ignored.

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 1
Contents
Chapter 1
1 Overview .....................................................................................................................................................1-1
1.1 Features..................................................................................................................................................1-1
1.2 Configuration of Functional Blocks.......................................................................................................1-4
1.2.1 Block Diagram .............................................................................................................................1-4
1.3 Pins.........................................................................................................................................................1-5
1.3.1 Pin Layout ....................................................................................................................................1-5
1.3.2 List of Pins....................................................................................................................................1-6
1.3.3 Description of Pins.......................................................................................................................1-8
1.3.4 Termination of Unused Pins.......................................................................................................1-11
Chapter 2
2 CPU and Memory Space .............................................................................................................................2-1
2.1 Overview................................................................................................................................................2-1
2.2 Program Memory Space.........................................................................................................................2-1
2.3 Data Memory Space...............................................................................................................................2-3
2.4 Instruction Length..................................................................................................................................2-5
2.5 Data Type...............................................................................................................................................2-5
2.6 Description of Registers.........................................................................................................................2-6
2.6.1 List of Registers............................................................................................................................2-6
2.6.2 Data Segment Register (DSR)......................................................................................................2-7
Chapter 3
3 Reset Function.............................................................................................................................................3-1
3.1 Overview................................................................................................................................................3-1
3.1.1 Features ........................................................................................................................................3-1
3.1.2 Configuration................................................................................................................................3-1
3.1.3 List of Pin.....................................................................................................................................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.1 Overview..................................................................................................................................................4-1
4.1.1 Features ........................................................................................................................................4-1
4.1.2 Configuration................................................................................................................................4-1
4.2 Description of Registers...........................................................................................................................4-2
4.2.1 List of Registers............................................................................................................................4-2
4.2.2 Stop Code Acceptor (STPACP)....................................................................................................4-3
4.2.3 Standby Control Register (SBYCON)..........................................................................................4-4
4.2.4 Block Control Register 2 (BLKCON2)........................................................................................4-5
4.2.5 Block Control Register 4 (BLKCON4)........................................................................................4-6
4.2.6 Block Control Register 6 (BLKCON6)........................................................................................4-7
4.2.7 Block Control Register 7 (BLKCON7)........................................................................................4-9
4.3 Description of Operation .......................................................................................................................4-10
4.3.1 Program Run Mode ....................................................................................................................4-10
4.3.2 HALT Mode ...............................................................................................................................4-10
4.3.3 STOP Mode................................................................................................................................4-11
4.3.3.1 STOP Mode When CPU Operates with Low-Speed Clock............................................................4-11
4.3.3.2 STOP Mode When CPU Operates with High-Speed Clock........................................................... 4-12
4.3.3.3 Note on Return Operation from STOP/HALT Mode..................................................................... 4-13
4.3.4 Block Control Function..............................................................................................................4-14

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 2
Chapter 5
5 Interrupts (INTs)..........................................................................................................................................5-1
5.1 Overview................................................................................................................................................5-1
5.1.1 Features ........................................................................................................................................5-1
5.2 Description of Registers.........................................................................................................................5-2
5.2.1 List of Registers............................................................................................................................5-2
5.2.2 Interrupt Enable Register 0 (IE0) .................................................................................................5-3
5.2.3 Interrupt Enable Register 1 (IE1) .................................................................................................5-4
5.2.4 Interrupt Enable Register 2 (IE2) .................................................................................................5-6
5.2.5 Interrupt Enable Register 3 (IE3) .................................................................................................5-7
5.2.6 Interrupt Enable Register 4 (IE4) .................................................................................................5-8
5.2.7 Interrupt Enable Register 5 (IE5) .................................................................................................5-9
5.2.8 Interrupt Enable Register 6 (IE6) ...............................................................................................5-10
5.2.9 Interrupt Enable Register 7 (IE7) ...............................................................................................5-11
5.2.10 Interrupt Request Register 0 (IRQ0) ..........................................................................................5-12
5.2.11 Interrupt Request Register 1 (IRQ1) ..........................................................................................5-13
5.2.12 Interrupt Request Register 2 (IRQ2) ..........................................................................................5-15
5.2.13 Interrupt Request Register 3 (IRQ3) ..........................................................................................5-16
5.2.14 Interrupt Request Register 4 (IRQ4) ..........................................................................................5-17
5.2.15 Interrupt Request Register 5 (IRQ5) ..........................................................................................5-18
5.2.16 Interrupt Request Register 6 (IRQ6) ..........................................................................................5-19
5.2.17 Interrupt Request Register 7 (IRQ7) ..........................................................................................5-21
5.3 Description of Operation......................................................................................................................5-22
5.3.1 Maskable Interrupt Processing ...................................................................................................5-23
5.3.2 Non-Maskable Interrupt Processing...........................................................................................5-23
5.3.3 Software Interrupt Processing ....................................................................................................5-23
5.3.4 Notes on Interrupt Routine.........................................................................................................5-24
5.3.5 Interrupt Disable State................................................................................................................5-27
Chapter 6
6 Clock Generation Circuit.............................................................................................................................6-1
6.1 Overview................................................................................................................................................6-1
6.1.1 Features ........................................................................................................................................6-1
6.1.2 Configuration................................................................................................................................6-1
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.1 Low-Speed Clock.........................................................................................................................6-5
6.3.1.1 Low-Speed Clock Generation Circuit (built-in RC oscillating circuit) ........................................... 6-5
6.3.1.2 Operation of Low-Speed Clock Generation Circuit ........................................................................ 6-6
6.3.2 High-Speed Clock ........................................................................................................................6-7
6.3.2.1 Built-in PLL Oscillation Mode........................................................................................................ 6-7
6.3.2.2 High-Speed External Clock Input Mode ......................................................................................... 6-8
6.3.2.3 Operation of High-Speed Clock Generation Circuit........................................................................ 6-9
6.3.3 Switching of System Clock ........................................................................................................6-10
6.4 Specifying port registers ......................................................................................................................6-11
6.4.1 Functioning PB7 (LSCLK) as the low speed clock output.........................................................6-11
6.4.2 Functioning PB0 (OUTCLK) as the High speed clock output...................................................6-12
6.4.3 Functioning PA2 (CLKIN) as the External clock input..............................................................6-13
Chapter 7
7 Time Base Counter......................................................................................................................................7-1
7.1 Overview................................................................................................................................................7-1
7.1.1 Features ........................................................................................................................................7-1
7.1.2 Configuration................................................................................................................................7-1
7.2 Description of Registers.........................................................................................................................7-3

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 3
7.2.1 List of Registers............................................................................................................................7-3
7.2.2 Low-Speed Time Base Counter (LTBR) ......................................................................................7-4
7.2.3 High-Speed Time Base Counter Divide Register (HTBDR)........................................................7-5
7.3 Description of Operation........................................................................................................................7-6
7.3.1 Low-Speed Time Base Counter....................................................................................................7-6
7.3.2 High-Speed Time Base Counter...................................................................................................7-7
Chapter 8
8 Timers..........................................................................................................................................................8-1
8.1 Overview................................................................................................................................................8-1
8.1.1 Features ........................................................................................................................................8-1
8.1.2 Configuration................................................................................................................................8-2
8.1.3 List of Pins....................................................................................................................................8-4
8.2 Description of Registers.........................................................................................................................8-5
8.2.1 List of Registers............................................................................................................................8-5
8.2.2 Timer 8 Data Register (TM8D)....................................................................................................8-6
8.2.3 Timer 9 Data Register (TM9D)....................................................................................................8-7
8.2.4 Timer A Data Register (TMAD)...................................................................................................8-8
8.2.5 Timer B Data Register (TMBD)...................................................................................................8-9
8.2.6 Timer E Data Register (TMED).................................................................................................8-10
8.2.7 Timer F Data Register (TMFD)..................................................................................................8-11
8.2.8 Timer 8 Counter Register (TM8C).............................................................................................8-12
8.2.9 Timer 9 Counter Register (TM9C).............................................................................................8-13
8.2.10 Timer A Counter Register (TMAC)............................................................................................8-14
8.2.11 Timer B Counter Register (TMBC)............................................................................................8-15
8.2.12 Timer E Counter Register (TMEC)............................................................................................8-16
8.2.13 Timer F Counter Register (TMFC).............................................................................................8-17
8.2.14 Timer 8 Control Register 0 (TM8CON0)...................................................................................8-18
8.2.15 Timer 9 Control Register 0 (TM9CON0)...................................................................................8-19
8.2.16 Timer A Control Register 0 (TMACON0)..................................................................................8-20
8.2.17 Timer B Control Register 0 (TMBCON0)..................................................................................8-21
8.2.18 Timer E Control Register 0 (TMECON0)..................................................................................8-22
8.2.19 Timer F Control Register 0 (TMFCON0) ..................................................................................8-23
8.2.20 Timer 8 Control Register 1 (TM8CON1)...................................................................................8-24
8.2.21 Timer 9 Control Register 1 (TM9CON1)...................................................................................8-25
8.2.22 Timer A Control Register 1 (TMACON1)..................................................................................8-26
8.2.23 Timer B Control Register 1 (TMBCON1)..................................................................................8-27
8.2.24 Timer E Control Register 1 (TMECON1)..................................................................................8-28
8.2.25 Timer F Control Register 1 (TMFCON1) ..................................................................................8-29
8.2.26 Timer E Control Register 2 (TMECON2)..................................................................................8-30
8.2.27 Timer F Control Register 2 (TMFCON2) ..................................................................................8-31
8.2.28 Timer E Control Register 3 (TMECON3)..................................................................................8-33
8.2.29 Timer F Control Register 3 (TMFCON3) ..................................................................................8-34
8.3 Description of Operation......................................................................................................................8-35
8.3.1 Timer basic operation.................................................................................................................8-35
8.3.2 The external timer start/stop operation.......................................................................................8-37
8.3.3 The external timer operation ......................................................................................................8-37
8.4 Restriction of timer ..............................................................................................................................8-39
8.4.1 Restriction 1 ...............................................................................................................................8-39
8.4.1 Restriction 2 ...............................................................................................................................8-39
8.4.1 Restriction 3 ...............................................................................................................................8-39
8.5 Specifying port registers ......................................................................................................................8-40
8.5.1 Functioning PA0 (TM9OUT) as the timer output ......................................................................8-40
8.5.2 Functioning PC3 (TMFOUT) as the timer output......................................................................8-41
Chapter 9
9 Watchdog Timer ..........................................................................................................................................9-1
9.1 Overview................................................................................................................................................9-1
9.1.1 Features ........................................................................................................................................9-1

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 4
9.1.2 Configuration................................................................................................................................9-1
9.2 Description of Registers.........................................................................................................................9-2
9.2.1 List of Registers............................................................................................................................9-2
9.2.2 Watchdog Timer Control Register (WDTCON)...........................................................................9-3
9.2.3 Watchdog Timer Mode Register (WDTMOD).............................................................................9-4
9.3 Description of Operation........................................................................................................................9-5
9.3.1 Handling example when you do not want to use the watchdog timer..........................................9-7
Chapter 10
10 PWM..........................................................................................................................................................10-1
10.1 Overview..............................................................................................................................................10-1
10.1.1 Features ......................................................................................................................................10-1
10.1.2 Configuration..............................................................................................................................10-2
10.1.3 List of Pins..................................................................................................................................10-3
10.2 Description of Registers.......................................................................................................................10-4
10.2.1 List of Registers..........................................................................................................................10-4
10.2.2 PWMC Period Registers (PWCPL, PWCPH)............................................................................10-5
10.2.3 PWMC Duty Registers (PWCDL, PWCDH).............................................................................10-6
10.2.4 PWMC Counter Registers (PWCCH, PWCCL).........................................................................10-7
10.2.5 PWMC Control Register 0 (PWCCON0)...................................................................................10-8
10.2.6 PWMC Control Register 1 (PWCCON1)...................................................................................10-9
10.2.7 PWMC Control Register 2 (PWCCON2).................................................................................10-10
10.2.8 PWMC Control Register 3 (PWCCON3).................................................................................10-11
10.2.9 PWMD Period Registers (PWCPL, PWCPH)..........................................................................10-12
10.2.10 PWMD Duty Registers (PWDDL, PWDDH) ..........................................................................10-13
10.2.11 PWMD Counter Registers (PWDCH, PWDCL)......................................................................10-14
10.2.12 PWMD Control Register 0 (PWDCON0)................................................................................10-15
10.2.13 PWMD Control Register 1 (PWDCON1)................................................................................10-16
10.2.14 PWMD Control Register 2 (PWDCON2)................................................................................10-17
10.2.15 PWMD Control Register 3 (PWDCON3)................................................................................10-18
10.2.16 PWME Period Registers (PWEPL, PWEPH)...........................................................................10-19
10.2.17 PWME Duty Registers (PWEDL, PWEDH)............................................................................10-20
10.2.18 PWME Counter Registers (PWECH, PWECL) .......................................................................10-21
10.2.19 PWME Control Register 0 (PWECON0).................................................................................10-22
10.2.20 PWME Control Register 1 (PWECON1).................................................................................10-23
10.2.21 PWME Control Register 2 (PWECON2).................................................................................10-24
10.2.22 PWME Control Register 3 (PWECON3).................................................................................10-25
10.2.23 PWMF Period Registers (PWFPL, PWFPH) ...........................................................................10-26
10.2.24 PWMF0 Duty Registers (PWF0DL, PWF0DH) ......................................................................10-27
10.2.25 PWMF1 Duty Registers (PWF1DL, PWF1DH) ......................................................................10-28
10.2.26 PWMF2 Duty Registers (PWF2DL, PWF2DH) ......................................................................10-29
10.2.27 PWMF Counter Registers (PWFCH, PWFCL)........................................................................10-30
10.2.28 PWMF Control Register 0 (PWFCON0)..................................................................................10-31
10.2.29 PWMF Control Register 1 (PWFCON1)..................................................................................10-32
10.2.30 PWMF Control Register 2 (PWFCON2)..................................................................................10-33
10.2.31 PWMF Control Register 3 (PWFCON3)..................................................................................10-34
10.2.32 PWMF Control Register 4 (PWFCON4)..................................................................................10-35
10.2.33 PWMF Control Register 5 (PWFCON5)..................................................................................10-36
10.3 Description of Operation....................................................................................................................10-37
10.3.1 Start, Stop, and Clear Operations of PWM by External Input Control.....................................10-39
10.3.2 Emergency Stop Operation.......................................................................................................10-39
10.3.3 PWMF Operation .....................................................................................................................10-40
10.3.4 Interrupt of PWM.....................................................................................................................10-42
10.4 Specifying port registers ....................................................................................................................10-43
10.4.1 Functioning PA0 (PWMC) as the PWM output.......................................................................10-43
10.4.2 Functioning PB0 (PWMC) as the PWM output.......................................................................10-44
10.4.3 Functioning PB7 (PWMC) as the PWM output.......................................................................10-45

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 5
Chapter 11
11 Synchronous Serial Port ............................................................................................................................11-1
11.1 Overview..............................................................................................................................................11-1
11.1.1 Features ......................................................................................................................................11-1
11.1.2 Configuration..............................................................................................................................11-1
11.1.3 List of Pins..................................................................................................................................11-2
11.2 Description of Registers.......................................................................................................................11-3
11.2.1 List of Registers..........................................................................................................................11-3
11.2.2 Serial Port Transmit/Receive Buffers (SIO0BUFL, SIO0BUFH)..............................................11-4
11.2.3 Serial Port Control Register (SIO0CON)...................................................................................11-5
11.2.4 Serial Port Mode Register 0 (SIO0MOD0)................................................................................11-6
11.2.5 Serial Port Mode Register 1 (SIO0MOD1)................................................................................11-7
11.3 Description of Operation......................................................................................................................11-8
11.3.1 Transmit Operation.....................................................................................................................11-8
11.3.2 Receive Operation......................................................................................................................11-9
11.3.3 Transmit/Receive Operation.....................................................................................................11-10
11.4 Specifying port registers ....................................................................................................................11-11
11.4.1 Functioning as the SSIO master mode ..................................................................................... 11-11
11.4.2 Functioning as the SSIO slave mode........................................................................................11-12
Chapter 12
12 UART ........................................................................................................................................................12-1
12.1 Overview............................................................................................................................................12-1
12.1.1 Features ......................................................................................................................................12-1
12.1.2 Configuration..............................................................................................................................12-1
12.1.3 List of Pins..................................................................................................................................12-2
12.2 Description of Registers.....................................................................................................................12-2
12.2.1 List of Registers..........................................................................................................................12-2
12.2.2 UART0 Transmit/Receive Buffer (UA0BUF)............................................................................12-3
12.2.3 UART1 Transmit/Receive Buffer (UA1BUF)............................................................................12-3
12.2.4 UART0 Control Register (UA0CON)........................................................................................12-4
12.2.5 UART1 Control Register (UA1CON)........................................................................................12-4
12.2.6 UART0 Mode Register 0 (UA0MOD0).....................................................................................12-5
12.2.7 UART1 Mode Register 0 (UA1MOD0).....................................................................................12-6
12.2.8 UART0 Mode Register 1 (UA0MOD1).....................................................................................12-7
12.2.9 UART1 Mode Register 1 (UA1MOD1).....................................................................................12-8
12.2.10 UART0 Baud Rate Registers L, H (UA0BRTL, UA0BRTH)....................................................12-9
12.2.11 UART1 Baud Rate Registers L, H (UA1BRTL, UA1BRTH)..................................................12-10
12.2.12 UART0 Status Register (UA0STAT)........................................................................................12-11
12.2.13 UART1 Status Register (UA1STAT)........................................................................................12-12
12.3 Description of Operation..................................................................................................................12-13
12.3.1 Transfer Data Format................................................................................................................12-13
12.3.2 Baud rate...................................................................................................................................12-14
12.3.3 Transmitted Data Direction ......................................................................................................12-15
12.3.4 Transmit Operation...................................................................................................................12-16
12.3.5 Receive Operation....................................................................................................................12-17
12.3.5.1 Detection of Start Bit................................................................................................................... 12-18
12.3.5.2 Sampling Timing ......................................................................................................................... 12-18
12.3.5.3 Reception Margin........................................................................................................................ 12-19
12.4 Specifying port registers...................................................................................................................12-20
12.4.1 Functioning PB1(TXD0) and PB0(RXD0) as the UART.........................................................12-20
12.4.2 Functioning PB4(TXD0) and PB5(RXD0) as the UART.........................................................12-21
12.4.3 Functioning PB1(TXD1) and PB2(RXD1) as the UART.........................................................12-22
12.4.4 Functioning PB3(TXD1) and PB2(RXD1) as the UART.........................................................12-23
12.4.5 Functioning PB4(TXD1) and PB2(RXD1) as the UART.........................................................12-24
12.4.6 Functioning PB1(TXD1) and PB7(RXD1) as the UART.........................................................12-25
12.4.7 Functioning PB3(TXD1) and PB7(RXD1) as the UART.........................................................12-26
12.4.8 Functioning PB4(TXD1) and PB7(RXD1) as the UART.........................................................12-27

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 6
Chapter 13
13 I2C Bus Interface Master...........................................................................................................................13-1
13.1 Overview..............................................................................................................................................13-1
13.1.1 Features ......................................................................................................................................13-1
13.1.2 Configuration..............................................................................................................................13-1
13.1.3 List of Pins..................................................................................................................................13-1
13.2 OverviewDescription of Registers.......................................................................................................13-2
13.2.1 List of Registers..........................................................................................................................13-2
13.2.2 I2C Bus 0 Receive Register (I2C0RD).......................................................................................13-3
13.2.3 I2C Bus 0 Slave Address Register (I2C0SA).............................................................................13-4
13.2.4 I2C Bus 0 Transmit Data Register (I2C0TD).............................................................................13-5
13.2.5 I2C Bus 0 Control Register (I2C0CON) ....................................................................................13-6
13.2.6 I2C Bus 0 Mode Register (I2C0MOD) ......................................................................................13-7
13.2.7 I2C Bus 0 Status Register (I2C0STAT)......................................................................................13-8
13.3 Description of Operation......................................................................................................................13-9
13.3.1 Communication Operating Mode...............................................................................................13-9
13.3.1.1 Start Condition............................................................................................................................... 13-9
13.3.1.2 Repeated Start Condition............................................................................................................... 13-9
13.3.1.3 Slave Address Transmit Mode....................................................................................................... 13-9
13.3.1.4 Data Transmit Mode...................................................................................................................... 13-9
13.3.1.5 Data Receive Mode ....................................................................................................................... 13-9
13.3.1.6 Control Register Setting Wait State............................................................................................... 13-9
13.3.1.7 Stop Condition............................................................................................................................... 13-9
13.3.2 Communication Operation Timing...........................................................................................13-10
13.3.3 Operation Waveforms...............................................................................................................13-12
13.4 Specifying port registers ....................................................................................................................13-13
13.4.1 Functioning PB5(SCL) and PB6(SDA) as the I2C...................................................................13-13
Chapter 14
14 I2C Bus Interface Slave.............................................................................................................................14-1
14.1 Overview..............................................................................................................................................14-1
14.1.1 Features ......................................................................................................................................14-1
14.1.2 Configuration..............................................................................................................................14-1
14.1.3 List of Pins..................................................................................................................................14-2
14.2 Description of Registers.......................................................................................................................14-3
14.2.1 List of Registers..........................................................................................................................14-3
14.2.2 I2C Bus 1 Receive Register (I2C1RD).......................................................................................14-4
14.2.3 I2C Bus 1 Slave Address Register (I2C1SA).............................................................................14-5
14.2.4 I2C Bus 1 Transmit Data Register (I2C1TD).............................................................................14-6
14.2.5 I2C Bus 1 Control Register (I2C1CON) ....................................................................................14-7
14.2.6 I2C Bus 1 Mode Register (I2C1MOD) ......................................................................................14-8
14.2.7 I2C Bus 1 Status Register (I2C1STAT)......................................................................................14-9
14.3 Description of Operation....................................................................................................................14-11
14.3.1 Communication Operating Mode.............................................................................................14-11
14.3.1.1 Start Condition..............................................................................................................................14-11
14.3.1.2 Slave Address Receive Mode .......................................................................................................14-11
14.3.1.3 Communication Wait State ...........................................................................................................14-11
14.3.1.4 Data Transmit Mode.....................................................................................................................14-11
14.3.1.5 Data Receive Mode ......................................................................................................................14-11
14.3.1.6 Stop Condition..............................................................................................................................14-11
14.3.2 Communication Operation Timing...........................................................................................14-12
14.3.3 Operation Waveforms...............................................................................................................14-13
14.4 Specifying port registers ....................................................................................................................14-14
14.4.1 Functioning PB5(SCL) and PB6(SDA) as the I2C...................................................................14-14
Chapter 15
15 Port A.........................................................................................................................................................15-1
15.1 Overview..............................................................................................................................................15-1
15.1.1 Features ......................................................................................................................................15-1

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 7
15.1.2 Configuration..............................................................................................................................15-2
15.1.3 List of Pins..................................................................................................................................15-3
15.2 Description of Registers.......................................................................................................................15-4
15.2.1 List of Registers..........................................................................................................................15-4
15.2.2 Port A Data Register (PAD)........................................................................................................15-5
15.2.3 Port A Direction Register (PADIR) ............................................................................................15-6
15.2.4 Port A Control Registers 0, 1 (PACON0, PACON1)..................................................................15-7
15.2.5 Port A Mode Registers 0 (PAMOD0, PAMOD1))......................................................................15-8
15.3 Description of Operation......................................................................................................................15-9
15.3.1 Input/Output Port Functions.......................................................................................................15-9
15.3.2 Primary Function except for Input/Output Port..........................................................................15-9
15.3.3 Secondary tertiary and fourthly functions ..................................................................................15-9
Chapter 16
16 Port B.........................................................................................................................................................16-1
16.1 Overview..............................................................................................................................................16-1
16.1.1 Features ......................................................................................................................................16-1
16.1.2 Configuration..............................................................................................................................16-2
16.1.3 List of Pins..................................................................................................................................16-3
16.2 Description of Registers.......................................................................................................................16-4
16.2.1 List of Registers..........................................................................................................................16-4
16.2.2 Port B Data Register (PBD) .......................................................................................................16-5
16.2.3 Port B Direction Register (PBDIR)............................................................................................16-6
16.2.4 Port B Control Registers 0, 1 (PBCON0, PBCON1)..................................................................16-7
16.2.5 Port B Mode Registers 0 (PBMOD0, PBMOD1).......................................................................16-9
16.3 Description of Operation....................................................................................................................16-11
16.3.1 Input/Output Port Functions.....................................................................................................16-11
16.3.2 Primary Function except for Input/Output Port........................................................................16-11
16.3.3 Secondary tertiary and fourthly functions ................................................................................16-11
Chapter 17
17 Port C.........................................................................................................................................................17-1
17.1 Overview..............................................................................................................................................17-1
17.1.1 Features ......................................................................................................................................17-1
17.1.2 Configuration..............................................................................................................................17-2
17.1.3 List of Pins..................................................................................................................................17-3
17.2 Description of Registers.......................................................................................................................17-4
17.2.1 List of Registers..........................................................................................................................17-4
17.2.2 Port C Data Register (PCD) .......................................................................................................17-5
17.2.3 Port C Direction Register (PCDIR)............................................................................................17-6
17.2.4 Port C Control Registers 0, 1 (PCCON0, PCCON1)..................................................................17-7
17.2.5 Port C Mode Registers 0 (PCMOD0, PCMOD1).......................................................................17-9
17.3 Description of Operation....................................................................................................................17-11
17.3.1 Input/Output Port Functions.....................................................................................................17-11
17.3.2 Primary Function except for Input/Output Port........................................................................17-11
17.3.3 Secondary tertiary and fourthly functions ................................................................................17-11
Chapter 18
18 Port D.........................................................................................................................................................18-1
18.1 Overview..............................................................................................................................................18-1
18.1.1 Features ......................................................................................................................................18-1
18.1.2 Configuration..............................................................................................................................18-1
18.1.3 List of Pins..................................................................................................................................18-2
18.2 Description of Registers.......................................................................................................................18-3
18.2.1 List of Registers..........................................................................................................................18-3
18.2.2 Port D Data Register (PDD).......................................................................................................18-4
18.2.3 Port D Direction Register (PDDIR)............................................................................................18-5
18.2.4 Port D Control Registers 0, 1 (PDCON0, PDCON1).................................................................18-6

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 8
18.3 Description of Operation......................................................................................................................18-8
18.3.1 Input/Output Port Functions.......................................................................................................18-8
Chapter 19
19 Port AB Interrupts......................................................................................................................................19-1
19.1 Overview..............................................................................................................................................19-1
19.1.1 Features ......................................................................................................................................19-1
19.1.2 Configuration..............................................................................................................................19-1
19.2 Description of Registers.......................................................................................................................19-1
19.2.1 List of Registers..........................................................................................................................19-1
19.2.2 Port AB Interrupt Control Registers 0, 1 (PABICON0, PABICON1) ........................................19-2
19.2.3 Port AB Interrupt Control Register 2 (PABICON2)...................................................................19-3
19.3 Description of Operation......................................................................................................................19-4
19.3.1 Interrupt Request........................................................................................................................19-4
Chapter 20
20 Successive Approximation Type A/D Converter.......................................................................................20-1
20.1 Overview..............................................................................................................................................20-1
20.1.1 Features ......................................................................................................................................20-1
20.1.2 Configuration..............................................................................................................................20-1
20.1.3 List of Pins..................................................................................................................................20-2
20.2 Description of Registers.......................................................................................................................20-3
20.2.1 List of Registers..........................................................................................................................20-3
20.2.2 SA-ADC Result Register 0L (SADR0L)....................................................................................20-4
20.2.3 SA-ADC Result Register 0H (SADR0H)...................................................................................20-4
20.2.4 SA-ADC Result Register 1L (SADR1L)....................................................................................20-5
20.2.5 SA-ADC Result Register 1H (SADR1H)...................................................................................20-5
20.2.6 SA-ADC Result Register 2L (SADR2L)....................................................................................20-6
20.2.7 SA-ADC Result Register 2H (SADR2H)...................................................................................20-6
20.2.8 SA-ADC Result Register 3L (SADR3L)....................................................................................20-7
20.2.9 SA-ADC Result Register 3H (SADR3H)...................................................................................20-7
20.2.10 SA-ADC Result Register 4L (SADR4L)....................................................................................20-8
20.2.11 SA-ADC Result Register 4H (SADR4H)...................................................................................20-8
20.2.12 SA-ADC Result Register 5L (SADR5L)....................................................................................20-9
20.2.13 SA-ADC Result Register 5H (SADR5H)...................................................................................20-9
20.2.14 SA-ADC Result Register 6L (SADR6L)..................................................................................20-10
20.2.15 SA-ADC Result Register 6H (SADR6H).................................................................................20-10
20.2.16 SA-ADC Result Register 7L (SADR7L)..................................................................................20-11
20.2.17 SA-ADC Result Register 7H (SADR7H).................................................................................20-11
20.2.18 SA-ADC Control Register 0 (SADCON0)...............................................................................20-12
20.2.19 SA-ADC Control Register 1 (SADCON1)...............................................................................20-13
20.2.20 SA-ADC Mode Register 0 (SADMOD0).................................................................................20-14
20.3 Description of Operation....................................................................................................................20-16
20.3.1 Settings of A/D Conversion Channels......................................................................................20-16
20.3.2 Operation of the Successive Approximation A/D Converter....................................................20-17
Chapter 21
21 Voltage Level Supervisor...........................................................................................................................21-1
21.1 Overview..............................................................................................................................................21-1
21.1.1 Features ......................................................................................................................................21-1
21.1.2 Configuration..............................................................................................................................21-1
21.2 Description of Registers.......................................................................................................................21-2
21.2.1 List of Registers..........................................................................................................................21-2
21.2.2 Voltage Level Supervisor Control Register 0 (VLSCON0)........................................................21-3
21.2.3 Voltage Level Supervisor Control Register 1 (VLSCON1)........................................................21-4
21.2.4 Voltage Level Supervisor Mode Register (VLSMOD)...............................................................21-5
21.3 Description of Operation......................................................................................................................21-6
21.3.1 Operation of Voltage Level Supervisor ......................................................................................21-6

ML610Q111/ML610Q112 User’s Manual
Contents
FEUL610Q111 Contents - 9
Chapter 22
22 Analog Comparator ...................................................................................................................................22-1
22.1 Overview..............................................................................................................................................22-1
22.1.1 Features ......................................................................................................................................22-1
22.1.2 Configuration..............................................................................................................................22-1
22.1.3 List of Pins..................................................................................................................................22-2
22.2 Description of Registers.......................................................................................................................22-2
22.2.1 List of Registers..........................................................................................................................22-2
22.2.2 Comparator 0 control register 0 (CMP0CON0) .........................................................................22-3
22.2.3 Comparator 0 control register 1 (CMP0CON1).........................................................................22-4
22.2.4 Comparator 0 control register 2 (CMP0CON2).........................................................................22-5
22.2.5 Comparator 1 control register 0 (CMP1CON0) .........................................................................22-6
22.2.6 Comparator 1 control register 1 (CMP1CON1).........................................................................22-7
22.2.7 Comparator 1 control register 2 (CMP1CON2).........................................................................22-8
22.3 Description of Operation......................................................................................................................22-9
22.3.1 Comparator Functions................................................................................................................22-9
22.3.2 Interrupt Request......................................................................................................................22-10
Chapter 23
23 Data Flash Memory...................................................................................................................................23-1
23.1 Overview..............................................................................................................................................23-1
23.1.1 Features ......................................................................................................................................23-1
23.2 Description of Registers.......................................................................................................................23-2
23.2.1 List of Registers..........................................................................................................................23-2
23.2.2 Flash Address Register (FLASHAL,H)......................................................................................23-3
23.2.3 Flash Data Register (FLASHDL,H)...........................................................................................23-4
23.2.4 Flash Control Register (FLASHCON).......................................................................................23-5
23.2.5 Flash Accepter (FLASHACP)....................................................................................................23-6
23.2.6 Flash Segment Register (FLASHSEG) ......................................................................................23-7
23.2.7 Flash Self Register (FLASHSLF)...............................................................................................23-7
23.2.8 Flash Protection Register (FLASHPRT) ....................................................................................23-8
23.2.9 Flash EraseAbort Source Select Register (FLASHEAS).........................................................23-10
23.2.10 Flash Erase Status Register (FLASHEST)...............................................................................23-11
23.3 Description of Operation....................................................................................................................23-12
23.3.1 Sector Erase Function...............................................................................................................23-13
23.3.2 Block Erase Function ...............................................................................................................23-15
23.3.3 1-Word Write Function.............................................................................................................23-17
23.3.4 Notes in Use .............................................................................................................................23-19
Chapter 24
24 On-Chip Debug Function ..........................................................................................................................24-1
24.1 Overview..............................................................................................................................................24-1
24.2 Method of Connecting to On-Chip Debug Emulator...........................................................................24-1
Appendix
Appendix A Registers.......................................................................................................................................A-1
Appendix B Package ........................................................................................................................................B-1
Appendix C Electrical ......................................................................................................................................C-1
Appendix D Application Circuit Example........................................................................................................D-1
Appendix E Check List..................................................................................................................................... E-1
Revision History
Revision History............................................................................................................................................... R-1

Chapter 1
Overview

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-1
1 Overview
1.1 Features
This LSI is a high-performance 8-bit CMOS microcontroller into which rich peripheral circuits, such as timers, PWM,
UART, I2C bus interface (master/slave), synchronous serial port, voltage level supervisor (VLS) function, and 10-bit
successive approximation type A/D converter, are incorporated around 8-bit CPU nX-U8/100.
The CPU nX-U8/100 is capable of efficient instruction execution in 1-intruction 1-clock mode by pipe line architecture
parallel processing. It has a data-flash memory that can be written by software.
The on-chip debug function that is installed enables program debugging and programming.
•CPU
−8-bit RISC CPU (CPU name: nX-U8/100)
−Instruction system : 16-bit instructions
−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
−On-Chip debug function
−Minimum instruction execution time
30.5µs (@32.768kHz system clock)
0.122µs (@8.192MHz system clock)
•Internal memory
−ML610Q111 :
Flash memory (Program memory) : 24Kbyte (12K×16 bits) * including unusable 32 byte test data area.
Data flash memory : 4Kbyte (2 K ×16 bits)
RAM : 2Kbyte (2K×8 bits)
−ML610Q112 :
Flash memory (Program memroy) : 32Kbyte (16K×16 bits) * including unusable 32 byte test data area.
Data flash memory : 4Kbyte (2 K ×16 bits)
RAM : 4Kbyte (4K×8 bits)
•Interrupt controller
−1 non-maskable interrupt source (Internal source: 1)
−30 maskable interrupt sources (Internal sources: 23, External sources: 7)
•Time base counter (TBC)
−Low-speed time base counter ×1 channel
−High-speed time base counter ×1 channel
(This time base counter is divided by 1-16, then it can be used as a clock of the Timer and PWM.)
•Watchdog timer (WDT)
−Non-maskable interrupt and reset
(Non-maskable interrupt is generated by the first overflow, and reset is generated by the second overflow)
−Free running
−Overflow period: 7 types selectable by software (23.4ms, 31.25ms, 62.5ms, 125ms, 500ms, 2s, and 8s)

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-2
•Timer
−8 bits ×6 channels (16-bit configuration available)
−Supports continuous mode/one shot mode
−Timer start/stop function by software or external trigger input
(Timer function with external trigger input supports for only 2ch. Selectable external pins/analog comparator
output as an exeternal trigger.)
−The effective minimum pulse width of the external trigger input: Timer clock 3φ(about 183 ns @ 16.384 MHz)
−Allows measurement of pulse width etc. using an external trigger input.
•PWM
−Resolution 16 bits ×4 channels
−Allows an output of the PWM signal in a cycle of about 122ns (@PLLCLK = 16.384MHz) to 2s (@LSCLK =
32.768kHz)
−Supports continuous mode/one shot mode
−PWM start/stop function by software or external trigger input
(Selectable external pins, analog comparator output or timer interrupt as external trigger.)
−The effective minimum pulse width of the external trigger input: Timer clock 3φ(about 183 ns @ 16.384MHz)
•UART
−TXD/RXD ×2 channels
−Half-duplex
−Bit length, parity/no parity, odd parity/even parity, 1 stop bit/2 stop bits
−Positive logic/negative logic selectable
−Built-in baud rate generator
•I2C Bus Interface
−Master function: Standard mode (100 kbits/s @ 8 MHz), First mode (400 kbits/s @ 8 MHz)
−Slave function: Standard mode (100 kbits/s)
•Synchronous Serial Port (SSIO)
−Master/slave selectable
−LSB first/MSB first selectable
−8-bit length/16-bit length selectable
−Support SPI mode 0/3
•Successive approximation type A/D converter (SA-ADC)
−Resolution 10-bit
−ML610Q111: Analog Input : 6channels
−ML610Q112: Analog Input : 8channels
−Conversion time : Approx 12.45μs/ch@8.192MHz
−Single conversion/continuous conversion selectable
•Analog Comparator
−2ch
ch0: Allows comparison of the voltage level of the two external pins or comparison of one external pin and
internal reference voltage level.
ch1: Allows comparison of one external pin and internal reference voltage level.
−Common mode input voltage range : VDD = 0.1V to VDD - 1.5V
−Internal reference voltage : 0.1-0.8V (Selectable in 50mV increments)
−Hysteresis (Comparator0 only): 20mV(Typ.)
−Allows selection of with/without interrupt sampling and interrupt edge.
•General-purpose ports (GPIO)
−ML610Q111 : Input/output port ×15 channels
−ML610Q112 : Input/output port ×25 channels

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-3
•Reset
−Reset by the RESET_N pin
−Reset by power-on
−Reset by the watchdog timer (WDT) 2nd overflow
−Reset by voltage level supervisor (VLS) function: Selectable by software
•Voltage level supervisor (VLS)
−2ch
−Judgment accuracy: ±3.0% (Typ.)
−The threshold voltages of VLS0 : (VDD fall) : 2.85V (Typ. ) (VDD rise) : 2.92V (Typ. )
−The threshold voltages of VLS1 (VDD fall) : 4 types selectable 3.3V/ 3.6V/ 3.9V/ 4.2V (Typ.)
−The VLS0 can be used as the low voltage level detector reset.
•Clock
−Low-speed clock:
Built-in RC oscillation (32.768 kHz)
−High-speed clock:
Built-in PLL oscillation (16.384 MHz), external clock(max. 8.192MHz)
* The clock of the CPU is 8.192MHz(max.)
−Selection of high-speed clock mode by software:
Built-in PLL oscillation, external clock
•Power management
−HALT mode : Instruction execution by CPU is suspended (peripheral circuits are in operating states).
−STOP mode : Stop of low-speed oscillation and high-speed oscillation (Operations of CPU and peripheral circuits
are stopped.)
−Clock gear : The frequency of high-speed system clock can be changed by software (1/1, 1/2, 1/4 or 1/8 of the
oscillation clock)
−Block Control Function : Power down (reset registers and stop clock supply) the circuits of unused peripherals.
•Shipment
−ML610Q111 :
20-pin TSSOP
ML610Q111-xxxTD (Blank product: ML610Q111-NNNTD)
−ML610Q112 :
32-pin LQFP
ML610Q112-xxxTC (Blank product: ML610Q112-NNNTC)
•Guaranteed operating range
−Operating ambient temperature: −40°C to 105°C (When the flash memory writing/erasing : −20°C to 85°C)
−Operating voltage: VDD = 2.7V to 5.5V

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-4
1.2 Configuration of Functional Blocks
1.2.1 Block Diagram
Figure 1-1 show the block diagram of the LSI.
"*" indicates secondary function, tertiary function or quaternary function of each port.
" ( )*2" indicates the specification of ML610Q112.
Figure 1-1 ML610Q111/ML610Q112 Block Diagram
Program
Memory
(Flash)
24Kbyte
(32Kbyte)*2
RXD0
TXD0*
CPU (nX-U8/100)
Timing
Controller
EA
SP
On-Chip
ICE
Instruction
Decoder
BUS
Controller
Instruction
Register
INT
PA0 to PA2
PB0 to PB7
Data-bus
Power
RESET &
TEST
ALU
EPSW1-3
PSW
ELR1-3
LR
ECSR1-3
DSR/CSR
PC
GREG
0 - 15
V
DD
VSS
AIN0
to
AIN5(AIN7)*2
SDA*
SCK*
SOUT*
SIN*
(PC4 to PC7)*2
CMP0P
CMP0M
CMP1OUT*
CMP1P
TEST
RESET_N
INT
1
RXD1
TXD1*
TEST
RESET_N
INT
1
CMP0OUT*
INT
2
10bit-ADC
Analog
Comparator
x 2
Clock
Generator
VLS
1
INT
4
INT
6
INT
2
INT
2
RAM
2Kbyte
(4Kbyte)*2
Interrupt
Controller
TBC
WDT
8bit Timer
x 6
Data
Memory
(Flash)
4Kbyte
SCL*
INT
1
PWMC*
PWMD*
PWME*
PWMF0*
PWMF1*
PWMF2*
INT
4
INT
7
UART
PWM
GPIO
I2C
Master/Slave
SSIO
PC0 to PC3
(PD0 to PD5)*2

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-5
1.3 Pins
1.3.1 Pin Layout
Figure 1-2 show the TSSOP20 pin layout of the ML610Q111.
* PIN No.4-8, 12-15, 18, 19 can be used as external trigger of the Timer E-F and PWMC-F.
Figure 1-2 Pin Layout of ML610Q111 TSSOP20 Package
Figure 1-3 show the LQFP32 pin layout of the ML610Q112.
* PIN No.3, 5-8, 16-19, 24, 25 can be used as external trigger of the Timer E- F and PWMC-F.
Figure 1-3 Pin Layout of ML610Q112 LQFP32 Package
26
PA0 / EXI0 /AIN0 / PWMC
/ OUTCLK / TM9OUT
27 28 29
30
31 3225
RESET_N
PC6 /AIN6
PC1 / PWMF1
PC5 / SDA
PC4 / SCL
PD0
PC0 / PWMF0 / TM9OUT
PD5
PWMF2 / PC2
PD4
PD3
TMFOUT / PC3
PD2
15
14 13
12
11 10
9
16
TESTF
CMP1P /AIN1 / EXI1 / PA1
TMFOUT / LSCLK /
PWMD /
PB3 / EXI7 / SIN / TXD1
PB2 / EXI6 / RXD1 / PWME
PB1 / EXI5 / AIN3 / PWMD / TXD0 / TXD1
N.C.
PB0 / EXI4 /AIN2 / RXD0 / PWMC / OUTCLK / CMP1OUT
PD1
TEST
1
2
3
4
5
6
7
8
PA2 / EXI2 / PWME / CLKIN / CMP0OUT
PWMF1 / SDA/ CLKIN /AIN4 / PB6
N.C.
VSS
VDD
AIN7 / PC7
24
23
22
21
20
19
18
17
TXD1 / TXD0 / SOUT / CMP0P / PB4
PWMF2 / SCL / SCK / RXD0 / CMP0M / PB5
PWMC / PWMF0 / LSCLK / RXD1 / AIN5 / PB7
CMP0OUT / CLKIN / PWME / EXI2 / PA2
1
2
3
4
5
6
7
8
9
10
RESET_N
TEST
TXD1 / TXD0 / PWMD /AIN3 / EXI5 / PB1
PWME / RXD1 / EXI6 / PB2
TXD1 / SIN / EXI7 / PB3
TESTF
TMFOUT / PC3
CMP1OUT / OUTCLK / PWMC / RXD0/ AIN2 / EXI4 / PB0
TM9OUT / PWMF0 / PC0
20
19
18
17
16
15
14
13
12
11
PC1 / PWMF1
PA0 / EXI0 /AIN0 / PWMC / OUTCLK / TM9OUT
PB7 /AIN5 / RXD1 / LSCLK / PWMF0 / PWMC
V
DD
V
SS
PB6 /AIN4 / CLKIN / SDA/ PWMF1
PB5 / CMP0M / RXD0 / SCK / SCL/ PWMF2
PB4 / CMP0P / SOUT / TXD0 / TXD1
PA1 / EXI1 /AIN1 / CMP1P / PWMD / LSCLK / TMFOUT
PC2 / PWMF2

ML610Q111/ML610Q112 User’s Manual
Chapter 1 Overview
FEUL610Q111 1-6
1.3.2 List of Pins
Table 1-1 shows list of pins.
In the I/O column, “—” denotes a power supply pin, “I” an input pin, “O” an output pin, and “I/O” an input/output pin.
Table 1-1 List of pins
PIN No.
Primary function
Secondary function
Tertiary function
quaternary function
32
LQFP 20
TSSOP
Pin
name
I/O Description
Pin
name
I/O
Descrip
tion
Pin
name
I/O
Descrip
tion
Pin
name
I/O
Descrip
tion
21 16 VSS
Negative power
supply pin
22 17 VDD
Positive power
supply pin
9 9 TESTF
Test for Flash
memory
32
2
RESE T_N
I
Reset input pin
1 3 TEST I/O
Input/output pin for
testing
25 19 PA0/
EXI0/
AIN0 I/O Input/output port /
External interrupt /
ADC input
PWM
C O PWMC
output OUTCL
K O
High-
speed
clock
output
TM9O
UT O timer 9
output
16 12
PA1/
EXI1/
AIN1/
CMP1P
I/O
Input/output port /
External interrupt /
ADC input /
Analog comparator
1 non-inverted input
PWM
D O PWMD
output LSCLK O
Low-
speed
clock
output
TMFO
UT O timer F
output
8 8 PA2/
EXI2 I/O Input/output port /
External interrupt /
External trigger
PWM
E O PWME
output CLKIN I clock
input CMP0
OUT O CMP0
output
3 4
PB0/
EXI4/
AIN2/
RXD0
I/O
Input/output port /
External interrupt /
ADC input /
UART0 data input /
External trigger
PWM
C O PWMC
output OUTCL
K O
High-
speed
clock
output
CMP1
OUT O CMP1
output
5 5 PB1/
EXI5/
AIN3 I/O
Input/output port /
External interrupt /
ADC input /
External trigger
PWM
D O PWMD
output TXD0 O UART0
data
output TXD1 O UART1
data
output
6 6 PB2/
EXI6/
RXD1 I/O
Input/output port /
External interrupt /
UART1 data input /
External trigger
PWM
E O PWME
output
7 7 PB3/
EXI7 I/O
Input/output port /
External interrupt /
External trigger
SIN I
SSIO
data
input
TXD1 O
UART1
data
output
17 13 PB4/
CMP0P I/O
Input/output port /
Analog comparator
0 non-inverted input
/
External trigger
SOUT O SSIO
data
output TXD0 O UART0
data
output TXD1 O UART1
data
output
18 14 PB5/
RXD0/
CMP0M I/O
Input/output port /
UART0 data input /
Analog comparator
0 inverted input /
External trigger
SCK I/O
SSIO
clock
input/ou
tput
SCL I/O I2C
clock PWM
F2 O PWMF
2
output
19 15 PB6/
AIN4 I/O
Input/output port /
ADC input /
External trigger
CLKI
N I clock
input SDA I/O I2C
data PWM
F1 O
PWMF
1
output
24 18 PB7/
AIN5/
RXD1 I/O
Input/output port /
Analog comparator
0 inverted input /
UART data input /
External trigger
LSCL
K O
Low-
speed
clock
output
PWMF
0 O PWMF
0 output
PWM
C O PWMC
output
This manual suits for next models
1
Table of contents