Page 2
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.
Page 3
IDEU8 uEASE User’s Manual Description on the on-chip debug tool uEASE. uEASE connection Manual for ML610Q421/ML610Q422 Description about the connection between uEASE and ML610Q421/ML610Q422 FWuEASE Flash Writer Host Program User’s Manual Description on the Flash Writer host program.
Page 4
Notation Classification Notation Description ♦ Numeric value xxh, xxH Indicates a hexadecimal number. x: Any value in the range of 0 to F 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...
Block Diagram of ML610421 ......................1-7 Pins ................................1-8 1.3.1 Pin Layout ............................1-8 1.3.1.1 Pin Layout of ML610Q421 120pin TQFP Package ................ 1-8 1.3.1.2 Pin Layout of ML610Q422 120pin TQFP Package ................ 1-9 1.3.1.3 Pin Layout of ML610Q421 Chip ....................1-10 1.3.1.4...
Page 6
ML610Q421/ML610Q422/ML610421 User’s Manual Contents Chapter 4 MCU Control Function ........................... 4-1 Overview..............................4-1 4.1.1 Features ............................... 4-1 4.1.2 Configuration ............................4-1 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) ....................
Page 7
ML610Q421/ML610Q422/ML610421 User’s Manual Contents 6.1.3 List of Pins ............................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-5 Description of Operation..........................6-6 6.3.1...
Page 8
ML610Q421/ML610Q422/ML610421 User’s Manual Contents Description of Registers ..........................9-2 9.2.1 List of Registers ..........................9-2 9.2.2 1 kHz Timer Count Registers (T1KCRL, T1KCRH)................9-3 9.2.3 1 kHz Timer Control Register (T1KCON) ..................9-4 Description of Operation..........................9-5 Chapter 10 10. Timers ................................10-1 10.1 Overview..............................
Page 9
ML610Q421/ML610Q422/ML610421 User’s Manual Contents 12.1.2 Configuration ............................ 12-1 12.2 Description of Registers ..........................12-2 12.2.1 List of Registers ..........................12-2 12.2.2 Watchdog Timer Control Register (WDTCON) ................12-3 12.2.3 Watchdog Timer Mode Register (WDTMOD) ................. 12-4 12.3 Description of Operation........................... 12-5 12.3.1...
Page 10
ML610Q421/ML610Q422/ML610421 User’s Manual Contents Chapter 15 15. I C Bus Interface ............................15-1 15.1 Overview..............................15-1 15.1.1 Features ............................. 15-1 15.1.2 Configuration ............................ 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...
Page 11
ML610Q421/ML610Q422/ML610421 User’s Manual Contents Chapter 18 18. Port 1 ................................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-1 18.2 Description of Registers ..........................18-2 18.2.1 List of Registers ..........................18-2 18.2.2...
Page 12
ML610Q421/ML610Q422/ML610421 User’s Manual Contents 21.2.3 Port 4 Direction Register (P4DIR) ....................21-5 21.2.4 Port 4 Control Registers 0, 1 (P4CON0, P4CON1) ................21-6 21.2.5 Port 4 Mode Registers 0, 1 (P4MOD0, P4MOD1) ................21-8 21.3 Description of Operation......................... 21-11 21.3.1 Input/Output Port Functions......................
Page 13
ML610Q421/ML610Q422/ML610421 User’s Manual Contents 24.3.1 RC Oscillator Circuits ........................24-8 24.3.2 Counter A/Counter B Reference Modes ..................24-11 24.3.3 Example of Use of RC Oscillation Type A/D Converter ..............24-15 24.3.4 Monitoring RC Oscillation......................24-20 24.4 Specifying port registers ......................... 24-21 24.4.1...
Page 14
ML610Q421/ML610Q422/ML610421 User’s Manual Contents 27.1.2 Configuration ............................ 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...........................
The CPU nX-U8/100 is capable of efficient instruction execution in 1-intruction 1-clock mode by 3-stage pipe line architecture parallel procesing. The Flash ROM that is installed as program memory to ML610Q421/ML610Q422 achieves low-voltage low-power consumption operation (read operation) equivalent to mask ROM and is most suitable for battery-driven applications.
Page 18
• LCD driver − Dot matrix can be supported. ML610Q421/ML610421: 400 dots max. (50 seg × 8 com), 1/1 to 1/8 duty ML610Q422: 800 dots max. (50 seg × 16 com), 1/1 to 1/16 duty − 1/3 or 1/4 bias (built-in bias generation circuit) −...
Page 19
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview • Product name – S Function upported The line-up of the ML610Q421 ,the ML610Q422 and the ML610421 is below. Operating - Chip (Die) - ROM type Product availability temperature ML610Q421-xxxWA Flash ROM -20°C to +70°C...
VREF AIN0 AIN1 AVDD 120pin 31pin 1pin 30pin (NC): No Connection Note: The assignment of the pads P30 to P35 are not in order. :A VPP terminal exists only ML610Q421. Figure 1-4 Pin Layout of ML610Q421 Package 1 – 8...
2.98 mm × 3.02mm Chip size: PAD count: 116 pins 80 µm Minimum PAD pitch: 70 µm ×70 µm PAD aperture: 350 µm Chip thickness: Voltage of the rear side of chip: level Figure 1-6 Dimensions of ML610Q421 Chip 1 – 10...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview 1.3.1.5 Pin Layout of ML610421 Chip Note: The assignment of the pads P30 to P35 are not in order. 2.80 mm × 2.86mm Chip size: PAD count: 115 pins 80 µm Minimum PAD pitch: 70 µm ×70 µm...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview 1.3.2 List of Pins 1.3.2.1 List of ML610Q421/ML610Q422 Pins PAD No. Primary function Secondary function Tertiary function Q422 Q421 Pin name I/O Function Pin name Function Pin name I/O Function 18,22, 18,22, Negative power ...
Page 32
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Q422 Q421 Pin name I/O Function Pin name Function Pin name I/O Function Successive approximation type AIN0 ADC input Successive ...
Page 33
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Q422 Q421 Pin name I/O Function Pin name Function Pin name I/O Function I/O Input/output port ...
Page 34
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Q422 Q421 Pin name I/O Function Pin name Function Pin name I/O Function LCD segment pin SEG27 ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview 1.3.2.2 List of ML610421 Pins PAD No. Primary function Secondary function Tertiary function Pin name Function Pin name Function Pin name Function 17,21, Negative power supply 35,110 Positive power supply ...
Page 36
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Pin name Function Pin name Function Pin name Function Non-maskable interrupt pin Input port, External P00/EXI ...
Page 37
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Pin name Function Pin name Function Pin name Function connection pin Input/output port Input/output port ...
Page 38
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview PAD No. Primary function Secondary function Tertiary function Pin name Function Pin name Function Pin name Function LCD segment pin SEG25 LCD segment pin SEG26 ...
Since these pins have secondary functions, the pins cannot be used as a port when the secondary functions are used. I/O General-purpose input/output port. PA0-PA7 Primary Positive These pins are for the ML610Q421/ML610421, but are not provided in the ML610Q422. 1 – 24...
Page 40
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview Primary/ Secondary/ Pin name Description Logic Tertiary UART UART data output pin. This pin is used as the secondary function of the TXD0 Secondary Positive P43 pin. UART data input pin. This pin is used as the secondary function of the...
Page 41
— and between C3 and C4, respectively. — — — — — — For testing I/O ML610Q421/ML610Q422:Input/output pin for testing. TEST — — ML610421:Input pin for testing. ML610Q421/ML610Q422/ML610421:A pull-down resistor is internally connected Power supply Negative power supply pin. —...
Page 42
Capacitor Cx (see measuring circuit 1) is connected between this pin and V Power supply pin for programming Flash ROM. A pull-up resistor is — — — internally connected. These pins are for the ML610Q421/ML610Q422, but are not provided in the ML610421. 1 – 27...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 1 Overview 1.3.4 Termination of Unused Pins Table 1-5 shows methods of terminating the unused pins. Table 1-5 Termination of Unused Pins Recommended pin termination Open AIN0, AIN1 Open Open C1, C2, C3, C4 Open RESET_N...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 2 CPU and Memory Space CPU and Memory Space Overview This LSI includes 8-bit CPU nX-U8/100 and the memory model is “SMALL model” . For details of the CPU nX-U8/100, see “nX-U8/100 Core Instruction Manual”. Program Memory Space The program memory space is used to store program codes, table data (ROM window), or vector tables.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 2 CPU and Memory Space Data Memory Space The data memory space of this LSI consists of the ROM window area, 1KByte RAM area and SFR area of Segment 0 and the ROM reference areas of the Segment 1 and Segment 8.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 2 CPU and Memory Space Description of Registers 2.6.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F000H Data segment register 2 – 3...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 2 CPU and Memory Space 2.6.2 Data Segment Register (DSR) Address: 0F000H Access: R/W Access size: 8 bits Initial value: 00H DSR3 DSR2 DSR1 DSR0 Initial value DSR is a special function register (SFR) to retain a data segment. For details of DSR, see “nX-U8/100 Core Instruction Manual”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 3 Reset Function Reset Function Overview This LSI has the five reset functions shown below. If any of the five reset conditions is satisfied, this LSI enters system reset mode. • Reset by the RESET_N pin •...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 3 Reset Function Description of Registers 3.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F001H Reset status register RSTAT 3.2.2 Reset Status Register (RSTAT) Address: 0F001H Access: R/W Access size: 8 bits Initial value: Undefined ―...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 3 Reset Function Description of Operation 3.3.1 Operation of System Reset Mode System reset has the highest priority among all the processings and any other processing being executed up to then is cancelled. The system reset mode is set by any of the following causes.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function MCU Control Function Overview The operating states of this LSI are classified into the following 4 modes including system reset mode: System reset mode Program run mode HALT mode STOP mode For system reset mode, see Chapter 3, “Reset Function”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function Description of Registers 4.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F008H Stop code acceptor STPACP Standby control register 0F009H SBYCON 0F028H Block control register 0 BLKCON0 ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.3 Standby Control Register (SBYCON) Address: 0F009H Access: W Access size: 8 bits Initial value: 00H ― ― ― ― ― ― SBYCON Initial value SBYCON is a special function register (SFR) to control operating mode of MCU.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.4 Block Control Register 0(BLKCON0) Address: 0F028H Access: R/W Access size: 8 bits Initial value: 00H ― ― ― ― BLKCON0 DTM3 DTM2 DTM1 DTM0 Initial value BLKCON0 is a special function register (SFR) to make even more reducing current consumption by turning unused peripherals off.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.5 Block Control Register 1(BLKCON1) Address: 0F029H Access: R/W Access size: 8 bits Initial value: 00H ― ― ― ― ― BLKCON1 DCAPR DT1K DPW0 Initial value BLKCON1 is a special function register (SFR) to make even more reducing current consumption by turning unused peripherals off.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.6 Block Control Register 2(BLKCON2) Address: 0F02AH Access: R/W Access size: 8 bits Initial value: 00H ― ― ― ― ― BLKCON2 DI2C0 DUA0 DSIO0 Initial value BLKCON2 is a special function register (SFR) to make even more reducing current consumption by turning unused peripherals off.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.7 Block Control Register 3(BLKCON3) Address: 0F02BH Access: R/W Access size: 8 bits Initial value: 00H ― ― ― ― ― ― ― BLKCON3 DMD0 Initial value BLKCON3 is a special function register (SFR) to make even more reducing current consumption by turning unused peripherals off.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.2.8 Block Control Register 4(BLKCON4) Address: 0F02CH Access: R/W Access size: 8 bits Initial value: 00H ― ― ― BLKCON4 DLCD DBLD DXTSP DRAD DSAD Initial value BLKCON4 is a special function register (SFR) to make even more reducing current consumption by turning unused peripherals off.
Page 63
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function • DSAD (bit 0) The DSAD bit is used to control SA type A/D converter operation. When the DSAD bit is set to “1”, the circuits related to SA type A/D converter are reset and turned off.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function Description of Operation 4.3.1 Program Run Mode The program run mode is the state where the CPU executes instructions sequentially. At power-on reset, RESET_N pin reset, low-speed oscillation stop detect reset, or WDT overflow reset, the CPU executes instructions from the addresses that are set in addresses 0002H and 0003H of program memory (ROM) after the system reset mode is released.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.3.3 STOP Mode The STOP mode is the state where low-speed oscillation and high-speed oscillation stop and the CPU and peripheral circuits stop the operation. When the stop code acceptor is enabled by writing “5nH”(n: an arbitrary value) and “0AnH”(n: an arbitrary value) to the stop code acceptor (STPACP) sequentially and the STP bit of the standby control register (SBYCON) is set to “1”,...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.3.3.2 STOP Mode When CPU Operates with High-Speed Clock When the CPU is operating with a high-speed clock and the STP bit of SBYCON is set to “1” with the stop code acceptor enabled, the STOP mode is entered and high-speed oscillation and low-speed oscillation stop.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.3.3.3 Note on Return Operation from STOP/HALT Mode The operation of returning from the STOP mode and HALT mode varies according to the interrupt level (ELEVEL) of the program status word (PSW), master interrupt enable flag (MIE), the contents of the interrupt enable register (IE0 to IE3), and whether the interrupt is a non-maskable interrupt or a maskable interrupt.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 4 MCU Control Function 4.3.4 Block Control Function This LSI has a block control function, which resets and completely turns operating circuits of unused peripherals off to make even more reducing current consumption. When certain bits of block control registers are set to “1”, corresponding peripherals are reset (all registers are reset) and operating clocks for the peripherals stop.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) Interrupts (INTs) Overview This LSI has 22 interrupt sources (External interrupts: 5 sources, Internal interrupts: 17 sources) and a software interrupt (SWI). For details of each interrupt, see the following chapters: Chapter 7, “Time Base Counter”...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) Description of Operation With the exception of the watchdog timer interrupt (WDTINT) and the NMI interrupt (NMINT), interrupt enable/disable for 20 sources is controlled by the master interrupt enable flag (MIE) and the individual interrupt enable registers (IE1 to 7).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) 5.3.1 Maskable Interrupt Processing When an interrupt is generated with the MIE flag set to “1”, the following processing is executed by hardware and the processing of program shifts to the interrupt destination.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) 5.3.4 Notes on Interrupt Routine Notes are different in programming depending on whether a subroutine is called or not by the program in executing an interrupt routine, whether multiple interrupts are enabled or disabled, and whether such interrupts are maskable or non-maskable.
Page 90
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) A-2: When a subroutine is called by the program in executing an interrupt routine A-2-1: When multiple interrupts are disabled • Processing immediately after the start of interrupt routine execution Specify the “PUSH LR” instruction to save the subroutine return address in the stack.
Page 91
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) State B: Non-maskable interrupt is being processed B-1: When no instruction is executed in an interrupt routine • Processing immediately after the start of interrupt routine execution Specify the RTI instruction to return the contents of the ELR register to the PC and those of the EPSW register to PSW.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 5 Interrupts (INTs) 5.3.5 Interrupt Disable State Even if the interrupt conditions are satisfied, an interrupt may not be accepted depending on the operating state. This is called an interrupt disabled state. See below for the interrupt disabled state and the handling of interrupts in this state.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.1.3 List of Pins Pin name Description Pin for connecting a crystal for low-speed clock Pin for connecting a crystal for low-speed clock Pin for connecting a crystal/ceramic resonator for high-speed clock...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.2.2 Frequency Control Register 0 (FCON0) Address: 0F002H Access: R/W Access size: 8/16 bits Initial value: 33H FCON0 OUTC1 OUTC0 OSCM1 OSCM0 SYSC1 SYSC0 Initial value FCON0 is a special function register (SFR) to control the high-speed clock generation circuit and to select system clock.
Page 97
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit Note: − To switch the mode of the high-speed clock generation circuit using the OSCM1 and OSCM0 bits, stop the high-speed oscillation and set the system clock to the low-speed clock (set the ENOSC bit and SYSCLK of FCON1 to “0”).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.2.3 Frequency Control Register 1 (FCON1) Address: 0F003H Access: R/W Access size: 8 bits Initial value: 03H FCON1 LPLL ENMLT ENOSC SYSCLK Initial value FCON1 is a special function register (SFR) to control the high-speed clock generation circuit and to select system clock.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit Description of Operation 6.3.1 Low-Speed Clock 6.3.1.1 Low-Speed Clock Generation Circuit Figure 6-2 shows the configuration of the low-speed clock generation circuit. A low-speed clock generation circuit is provided with an external 32.768 kHz crystal. To match the oscillation...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.1.2 Operation of Low-Speed Clock Generation Circuit The low-speed clock generation circuit is activated by the occurrence of power ON reset. A low-speed clock (LSCLK) is supplied to the peripheral circuits after the elapse of the low-speed oscillation start period (T ) and oscillation stabilization period (8192 counts) after powered on.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.2 High-Speed Clock Setting of the OSCM1 and OSCM0 bits of the frequency control register 0 (FCON0) allows selection of the 500 kHz RC oscillation mode, crysta/ceramic oscillation mode, built-in PLL (Phase Locked Loop) oscillation mode, or external clock input mode for the high-speed clock generation circuit.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.2.2 Crystal/Ceramic Oscillation Mode In crystal/ceramic oscillation mode, both the P10/OSC0 pin and the P11/OSC1 pin are used for crystal ceramic oscillation. In crystal/ceramic oscillation mode, a crystal or a ceramic resonator is externally connected to the P10/OSC0 and P11/OSC1 pins.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.2.3 Built-in PLL Oscillation Mode The PLL oscillation circuit generates a clock of 8.192 MHz (= 32.768 kHz × 250) ±2.5%. When the PLL oscillation clock (OSCLK) reaches within 8.192 MHz±2.5%, the LPLL flag of FCON1 is set.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.2.5 Operation of High-Speed Clock Generation Circuit The high-speed clock generation circuit is activated in 500Hz RC oscillation mode by power-on reset generation. As a result of the occurrence of power-on reset, the circuit goes into system reset mode and then shifts to program...
Page 105
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit Figure 6-9 shows the waveforms of the high-speed clock generation circuit in crystal/ceramic oscillation mode. High-speed oscillation enable ENOSC : High-speed/PLL oscillation start time : High-speed/PLL oscillation start time High-speed oscillation High-speed oscillation waveform...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.3.3 Switching of System Clock The system clock can be switched between high-speed clock (HSCLK) and low-speed clock (LSCLK) by using the frequency control registers (FCON0, FCON1). Figure 6-10 shows a flow of system clock switching processing (HSCLK→LSCLK) and Figure 6-11 shows a flow of system clock switching processing (LSCLK→HSCLK).
Page 107
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit Set high-speed oscillation mode before switching the system System clock switching clock. 500 kHz RC used? When using crystal/ceramic oscillation, PLL Voltage detection by oscillation, or an external clock mode, check that is 1.8V or higher by using BLD.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit Specifying port registers When you want to make sure clock output functions are working, please check related port registers are specified. See Chapter 19, “Port2” for detail about the port registers. 6.4.1 Functioning P21 (OUTCLK) as the high speed clock output Set P21MD bit (bit1 of P2MOD register) to “1”...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 6 Clock Generation Circuit 6.4.2 Functioning P20 (LSCLK) as the low speed clock output Set P20MD bit (bit0 of P2MOD register) to “1” for specifying the low speed clock output as the secondary function of P20.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter Time Base Counter Overview This LSI includes a low-speed time base counter (LTBC) and a high-speed time base counter (HTBC) that generate base clocks for peripheral circuits. By using the time base counter, it is possible to generate events periodically.
Page 112
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter HSCLK HTBDR HTBCLK (4.096 MHz) 1/n-Counter 4.096 MHz to 256 Hz RESET (Internal signal) Data bus HTBDR: High-speed time base counter frequency divide register Figure 7-2 Configuration of High-Speed Time Base Counter...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter Description of Registers 7.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Low-speed time base counter 0F00AH LTBR register High-speed time base counter 0F00BH HTBDR frequency divide register...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.2.2 Low-Speed Time Base Counter (LTBR) Address: 0F00AH Access: R/W Access size: 8 bits Initial value: 00H LTBR T1HZ T2HZ T4HZ T8HZ T16HZ T32HZ T64HZ T128HZ Initial value LTBR is a special function register (SFR) to read the T128HZ-T1HZ outputs of the low-speed time base counter.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.2.3 High-Speed Time Base Counter Divide Register (HTBDR) Address: 0F00BH Access: R/W Access size: 8 bits Initial value: 00H HTBDR HTD3 HTD2 HTD1 HTD0 Initial value HTBDR is a special function register (SFR) to set the divide ratio of the 4-bit, 1/n counter.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.2.4 Low-Speed Time Base Counter Frequency Adjustment Registers L and H (LTBADJL, LTBADJH) Address: 0F00CH Access: R/W Access size: 8/16 bits Initial value: 00H LTBADJL LADJ7 LADJ6 LADJ5 LADJ4 LADJ3 LADJ2 LADJ1...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter Description of Operation 7.3.1 Low-Speed Time Base Counter The low-speed time base counter (LTBC) starts counting from 0000H on the LSCLK falling edge after system reset. The T128HZ, T32HZ, T16HZ, and T2HZ outputs of LTBC are used as time base interrupts and an interrupt is requested on the falling edge of each output.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.3.2 High-Speed Time Base Counter The high-speed time base counter is configured as a 4-bit 1/n counter (n = 1 to 16). In the 4-bit 1/n counter, the divided clock (1/16×HSCLK to 1/1×HSCLK) selected by the high-speed time base counter divide register (HTBDR) is generated as HTBCLK.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.3.3 Low-Speed Time Base Counter Frequency Adjustment Function Frequency adjustment (Adjustment range: Approx. −488ppm to +488ppm. Adjustment accuracy: Approx. 0.48ppm) is possible for outputs of T8KHZ to T1HZ of LTBC by using the low-speed time base counter frequency adjust registers (LTBADJH and LTBADJL).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 7 Time Base Counter 7.3.4 A signal generation for 16bit timer 2-3 frequency measurement mode A signal (437C) used for 16bit timer 2-3 frequency measurement mode is generated in the time base conter block. See Chapter 10, “Timer” for more detail about the frequency measurement function.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 8 Capture Capture Overview This LSI has two channels of capture circuits that capture the T4KHZ to T32HZ signals of the low-speed base counter (LTBC) to the capture register at the occurrence of P00 and P01 interrupts. The circuits capture timings at which each interrupt occurred, based on the time from the time base counter.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 8 Capture Description of Registers 8.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F090H Capture control register CAPCON 0F091H Capture status register CAPSTAT 0F092H Capture data register 0 CAPR0 ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 8 Capture 8.2.2 Capture Control Register (CAPCON) Address: 0F090H Access: R/W Access size: 8 bits Initial value: 00H CAPCON ECAP1 ECAP0 Initial value CAPCON is a special function register (SFR) to control the capture circuit.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 8 Capture 8.2.3 Capture Status Register (CAPSTAT) Address: 0F091H Access: R/W Access size: 8 bits Initial value: 00H CAPSTAT CAPF1 CAPF0 Initial value CAPSTAT is a special function register (SFR) to indicate a state of the capture circuit.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 8 Capture Description of Operation The capture circuit starts the capture operation by setting the ECAP0 or ECAP1 bit of the capture control register (CAPCON). When the input trigger from the P00 or P01 pin selected by the external interrupt control register 0 or 1 (EXICON0 or EXICON1) is generated and the P00 or P01 interrupt request flag (QP00 or QP01) is set to “1”, the T4KHZ to T32HZ...
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 9 1 kHz Timer (1kHzTM) 1 kHz Timer (1kHzTM) Overview This LSI includes a 1 kHz timer to measure 1/1000 seconds. The 1 kHz timer counts the 1 kHz signal created by dividing the T2KHZ output frequency (2.048 kHz) of the low-speed time base counter (LTBC) and generates a 10 Hz or 1 Hz interrupt (1 kHz timer interrupt).
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 9 1 kHz Timer (1kHzTM) Description of Registers 9.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F080H 1 kHz timer count register L T1KCRL 8/16 T1KCR 0F081H 1 kHz timer count register H T1KCRH ...
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 9 1 kHz Timer (1kHzTM) Description of Operation By setting the T1KRUN bit of the 1kHz timer control register (T1KCON) to “1”, the 1kHz timer starts counting of the 1kHz timer counter registers L or H (T1KCRL, T1KCRH).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers Timers 10.1 Overview This LSI includes 4 channels of 8-bit timers. For the input clock, see Chapter 6, “Clock Generation Circuit”. 10.1.1 Features • The timer interrupt (TMnINT) is generated when the values of timer counter register (TMnC, n=0 to 3) and timer data register (TMnD) coincide.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.2 Description of Registers 10.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Timer 0 data register 0F030H TM0D 8/16 0FFH TM0DC 0F031H Timer 0 counter register TM0C 0F032H Timer 0 control register 0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.2.2 Timer 0 Data Register (TM0D) Address: 0F030H Access: R/W Access size: 8 bits Initial value: 0FFH TM0D T0D7 T0D6 T0D5 T0D4 T0D3 T0D2 T0D1 T0D0 Initial value TM0D is a special function register (SFR) to set the value to be compared with the timer 0 counter register (TM0C) value.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.2.3 Timer 1 Data Register (TM1D) Address: 0F034H Access: R/W Access size: 8 bits Initial value: 0FFH TM1D T1D7 T1D6 T1D5 T1D4 T1D3 T1D2 T1D1 T1D0 Initial value TM1D is a special function register (SFR) to set the value to be compared with the value of the timer 1 counter register (TM1C).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.2.4 Timer 2 Data Register (TM2D) Address: 0F038H Access: R/W Access size: 8 bits Initial value: 0FFH TM2D T2D7 T2D6 T2D5 T2D4 T2D3 T2D2 T2D1 T2D0 Initial value TM2D is a special function register (SFR) to set the value to be compared with the value of the timer 2 counter register (TM2C).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.2.5 Timer 3 Data Register (TM3D) Address: 0F03CH Access: R/W Access size: 8 bits Initial value: 0FFH TM3D T3D7 T3D6 T3D5 T3D4 T3D3 T3D2 T3D1 T3D0 Initial value TM3D is a special function register (SFR) to set the value to be compared with the value of the timer 3 counter register (TM3C).
Prohibited (timer 2 and timer 3 does not operate) 16-bit timer frequency measurement mode • T2FMA7~T2FMA4 (bit 7~4) The T2FMA7 bit ~T2FMA4 bit shows the LSI has the frequency measurement mode. Those bits are read-only and always return 1010b on ML610Q421/ML610Q422/ML610421. T2FMA7 T2FMA6 T2FMA5...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.3 Description of Operation 10.3.1 Timer mode operation The timer counters (TMnC) are set to an operating state (TnSTAT are set to “1”) on the first falling edge of the timer clocks (TnCK) that are selected by the Timer 0 to 3 control register 0 (TMnCON0) when the TnRUN bits of timer 0 to 3 control register 1 (TMnCON1) are set to “1”...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.3.2 16-bit timer frequency measurement mode operation The frequency measurement mode in 16-bit timer 2&3, is used to count the frequency of 500kHz RC oscillation clock which typically has temperature variation and production tolerance.
Page 157
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers (4) Set “FFH” to both TM2D register and TM3D register. (5) Clear both TM2C register and TM3C register to “00H”. (6) Set T2RUN bit (bit0 of TM2CON1 register) to “1” to start counting the timer.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers 10.3.3 16-bit timer frequency measurement mode application for setting uart baud-rate For example, when the target baud-rate is 9600bps and the clock is HSCLK(500kHz), the UART0 baud-rate register (UA0BRTH, UA0BRTL) should be set as follows. See Section 14.3.2. in UART chapter.
Page 159
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 10 Timers Table 10-6 Baud-rate and theoretical accuracy for P Version Baud-rate[bps] Data setting to UA0BRTH register and UA0BRTH register Theoretical accuracy Round off {N1/4 (2bit right-shift) } - (minus) 1. ~ +/- 2% Round off {N1/8 (3bit right-shift) } - (minus) 1.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM 11.1 Overview This LSI includes one channel of 16-bit PWM (Pulse Width Modulation). The PWM output (PWM0) function is assigned to P43(Port 4) and P34(Port 3) as the tertiary function. For the functions of port 4 and port3, see Chapter 21, “Port 4” and Chapter 20, “Port 3”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM 11.1.3 List of Pins Pin name Description PWM0 output pin P43/PWM0 Used for the secondary function of the P43 pin. PWM0 output pin P34/PWM0 Used for the secondary function of the P34 pin. 11.2 Description of Registers 11.2.1...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM 11.3 Description of Operation The PWM0 counter registers (PW0CH, PW0CL) are set to an operating state (P0STAT is set to “1”) on the first falling edge of the PWM clock (P0CK) that are selected by the PWM0 control register 0 (PW0CON0) when the P0RUN bit of PWM0 control register 1 (PW0CON1) is set to “1”...
Page 169
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM After the P0RUN bit is set to “1”, counting starts in synchronization with the PWM clock. This causes an error of up to 1 clock pulse to the time the first PWM interrupt is issued. The PWM interrupt period from the second time is fixed.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM 11.4 Specifying port registers When you want to make sure the PWM function is working, please check related port registers are specified. See Chapter 21, “Port 4” and Chapter 20, “Port 3” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 11 PWM 11.4.2 Functioning P34 (PWM0) as the PWM output Set P34MD1 bit (bit4 of P3MOD1 register) to “1” and set P34MD0 bit (bit4 of P3MOD0 register) to “0”, for specifying the PWM output as the tertiary function of P34.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer Watchdog Timer 12.1 Overview This LSI incorporates a watchdog timer (WDT) that operates at a system reset unconditionally (free-run operation) in order to detect an undefined state of the MCU and return from that state.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer 12.2.2 Watchdog Timer Control Register (WDTCON) Address: 0F00EH Access: W Access size: 8 bits Initial value: 00H WDTCON WDP/d0 Initial value WDTCON is a special function register (SFR) to clear the WDT counter.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer 12.2.3 Watchdog Timer Mode Register (WDTMOD) Address: 0F00FH Access: W Access size: 8 bits Initial value: 02H WDTMOD WDT1 WDT0 Initial value WDTMOD is a special function register to set the overflow period of the watchdog timer.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer 12.3 Description of Operation The WDT counter starts counting after the system reset has been released and the low-speed clock oscillation start.. Write "5AH" when the internal pointer (WDP) is "0"and then the WDT counter is cleared by writing "0A5H" when WDP is "1".
Page 178
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer Figure 12-2 shows an example of watchdog timer operation. Program Occurrence of start Low-speed abnormality oscillation start WDTMOD RESET_S WDTMOD setting setting System reset Data: WDTCON Write WDTP...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Watchdog Timer 12.3.1 Handling example when you do not want to use the watch dog timer WDT counter is a free-run counter that starts count-up automatically after the system reset released and the low-speed clock (LSCLK) starts oscillating. If the WDT counter gets overflow, the WDT non-maskable interrupt occurs and then a system reset occurs.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port Synchronous Serial Port 13.1 Overview This LSI includes one channel of the 8/16-bit synchronous serial port (SSIO) and can also be used to control the device incorporated with the SPI interface by using one GPIO as the chip enable pin.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.1.3 List of Pins Pin name Description P40/SIN0 Receive data input. Used for the tertiary function of the P40 and P44 pins. P44/SIN0 P41/SCK0 Synchronous clock input/output. Used for the tertiary function of the P41 and P45 pins.
Page 183
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.2 Description of Registers 13.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Serial port 0 transmit/receive 0F280H SIO0BUFL 8/16 buffer L SIO0BUF Serial port 0 transmit/receive 0F281H...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.2.3 Serial Port Control Register (SIO0CON) Address: 0F282H Access: R/W Access size: 8 bits Initial value: 00H SIO0CON S0EN Initial value SIO0CON is a special function register (SFR) to control the synchronous serial port.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.2.4 Serial Port Mode Register 0 (SIO0MOD0) Address: 0F284H Access: R/W Access size: 8 bits Initial value: 00H SIO0MOD0 S0LG S0MD1 S0MD0 S0DIR Initial value SIO0MOD0 is a special function register (SFR) to set mode of the synchronous serial port.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.2.5 Serial Port Mode Register 1 (SIO0MOD1) Address: 0F285H Access: R/W Access size: 8 bits Initial value: 00H SIO0MOD1 S0CKT S0CK2 S0CK1 S0CK0 Initial value SIO0MOD1 is a special function register (SFR) to set mode of the synchronous serial port.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.3 Description of Operation 13.3.1 Transmit Operation When “1” is written to the S0MD1 bit and “0” is written to the S0MD0 bit of the serial mode register (SIO0MOD0), this LSI is set to a transmit mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.3.2 Receive Operation When “0” is written to the S0MD1 bit and “1” is written to the S0MD0 bit of the serial mode register (SIO0MOD0), this LSI is set to a receive mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.3.3 Transmit/Receive Operation When “1” is written to the S0MD1 bit and “1” is written to the S0MD0 bit of the serial mode register (SIO0MOD0), this LSI is set to a transmit/receive mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.4 Specifying port registers When you want to make sure the SSIO function is working, please check related port registers are specified. See Chapter 21, “Port 4” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.4.2 Functioning P42 (SOUT0), P41 (SCK0) and P40 (SIN0) as the SSIO/ ”Slave mode” Set P42MD1-P40MD1 bits(bit2-bit0 of P4MOD1 register) to “1” and set P42MD0-P40MD0(bit2-bit0 of P4MOD0 register) to “0”, for specifying the SSIO as the secondary function of P42, P41 and P40. They are the same setting as those in the case of master mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.4.3 Functioning P46 (SOUT0), P45 (SCK0) and P44 (SIN0) as the SSIO/ ”Master mode” Set P46MD1-P44MD1 bits(bit6-bit4 of P4MOD1 register) to “1” and set P46MD0-P44MD0(bit6-bit4 of P4MOD0 register) to “0”, for specifying the SSIO as the secondary function of P46, P45 and P44.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 13 Synchronous Serial Port 13.4.4 Functioning P46 (SOUT0), P45 (SCK0) and P44 (SIN0) as the SSIO/ ”Slave mode” Set P46MD1-P44MD1 bits(bit6-bit4 of P4MOD1 register) to “1” and set P46MD0-P44MD0(bit6-bit4 of P4MOD0 register) to “0”, for specifying the SSIO as the secondary function of P46, P45 and P44. They are the same setting as those in the case of master mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART UART 14.1 Overview This LSI includes 1 channel of UART (Universal Asynchronous Receiver Transmitter) which is an asynchrnous serial interface. For the input clock, see Chapter 6, “Clock Generation Circuit”. The use of UART requires setting of the secondary functions of Port 4. For setting of the secondary functions of Port 4, see Chapter 21, “Port 4”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2 Description of Registers 14.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F290H UART0 transmit/receive buffer UA0BUF 0F291H UART0 control register UA0CON 0F292H UART0 mode register 0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2.2 UART0 Transmit/Receive Buffer (UA0BUF) Address: 0F290H Access: R/W Access size: 8 bits Initial value: 00H UA0BUF U0B7 U0B6 U0B5 U0B4 U0B3 U0B2 U0B1 U0B0 Initial value UA0BUF is a special function register (SFR) to store the transmit/receive data of the UART.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2.3 UART0 Control Register (UA0CON) Address: 0F291H Access: R/W Access size: 8 bits Initial value: 00H UA0CON U0EN Initial value UA0CON is a special function register (SFR) to start/stop communication of the UART.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2.4 UART0 Mode Register 0 (UA0MOD0) Address: 0F292H Access: R/W Access size: 8/16 bits Initial value: 00H UA0MOD0 — — — U0RSEL — U0CK1 U0CK0 U0IO Initial value UA0MOD0 is a special function register (SFR) to set the transfer mode of the UART.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2.5 UART0 Mode Register 1 (UA0MOD1) Address: 0F293H Access: R/W Access size: 8/16 bits Initial value: 00H UA0MOD1 — U0DIR U0NEG U0STP U0PT1 U0PT0 U0LG1 U0LG0 Initial value UA0MOD1 is a special function register (SFR) to set the transfer mode of the UART.
Page 202
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART • U0DIR (bit 6) The U0DIR bit is used to select LSB first or MSB first in the communication of the UART. U0DIR Description LSB first (initial value) MSB first Note: Always set the UA0MOD1 register while communication is stopped, and do not rewrite it during communication.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.2.7 UART0 Status Register (UA0STAT) Address: 0F296H Access: R/W Access size: 8 bits Initial value: 00H UA0STAT — — — — U0FUL U0PER U0OER U0FER Initial value UA0STAT is a special function register (SFR) to indicate the state of transmit or receive operation of the UART.
Page 205
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART • U0FUL (bit 3) The U0FUL bit is used to indicate the state of the transmit/receive buffer of the UART. When transmit data is written in UA0BUF in transmit mode, this bit is set to “1” and when transmit data is transferred to the shift register, this bit is set to “0”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.3 Description of Operation 14.3.1 Transfer Data Format In the transfer data format, one frame contains a start bit, a data bit, a parity bit, and a stop bit. In this format, 5 to 8 bits can be selected as data bit.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.3.2 Baud Rate Baud rates are generated by the baud generator. The baud rate generator generates a baud rate by counting the clock selected by the baud rate clock selection bits (U0CK1, U0CK0) of the UART0 mode register 0 (UA0MOD0). The count value of the baud rate generator can be set by writing it in the UART0 baud rate register H or L (UA0BRTH, UA0BRTL).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.3.3 Transmit Data Direction Figure 14-4 shows the relationship between the transmit/receive buffer and the transmit/receive data. • Data length: 8 bits LSB reception LSB reception U0B7 U0B6 U0B5 U0B3 U0B2 U0B0 U0B4 U0B1...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.3.4 Transmit Operation Transmission is started by setting the U0IO bit of the UART0 mode register 0 (UA0MOD0) to “0” to select transmit mode and setting the U0EN bit of the UART0 control register (UA0CON) to “1”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.3.5 Receive Operation Reception is started by selecting a receive data input pin using the U0RSEL bit of the UART0 mode register 0 (UA0MOD0), then setting the U0IO bit of UA0MOD0 to “0” to select receive mode, and then setting the U0EN bit of the UART0 control register (UA0CON) to “1”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART 14.4 Specifying port registers When you want to make sure the UART function is working, please check related port registers are specified. See Chapter 21, “Port 4” and Chapter 18, “Port 0” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART Note: The receive pin (RXD) is selected by U0RSEL bit(bit4 of UA0MOD0 register). Reseting the bit to “0” (initial value) selects P02 pin and setting the bit to “1” selects P43 pin. 14.4.2 Functioning P43(TXD0) and P02(RXD0) as the UART.
Page 215
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 14 UART P02 is an input-only port, so there is no need to specify data direction (i.e. input or output). Data setting to P02C1 bit and P02C0 bit, depend on the application circuit connected to P02.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface C Bus Interface 15.1 Overview This LSI includes 1 channel of I C bus interface (master). The secondary functions of Port 4 are assigned to the I C bus interface data input/output pin and the I C bus interface clock input/output pin.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2 Description of Registers 15.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F2A0H C bus 0 receive register I2C0RD — 0F2A1H C bus 0 slave address register I2C0SA —...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.2 C Bus 0 Receive Register (I2C0RD) Address: 0F2A0H Access: R Access size: 8 bits Initial value: 00H I2C0RD I20R7 I20R6 I20R5 I20R4 I20R3 I20R2 I20R1 I20R0 Initial value I2C0RD is a read-only special function register (SFR) to store receive data.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.3 C Bus 0 Slave Address Register (I2C0SA) Address: 0F2A1H Access: R/W Access size: 8 bits Initial value: 00H I2C0SA I20A6 I20A5 I20A4 I20A3 I20A2 I20A1 I20A0 I20RW Initial value I2C0SA is a special function register (SFR) to set the address and the transmit/receive mode of the slave device.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.4 C Bus 0 Transmit Data Register (I2C0TD) Address: 0F2A2H Access: R/W Access size: 8 bits Initial value: 00H I2C0TD I20T7 I20T6 I20T5 I20T4 I20T3 I20T2 I20T1 I20T0 Initial value I2C0TD is a special function register (SFR) to set transmit data.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.5 C Bus 0 Control Register (I2C0CON) Address: 0F2A3H Access: R/W Access size: 8 bits Initial value: 00H I2C0CON I20ACT — — — — I20RS I20SP I20ST Initial value I2C0CON is a special function register (SFR) to control transmit and receive operations.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.6 C Bus 0 Mode Register (I2C0MOD) Address: 0F2A4H Access: R/W Access size: 8 bits Initial value: 00H I2C0MOD — — — I20SYN I20DW1 I20DW0 I20MD I20EN Initial value I2C0MOD is a special function register (SFR) to set operating mode.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.2.7 C Bus 0 Status Register (I2C0STAT) Address: 0F2A5H Access: R/W Access size: 8 bits Initial value: 00H I2C0STAT — — — — — I20ER I20ACR I20BB Initial value: I2C0STAT is a read-only special function register (SFR) to indicate the state of the I C bus interface.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.3 Description of Operation 15.3.1 Communication Operating Mode Communication is started when communication mode is selected by using the I C bus 0 mode register (I2C0MOD), the C function is enabled by using the I20EN bit, a slave address and a data communication direction are set in the I bus 0 slave address register, and “1”...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface When “1” is written to the I20ST bit in the control register setting wait state, the LSI shifts to the data transmit or receive mode. When “1” is written to the I20SP bit, the LSI shifts to the stop condition. When “1” is written to the I20RS bit and I20ST bit, the operation shifts to the repeated start condition.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.3.2 Communication Operation Timing Figures 15-2 to 15-4 show the operation timing and control method for each communication mode. Transmission Reception Start Stop Repeated start Reception of Transmission of Transmission of...
Page 228
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface Figure 15-5 shows the operation timing and control method when an acknowledgment error occurs. Acknowledgment error Register I2C0SA=”xxxxxxx0B” setting I2C0CON=”01H” I2C0CON=”02H” Value of I2C0SA I2C0INT I20ST I2C0RD Value of I2C0SA I20ACR...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.3.3 Operation Waveforms Figure 15-7 shows the operation waveforms of the SDA and SCL signals and the I20BB flag. Table 15-1 shows the relationship between communication speeds and HSCLK clock counts.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 15 I C Bus Interface 15.4 Specifying port registers When you want to make sure the I2C bus interface function is working, please check related port registers are specified. See Chapter 21, “Port 4” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 16 NMI Pin NMI Pin 16.1 Overview This LSI includes an input port (NMI) which generates a non-maskable interrupt. For interrupts see Chapter 5, “Interrupts”. 16.1.1 Features • Non-maskable interrupt pin. • Allows selection of an input with a pull-up resistor or a high-impedance input.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 16 NMI Pin 16.2 Description of Registers 16.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Depends on 0F200H NMI data register NMID pin state 0F201H NMI control register NMICON...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 16 NMI Pin 16.2.2 NMI Data Register (NMID) Address: 0F200H Access: R Access size: 8 bits Initial value: Depends on the pin state NMID Initial value NMID is a read-only special function register (SFR) for reading the NMI pin level.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 16 NMI Pin 16.2.3 NMI Control Register (NMICON) Address: 0F201H Access: R/W Access size: 8 bits Initial value: 00H NMICON NMIC Initial value NMICON is a special function register (SFR) to select the input mode of the NMI pin.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 16 NMI Pin 16.3 Description of Operation The non-maskable NMI interrupt (NMIINT) is assigned to the NMI pin. The NMI pin allows selection of an input mode with a pull-up resistor or a high-impedance input mode by using the NMI control register (NMICON).
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 Port 0 17.1 Overview This LSI includes Port 0 (P00 to P03) which is a 4-bit input port. 17.1.1 Features • All bits support a maskable interrupt function. • Allows selection of interrupt disabled mode, falling-edge interrupt mode, rising-edge interrupt mode, or both-edge interrupt mode for each bit.
Page 239
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 17.2 Description of Registers 17.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Depends 0F204H Port 0 data register on pin status 0F206H Port 0 control register 0 P0CON0...
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 17.2.2 Port 0 Data Register (P0D) Address: 0F204H Access: R Access size: 8 bits Initial value: Depends on pin status P03D P02D P01D P00D Initial value P0D is a special function register (SFR) to only read the pin level of Port 0.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 17.2.5 External Interrupt Control Register 2 (EXICON2) Address: 0F022H Access: R/W Access size: 8 bits Initial value: 00H EXICON2 P03SM P02SM P01SM P00SM Initial value EXICON2 is a special function register (SFR) to select detection of signal edge for interrupts with or without sampling.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 17.3 Description of Operation For each pin of Port 0, the setting of the Port 0 control registers 0 and 1 (P0CON0 and P0CON1) allows selection of high-impedance input mode, input mode with a pull-down resistor, or input mode with a pull-up resistor.
Page 245
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 17 Port 0 SYSCLK P0n pin P0nINT Interrupt request QP0n (c) When Both-Edge Interrupt Mode without Sampling is Selected T16KHZ SYSCLK P0n pin P0nINT Interrupt request QP0n n = 0, 1, 2, 3 (d) When Rising-Edge Interrupt Mode with Sampling is Selected Figure 17-2 P00 to P03 Interrupt Generation Timing 17 –...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 18 Port 1 Port 1 18.1 Overview This LSI incorporates a 2-bit input port, Port 1 (P10, P11). Port 1 can have a high-speed oscillation pin or an external clock input pin as a secondary function. When the port is used as a high-speed oscillation pin, the P11 pin functions as an output pin if crystal/ceramic oscillation mode is selected with the OSCM1–0 bits of the FCON0 register.
Page 248
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 18 Port 1 18.2 Description of Registers 18.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Depends 0F208H Port 1 data register on pin status 0F20AH Port 1 control register 0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 18 Port 1 18.2.2 Port 1 Data Register (P1D) Address: 0F208H Access: R Access size: 8 bits Initial value: Depends on pin status P11D P10D Initial value P1D is a special function register (SFR) dedicated to read the input level of the Port 1 pin.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 18 Port 1 18.3 Description of Operation 18.3.1 Input Port Function For each pin of Port 1, one of high-impedance input mode, input mode with a pull-down resistor, and input mode with a pull-up resistor can be selected by setting the Port 1 control registers 0 and 1 (P1CON0 and P1CON1). At system reset, high-impedance input mode is selected as the initial state.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 19 Port 2 Port 2 19.1 Overview This LSI includes 3-bit Port 2 (P20 to P22) dedicated to output. Port 2 can output low-speed clock (LSCLK), high-speed output clock (OUTCLK), and melody as a secondary function.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 19 Port 2 19.2 Description of Registers 19.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F210H Port 2 data register 0F212H Port 2 control register 0 P2CON0 8/16 P2CON 0F213H...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 19 Port 2 19.2.2 Port 2 Data Register (P2D) Address: 0F210H Access: R/W Access size: 8 bits Initial value: 00H P22D P21D P20D Initial value P2D is a special function register (SFR) to set the output value of Port 2. The value of this register is output to Port 2.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 19 Port 2 19.2.4 Port 2 Mode Register (P2MOD) Address: 0F214H Access: R/W Access size: 8 bits Initial value: 00H P2MOD P22MD P21MD P20MD Initial value P2MOD is a special function register (SFR) to select the primary function or the secondary function of Port 2 [Description of Bits] •...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 19 Port 2 19.3 Description of Operation 19.3.1 Output Port Function For each pin of Port 2, any one of high-impedance output mode, P-channel open drain output mode, N-channel open drain output mode, and CMOS output mode can be selected by setting the Port 2 control registers 0 and 1 (P2CON0 and P2CON1).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 Port 3 20.1 Overview This LSI includes Port 3 (P30 to P35), which is a 6-bit input/output port. This port can also be used as the RC-ADC (channel 0) oscillation pins (IN0, CS0, RS0, RT0, RCT0, RCM) and the PWM output pin in secondary and tertiary modes.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 20.1.3 List of Pins Pin name Primary function Secondary function Tertiary function Oscillation waveform input pin for P30/IN0 Input/output port RC-ADC Reference capacitor connection P31/CS0 Input/output port pin for RC-ADC ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 20.2 Description of Registers 20.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F218H Port 3 data register 0F219H Port 3 direction register P3DIR 0F21AH Port 3 control register 0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 20.2.2 Port 3 data register (P3D) Address: 0F218H Access: R/W Access size: 8 bits Initial value: 00H P35D P34D P33D P32D P31D P30D Initial value P3D is a special function register (SFR) to set the value to be output to the Port 3 pin or to read the input level of the Port 3.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 20.2.3 Port 3 Direction Register (P3DIR) Address: 0F219H Access: R/W Access size: 8 bits Initial value: 00H P3DIR P35DIR P34DIR P33DIR P32DIR P31DIR P30DIR Initial value P3DIR is a special function register (SFR) to select the input/output mode of Port 3.
Page 268
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 • P32MD1, P32MD0 (bit 2) The P32MD1 and P32MD0 bits are used to select the primary or secondary function of the P32 pin. P32MD1 P32MD0 Description General-purpose input/output mode (initial value) Reference resistor connection pin for RC-ADC (channel 0)
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 20 Port 3 20.3 Description of Operation 20.3.1 Input/Output Port Functions For each pin of Port 3, either output or input is selected by setting the Port 3 direction register (P3DIR). In output mode, high-impedance output mode, P-channel open drain output mode, N-channel open drain output mode, or CMOS output mode can be selected by setting the Port 3 control registers 0 and 1 (P3CON0 and P3CON1).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 Port 4 21.1 Overview This LSI includes Port 4 (P40 to P47) which is an 8-bit input/output port. This port can have the I2C bus, RC-ADC, synchronous serial port, and PWM output functions as secondary and tertiary functions.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 21.1.3 List of Pins Pin name Primary function Secondary function Tertiary function C bus 0 data input/output P40/SDA/SIN0 Input/output port SSIO0 data input pin C bus 0 clock input/output P41/SCL/SCK0 Input/output port SSIO0 clock input/output pin...
Page 273
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 21.2 Description of Registers 21.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F220H Port 4 data register 0F221H Port 4 direction register P4DIR 0F222H Port 4 control register 0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 21.2.2 Port 4 Data Register (P4D) Address: 0F220H Access: R/W Access size: 8 bits Initial value: 00H P47D P46D P45D P44D P43D P42D P41D P40D Initial value P4D is a special function register (SFR) to set the value to be output to the Port 4 pin or to read the input level of the Port 4.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 21.2.3 Port 4 Direction Register (P4DIR) Address: 0F221H Access: R/W Access size: 8 bits Initial value: 00H P4DIR P47DIR P46DIR P45DIR P44DIR P43DIR P42DIR P41DIR P40DIR Initial value P4DIR is a special function register (SFR) to select the input/output mode of Port 4.
Page 277
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 When output mode is selected When input mode is selected Setting of P44 pin (P44DIR bit = “0”) (P44DIR bit = “1”) P44C1 P44C0 Description High-impedance output (initial value) High-impedance input P-channel open drain output...
Page 279
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 • P44MD1, P44MD0 (bit 4) The P44MD1 and P44MD0 bits are used to select the primary, secondary, or tertiary function of the P44 pin. P44MD1 P44MD0 Description General-purpose input/output mode (initial value) RC oscillation waveform input pin for RC-AD (channel 1)
Page 280
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 When using RC-ADC as the secondary function, specify each pin be “High-impedance input” even the RC oscillation monitor pin. Pull-up or Pull-down input makes drawing the current. 21 – 10...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 21 Port 4 21.3 Description of Operation 21.3.1 Input/Output Port Functions For each pin of Port 4, either output or input is selected by setting the Port 4 direction register (P4DIR). In output mode, high-impedance output mode, P-channel open drain output mode, N-channel open drain output mode, or CMOS output mode can be selected by setting the Port 4 control registers 0 and 1 (P4CON0 and P4CON1).
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A Port A 22.1 Overview This LSI (ML610Q421/ML610421 only) includes Port A (PA0 to PA7) which is an 8-bit input/output port. This function is not included in the ML610Q422. 22.1.1 Features • Allows selection of high-impedance output, P-channel open drain output, N-channel open drain output, or CMOS output for each bit in output mode.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A 22.2 Description of Registers 22.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F250H Port A data register 0F251H Port A direction register PADIR 0F252H Port A control register 0...
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A 22.2.2 Port A Data Register (PAD) Address: 0F250H Access: R/W Access size: 8 bits Initial value: 00H PA7D PA6D PA5D PA4D PA3D PA2D PA1D PA0D Initial value PAD is a special function register (SFR) to set the value to be output to the Port A pin or to read the input level of the Port A.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A 22.2.3 Port A Direction Register (PADIR) Address: 0F251H Access: R/W Access size: 8 bits Initial value: 00H PADIR PA7DIR PA6DIR PA5DIR PA4DIR PA3DIR PA2DIR PA1DIR PA0DIR Initial value PADIR is a special function register (SFR) to select the input/output mode of Port A.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A 22.2.4 Port A Control Registers 0, 1 (PACON0, PACON1) Address: 0F252H Access: R/W Access size: 8/16 bits Initial value: 00H PACON0 PA7C0 PA6C0 PA5C0 PA4C0 PA3C0 PA2C0 PA1C0 PA0C0 Initial value Address: 0F253H Access: R/W...
Page 288
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A When output mode is selected When input mode is selected Setting of PA4 pin (PA4DIR bit = “0”) (PA4DIR bit = “1”) PA4C1 PA4C0 Description High-impedance output (initial value) High-impedance input P-channel open drain output...
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 22 Port A 22.3 Description of Operation 22.3.1 Input/Output Port Functions For each pin of Port A, either output or input is selected by setting the Port A direction register (PADIR). In output mode, high-impedance output mode, P-channel open drain output mode, N-channel open drain output mode, or CMOS output mode can be selected by setting the Port A control registers 0 and 1 (PACON0 and PACON1).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver Melody Driver 23.1 Overview This LSI includes one channel of the melody driver. To use the melody driver, the secondary function of port 2 should be set. For the secondary function of port 2, see Chapter 19, "Port 2".
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.2 Description of Registers 23.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F2C0H Melody 0 control register MD0CON 0F2C1H Melody 0 tempo code register MD0TMP 0F2C2H...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.2.2 Melody 0 Control Register (MD0CON) Address: 0F2C0H Access: R/W Access size: 8 bits Initial value: 00H MD0CON BZMD M0RUN Initial value MD0CON is a special function register (SFR) to control a melody and the buzzer.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.2.3 Melody 0 Tempo Code Register (MD0TMP) Address: 0F2C1H Access: R/W Access size: 8 bits Initial value: 00H MD0TMP M0TM3 M0TM2 M0TM1 M0TM0 Initial value MD0TMP is a special function register (SFR) to set the tempo code of a melody when melody mode is selected and the output mode of a buzzer sound waveform when buzzer mode is selected.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.2.4 Melody 0 Scale Code Register (MD0TON) Address: 0F2C2H Access: R/W Access size: 8 bits Initial value: 00H MD0TON M0TN6 M0TN5 M0TN4 M0TN3 M0TN2 M0TN1 M0TN0 Initial value MD0TON is a special function register (SFR) to set the scale code of a melody when melody mode is selected and a buzzer output frequency when buzzer mode is selected.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.2.5 Melody 0 Tone Length Code Register (MD0LEN) Address: 0F2C3H Access: R/W Access size: 8 bits Initial value: 00H MD0LEN M0LN5 M0LN4 M0LN3 M0LN2 M0LN1 M0LN0 Initial value MD0LEN is a special function register (SFR) to set the tone length code of a melody when melody mode is selected and buzzer output duty when buzzer mode is selected.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3 Description of Operation 23.3.1 Operation of Melody Output Melody is output in the following procedure. (1) Select melody mode by setting the BZMD bit of the melody 0 control register (MD0CON) to “0”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3.2 Tempo Codes A tempo code is set in the melody 0 tempo code register (MD0TEM). Table 23-1 shows the correspondence between tempos and tempo codes. The tempo when all the bits are set to "0" is equal to the shortest tone length (the tempo when the only M0TP0 bit is set to "1").
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3.3 Tone Length Codes A tone length code is set in the melody 0 tone length code register (MD0LEN). Table 23-2 shows the correspondence between tone lengths and tone length codes. The tone length when all the bits are set to "0" is equal to the shortest tone length (the tone length when the only M0LN0 bit is set to "1").
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3.4 Scale Codes A scale code is set in the melody 0 scale code register (MD0TON). In the melody driver, a frequency that can be output is expressed by the following equation. 65536 (where TN is an integer of 4 to 127.)
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3.5 Example of Using Melody Circuit Figure 23-3 shows an example of a melody notation, and Table 23-4 shows note codes of melody examples. = 120 Figure 23-3 Example of Melody Notation Table 23-4 Note Codes of Melody Examples...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.3.6 Operations of Buzzer Output A buzzer sound is output in the following procedure. (1) Select a buzzer mode by setting the BZMD bit of the melody 0 control register (MD0CON) to “1”.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 23 Melody Driver 23.4 Specifying port registers When you want to make sure the Melody/Buzzer function is working, please check related port registers are specified. See Chapter 19, “Port 2” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter RC Oscillation Type A/D Converter 24.1 Overview This LSI has a built-in 2-channel RC oscillation type A/D converter (RC-ADC). The RC-ADC converts resistance values or capacitance values to digital values by counting the oscillator clock whose frequency changes according to the resistor or capacitor connected to the RC oscillator circuits.
Page 306
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.1.3 List of Pins Pin name Description Channel 0 oscillation input pin. P30/IN0 Used for the secondary function of the P30 pin. Channel 0 reference capacitor connection pin. P31/CS0 Used for the secondary function of the P31 pin.
Page 307
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.2 Description of Registers 24.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value RC-ADC Counter A register 0 0F300H RADCA0 — RC-ADC Counter A register 1...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.2.4 RC-ADC Mode Register (RADMOD) Address: 0F308H Access: R/W Access size: 8 bits Initial value: 00H RADMOD RACK2 RACK1 RACK0 RADI Initial value RADMOD is a special function register (SFR) used to select an A/D conversion mode of the RC-ADC.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.2.5 RC-ADC Control Register (RADCON) Address: 0F309H Access: R/W Access size: 8 bits Initial value: 00H RADCON — — — — — — — RARUN Initial value RADCON is a special function register (SFR) used to control A/D conversion operation of the RC-ADC.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.3 Description of Operation Counter A (RADCA0–2) is a 24-bit binary counter for counting the base clock (BSCLK), which is used as the standard of time. Counter A can count up to 0FFFFFFH.
Page 313
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter In Table 24-1, mode No.0 and mode No.7 are modes where external clocks to be input to the IN0 or IN1 pin are used for measurement with the RC oscillator circuit stopped.
Page 314
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter Figures 24-2 to 24-5 show the oscillator circuit configurations, the modes of oscillation for each configuration, and the OM3–0 bit settings. RCT0 Mode of oscillation Oscillates with the reference resistor RS0 and CS0...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter Mode of oscillation Oscillates with the reference resistor RS1 and CS1 Oscillates with the sensor RT1 and CS1 Figure 24-5 When RCOSC1 Is Used for Measurement with One Resistive Sensor 24.3.2...
Page 316
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter Counter A starts counting of the base clock (BSCLK) when RARUN is set to “1” and the RCON signal (signal synchronized with the fall of the base clock) is set to “1”.
Page 317
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter (2) Operation in Counter B reference mode Figure 24-7 shows the operation timing in Counter B reference mode. Following is an example of operation procedure in Counter B reference mode: ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.3.3 Example of Use of RC Oscillation Type A/D Converter This section describes the method of performing A/D conversion for sensor values in Counter A and B reference modes by taking temperature measurement by a thermistor as an example.
Page 320
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter To convert from an RT0 value to a digital value, the ratio is used between a) the oscillation frequency by the thermistor connected to the RT0 pin and the capacitor connected to the CS0 pin and b) the oscillation frequency by the reference resistor (which ideally should have no temperature characteristics) connected to the RS0 pin and the capacitor connected to the CS0 pin.
Page 321
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter Figure 24-14 shows, as an example of method, a timing diagram of one cycle of conversion from analog value RT0 to a digital value, that is, A/D conversion. Basically, one A/D conversion cycle must consist of two steps, as shown in Figure 24-14. The reason for requiring two steps is that the reference resistor and the thermistor must first be oscillated separately and then the ratio between the oscillation frequencies of them is used, as described above.
Page 322
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter A/D conversion procedure is explained below by taking Figure 24-14 as an example. <First Step> <Second Step> Base clock 32.768 kHz BSCLK RADMOD (bits 4–0) ...
Page 323
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter <First Step> Set the base clock to 32.768 kHz. (Write “00H” in FCON0.) Preset “1000000H – nA0” in Counter A. Preset “000000H” in Counter B. Write “01H” in RADMOD to select Counter A reference mode and the oscillation mode that uses reference resistance RS0.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter where t (RS0) is the oscillator clock period by reference resistor RS0 and t (RT0) the oscillator clock period RCCLK RCCLK by thermistor RT0. RC”, t Since the oscillation period is expressed by “t...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.4 Specifying port registers When you want to make sure the RC-ADC function is working, please check related port registers are specified. See Chapter 20, “Port 3” and Chapter 21, “Port 4” for detail about the port registers.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 24 RC Oscillation Type A/D Converter 24.4.2 Functioning P47(RT1), P46(RS1), P45(CS1) and P44(IN1) as the RC-ADC(Ch1) Set P47MD1-P44MD1 bits(bit7-bit4 of P4MOD1 register) to “0” and set P47MD0-P44MD0(bit7-bit4 of P4MOD0 register) to “1”, for specifying the RC-ADC as the secondary function of P47, P46, P45 and P44.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter Successive Approximation Type A/D Converter 25.1 Overview This LSI has a built-in 2-channel successive approximation type A/D converter (SA-ADC). 25.1.1 Features • Built-in sample/hold 12-bit successive approximation type A-D converter, which enables channel selection from 2 channels 25.1.2...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.1.3 List of Pins Pin name Description Positive power supply pin for the successive approximation type A/D converter Reference power supply pin for the successive approximation type A/D converter Negative power supply pin for the successive approximation type ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.2 Description of Registers 25.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value 0F2D0H SA-ADC result register 0L SADR0L 8/16 SADR0 0F2D1H SA-ADC result register 0H...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.2.2 SA-ADC Result Register 0L (SADR0L) Address: 0F2D0H Access: R Access size: 8/16 bits Initial value: 00H SADR0L SAR03 SAR02 SAR01 SAR00 Initial value SADR0L is a special function register (SFR) used to store SA-ADC conversion results on channel 0.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.2.4 SA-ADC Result Register 1L (SADR1L) Address: 0F2D2H Access: R Access size: 8/16 bits Initial value: 00H SADR1L SAR13 SAR12 SAR11 SAR10 Initial value SADR1L is a special function register (SFR) used to store SA-ADC conversion results on channel 1.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.2.6 SA-ADC Control Register 0 (SADCON0) Address: 0F2F0H Access: R/W Access size: 8/16 bits Initial value: 02H SADCON0 SACK SALP Initial value SADCON0 is a special function register (SFR) used to control the operation of the SA-ADC.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.2.7 SA-ADC Control Register 1 (SADCON1) Address: 0F2F1H Access: R/W Access size: 8 bits Initial value: 00H SADCON1 SARUN Initial value SADCON1 is a special function register (SFR) used to control the operation of the SA-ADC.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.3 Description of Operation 25.3.1 Settings of A/D Conversion Channels According to the setting of SA-ADC mode register 0 (SADMOD0), A/D conversion is performed as shown below and A/D conversion results are stored in the SA-ADC result register.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 25 Successive Approximation Type A/D Converter 25.3.2 Operation of the Successive Approximation A/D Converter For direct input, operate SA-ADC in the following procedure. 1. Before starting SA-ADC, start oscillation of the high-speed clock (HSCLK) and wait until the oscillator settles.
When not using the display allocation register A and B (Set DASN bit of DSPMOD1 register to “0”), select type 2 or type 3 (type 1 is not available on ML610Q421/ML610Q422/ML610421) for display registers segment map and control the display with the display register only.
Page 340
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers A) When not using Programmable display allocation function (DASN bit of DSPMOD1 register is “0”) Suitable for the dot matrix type LCD panel whose common/segment array is approximated to the bit array of the display register.
Features The LCD drivers are applicable to various types of LCD panels. The features include: • ML610Q421/ML610421: 400 dots max. (50seg × 8com), 1/1 to 1/8 duty • ML610Q422: 800 dots max. (50seg × 16com), 1/1 to 1/16 duty • 1/3 and 1/4 bias (4 types) •...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.1.2 Configuration of the LCD Drivers Figure 26-4 shows the configuration of the LCD drivers and the bias generation circuit. COM0 COM7/15 SEG0 SEG49 Common Segment Bias generation circuit drivers drivers Regulated power supply...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.1.3 Configuration of the Bias Generation Circuit The bias generation circuit generates LCD drive voltages (V to V by multiplying the voltage (VL1) generated by the voltage regulator with the capacitors (C12 and C34).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.1.4 List of Pins Pin name Description Power supply pin for LCD bias (internally generated) Power supply pin for LCD bias (internally generated) Power supply pin for LCD bias (internally generated) ...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.2.4 Display Mode Register 0 (DSPMOD0) Address: 0F0F2H Access: R/W Access size: 8/16 bits Initial value: 00H DSPMOD0 FRM1 FRM0 DUTY3 DUTY2 DUTY1 DUTY0 Initial value DSPMOD0 is a special function register (SFR) to control the display mode of the LCD drivers.
Page 351
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers • FRM1-FRM0 (bits 6-5) The FRM1 to FRM0 bits are used to select a frame frequency of the LCD drivers. The reference frequency of a frame frequency (LLSCLK = 32.768 kHz) is selectable from 64 Hz, 73 Hz, 85 Hz, or 102...
• DADM1, DADM0 (bits 1-0) DADM1 and DADM0 are used to select a type of display register segment map. Two types are available; type 2, and type 3 (type 1 is not available on ML610Q421/ML610Q422/ML610421) . See section 26.2.9 and section 26.3.2. DADM1...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.2.7 Display Allocation Register A (DS0C0A to DS49C7A) Address: 0F400H to 0F5FFH Access: R/W Access size: 8 bits Initial value: Undefined DSmCnA Initial value DSmCnA (m= 0 to 49, n = 0 to 7) are special function registers (SFRs) that are used for the programmable display allocation function.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.2.8 Display Allocation Register B (DS0C0B to DS49C7B) Address: 0F600H to 0F7FFH Access: R/W Access size: 8 bits Initial value: Undefined DSmCnB Initial value DSmCnB (m= 0 to 49, n = 0 to 7) are special function registers (SFRs) to store segment allocation data.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.3 Description of Operation 26.3.1 Operation of LCD Drivers and Bias Generation Circuit Figure 26-6 shows the operation of the LCD drivers and the bias generation circuit. Reset RESET_N BIASCON.BSON LCD bias voltage...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.3.2 Segment Mapping When the Programmable Display Allocation Function is Not Used When not using the programmable display function (DASN bit of DSPMOD1 register is “0”), three types of segment map are available for the display registers (DSPR00 to 71), selected by the DADM1 bit and DADM0 bit.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.3.3 Segment Mapping When the Programmable Display Allocation Function is Used When the programmable display allocation function is used (DASN bit of DSPMOD1 register is “1”), display registers (DSPR00 to 71) segment mapping can be set in bit units according to the contents of display allocation registers A and B (DSmCnA, DSmCnB: m = 0 to 49, n = 0 to 7).
Page 366
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers In display allocation register A (DSmCnA: m = 0 to 49, n = 0 to 8), set the lower 8 bits (00H to 71H) of the addresses of the display registers (DSPR00 to DSPR71) that are output to common n of segment n. In display allocation register B (DSmCnB: m = 0 to 49, n = 0 to 8), set the bits of the display registers (DSPR00 to DSPR71) that are output to common n of segment m.
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.3.4 Common Output Waveforms Figure 26-9 shows the common output waveforms for 1/8 duty and 1/3 bias and for 1/16 duty and 1/4 bias. Frame frequency Approx. 64Hz/73Hz/85Hz/102Hz COM0 COM1 COM2 COM7 Figure 26-9 (1) Common Output Waveforms for 1/8 Duty and 1/3 Bias...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 26 LCD Drivers 26.3.5 Segment Output Waveforms Figure 26-10 shows the segment output waveforms for 1/8 duty and 1/3 bias and for 1/16 duty and 1/4 bias. Frame frequency Approx. 64Hz/73Hz/85Hz/102Hz Data SEGn Data SEGn Data...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 27 Battery Level Detector Battery Level Detector 27.1 Overview This LSI includes a Battery Level Detector (BLD). 16 levels of threshold voltages can be selected by setting Battery Level Detector control register 0 (BLDCON0). 27.1.1 Features •...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 27 Battery Level Detector 27.2 Description of Registers 27.2.1 List of Registers Address Name Symbol (Byte) Symbol (Word) Size Initial value Battery Level Detector control register 0F0D0H BLDCON0 8/16 BLDCON Battery Level Detector control register 0F0D1H BLDCON1 27 –...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 27 Battery Level Detector 27.3 Description of Operation 27.3.1 Threshold Voltage The threshold voltage (VCMP) is selected by setting the bits of BLDCON0. Table 27-1 shows the threshold voltages and the accuracy. Table 27-1 Threshold Voltages and Accuracy...
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 27 Battery Level Detector 27.3.2 Operation of Battery Level Detector Activation (ON) and deactivation (OFF) of the Battery Level Detector are controlled by setting the ENBL bit of the Battery Level Detector control register (BLDCON1), and the result of the comparison of the power supply voltage (VDD) to the threshold voltage is output to the BLDF bit of BLDCON1.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 28 Power Supply Circuit Power Supply Circuit 28.1 Overview This LSI includes a regulated power supply for the internal logic (VRL) and a regulated power supply for low-speed oscillation (VRX). The VRL outputs the operating voltage, V , of the internal logic, program memory, RAM, etc.
ML610Q421/ML610Q422/ML610421User’s Manual Chapter 28 Power Supply Circuit 28.2 Description of Operation and V become approx. 1.2 V at a system reset. becomes approx. 1.65 V (Typ.) when high-speed oscillation starts in crystal/ceramic oscillation mode or PLL oscillation mode or external clock mode. When high-speed oscillation stops, the voltage becomes about 1.2V (Typ.).
On-Chip Debug Function 29.1 Overview ML610Q421/ML610Q422 has an on-chip debug function allowing Flash memory rewriting. The on-chip debug emulator (uEASE) is connected to ML610Q421/ML610Q422 to perform the on-chip debug function. 29.2 Method of Connecting to On-Chip Debug Emulator Figure 29-1 shows connection to the on-chip debug emulator (uEASE).
ML610Q421/ML610Q422/ML610421 User’s Manual Chapter 29 On-Chip Debug Function 29.3 Flash Memory Rewrite Function Flash memory erase/write can be performed with the the memory mounted on board by using the commands from the on-chip debug emulator (uEASE). For more details on the on-chip debug emulator, see “uEASE User’s Manual”.
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Appendix A Registers Contents of Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F000H Data segment register 0F001H Reset status register RSTAT Undefined 0F002H Frequency control register 0 FCON0 8/16...
Page 386
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F039H Timer 2 counter register TM2C 0F03AH Timer control register 0 TM2CON0 8/16 0A0H TM2CON 0F03BH Timer 2 control register 1 TM2CON1 0F03CH Timer 3 data register...
Page 387
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F115H Display register 15 DSPR15 Undefined 0F116H Display register 16 DSPR16 Undefined 0F117H Display register 17 DSPR17 Undefined 0F118H Display register 18...
Page 388
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F147H Display register 47 DSPR47 Undefined 0F148H Display register 48 DSPR48 Undefined 0F149H Display register 49 DSPR49 Undefined 0F14AH Display register 4A...
Page 389
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F20BH Port 1 control register 1 P1CON1 0F210H Port 2 data register 0F212H Port 2 control register 0 P2CON0 8/16 P2CON 0F213H Port 2 control register 1 P2CON1 ...
Page 390
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F300H RC-ADC counter A register 0 RADCA0 0F301H RC-ADC counterA register 1 RADCA1 0F302H RC-ADC counterA register 2 RADCA2 0F304H RC-ADC counterB register 0 RADCB0 ...
Page 391
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F42AH Display allocation register A DS42C0A Undefined 0F42BH Display allocation register A DS43C0A Undefined 0F42CH Display allocation register A DS44C0A Undefined ...
Page 392
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F45CH Display allocation register A DS28C1A Undefined 0F45DH Display allocation register A DS29C1A Undefined 0F45EH Display allocation register A DS30C1A Undefined ...
Page 393
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F48EH Display allocation register A DS14C2A Undefined 0F48FH Display allocation register A DS15C2A Undefined 0F490H Display allocation register A DS16C2A Undefined ...
Page 394
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F4C0H Display allocation register A DS0C3A Undefined 0F4C1H Display allocation register A DS1C3A Undefined 0F4C2H Display allocation register A DS2C3A Undefined ...
Page 395
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F4F2H Display allocation register A DS50C3A Undefined 0F4F3H Display allocation register A DS51C3A Undefined 0F4F4H Display allocation register A DS52C3A Undefined ...
Page 396
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F524H Display allocation register A DS36C4A Undefined 0F525H Display allocation register A DS37C4A Undefined 0F526H Display allocation register A DS38C4A Undefined ...
Page 397
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F556H Display allocation register A DS22C5A Undefined 0F557H Display allocation register A DS23C5A Undefined 0F558H Display allocation register A DS24C5A Undefined ...
Page 398
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F588H Display allocation register A DS8C6A Undefined 0F589H Display allocation register A DS9C6A Undefined 0F58AH Display allocation register A DS10C6A Undefined ...
Page 399
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F5BAH Display allocation register A DS58C6A Undefined 0F5BBH Display allocation register A DS59C6A Undefined 0F5BCH Display allocation register A DS60C6A Undefined ...
Page 400
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F5ECH Display allocation register A DS44C7A Undefined 0F5EDH Display allocation register A DS45C7A Undefined 0F5EEH Display allocation register A DS46C7A Undefined ...
Page 401
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F61EH Display allocation register B DS30C0B Undefined 0F61FH Display allocation register B DS31C0B Undefined 0F620H Display allocation register B DS32C0B Undefined ...
Page 402
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F650H Display allocation register B DS16C1B Undefined 0F651H Display allocation register B DS17C1B Undefined 0F652H Display allocation register B DS18C1B Undefined ...
Page 403
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F682H Display allocation register B DS2C2B Undefined 0F683H Display allocation register B DS3C2B Undefined 0F684H Display allocation register B DS4C2B Undefined ...
Page 404
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F6B4H Display allocation register B DS52C2B Undefined 0F6B5H Display allocation register B DS53C2B Undefined 0F6B6H Display allocation register B DS54C2B Undefined ...
Page 405
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F6E6H Display allocation register B DS38C3B Undefined 0F6E7H Display allocation register B DS39C3B Undefined 0F6E8H Display allocation register B DS40C3B Undefined ...
Page 406
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F718H Display allocation register B DS24C4B Undefined 0F719H Display allocation register B DS25C4B Undefined 0F71AH Display allocation register B DS26C4B Undefined ...
Page 407
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F74AH Display allocation register B DS10C5B Undefined 0F74BH Display allocation register B DS11C5B Undefined 0F74CH Display allocation register B DS12C5B Undefined ...
Page 408
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F77CH Display allocation register B DS60C5B Undefined 0F77DH Display allocation register B DS61C5B Undefined 0F77EH Display allocation register B DS62C5B Undefined ...
Page 409
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F7AEH Display allocation register B DS46C6B Undefined 0F7AFH Display allocation register B DS47C6B Undefined 0F7B0H Display allocation register B DS48C6B Undefined ...
Page 410
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix A Registers Symbol Symbol Initial Address Name Size (Byte) (Word) value 0F7E0H Display allocation register B DS32C7B Undefined 0F7E1H Display allocation register B DS33C7B Undefined 0F7E2H Display allocation register B DS34C7B Undefined ...
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix B Package Dimensions Appendix B Package Dimensions (Unit: mm) Notes for Mounting the Surface Mount Type Package The surface mount type packages are very susceptible to heat in reflow mounting and humidity absorbed in storage. Therefore, before you perform reflow mounting, contact a ROHM sales office for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times).
Page 412
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics Appendix C Electrical Characteristics Absolute Maximum Ratings = AV = 0V) Parameter Symbol Condition Rating Unit −0.3 to +4.6 Power supply voltage 1 Ta = 25°C −0.3 to +4.6 Power supply voltage 2 Ta = 25°C...
Page 413
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics Recommended Operating Conditions = AV = 0V) Parameter Symbol Condition Range Unit ML610Q421, ML610Q422, −20 to +70 ML610421, °C Operating temperature ML610Q421P, ML610Q422P −40 to +85 1.1 to 3.6 Operating voltage ...
Page 414
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics Operating Conditions of Flash Memory (ML610Q421/ML610Q421 only) = AV = 0V) Parameter Symbol Condition Range Unit °C Operating temperature At erase/program 0 to +40 At erase/program 2.75 to 3.6 Operating voltage At erase/program 2.5 to 2.75...
Page 415
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics DC Characteristics (1/6) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV otherwise specified) (1/6)
Page 416
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics DC Characteristics (2/6) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV otherwise specified) (2/6)
Page 417
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics DC Characteristics (3/6) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV otherwise specified) (3/6)
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics Ta = CPU: In 4.096MHz operating 25°C state.* PLL: In oscillating state. * Ta = -20 Supply current 6 IDD6 A/D: In operating state. to +70°C LCD/BIAS circuits: Operating. * Ta = -40 ...
Page 419
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics DC Characteristics (4/6) (ML610421 only) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV...
Page 420
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics DC Characteristics (5/6) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV otherwise specified) (5/6)
Page 421
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics = 1.8 to 3.6V VIH2 = V IIH2 = 1.3 to 3.6V Input current 2 (when pulled-down) = 1.1 to 3.6V 0.01 (NMI) −200 −30 −2 (P00–P03) = 1.8 to 3.6V VIL2 = V µA...
Page 423
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics Measuring circuit 3 (*2) (*1) *1: Input logic circuit to determine the specified measuring conditions. *2: Measured at the specified output pins. Measuring circuit 4 (*3) *3: Measured at the specified output pins.
Page 424
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics AC Characteristics (External Interrupt) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P Version, unless = 1.1 to 3.6V, AV = 2.2 to 3.6V, V = AV...
Page 425
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics AC Characteristics (Synchronous Serial Port) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P Version, unless = 1.3 to 3.6V, AV = 2.2 to 3.6V, V = AV...
Page 426
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics AC Characteristics (I C Bus Interface: Standard Mode 100kHz) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P Version, unless = 1.8 to 3.6V, AV = 2.2 to 3.6V, V...
Page 427
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics AC CHARACTERISTICS (RC Oscillation A/D Converter) = 0V, Ta = −20 to +70°C, Ta = −40 to +85°C for P Version, unless = 1.3 to 3.6V, AV = 2.2 to 3.6V, V...
Page 428
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix C Electrical Characteristics - When RT0/RT1 (Thermistor and etc.) requires long wiring due to the restricted placement, please have VSS(GND) trace next to the signal. - Please make wiring to components (capacitor, resisteor and etc.) necessory for objective measurement. Wiring to reserved components may affect to the A/D conversion operation by noise the components itself may have.
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix E Check List Appendix E Check List This Check List has notes to prevent commonly-made programming mistakes and frequently overlooked or misunderstood hardware features of the MCU. Check each note listed up chapter by chapter while coding the program or evaluating it using the MCU.
Page 432
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix E Check List Chapter 6 Clock generation circuit • Initial System clock [ ] At power up or system reset, both built-in 500kHz RC oscillation and 32.768kHz crystal oscillation are oscillating, and 1/8 of the 500kHz RC oscillation clock(62.5kHz) is selected as a system clock for CPU.
Page 433
ML610Q421/ML610Q422/ML610421 User’s Manual Appendix E Check List Chapter 13 SSIO • Used pin [ ] P40(SIN0), P41(SCK0) and P42(SOUT0) are used, or P44(SIN0), P45(SCK0) and P46(SOUT0) are used. • Port 2 Function [ ] Specify the 2 Function for the port (Refer to Section 14.4. in the user’s manual) Chapter 14 UART •...
Page 436
ML610Q421/ML610Q422/ML610421 User’s Manual Revision History Revision History Page Document No. Date Description Previous Current Edition Edition FEUL610Q421-01 Jul. 29, 2009 – – Formally edition 1.0 Corrected a typo. Pin direction of SOUT0 “I” “O”. 1-13 1-13 Corrected a typo. LSCLK output pin “P22” “P20”.
Page 437
ML610Q421/ML610Q422/ML610421 User’s Manual Revision History Application circuit example of ML610421/ML620422 - 付 D-2 is added. Change header Change description in Note. 1-1 to 1-3, 1-8, 1-1 to 1-10, 1-14, 1-18, 1-20 to 1-23 to 1-23 1-27, 1-26 to 1,29 to...
Need help?
Do you have a question about the ML610Q421 and is the answer not in the manual?
Questions and answers