S1C17W18 (rev1.2) 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 S1C17W18 is a 16-bit MCU that features low-voltage operation from 1.2 V even though Flash memory is included. The embedded high-efficiency DC-DC converter generates the constant-voltage to drive the IC with lower power con- sumption than 4-bit MCUs. This IC includes a real-time clock, a stopwatch, an LCD driver, a temperature sensor, 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 LCD display and a temperature measurement function. FEATURES Model S1C17W18 CPU CPU core Seiko Epson original 16-bit RISC CPU core S1C17 Other On-chip debugger Embedded Flash memory Capacity 128K bytes (for both instructions and data) 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 8K bytes Embedded display RAM Capacity 96 bytes Clock generator (CLG) System clock source 4 sources (IOSC/OSC1/OSC3/EXOSC) System clock frequency (operating frequency) 1.1 MHz (max.) VDD = 1.2 to 1.6 V 4.2 MHz (max.) VDD = 1.6 to 3.6 V 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 Oscillation stop detection circuit included OSC3 oscillator circuit 4.2 MHz (max.) crystal/ceramic oscillator 250, 384, 500 kHz, 1, 2, and 4 MHz-switchable embedded oscillator 2.1 MHz (max.) CR oscillator (an external R is required) 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 I/O ports Input/output port: 67 bits (max., 128-pin package or chip) 56 bits (max., 80-pin package) 48 bits (max., 64-pin package) Output port: 1 bit (max.) Pins are shared with the peripheral I/O. Number of input interrupt ports 63 bits (max., 128-pin package or chip) 52 bits (max., 80-pin package) 44 bits (max., 64-pin package) Number of ports that support universal port 32 bits (max., 128-pin package or chip) multiplexer (UPMUX) 29 bits (max., 80-pin package) 24 bits (max., 64-pin package) A peripheral circuit I/O function selected via software can be assigned to each port. 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 functions 16-bit timer (T16) 4 channels Generates the SPIA master clocks and the ADC12A operating clock/trigger signal.S1C17W18 Model S1C17W18 Timers 16-bit PWM timer (T16B) 3 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) 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 (SPIA) 2 channels 2 to 16-bit variable data length 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. LCD driver (LCD8B) LCD output 44 SEG 58 COM (max.), 48 SEG 14 COM (max.) (128-pin package or chip) 28 SEG 58 COM (max.), 32 SEG 14 COM (max.) (80-pin package) 20 SEG 58 COM (max.), 24 SEG 14 COM (max.) (64-pin package) LCD contrast 32 levels Other 1/4 or 1/3 bias power supply included, external voltage can be applied. R/F converter (RFC) Conversion method CR oscillation type with 24-bit counters Number of conversion channels 2 channels (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 8 ports/channel (The temperature sensor output is connected to a port.) Temperature sensor/reference voltage generator (TSRVR) Temperature sensor circuit Sensor output can be measured using ADC12A. Reference voltage generator Reference voltage for ADC12A is selectable from 2.0 V, 2.5 V, VDD, and external input. 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: 22 systems (8 levels) Power supply voltage VDD operating voltage 1.2 to 3.6 V VDD operating voltage for Flash programming 1.8 to 3.6 V (VPP = 7.5 V external power supply is required.) 2.7 to 3.6 V (When VPP is generated internally) VDD operating voltage for super economy mode 2.5 to 3.6 V (128-pin package or chip) Operating temperature Operating temperature range -40 to 85 C 2 Seiko Epson Corporation