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 an y other information contained herein are pro vi ded 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
informatio n contai ned in t his doc ument; the refore L APIS Se micond uctor shal l have no respo nsibilit y whatsoe ver
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/entertainme nt sets) as well as the applications indicated in this document.
6) The Prod ucts 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 Prod ucts in a ppl icat ions r equi rin g 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 Expo rt Administrati on 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-2018 LAPIS Semiconductor Co., Ltd.
2-4-8 Shinyokohama, Kouhok u-ku,
Yokohama 222-8575, Japan
http://www.lapis-semi.com/en/
FEUL610Q174 i
ML610Q174 User’s manual
Preface
This manual describes the operation of the hardware of the 8-bit microcontroller
ML610Q174.
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 Progr amming 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 ML610QXXX
FWuEASE Flash Writer Host Program User’s Manual
Description on the Flash Writer host program.
FEUL610Q174 ii
ML610Q174 User’s manual
MSB
LSB
R/W
R/W
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.
Notation
Classification Notation Description
♦ Numeric val ue 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 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 hi gh 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” indicat es that data can be written.
“R/W” indicates that data can be read or written.
1.1 Features ....................................................................................................................................................... 1-1
1.2 Configuration of Functional Blocks ............................................................................................................ 1-4
1.2.1 Block Diagram of ML610Q174 ............................................................................................................ 1-4
1.3.1.1 Pin Layout of ML610Q174 QFP Package .......................................................................................... 1-5
1.3.2 List of Pins ............................................................................................................................................ 1-6
1.3.4 Termination of Unused Pins ................................................................................................................ 1-13
Chapter 2
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
Chapter 3
3. Reset Function ................................................................................................................................................ 3-1
3.1.1 Features ................................................................................................................................................. 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.1 Features ................................................................................................................................................. 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 2 (BLKCON2) ................................................................................................. 4-6
4.2.6 Block Control Register 4 (BLKCON4) ................................................................................................. 4-8
4.2.7 Block Control Register 6 (BLKCON6) ................................................................................................. 4-9
4.2.8 Block Control Register 7 (BLKCON7) ............................................................................................... 4-10
4.3 Description of Operation........................................................................................................................... 4-11
4.3.1 Program Run Mode ............................................................................................................................. 4-11
4.3.2 HALT Mode ........................................................................................................................................ 4-11
4.3.3.1 STOP Mode When CPU Operates with Low-Speed Clock ........................................................... 4-12
4.3.3.2 STOP Mode When CPU Operates with High-Speed Clock .......................................................... 4-13
4.3.3.3 Note on Return Operation from STOP/HALT Mode .................................................................... 4-14
4.3.4 Block control function ......................................................................................................................... 4-15
5.1.1 Features ............................................................................................................................................... 5-1
5.2 Description of Registers .............................................................................................................................. 5-2
5.2.1 List of Registers .................................................................................................................................. 5-2
5.3 Description of Operation........................................................................................................................... 5-20
6.1.1 Features ................................................................................................................................................. 6-1
6.1.3 List of Pins ............................................................................................................................................ 6-2
6.1.4 Clock Configurati on .............................................................................................................................. 6-2
6.2 Description of Registers .............................................................................................................................. 6-3
6.2.1 List of Registers .................................................................................................................................... 6-3
6.2.2 Frequency Control Register 0(FCON0) ................................................................................................ 6-4
6.2.3 Frequency Control Register 1 (FCON1) ............................................................................................... 6-6
6.2.4 Frequency Status Register (FSTAT) ..................................................................................................... 6-7
6.3 Description of Operation............................................................................................................................. 6-8
6.3.2.3 High-Speed E xt ernal Clock Input Mode ........................................................................................ 6-11
6.3.2.4 O peration of High-Speed Clock Generation Circuit ...................................................................... 6-12
FEUL610Q174 R-2
ML610Q174 User’s Manual
Table of Contents
6.3.3 Switching of System Clock ................................................................................................................. 6-14
6.4 Register setup of the port .......................................................................................................................... 6-15
6.4.1 When the P21 pin (OUTCLK:output) operates as the high-speed clock output function .................... 6-15
6.4.2 When the P20 pin (LSCLK:output) operates a s the low-speed clock output function ........................ 6-16
6.4.3 When the P36 pin (LSCLK:output) operates a s the low-speed clock output function ........................ 6-17
Chapter 7
7. Time Base Counter ......................................................................................................................................... 7-1
7.1.1 Features ................................................................................................................................................. 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 (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
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
8.1.1 Features ................................................................................................................................................. 8-1
8.2 Description of Registers .............................................................................................................................. 8-3
8.2.1 List of Registers .................................................................................................................................... 8-3
8.2.2 Timer 0 Data Register (TM0D) ............................................................................................................. 8-4
8.2.3 Timer 1 Data Register (TM1D) ............................................................................................................. 8-5
8.2.4 Timer 8 Data Register (TM8D) ............................................................................................................. 8-6
8.2.5 Timer 9 Data Register (TM9D) ............................................................................................................. 8-7
8.2.6 Timer A Data Register (TMAD) ........................................................................................................... 8-8
8.2.7 Timer B Data Register (TMBD) ........................................................................................................... 8-9
8.2.10 Timer 8 Counter Regi s ter (TM8C) ...................................................................................................... 8-12
8.2.11 Timer 9 Counter Regi s ter (TM9C) ...................................................................................................... 8-13
8.2.12 Timer A Counter Registe r (TMAC) .................................................................................................... 8-14
8.2.13 Timer B Counter Register (TMBC) .................................................................................................... 8-15
8.2.14 Timer 0 Control Register 0 (TM0CON0)............................................................................................ 8-16
8.2.15 Timer 1 Control Register 0 (TM1CON0)............................................................................................ 8-17
8.2.16 Timer 8 Control Register 0 (TM8CON0)............................................................................................ 8-18
8.2.17 Timer 9 Control Register 0 (TM9CON0)............................................................................................ 8-19
8.2.18 Timer A Control Register 0 (TMACON0) .......................................................................................... 8-20
8.2.19 Timer B Control Register 0 (TMBCON0) ................................
8.2.20 Timer 0 Control Register 1 (TM0CON1)............................................................................................ 8-22
8.2.21 Timer 1 Control Register 1 (TM1CON1)............................................................................................ 8-23
8.2.22 Timer 8 Control Register 1 (TM8CON1)............................................................................................ 8-24
8.2.23 Timer 9 Control Register 1 (TM9CON1)............................................................................................ 8-25
8.2.24 Timer A Control Register 1 (TMACON1) .......................................................................................... 8-26
8.2.25 Timer B Control Register 1 (TMBCON1) .......................................................................................... 8-27
8.3 Description of Operation........................................................................................................................... 8-28
9.1.1 Features ................................................................................................................................................. 9-1
9.2 Description of Registers .............................................................................................................................. 9-2
9.2.1 List of Registers .................................................................................................................................... 9-2
9.2.2 Watchdog Timer Control Register (WD TCON) ................................................................................... 9-3
9.3 Description of Operation............................................................................................................................. 9-5
9.3.1 Handling example when you do not want to use the watch dog timer ................................................... 9-7
10.1.1 Features ............................................................................................................................................... 10-1
10.1.3 List of Pins .......................................................................................................................................... 10-4
10.2 Description of Registers ............................................................................................................................ 10-4
10.2.1 List of Registers .................................................................................................................................. 10-4
10.2.2 PWM4 Period Registers (PW4PL, PW4PH) ...................................................................................... 10-5
10.2.17 PWM6 Counter Registers (PW6CH, P W6CL) ................................................................................. 10-24
10.2.18 PWM6 Control Register 0 (PW6CON0) ........................................................................................... 10-25
10.2.19 PWM6 Control Register 1 (PW6CON1) ........................................................................................... 10-27
10.2.19 PWM6 Control Register 2 (PW6CON2) ........................................................................................... 10-28
10.3 Description of Operation......................................................................................................................... 10-30
10.3.1 Repeat Mode with PWM4 and PWM5 Standalone Mode (P45MD=“0”, PnMD=“0”) .................... 10-32
10.3.2 One-shot Mode with PWM4 and PWM5 Standalone Mode (P45MD=“0”, PnMD=“1”) ................. 10-34
10.3.3 Repeat Mode with PWM4 and PWM5 Cooperation Mode (Dead Time Setting Is Not Used)
10.4 Specifying Port Registers ........................................................................................................................ 10-60
10.4.1 Functioni ng P34 Pin (PW M4) as PWM Outp ut ................................................................................ 10-60
10.4.2 Functioni ng P43 Pin (PW M4) as PWM Outp ut ................................................................................ 10-61
10.4.3 Functioni ng P35 Pin (PW M5) as PWM Outp ut ................................................................................ 10-62
10.4.4 Functioni ng P47 Pin (PW M5) as PWM Outp ut ................................................................................ 10-63
10.4.5 Functioni ng P53 Pin (PWM6) as PWM Output ................................................................................ 10-64
Chapter 11
11. Synchronous Serial Port ................................................................................................................................ 11-1
11.1.1 Features ............................................................................................................................................... 11-1
11.1.3 List of Pins .......................................................................................................................................... 11-3
11.2 Description of Registers ............................................................................................................................ 11-4
11.2.1 List of Registers .................................................................................................................................. 11-4
11.2.2 Serial Port Transmit/Receive Buffers (SIO0BUFL, SIO0BUFH) ....................................................... 11-5
11.2.3 Serial Port Transmit/Receive Buffers (SIO1BUFL, SIO1BUFH) ....................................................... 11-6
11.2.4 Serial Port Control Register (SIO 0CON) ............................................................................................ 11-7
11.2.5 Serial Port Contro l Register (SIO1CON) ............................................................................................ 11-8
11.2.6 Serial Port Mode Register 0 (SIO0MOD0) ......................................................................................... 11-9
11.2.7 Serial Port Mode Register 0 (SIO1MOD0) ....................................................................................... 11-10
11.2.8 Serial Port Mode Register 1 (SIO0MOD1) ....................................................................................... 11-11
11.2.9 Serial Port Mode Register 1 (SIO1MOD1) ....................................................................................... 11-12
11.3 Description of Operation......................................................................................................................... 11-13
11.4 Register setup of the port ........................................................................................................................ 11-16
11.4.1 When operating the SSIO function in master mode using P42 pin (SOUT0:output), P41 pin
(SCK0:input/output), and P40 pin (SIN0:input) ............................................................................... 11-16
11.4.2 When operating the SSIO function in slave mode using P42 pin (SOUT0:output), P41 pin
(SCK0:input/output), and P40 pin (SIN0:input) ............................................................................... 11-17
11.4.3 When operating the SSIO function in master mode using P52 pin (SOUT1 :output), P51 pin
(SCK1:input/output), and P50 pin (SIN1:input) ............................................................................... 11-18
11.4.4 When operating the SSIO1 function in slave mode using P52 pin (SOUT1 :output), P51 pin
(SCK1:input/output), and P50 pin (SIN1:input). .............................................................................. 11-19
12.1.1 Features ............................................................................................................................................... 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.12 UART0 Status Regist er (UA0STAT) ................................................................................................ 12-13
12.2.13 UART1 Status Register (UA1STAT) ................................................................................................ 12-15
12.3 Description of Operation......................................................................................................................... 12-17
12.3.1 Transfer Data Format ........................................................................................................................ 12-17
12.3.3 Transmit Data Direction .................................................................................................................... 12-19
12.3.5.1 De te c tion of Start bit .................................................................................................................... 12-24
12.3.5.3 Receptio n Margin ........................................................................................................................ 12-25
12.4 Register setup of the port ........................................................................................................................ 12-26
12.4.1 When operating the UART function using P43 pin (TXD0:output) and P42 pin (RDX0:input) ........ 12-26
12.4.2 When operating the UART function using P43 pin (TXD0:output) and P02 pin (RDX0:input) ........ 12-27
12.4.3 When o perating the UART functi on using P53 pin (TXD1:output) and P52 pin (RDX1:input) ........ 12-29
12.4.4 When o perating the UART functi on using P53 pin (TXD1:output) and P03 pin (RDX1:input) ........ 12-30
12.4.5 When operating the UART function using P53 pin (T XD0:output) and P42 pin (RDX0:input) ........ 12-32
12.4.6 When operating the UART function using P43 pin (TXD1:output) and P52 pin (RDX2:input) ........ 12-34
12.4.7 When opera ting the UART function using PF3 pin (TXD0:output) and PF2 pin (RXD0:input) ........ 12-36
12.4.7 When operating the UART function us i ng PF7 pin (TXD1:output) and PF6 pin (RXD1:input) ........ 12-37
Chapter 13
13. I2C Bus Interface ........................................................................................................................................... 13-1
13.1.1 Features ............................................................................................................................................... 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 I
13.2.3 I
13.2.4 I
13.2.5 I
13.2.6 I
13.2.7 I
2
C Bus 0 Receive Register (I2C0RD) ................................................................................................ 13-3
2
C Bus 0 Slave Address Register (I2C0SA) ....................................................................................... 13-4
2
C Bus 0 Transmit Data Re gi st er (I2C0TD) ...................................................................................... 13-5
2
C Bus 0 Control Register (I2C0CON) .............................................................................................. 13-6
2
C Bus 0 Mode Register (I2C0MOD) ................................................................................................ 13-7
2
C Bus 0 Status Register (I2C0STAT) ............................................................................................... 13-8
13.3 Description of Operation........................................................................................................................... 13-9
13.3.1 Communication O perating Mode ........................................................................................................ 13-9
13.4 Description of Operation......................................................................................................................... 13-13
13.4.1 Functioning P41(SCL) and P40(SDA) as the I2C ............................................................................. 13-13
Chapter 14
14. Port 0 ............................................................................................................................................................ 14-1
14.1.1 Features ............................................................................................................................................... 14-1
14.1.3 List of Pins .......................................................................................................................................... 14-2
FEUL610Q174 R-6
ML610Q174 User’s Manual
Table of Contents
14.2 Description of Registers ............................................................................................................................ 14-3
14.2.1 List of Registers .................................................................................................................................. 14-3
14.2.2 Port 0 Data Register (P0 D ) ................................................................................................................. 14-4
14.2.3 Port 0 Control Registers 0, 1 (P0CON0, P0CON1) ............................................................................ 14-5
14.2.5 External Interrupt Control Register 2 (EXICON2) ............................................................................. 14-7
14.3 Description of Operation........................................................................................................................... 14-8
14.3.2 Interrupt R equest ................................................................................................................................. 14-8
Chapter 15
15. Port 1 ............................................................................................................................................................ 15-1
15.1.1 Features ............................................................................................................................................... 15-1
15.1.3 List of Pins .......................................................................................................................................... 15-1
15.2 Description of Registers ............................................................................................................................ 15-2
15.2.1 List of Registers .................................................................................................................................. 15-2
15.2.2 Port 1 Data Register (P1 D ) ................................................................................................................. 15-3
15.2.3 Port 1 Control Registers 0,1 (P1CON0, P1CON1) ............................................................................. 15-4
15.3 Description of Operation........................................................................................................................... 15-5
15.3.1 Input Port Function ............................................................................................................................. 15-5
Chapter 16
16. Port 2 ............................................................................................................................................................ 16-1
16.1.1 Features ............................................................................................................................................... 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 2 Data Register (P2 D ) ................................................................................................................. 16-3
16.2.3 Port 2 control registers 0, 1 (P2CON0, P2CON1) .............................................................................. 16-4
16.2.4 Port 2 Mode Register (P2MOD) ......................................................................................................... 16-5
16.3 Description of Operation........................................................................................................................... 16-7
16.3.1 Output Port Function ........................................................................................................................... 16-7
16.3.2 Secondary Function ............................................................................................................................. 16-7
Chapter 17
17. Port 3 ............................................................................................................................................................ 17-1
17.1.1 Features ............................................................................................................................................... 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 Port 3 Data Register (P3D) ................................................................................................................. 17-4
17.2.3 Port 3 Direction Register (P3DIR) ...................................................................................................... 17-5
17.2.4 Port 3 control registers 0, 1 (P3CON0, P3CON1) .............................................................................. 17-6
17.3 Description of Operation......................................................................................................................... 17-10
17.3.1 Input/Output Port Functions .............................................................................................................. 17-10
17.3.2 Secondary Function ........................................................................................................................... 17-10
FEUL610Q174 R-7
ML610Q174 User’s Manual
Table of Contents
Chapter 18
18. Port 4 ............................................................................................................................................................ 18-1
18.1.1 Features ............................................................................................................................................... 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 4 Data Register (P4 D ) ................................................................................................................. 18-4
18.2.3 Port 4 Direction Register (P 4DIR) ...................................................................................................... 18-5
18.2.4 Port 4 Control Registers 0, 1 (P4CON0, P4CON1) ............................................................................ 18-6
18.3 Description of Operation......................................................................................................................... 18-11
18.3.1 Input/Output Port Functions .............................................................................................................. 18-11
18.3.2 Secondary and Tertiary Functions ..................................................................................................... 18-11
Chapter 19
19. Port 5 ............................................................................................................................................................ 19-1
19.1.1 Features ............................................................................................................................................... 19-1
19.1.3 List of Pins .......................................................................................................................................... 19-2
19.2 Description of Registers ............................................................................................................................ 19-3
19.2.1 List of Registers .................................................................................................................................. 19-3
19.2.2 Port 5 Data Register (P5D) ................................................................................................................. 19-4
19.2.3 Port 5 Direc tion Register (P5DIR) ...................................................................................................... 19-5
19.2.4 Port 5 Control Registers 0, 1 (P5CON0, P 5CON1) ............................................................................ 19-6
19.3 Description of Operation......................................................................................................................... 19-10
19.3.1 Input/Output Port Functions .............................................................................................................. 19-10
Chapter 20
20. Port 8 ............................................................................................................................................................ 20-1
20.1.1 Features ............................................................................................................................................... 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 Port 5 Data Register (P8D) ................................................................................................................. 20-4
20.2.3 Port 5 Direc tion Register (P8DIR) ...................................................................................................... 20-5
20.2.4 Port 5 Control Registers 0, 1 (P8CON0, P 8CON1) ............................................................................ 20-6
20.3 Description of Operation........................................................................................................................... 20-8
20.3.1 Input/Output Port Functions ................................................................................................................ 20-8
Chapter 21
21. Port 9 ............................................................................................................................................................ 21-1
21.1.1 Features ............................................................................................................................................... 21-1
21.1.3 List of Pins .......................................................................................................................................... 21-1
21.2 Description of Registers ............................................................................................................................ 21-2
21.2.1 List of Registers .................................................................................................................................. 21-2
21.2.2 Port 9 Data Register (P9D) ................................................................................................................. 21-3
FEUL610Q174 R-8
ML610Q174 User’s Manual
Table of Contents
21.2.4 Port 9 Control Registers 0, 1 (P9CON0, P9CON1) ............................................................................ 21-4
21.3 Description of Operation........................................................................................................................... 21-5
21.3.1 Output Port Functions ......................................................................................................................... 21-5
Chapter 22
22. Port C ............................................................................................................................................................ 22-1
22.1.1 Features ............................................................................................................................................... 22-1
22.1.3 List of Pins .......................................................................................................................................... 22-2
22.2 Description of Registers ............................................................................................................................ 22-3
22.2.1 List of Registers .................................................................................................................................. 22-3
22.2.2 Port C Data Register (PCD) ................................................................................................................ 22-4
22.2.3 Port C Direction Register (P CDI R) ..................................................................................................... 22-5
22.2.4 Port C control registers 0 , 1 (PCCON0, PCCON1) ............................................................................ 22-6
22.3 Description of Operation........................................................................................................................... 22-8
22.3.1 Input/Output Port Functions ................................................................................................................ 22-8
22.3.2 Secondary Function ............................................................................................................................. 22-8
Chapter 23
23. Port D ............................................................................................................................................................ 23-1
23.1.1 Features ............................................................................................................................................... 23-1
23.1.3 List of Pins .......................................................................................................................................... 23-2
23.2 Description of Registers ............................................................................................................................ 23-3
23.2.1 List of Registers .................................................................................................................................. 23-3
23.2.2 Port D Data Register (PDD) ................................................................................................................ 23-4
23.2.3 Port D Direction Register (PDDIR) .................................................................................................... 23-5
23.2.4 Port D control re gisters 0 , 1 (PDCON0, PDCON1) ............................................................................ 23-6
23.3 Description of Operation........................................................................................................................... 23-8
23.3.1 Input/Output Port Functions ................................................................................................................ 23-8
23.3.2 Secondary Function ............................................................................................................................. 23-8
Chapter 24
24. Port F ............................................................................................................................................................ 24-1
24.1.1 Features ............................................................................................................................................... 24-1
24.1.3 List of Pins .......................................................................................................................................... 24-2
24.2 Description of Registers ............................................................................................................................ 24-3
24.2.1 List of Registers .................................................................................................................................. 24-3
24.2.2 Port D Data Register (PFD) ................................................................................................................ 24-4
24.2.3 Port D Direction Register (PFDIR) ..................................................................................................... 24-5
24.2.4 Port D control registers 0, 1 (PFCON0, PFCON1) ............................................................................. 24-6
24.2.5 P ort F Mode Registers 0, 1 (PFMOD0, PFMOD1) ............................................................................ 24-8
24.3 Description of Operation......................................................................................................................... 24-10
24.3.1 Input/Output Port Functions .............................................................................................................. 24-10
24.3.2 Secondary, tertiary and fourthly functions ........................................................................................ 24-10
25.1.1 Features ............................................................................................................................................... 25-1
FEUL610Q174 R-9
ML610Q174 User’s Manual
Table of Contents
25.1.2 Configuration of the LCD Drivers....................................................................................................... 25-2
25.1.3 Configuration of the LCD drive voltage control circuit ...................................................................... 25-3
25.1.4 List of Pins .......................................................................................................................................... 25-4
25.2 Description of Registers ............................................................................................................................ 25-5
25.2.1 List of Registers .................................................................................................................................. 25-5
25.2.2 Bias Circuit Control Register 0 (BIASCON) ...................................................................................... 25-6
25.2.6 Display Registers (DSPR00 to DSPR17, DSPR20 to DSPR27) ....................................................... 25-10
25.2.7 LCD port segment selection register 1 (LSELS1) ............................................................................. 25-12
25.2.8 LCD port segment selection register 2 (LSELS2) ............................................................................. 25-14
25.2.9 LCD port segment selection register 4 (LSELS4) ............................................................................. 25-16
25.2.10 LCD port common selection register 0 (LSELC0) ............................................................................ 25-18
25.3 Description of Operation......................................................................................................................... 25-19
25.3.1 Operation of LCD Drivers and Bias Generation Circuit ................................................................... 25-19
26.1.1 Features ............................................................................................................................................... 26-1
26.1.3 List of Pins .......................................................................................................................................... 26-2
26.2 Description of Registers ............................................................................................................................ 26-3
26.2.1 List of Registers .................................................................................................................................. 26-3
26.2.2 SA-ADC Result Register 0L (SADR0L) ............................................................................................. 26-4
26.2.3 SA-ADC Result Register 0H (SADR0 H) ............................................................................................ 26-4
26.2.4 SA-ADC Result Register 1L (SADR1L) ............................................................................................. 26-5
26.2.5 SA-ADC Result Register 1H (SADR1 H) ............................................................................................ 26-5
26.2.6 SA-ADC Result Register 2L (SADR2L) ............................................................................................. 26-6
26.2.7 SA-ADC Result Register 2H (SADR2 H) ............................................................................................ 26-6
26.2.8 SA-ADC Result Register 3L (SAD R3L) ............................................................................................. 26-7
26.2.9 SA-ADC Result Register 3H (SADR3H) ............................................................................................ 26-7
26.2.10 SA-ADC Result Register 4L (SADR4L) ............................................................................................. 26-8
26.2.11 SA-ADC Result Register 4H (SADR4H) ............................................................................................ 26-8
26.2.12 SA-ADC Result Register 5L (SADR5L) ............................................................................................. 26-9
26.2.13 SA-ADC Result Register 5H (SADR5H) ............................................................................................ 26-9
26.2.14 SA-ADC Result Register 6L (SADR6L) ........................................................................................... 26-10
26.2.15 SA-ADC Result Register 6H (SADR6H) .......................................................................................... 26-10
26.2.16 SA-ADC Result Register 7L (SADR7L) ........................................................................................... 26-11
26.2.17 SA-ADC Result Register 7H (SADR7H) .......................................................................................... 26-11
26.2.18 SA-ADC Result Register 8L (SADR8L) ................................
26.2.19 SA-ADC Result Register 8H (SADR8H) .......................................................................................... 26-12
26.2.20 SA-ADC Result Register 9L (SADR 9L) ........................................................................................... 26-13
26.2.21 SA-ADC Result Register 9H (SADR9H) .......................................................................................... 26-13
26.2.22 SA-ADC Result Register AL (SADRAL) ......................................................................................... 26-14
26.2.23 SA-ADC Result Register AH (SADRAH) ........................................................................................ 26-14
26.2.24 SA-ADC Result Register BL (SAD RBL) ......................................................................................... 26-15
26.2.25 SA-ADC Result Register BH (SADRBH)......................................................................................... 26-15
26.2.34 SA-ADC Control Register 0 (SADCO N 0) ........................................................................................ 26-16
26.3 Description of Operation......................................................................................................................... 26-21
26.3.1 Setup of the A/D conversion c hannel ................................................................................................ 26-21
26.3.2 Operation of Successive Approximation Type A/D Converter ......................................................... 26-22
27.1.1 Features ............................................................................................................................................... 27-1
27.2 Description of Registers ............................................................................................................................ 27-2
27.2.1 List of Registers .................................................................................................................................. 27-2
27.2.2 Battery Level Detector Control Register 0 (BLDCON0) .................................................................... 27-3
27.2.3 Battery Level Detector Control Register 1 (BLDCON1) .................................................................... 27-4
27.3 Description of Operation........................................................................................................................... 27-5
27.3.1 Threshold Voltage ............................................................................................................................... 27-5
27.3.2 Operation of Battery Level Detector ................................................................................................... 27-6
Chapter 28
28. Analog Comparator ....................................................................................................................................... 28-1
28.1.1 Features ............................................................................................................................................... 28-1
28.1.3 List of Pins .......................................................................................................................................... 28-2
28.2 Description of Registers ............................................................................................................................ 28-2
28.2.1 List of Registers .................................................................................................................................. 28-2
28.2.2 Comparator0 Control Register 0 (CMP0CON0) ................................................................................. 28-3
28.2.3 Comparator0 Control Registers 1 (CMP0CON1) ............................................................................... 28-4
28.2.4 Comparator1 Control Register 0 (CMP1CON0) ................................................................................. 28-5
28.2.5 Comparator0 Control Registers 1 (CMP1CON1) ............................................................................... 28-6
28.3 Description of Operation........................................................................................................................... 28-7
28.3.1 Analog Comparator Function .............................................................................................................. 28-7
29.1.1 Features ............................................................................................................................................... 29-1
29.1.3 List of Pins .......................................................................................................................................... 29-1
29.2 Description of Operation........................................................................................................................... 29-2
30.1.1 Features ............................................................................................................................................... 30-1
30.2 Description of Registers ............................................................................................................................ 30-2
30.2.1 List of Registers .................................................................................................................................. 30-2
30.2.2 Flash Addres s Register L,H (FLASHAL,H) ....................................................................................... 30-3
30.2.3 Flash Data Register L,H (FLASHDL,H) ............................................................................................. 30-5
30.2.4 Flash Contro l Register (FLASHCON) ................................................................................................ 30-6
30.3 Description of Operation......................................................................................................................... 30-10
30.3.1 Block Erase Function ........................................................................................................................ 30-12
30.3.2 Sector Erase Function ....................................................................................................................... 30-13
30.3.3 1-word Write Function ...................................................................................................................... 30-14
30.3.4 Remap function by software .............................................................................................................. 30-15
30.3.5 Remap function by hardware (external terminal) .............................................................................. 30-16
30.3.6 Notes in Use ...................................................................................................................................... 30-17
Chapter 31
31. On-Chip Debug Function .............................................................................................................................. 31-1
32.1.1 Features ............................................................................................................................................... 32-1
32.2 Description of Registers ............................................................................................................................ 32-2
32.2.1 List of Registers .................................................................................................................................. 32-2
32.3 The method of a setup of Code-Option data ............................................................................................. 32-4
32.3.1 The format of Code-Option data ......................................................................................................... 32-4
32.3.2 The method of programming of Code-Option data ............................................................................. 32-4
Appendixes
Appendix A Registers ......................................................................................................................................... A-1
Appendix B Package Dimensions: ML610Q174-xxxGAZWAAL ...................................................................... B-1
Appendix C Electrical Characteristics ................................................................................................................. C-1
Appendix D The example of an application circuit ............................................................................................ D-1
Appendix E Check List ........................................................................................................................................ E-1
Revision History
Revision History ..................................................................................................................................................... R-1
FEUL610Q174 R-12
Chapter 1
Overview
ML610Q174 User’s Manual
Chapter 1 Overview
1. Overview
1.1 Features
This LSI is a high-performance 8-bit CMOS microcontroller into which rich peripheral circuits, such as 10-bit A/D
converter, timer, PWM, synchronous serial port, UART, I2C bus interface (master), Battery level detect circuit, LCD
driver, are incorporated around 8-bit CPU nX-U8/100.
The CPU nX-U8/1 00 is capable of efficient instruction execution in 1-instruction 1-clock mode by 3-stage pipe line
architecture parallel procesing.
The on-chip debug function that is installed enables program debugging and programming.
− HALT mode: Instruction executio n 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 frequenc y 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: Operation of an intact functional block circ uit is powerd down. (register reset and clock
stop)
• Shipment
− 80-pin QFP (QFP80-P-1420-0.80)
− ML610Q174-xxxGAZWAAL (Blank name: ML610Q174-NNNGAZWAAL), xxx: ROM code number
− ML610Q174-xxxGAZWAX (Blank name: ML610Q174-NNNGAZWAX), xxx: ROM code number
Note:
The ML610Q174-xxxGAZWAAL (Blank name: ML610Q174-NNNGAZWAAL) is discontined product.
Also, the package dimensions are different each other. Refer to the ” PACKAGE DIMENSIONS” on
the page B-1 and B-2.
• Guaranteed operating range
− Operating temperature: −40°C to 85°C
− Operating voltage: V
=2.2V to 5.5V,V
DD
= 4.5V to 5.5V
REF
FEUL610Q174 1-3
Program
RAM
CPU (nX-U8/100) Large Model
Timing
SP
BUS
TBC
INT 4 INT
6
P20 to P23
INT 4 P52 to P53
Data-bus
TEST0
RESET_N
POWER
V
EPSW1~3
ELR1~3
ECSR1~3
GREG
VSS
OUTCLK*
RXD0*1, RXD1*1
TXD0*1, TXD1*1
INT 2 LSCLK*
P40 to P43
On-Chip
P00 to P03
SCK0*1, SCK1*1
SIN0*1, SIN1*1
SOUT0*1, SOUT1*1
INT
2
WDT
INT
10bit-ADC
AIN0 to AIN11*3
VDD
VSS
OSC0*
1
INT
I2C
INT 1 SDA*1
SCL*1
PWM
INT 3 PWM4*1
PWM5*1
LCD
COM0 to COM3*2
SEG0 to SEG7
LCD
V
*2
, V
*2
, VL3
XT0
XT1
P90 to P91
BLD
PW45EV0*1
P30 to P35*3
INT 1 P10 to P11
OSC1*
TEST1_N
P44 to P47*3
*2
PW45EV1*1
PC0 to PC7*2
PD0 to PD7*2
PF0 to PF7*2
P50 to P51*3
CMP
CMP0P
4
CMP0M
4
CMP1P
4
CMP1M
4
2
INT
PW6EV0*1
PW6EV1*1
PWM6*1
P80 to P85*2
P36
*1 Secondary or tertiary function
1.2 Configuration of Functional Blocks
1.2.1 Block Diagram of ML610Q174
ML610Q174 User’s Manual
Chapter 1 Overview
V
DDL
PSW
Controller
0~15
ALU
LR
EA
DSR/CSR
PC
Memory
Instruction
Decoder
Instruction
Register
ICE
DD
Controller
(Flash)
128Kbyte
SSIO
RESET &
TEST
OSC
4096byte
Interrupt
Controller
UART
8bit Timer
×6
V
REF
*
*
*
*
*2 Select I/O port or LCD driver
*3 Select I/O port or A/D converter input
*4 Select I/O port or Analog comparator input
Figure 1-1 Block Diagram of ML610Q174
GPIO
Driver
BIAS
SEG8 to SEG23
SEG32 to SEG39*2
L1
L2
FEUL610Q174 1-4
PC3/SEG11
PC1/SEG9
SEG7
SEG6
SEG4
SEG3
SEG2
SEG1
SEG0
PD3/SEG19
PD2/SEG18PD1/SEG17
64pin
1
2
9
10
11
15
16
17
18
19
20
21
22
23
24
PC7/SEG15
PC6/SEG14
PC5/SEG13
25
26
28
29
30
31
32
33
34
35
36
37
38
39
40
63
61
60
59
57
56
55
54
52
51
50
49
48
47
46
45
44
43
42
41
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
P83/COM3
VL3
P85/VL2
P84/VL1
P36/LSCLK
XT1
XT0
V
DDL
VDD
VSS
P11/OSC1
P10/OSC0
RESET_N
P81/COM1
P82/COM2
P80/COM0
PD7/SEG23
PD6/SEG22
PD5/SEG21
PF3/SEG35/TXD0/PWM4/TXD1
PF4/SEG36/SIN1/PWM4
PF5/SEG37/SCK1/PWM5
TEST0
P00/EXI0/PW45EV0
P01/EXI1/PW6EV0
P02/EXI2/RXD0
P03/EXI3/RXD1
PF0/SEG32/SIN0
PF7/SEG39/TXD1/TXD0
PF6/SEG38/RXD1/SOUT1/PWM6
P21/LED1/OUTCLK/PWM5
P51/AIN9/SCK1
P45/AIN5/SCK0
P35/AIN10/PWM5
SS
P22/LED2/TM9OUT
1.3 Pins
1.3.1 Pin Layout
1.3.1.1 Pin Layout of ML610Q174 QFP Package
ML610Q174 User’s Manual
Chapter 1 Overview
PF1/SEG33/SCK0
PF2/SEG34/ RXD0/SOUT0
TEST1_N
P20/LED0/LSCLK/PWM4
65pin
80pin
1pin
64
V
PD4/SEG20
62
3 4 5 6 7
P91/LED5
P90/LED4
P40/SDA/SIN0
P23/LED3/TMBOUT
PD0/SEG16
58
8
PC4/SEG12
PC2/SEG10
PC0/SEG8
53
12
14
13
SEG5
REF
V
41pin
40pin
27
25pin
24pin
P33/AIN3P32/AIN2
P41/SCL/SCK0
P34/AIN11/PWM4
P50/AIN8/SIN1
P42/RXD0/SOUT0
P43/TXD0/PWM4/TXD1
P52/RXD1/SOUT1/CMP0P
P47/AIN7/PWM5/CMP1M
P46/AIN6/SOUT0/CMP0M
P44/AIN4/SIN0
P31/AIN1/PW6EV1
P30/AIN0/PW45EV1
P53/TXD1/PWM6/TXD0/CMP1P
FEUL610Q174 1-5
Figure 1-3 Pin Layout of ML610Q174 Package
ML610Q174 User’s Manual
1,27
Power supply for internal logic
(internally generated)
30
XT0
I
Low-speed clock oscillati on pi n
31
XT1
O
Low-speed clock oscillati on pi n
Reference power supply pin of
ADC
P00/EXI0/
PW45EV0
Input port / External interrupt /
PW45EV0 input
P01/EXI1/
PW6EV0
Input port / External interrupt /
PW6EV0 input
P02/EXI2/
RXD0
Input port / External interrupt /
UART0 data input
High-speed clock
oscillation pin
High-speed clock
oscillation pin
Low-speed clock
output
Low-speed clock
output
Input/output port /
ADC input
Input/output port /
ADC input
Input/output port /
ADC input
Input/output port /
ADC input
Input/output port /
ADC input
Input/output port /
ADC input
Low-speed
clock output
Chapter 1 Overview
1.3.2 List of Pins
Table 1-1 lists the pins.
In the I/O col umn, “—” denotes a power supply pin (for primary functions only), “I” an input pin, “O” an output pin,
and “I/O” an input/output pin.
Pin
No.
28
29
34
73
74
32
Pin
name
Vss Negative power supply pin
Positive power supply pin
V
DD
V
DDL
Power supply pin for LCD bias
V
L3
TEST0 I/O Input/output pi n for testing
TEST1_N I/O Input/output pin for testing
RESET_N I Reset input pin
Primary function Secondary function Tertiary function
I/O Description
Pin
name
I/O Description
Pin
name
I/O Description
I
V
24
75
76
77
78
25
26
79
80
2
3
23
22
21
20
10
11
33
REF
P03/EXI3/
RXD1
P10 I Input port OSC0 I
P11 I Input port OSC1 O
P20/LED0 O Output port / LED drive LSCLK O
P21/LED1 O Output port / LED drive OUTCLK O
P22/LED2 O Output port / LED drive TM9OUT O Timer9 output
P23/LED3 O Output port / LED drive TMBOUT O TimerB output
P30/
PW45EV1
/AIN0
P31/
PW6EV1
AIN1
P32/
AIN2
P33/
AIN3
P34/
AIN11
P35/
AIN10
P36 I/O Input/output port LSCLK O
Successive-approximation type
I
I
I
Input port / External interrupt /
I
UART1 data input
PW45EV1 input /
I/O
Successive approximation type
PW6EV1 input /
I/O
Successive approximation type
I/O
Successive approximation type
I/O
Successive approximation type
I/O
Successive approximation type
I/O
Successive approximation type
PWM4 O PWM4 output
PWM5 O PWM5 output
PWM4 O PWM4 output
PWM5 O PWM5 output
FEUL610Q174 1-6
I2C data
input/output
SSIO0 data
input
SSIO0
input/output
UART0
data input
SSIO0 data
output
UART0
data output
PWM4
output
UAR1
data output
Input/output port /
PWM4 external
type ADC input
Input/output port/
type ADC input
Input/output port /
inverting input
Input/output port /
inverting input
Input/output port /
type ADC input
Input/output port /
type ADC input
SSIO1
input/output
Input/output port /
non-inverting input
Input/output port /
non-inverting input
P80/
COM0
Input/output port /
P81/
COM1
Input/output port /
LCD common pin
P82/
COM2
Input/output port /
LCD common pin
P83/
COM3
Input/output port /
LCD common pin
Input/output port /
LCD bias
Input/output port/
41
SEG0
O
LCD segment pin
Pin
No.
6
7
ML610Q174 User’s Manual
Chapter 1 Overview
Primary function Secondary function Tertiary function Fourthly function
Pin
name
P40 I/O Input/output port SDA I/O
P41 I/O Input/output port SCL I/O
I/O Description
Pin
name
I/O Description
2
I
C clock
input/output
Pin
name
SIN0 I
SCK0 I/O
I/O Description
synchronous
clock
Pin
name I/O
Description
8
9
19
18
17
16
15
P42 I/O Input/output port RXD0 I
P43 I/O Input/output port TXD0 O
P44/
T0P4CK/
AIN4
P45/
T1P5CK/
AIN5
P46/
T8AP6CK
/
AIN6/
CMP0M
P47/
T9BCK/
AIN7/
CMP1M
P50/
AIN8
Timer0 /
I/O
clock input/
Successive
approximation
Timer1 /
PWM5 external
I/O
clock input/
Successive
approximation
Timer8,A /
PWM6 external
clock input /
I
Successive
approximation
type ADC input /
Comparator0
are connected across this pin and VSS as required.
Chapter 1 Overview
1.3.3 Pin Description
Table 1-2 shows the pin description.
In the I/O column, “—” denotes an input pin, “I” an input pin, “O” an output pin, and “I/O” an input/output pin.
Table 1-2 Pin Description
Primary/
Pin name I/O Description
Secondary
Power supply
VSS —
VDD —
V
—
DDL
VL1 —
VL2 —
VL3 —
Negative power supply pin
Positive power supply pin
Positive power supply pin for internal logic (internally generated). Connect
capacitors (C
) (see Measuring Circuit 1) between this pin and VSS .
L
Power supply pins for LCD bias (external input). This function is allocated
to the primary function of the P84 pin.
Power supply pins for LCD bias (external input). This function is allocated
to the primary function of the P85 pin.
Power supply pins for LCD bias (external input)
— —
— —
— —
— —
— —
— —
Test
TEST0
TEST1_N
Input/output pin for testing. This pin has a pull-down resistor built in.
I/O
Input/output pin for testing. This pin has a pull-up resistor built in.
I/O
— Positive
— Negative
System
Reset input pin. When this pin is set to a “L” level, the device is placed in
RESET_N I
system reset mode and the internal circuit is initialized. If after that this pin
is set to a “H” level, program execution starts. This pin has a pull-up
— Negative
resistor built in.
XT0 I
XT1 O — —
OSC0 I
OSC1 O
LSCLK O
OUTCLK O
Crystal connection pin for low-speed clock. A 32.768 kHz crystal oscillator
(see measuring circuit 1) is connected to this pin. Capacitors C
and CGL
DL
Crystal/ceramic connection pin for high-speed clock.
A 8MHz crystal or ceramic is connected to this pin. Capacitors C
C
(see measuring circuit 1) are connected across this pin and VSS.
GH
DH
and
Low-speed clock output. This function is allocated to the secondary
function of the P20/P36 pin.
High-speed clock output. This function is allocated to the secondary
function of the P21 pin.
— —
— —
—
Secondary —
Secondary —
Logic
—
FEUL610Q174 1-9
Provided with a secondary function for
Provided with a LCD segment for each
Pin name I/O Description
General-purpose input port
P00 to P03 I
P10 to P11 I
General-output input port
P20 to P23 O
P90 to P91 O
General-purpose input/output port
P30 to P36
P40 to P47
P50 to P53
P80 to P85
PC0 to PC7
PD0 to PD7
PF0 to PF7
General-purpose input ports. Provided with a secondary function for each
port. Cannot be used as ports if their secondary functions are used.
General-purpose output ports.Provided with a secondary function for each
port. Cannot be used as ports if their secondary functions are used.
General-purpose output ports.Provided with a secondary function for each
port. Cannot be used as ports if their secondary functions are used.
General-purpose input/output ports.
each port. Cannot be used as ports if their secondary functions are used.
I/O
General-purpose input/output ports.
port. Cannot be used as ports if LCD segment are used.
ML610Q174 User’s Manual
Chapter 1 Overview
Primary/
Logic
Secondary
Primary Positive
Primary Positive
Primary Positive
Primary Positive
FEUL610Q174 1-10
ML610Q174 User’s Manual
2
2
Chapter 1 Overview
Pin name I/O Description
UART
TXD0 O
RXD0 I
TXD1 O
RXD1 I
UART0 data output pin. Allocated to the secondary function of the P43 and
PF3 pins and the fourthly function of the P53 and PF7 pins
UART0 data input pin. Allocated to the primary function of the P02 pin and
the secondary function of the P42 and PF2 pins.
UART1 data output pin. Allocated to the secondary function of the P53 and
PF7 pins and the fourthly function of the P43 and PF3 pins.
UART1 data input pin. Allocated to the primary function of the P03 pin and
the secondary function of the P52 and PF6 pins.
I2C bus interface
C data input/output pin. This pin is used as the secondary function of the
I
SDA I/O
SCL I/O
P40 pin. This pin has an NMOS open drain output. When using this pin as
a function of the I
C clock output pin. This pin is used as the secondary function of the P41
I
pin. This pin has an NMOS open drain output. When using this pin as a
function of the I
2
C, externally connect a pull-up resistor.
2
C, externally connect a pull-up resistor.
Synchronous serial (SSIO)
SIN0 I
SCK0 I/O
SOUT0 O
SIN1 I
SCK1 I/O
SOUT1 O
Synchronous serial data input pin. Allocated to the tertiary function of the
P40 and P44 and PF0 pins.
Synchronous serial clock input/output pin. Allocated to the tertiary function
of the P41 and P45 and PF1 pins.
Synchronous serial data output pin. Allocated to the tertiary function of the
P42 and P46 and PF2 pins.
Synchronous serial data input pin. Allocated to the tertiary function of the
P50 and PF4 pins.
Synchronous serial clock input/output pin. Allocated to the tertiary function
of the P51 and PF5 pins.
Synchronous serial data output pin. Allocated to the tertiary function of the
P52 and PF6 pins.
PWM
PWM4 O
PWM5 O
PWM6 O
T0P4CK I
T1P5CK I
T8AP6CK I
PW45EV0
PW45EV1
PW6EV0
PW6EV1
PWM4 output pin. Allocated to the tertiary function of the P34 and P43 and
P20 and PF3 and PF4 pins.
PWM5 output pin. Allocated to the tertiary function of the P35 and P47 and
P21 and PF5 pins.
PWM6 output pin. Allocated to the tertiary function of the P53 and PF6
pins.
External clock input pin for timer 0 and PWM4. Allocated to the primary
function of the P44 pin.
External clock input pin for timer 1 and PWM5. Allocated to the primary
function of the P45 pin.
External clock input pin for timer 8 and timer A and PWM6. Allocated to the
primary function of the P46 pin.
Control start /stop pin for PWM4 and PWM5. Allocated to the primary
I
function of the P00 and P30 pins.
Control start /stop pin for PWM6. Allocated to the primary function of the
I
P01 and P31 pins.
Primary/
Secondary
Secondary
Fourthly
Logic
Positive
Secondary Positive
Secondary
Fourthly
Positive
Secondary Positive
Secondary Positive
Secondary Positive
Tertiary Positive
Tertiary —
Tertiary Positive
Tertiary Positive
Tertiary —
Tertiary Positive
Tertiary Positive
Tertiary Positive
Tertiary Positive
Primary —
Primary —
Primary —
Primary
Primary
—
—
FEUL610Q174 1-11
ML610Q174 User’s Manual
It is possible, for each bit, to specify
whether the interrupt is enabled and select the interrupt edge by software.
P23 pins
LCD segment output pins. Allocated to the secondary function of the
Chapter 1 Overview
Pin name I/O Description
External interrupt
External maskable interrupt input pins.
EXI0–EXI3 I
Allocated to the primary function of the P00–P03 pins.
Timer
T0P4CK I
T1P5CK I
T8AP6CK I
T9BCK I
TM9OUT
TMBOUT
External clock input pin for timer 0 and PWM4. Allocated to the primary
function of the P44 pin.
External clock input pin for timer 1 and PWM5. Allocated to the primary
function of the P45 pin.
External clock input pin for timer 8 and timer A and PWM6. Allocated to the
primary function of the P46 pin.
External clock input pin for timer 9 and timer B. Allocated to the primary
function of the P47 pin.
Timer9 overflow output pin. Allocated to the secondary function of the P22
pin.
TimerB overflow output pin. Allocated to the secondary function of the P23
pin.
LED drive
LED0-LED5 O
Pins for LED driving. Allocated to the primary function of the P20–
and P90–P91 pins.
Successive-approximation type A/D converter
V
I
REF
Reference power supply pin for successive approximation type A/D
converter.
Analog inputs to Ch0–Ch11 of the successive-approximation type A/D
AIN0–AIN11 I
converter. Allocated to the secondary function of the P30 to P35 and P44
to P47 and P50 to P51 pins.
Analog Comparator
CMP0P I
CMP0M I
CMP1P I
CMP1M I
Non-inverting input for comparator0. This pin is used as the primary
function of the P52 pin.
Inverting input for comparator0. This pin is used as the primary function of
the P46 pin.
Non-inverting input for comparator1. This pin is used as the primary
function of the P53 pin.
Inverting input for comparator1. This pin is used as the primary function of
the P47 pin.
LCD driver
COM0 to COM3 O
SEG0 to SEG7 O
SEG8 to SEG23
SEG32 to SEG39
LCD common output pins.
LCD segment output pins.
O
PC0 to PC7 and PD0 to PD7 and PF0 to PF7 pins.
Primary/
Secondary
Primary
Logic
Positive/
Negative
Primary —
Primary —
Primary —
Primary —
Tertiary Positive
Tertiary Positive
Primary
— —
——
——
——
——
——
——
——
——
Positive/
Negative
FEUL610Q174 1-12
P20 to P23
open
P50 to P51 (AIN8 to AIN9)
open
1.3.4 Termination of Unused Pins
Table 1-3 shows the recommended termination of unused pins.
Table 1-3 Termination of Unused Pins
Pin Recommended pin termination
RESET_N open
TEST0 open
TEST1_N open
V
Connect to VDD
REF
VL3 open
P00 to P03 Connect V
P10 to P11 Connect V
P30 to P33 (AIN0 to AIN3)open
P34 to P35 (AIN11, AIN10)open
P36 open
P40 to P43 open
P44 to P47 (AIN4 to AIN7)open
DD
DD
ML610Q174 User’s Manual
Chapter 1 Overview
or VSS
or VSS
P52 to P53 open
P80 to P85 open
P90 to P91 open
SEG0 to SEG7 open
PC0 to PC7 (SEG8 to 15)open
PD0 to PD7 (SEG16 to 23)open
PF0 to PF7 (SEG32 to 39)open
Note:
For unused input ports o r unused inp ut/output p orts, i f the corr espondi ng pins are c onfigured a s high-impedance inputs
and left open, the supply current may become excessively large. Therefore, it is recommended to configure those pins as
either inputs with a pull-down resistor/pull-up resistor or outputs.
FEUL610Q174 1-13
Loading...
+ 477 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.