S1C17W03/W04 (rev1.0) 16-bit Single Chip Microcontroller Low voltage operation from 1.2 V with a single alkaline or silver oxide button battery. Ultra low standby power consumption (0.3 A during HALT state in super economy mode) Embedded A/D converter to support various sensing applications DESCRIPTIONS The S1C17W03/W04 is a 16-bit MCU that features low-voltage operation from 1.2 V even though Flash memory is in- cluded. The embedded high-efficiency DC-DC converter generates the constant-voltage to drive the IC with lower pow- er consumption than 4-bit MCUs. This IC includes a real-time clock, a stopwatch, an A/D converter, and a PWM timer capable of being used to generate drive waveforms for a motor driver as well as a high-performance 16-bit CPU. It is suitable for battery-driven applications that require an A/D conversion function and timers. FEATURES Model S1C17W03 S1C17W04 CPU CPU core Seiko Epson original 16-bit RISC CPU core S1C17 Other On-chip debugger Embedded Flash memory Capacity 16K bytes (for both instructions and data) 32K bytes (for both instructions and data) Erase/program count 50 times (min.) * Programming by the debugging tool ICDmini Other Security function to protect from reading/programming by ICDmini On-board programming function using ICDmini Embedded RAM Capacity 2K bytes Clock generator (CLG) System clock source 4 sources (IOSC/OSC1/OSC3/EXOSC) System clock frequency 1.1 MHz (max.) VDD = 1.2 to 1.6 V (operating frequency) 4.2 MHz (max.) VDD = 1.6 to 3.6 V IOSC oscillator circuit 700 kHz (typ.) embedded oscillator 23 s (max.) starting time (boot clock source) (time from cancelation of SLEEP state to vector table read by the CPU) OSC1 oscillator circuit 32.768 kHz (typ.) crystal oscillator Oscillation stop detection circuit included OSC3 oscillator circuit 4.2 MHz (max.) crystal/ceramic oscillator (48-pin package or chip) 250, 384, 500 kHz, 1, 2, and 4 MHz-switchable embedded oscillator 2.1 MHz (max.) CR oscillator (an external R is required) (48-pin package or chip) EXOSC clock input 4.2 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 Input/output port: 34 bits (max., 48-pin package or chip) I/O ports 23 bits (max., 32-pin package) Output port: 1 bit (max.) Pins are shared with the peripheral I/O. Number of input interrupt ports 30 bits (max., 48-pin package or chip) 21 bits (max., 32-pin package) Number of ports that support 24 bits (48-pin package or chip) universal port multiplexer 21 bits (32-pin package) A peripheral circuit I/O function selected via software can be assigned to each port. (UPMUX) Timers Watchdog timer (WDT) Generates NMI or watchdog timer reset. Real-time clock (RTCA) 1281 Hz counter, second/minute/hour/day/day of the week/month/year counters Theoretical regulation function for 1-second correction Alarm and stopwatch functionsS1C17W03/W04 Model S1C17W03 S1C17W04 Timers 16-bit timer (T16) 4 channels Generates the SPIA master clocks and the ADC12A operating clock/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 (SVD) Detection level 30 levels (1.2 to 3.6 V) Detection accuracy 3 % Other Intermittent operation mode Generates an interrupt or reset according to the detection level evaluation. Serial interfaces UART (UART) 2 channels Baud-rate generator included, IrDA1.0 supported Synchronous Serial Interface 2 channels 2 to 16-bit variable data length (SPIA) The 16-bit timer (T16) can be used for the baud-rate generator in master mode. 2 I C (I2C) 1 channel Baud-rate generator included Sound generator (SNDA) Buzzer output function 512 Hz to 16 kHz output frequencies One-shot output function Melody generation function Pitch: 128 Hz to 16 kHz C3 to C6 Duration: 7 notes/rests (Half note/rest to thirty-second note/rest) Tempo: 16 tempos (30 to 480) Tie/slur may be specified. IR remote controller (REMC2) Number of transmitter channels 1 channel Other EL lamp drive waveform can be generated for an application example. R/F converter (RFC) Conversion method CR oscillation type with 24-bit counters Number of conversion channels 2 channels (48-pin package or chip) 1 channel (32-pin package) (Up to two sensors can be connected to each channel.) Supported sensors DC-bias resistive sensors, AC-bias resistive sensors (Ch.0 only) 12-bit A/D converter (ADC12A) Conversion method Successive approximation type Resolution 12 bits Number of conversion channels 1 channel Number of analog signal inputs 6 ports/channel (48-pin package or chip) 5 ports/channel (32-pin package) Multiplier/divider (COPRO2) Arithmetic functions 16-bit 16-bit multiplier 16-bit 16-bit + 32-bit multiply and accumulation unit 32-bit 32-bit divider Reset RESET pin Reset when the reset pin is set to low. Power-on reset Reset at power on. Key entry reset Reset when the P00 to P01/P02/P03 keys are pressed simultaneously (can be en- abled/disabled using a register). Watchdog timer reset Reset when the watchdog timer overflows (can be enabled/disabled using a register). Supply voltage detector reset Reset when the supply voltage detector detects the set voltage level (can be enabled/ disabled using a register). Interrupt Non-maskable interrupt 4 systems (Reset, address misaligned interrupt, debug, NMI) Programmable interrupt External interrupt: 1 system (8 levels) Internal interrupt: 20 systems (8 levels) 2 Seiko Epson Corporation