1 OVERVIEW
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
1-1
TECHNICAL MANUAL (Rev. 1.0)
1 Overview
The S1C17M20/M21/M22/M23/M24/M25 is a 16-bit embedded Flash MCU that features low power consump-
tion. The embedded Flash memory can also be used as an EEPROM emulation data memory via software. The
S1C17M20/M21/M22/M23/M24/M25 includes various serial interfaces, an A/D converter, and various timers as
well as a high-performance 16-bit CPU. It is suitable for applications that require an A/D conversion function, such
as household equipment and FA products.
1.1 Features
Table 1.1.1 Features
Model
S1C17M20/M23
S1C17M21/M24
S1C17M22/M25
24-pin PKG
32-pin PKG
CPU
CPU core
Seiko Epson original 16-bit RISC CPU core S1C17
Other
On-chip debugger
Embedded Flash memory
Capacity
(for both instructions and data)
16K bytes (S1C17M20/M21/M22)
32K bytes (S1C17M23/M24/M25)
Erase/program count
1,000 times (min.)
*
Programming by the debugging tool ICDmini
Other
Security function to protect from reading/programming by ICDmini
On-board programming function using ICDmini
Flash programming voltage can be generated internally.
Embedded RAM
Capacity
2K bytes
Clock generator (CLG)
System clock source
4 sources (IOSC/OSC1/OSC3/EXOSC)
System clock frequency
(operating frequency)
21 MHz (max.)
IOSC oscillator circuit
(boot clock source)
700 kHz (typ.) embedded oscillator
23 µs (max.) starting time (time from cancelation of SLEEP state to vector table read by the CPU)
OSC1 oscillator circuit
–
32.768 kHz (typ.) crystal oscillator
32 kHz (typ.) embedded oscillator
–
Oscillation stop detection circuit included
OSC3 oscillator circuit
–
21 MHz (max.) crystal/ceramic oscillator
12, 16, and 20 MHz-switchable embedded oscillator
–
Auto-trimming function for the embedded oscillator
EXOSC clock input
21 MHz (max.) square or sine wave input
Other
Configurable system clock division ratio
Configurable system clock used at wake up from SLEEP state
Operating clock frequency for the CPU and all peripheral circuits is selectable.
I/O port (PPORT)
Number of general-
purpose ports
I/O port
17 bits (max.) 23 bits (max.)
39 bits (max.)
Output port
1 bit (max.)
Other
Pins are shared with the peripheral I/O.
Number of input interrupt ports
15 bits (max.) 19 bits (max.)
35 bits (max.)
Number of ports that support
universal port multiplexer (UPMUX)
15 bits
19 bits
32 bits
A peripheral circuit I/O function selected via software can be assigned to each port.
Timers
Watchdog timer (WDT2)
Generates NMI or watchdog timer reset.
Programmable NMI/reset generation cycle
Real-time clock (RTCA)
128–1 Hz counter, second/minute/hour/day/day of the week/month/year counters
Theoretical regulation function for 1-second correction
Alarm and stopwatch functions
16-bit timer (T16)
4 channels
Generates the SPIA master clocks and the ADC12A trigger signal.
16-bit PWM timer (T16B)
2 channels
Event counter/capture function
PWM waveform generation function
Number of PWM output or capture input ports: 2 ports/channel
Supply voltage detector (SVD3)
Detection voltage
V
DD
or external voltage (one external voltage input port is provided and an external voltage level
can be detected even if it exceeds V
DD
.)
Detection level
V
DD
: 28 levels (1.8 to 5.0 V)/external voltage: 32 levels (1.2 to 5.0 V)
Other
Intermittent operation mode
Generates an interrupt or reset according to the detection level evaluation.