FEDL620Q504H-01 Issue Date: Aug. 31, 2015 ML620Q503H/Q504H Ultra Low Power 16-bit Microcontroller GENERAL DESCRIPTION This LSI family is a high-performance 16-bit CMOS microcontroller into which rich peripheral circuits, such as 2 synchronous serial port, UART, I C bus interface (master), supply voltage level detect circuit, RC oscillation type A/D converter, and successive approximation type A/D converter are incorporated around 16-bit CPU nX-U16/100. The CPU nX-U16/100 is capable of efficient instruction execution in 1-instruction 1-clock mode by 3-stage pipe line architecture parallel processing. The Flash ROM that is installed as program memory achieves low-voltage low-power consumption operation (read operation) is most suitable for battery-driven applications. And, this LSI has a data flash-memory fill area by a software which can be written in. The on-chip debug function that is installed enables program debugging and programming. FEATURES CPU 16-bit RISC CPU (CPU name: nX-U16/100) Instruction system: 16-bit instructions Instruction set: Transfer, arithmetic operations, comparison, logic operations, multiplication/division, bit manipulations, bit logic operations, jump, conditional jump, call return stack manipulations, arithmetic shift, and so on Build-in On-Chip debug function Minimum instruction execution time 30.5 s ( 32.768 kHz system clock) 62.5ns ( 16 MHz system clock) Built-in coprocessor for multiplication, division, and multiply-accumulate operations Signed or unsigned operation setting Multiplication: 16bit 16bit (operation time 4 cycles) Division: 32bit / 16bit (operation time 8 cycles) Division: 32bit / 32bit (operation time 16 cycles) Multiply-accumulate (non-saturating): 16bit 16bit + 32bit (operation time 4 cycles) Multiply-accumulate (saturating): 16bit 16bit + 32bit (operation time 4 cycles) Internal memory Supports ISP function (re-writing the program memory area by software) Number of segments Flash memory Product name SRAM * Program area Data area ML620Q503H 32KB (16K 16bit) 2KB (1K 16bit) 2KB (1K 16bit) ML620Q504H 64KB (32K 16bit) 2KB (1K 16bit) 6KB (3K 16bit) *: including 1KB of unusable test area Interrupt controller (INTC) 1 non-maskable interrupt sources (Internal source: 1) 37 maskable interrupt sources (Internal sources: 29, External sources: 8) Software interrupt (SWI): maximum 64 sources External interrupts and comparator allow edge selection and sampling selection Priority level (4-level) can be set for each interrupt Time base counter (TBC) Low-speed time base counter 1 channel 1/35 FEDL620Q504H-01 ML620Q503H/Q504H Timers (TMR) 8 bits 8 channels (Timer0-7: 16-bit 4 configuration available by using Timer0-1 or Timer2-3, Timer4-5, Timer6-7) Selection of one shot timer mode is possible External clock can be selected as timer clock. Function Timers (FTM) 16-bit 4 channels Equipped with the timer/capture/PWM functions using a 16-bit counter Timer start/stop function by software/event trriger(external pin or other timer) External pin can be selected as counter clock Capture function (the measurement such as the pulse width is possible using external trigger input) Two types of PWM with the same period and different duties and complementary PWM with the dead time set can be output. Watchdog timer (WDT) Non-maskable interrupt and reset Free running Overflow period: 4 types selectable (125ms, 500ms, 2s, and 8s when LSCLK = 32.768 kHz) Synchronous serial port (SSIOF/SSIO) without FIFOs (SSIO) : 1 channel with 4-byte transmits and receives FIFOs (SSIOF) : 1 channel Master/slave are selectable LSB first/MSB first are selectable 8-bit length/16-bit length are selectable Phase/Polarity of clock are selectable supports slave-select signal (only SSIOF) UART (UARTF/UART) without FIFOs (UART) : 1ch with 4-byte transmits and receives FIFOs (UARTF) : 1ch Full duplex buffer system Communication speed: Settable within the range of 2400bps to 115200bps. Programmable interface (data length, parity, stop bits selectable) 2 2 I C bus interface (I C) Master function 2 channel Fast mode (400 kbps), standard mode (100 kbps) General-purpose ports (PORT) Input port 2, Input/output port 36 channels Melody driver (MELODY) Tempo: 15 types Scale: 29 types (Melody sound frequency: 508 Hz to 10.922 kHz) Tone length: 63 types Buzzer output mode (4 output modes, 8 buzzer frequencies, 7duty levels at 4.096kHz /15 duty levels at other buzzer frequencies) RC oscillation type A/D converter (RC-ADC) Time division 2 channels 24-bit counter 2/35