S1C17501 CMOS 16-bit Application Specific Controller ● 16-bit RISC CPU Core S1C17 (Max. 48 MHz operation) ● 128K/96K-Byte Flash ROM and 4K + 2K-Byte RAM (2K-byte RAM is operable with separated power supply) ● Multiply and Accumulation Function (16 bits × 16 bits + 32 bits MAC) ● Built-in USB FS-Device Controller ● 10-bit ADC ● I2S Interface ● IGBT Control Function by PWM Timer ● Infrared Remote Control Signal Transceiver and Receiver Circuit ● NAND Flash Card Interface ■ DESCRIPTIONS The S1C17501 is a high performance and compact 16-bit RISC application specific controller (ASC). It is suitable for various products that require analog inputs and interfaces for connection, such as healthcare goods, sensor systems, alarms, home electric appliance (rice cookers, microwave ovens and remote controllers). The S1C17501 consists of a S1C17 16-bit compact RISC CPU Core, a 128K- or 96K-byte Flash EEPROM, a 4K-byte RAM, a 2K-byte battery backup RAM, a 10-bit ADC with eight analog input channels, a USB FS-device controller, a PWM control capture timer/counter, an infrared remote controller, serial interfaces (UART with IrDA 1.0, SPI, I 2C, and I 2S), an RTC driven with an independent power supply, 16-bit and 8-bit timers, a watchdog timer, a NAND Flash card interface, an external bus with an SRAM controller and GPIO ports. The USB FS-device controller may be used not only for communication with PCs but also for on-board firmware update. The S1C17501 provides a 16 bits × 16 bits + 32 bits MAC (multiply and accumulate) instruction to implement a DSP function. Furthermore, an external audio ADC/DAC may be connected via the built-in I 2S interface, this makes it possible to input/output ADPCM sound/voice data. The S1C17501 has adopted the EPSON SoC (System on Chip) design technology using 0.35 μm mixed analog low power CMOS process. Product Lineup Model No. Flash ROM size RAM size Package S1C17501F01 96K bytes 4K + 2K* bytes TQFP14-100pin S1C17501F02 128K bytes 4K + 2K* bytes TQFP15-128pin ∗ The 2K-byte RAM is configurable as separated power with battery backup. This product uses SuperFlash ® Technology licensed from Silicon Storage Technology, Inc. ■ FEATURES ● Technology • 0.35 μm AL-4-layers mixed analog low power CMOS process technology ● CPU • Seiko Epson original 16-bit RISC processor S1C17 Core • Internal 3-stage pipeline • Instruction set - 16-bit fixed length - 111 basic instructions (184 including variations) - Compact and fast instruction set optimized for development in C language • Registers - Eight 24-bit general-purpose registers - Three special registers (24-bit × 2, 8-bit × 1) • Memory space - Up to 16M bytes accessible (24-bit address) SEIKO EPSON CORPORATION S1C17501 ● Internal Memories • Flash EEPROM - 128K bytes (S1C17501F0A) - 96K bytes (S1C17501F1A) • RAM - 4K bytes - 2K bytes (with battery backup feature) ● Operating Clock • Main clock - 48 MHz when the USB function is used - 1 to 48 MHz (can be divided by 1 to 32) or 32.768 kHz when the USB function is not used - On-chip oscillator (crystal or ceramic) or external clock input • Sub clock - 32.768 kHz (typ.) for the RTC - On-chip oscillator (crystal) ● SRAM Controller • Provides a 23-bit external address bus, an 8- or 16-bit width selectable data bus, and four chip enable signals to support a maximum of 15M-byte external memory space. ● Interrupt Controller • Four non-maskable interrupts - Reset (#RESET pin or watchdog timer) - Address misaligned - Debug - NMI (#NMI pin or watchdog timer) • 27 maskable interrupts - Port inputs (eight systems) - PWM control capture timer/counter (one system) - A/D converter (two systems) - 16-bit timer of clock generator (one system) - 8-bit timers of clock generator (two systems) - UART (one system) - SPI (two systems) - I 2C (one system) - RTC (one system) - 8-bit timers (four systems) - USB function controller (one system) - I 2S (two systems) - Remote controller (one system) - The interrupt level (priority) of each maskable interrupt system is configurable (levels 0 to 7). ● Prescaler • Generates the source clocks for the clock generator. ● PWM Control Capture Timer/Counters • One channel of 16-bit timer/counter with PWM output function is available. • Can generate two compare-match interrupts. • Supports the IGBT output control function using the A/D converter out-of-range signal. ● Clock Generator • One channel of 16-bit timer and two channels of 8-bit timers are available. • Can be used as the clock source for the UART, SPI, and I 2 C. • Each timer can generate an underflow interrupt. 2 EPSON S1C17501 ● 8-bit Timers • Four channels of 8-bit timers (presettable down counter) are available. • Can be used as an interval timer to trigger the ADC. • Each timer can generate an underflow interrupt. ● Watchdog Timer • 30-bit watchdog timer to generate a reset or an NMI • The watchdog timer overflow period (reset or NMI interrupt period) is programmable. • The watchdog timer overflow signal can be output outside the IC. ● RTC • • • • Contains time counters (second, minute, and hour) and calendar counters (day, day of the week, month, and year). The power source separated with the system power supply (VDD) can be used. Provides the WAKEUP output pin and #STBY input pin to control standby mode. Periodic interrupts are possible. ● UART • • • • One channel of UART is available. Supports IrDA 1.0 interface. Two-byte receive data buffer and one-byte transmit buffer are built in to support full-duplex communication. Transfer rate: 150 to 115200 bps, character length: seven or eight bits, parity mode: even, odd, or no parity, stop bit: one or two bits • Parity error, framing error, and overrun error detectable • Each channel can generate receive buffer full, transmit buffer empty, and receive error interrupts. ● SPI • • • • • Supports both master and slave modes. One-byte receive data buffer and one-byte transmit buffer are built in. Data length: eight bits fixed (MSB first) Data transfer timing (clock phase and polarity variations) is selectable from among 4 types. Can generate receive buffer full and transmit buffer empty interrupts. ● Extended SPI • • • • • • Supports both master and slave modes. One-byte receive data buffer and one-byte transmit buffer are built in. Data length: eight bits fixed (MSB first) Data transfer timing (clock phase and polarity variations) is selectable from among 4 types. Can generate receive buffer full and transmit buffer empty interrupts. Exclusive clock source is available. ● I2C • • • • • Supports master mode only. Data format: 8 bits (MSB first) Addressing mode: 7-bit addressing (10-bit addressing is not supported.) Supports the noise reject function controlled by a register. Can generate an I 2C interrupt. ● I2S • • • • Supports universal audio I 2S Bus Interface. One I 2S output channel in 24-bit resolution and one I 2S input channel in 16-bit resolution Operates as the master to generate the bit clock, word-select signal, data and master clock. Can generate an I 2S interrupt. EPSON 3 S1C17501 ● USB Function Controller • • • • • Supports USB2.0 full speed (12M bps) mode. Supports auto negotiation function. Scratch and variable bulk end point size Embedded 1K-byte programmable FIFO Can generate a USB interrupt. ● CARD Interface • Generates 8- or 16-bit NAND Flash interface signals. • The ECC function should be implemented in the application program. ● Infrared Remote Controller • Outputs a modulated carrier signal and inputs remote control pulses. • Embedded carrier signal generator and data length counter. • Can generates REMC interrupts. ● General-Purpose I/O Ports • Maximum 91 I/O ports and eight input ports are available. • Can generate input interrupts from the eight ports selected with software. ∗ The GPIO ports are shared with other peripheral function pins (UART, PWM etc.). Therefore, the number of GPIO ports depends on the peripheral functions used. ● A/D Converter • 10-bit A/D converter with up to eight analog input ports • Can generates an end of conversion interrupt and an out of range interrupt. • Outputs an out of range signal to the IGBT circuit in the PWM control capture timer/counter module. ● Operating Voltage • VDD: 3.00 to 3.60 V (3.3 V typ.) • RTCVDD: 3.00 to 3.60 V (3.3 V typ.) • AVDD (I/O): 2.70 to 5.50 V ● I/O Interface Voltage • VDD (41 GPIO support -0.3 to 5.8 V input voltage.) ● Operating Temperatures • During flash read: -40 to 85°C • During flash write: -40 to 70°C • During the use of USB: 0 to 70°C ● Power Consumption • • • • ∗ During SLEEP: 4.5 μW(typ.) During HALT: 53 mW(typ.) During execution: 116 mW(typ.) Battery backup power: 0.28 μW(typ.) By controlling the clocks through the in 48 MHz/3.3 V operation in 48 MHz/3.3 V operation 3.3 V, OSC1 deactivated Clock-Gear (CMU), power consumption can be reduced. ● Shipping Form • Plastic package: TQFP14-100pin (12 mm × 12 mm × 1.2 mm, 0.4 mm pin pitch) TQFP15-128pin (14 mm × 14 mm × 1.2 mm, 0.4 mm pin pitch) 4 EPSON S1C17501 ■ BLOCK DIAGRAM TEST #RESET #NMI TVEP DCLK, DSIO, DST2 CPU Core S1C17 IRAM (4K bytes) MAC (DSP) Flash EEPROM (128K/96K bytes) I/O 1 (0x4000–) Prescaler VDD AVDD RTCVDD VSS IRAM2 (2K bytes) Clock generator RTCVDD #CE0–3, #RD, #WRL, (#WRH), #BSL, (#BSH), #WAIT SRAM controller A0–18, (A19–22), D0–7, (D8–15) UART SIN0, SOUT0, #SCLK0 SPI SPI_SDI0, SPI_SDO0, SPI_SCK0, #SPI_SSI0 I2C I2C_SDA, I2C_SCL Interrupt controller Interrupt system SPI_SDI1, SPI_SDO1, SPI_SCK1, #SPI_SSI1 Extended SPI Clock management unit TM0, #TM0, PWMPRT0 16-bit multi-function timer Watchdog timer I2S_SDO0, I2S_WS0, I2S_SCK0, I2S_MCLK0, I2S_SDI1, I2S_WS1, I2S_SCK1, I2S_MCLK1 AIN0–7, #ADTRG REMC_IN, REMC_OUT #SMRD, #SMWR I2S 8-bit timer A/D converter USB function controller Remote controller Card interface RTCVDD RTC I/O port/ I/O MUX I/O 2 (0x4400–) OSC1–2, OSC3–4, CMU_CLK WDT_CLK, #WDT_NMI USBDP, USBDM, USBVBUS, PUENB WAKEUP, #STBY P00–07, P10–16, P20–27, P30–32, (P33–34), P35–37, P40–45, P50–53, (P54–57), P60–67, P70–77, P80–86, P90–97, PA0–A5, (PA6), PB0–B7, (PC0–C7) The pins enclosed in brackets ( ) are available only for the TQFP15-128pin package model. (They are not provided in the TQFP14-100pin package model.) EPSON 5 S1C17501 ■ PIN LAYOUT DIAGRAM 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 AVDD P00 (AIN0) P01 (AIN1) P02 (AIN2) P03 (AIN3) P04 (AIN4) P05 (AIN5) P06 (AIN6) P07 (AIN7) VSS P97 (D7) P96 (D6) P95 (D5) P94 (D4) P93 (D3) P92 (D2) P91 (D1) P90 (D0) VDD P32 (WDT_CLK/#WDT_NMI/CMU_CLK) PA5 (#WRL) PA4 (#RD) PA3 (#CE3) PA2 (#CE2) PA1 (#CE1) TQFP14-100pin 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 USBVBUS PUENB USBDP USBDM VSS VDD (A0/#BSL) P60 (A1) P61 (A2) P62 (A3) P63 (A4) P64 VSS (A5) P65 (A6) P66 (A7) P67 (A8) P70 (A9) P71 (A10) P72 VDD (A11) P73 (A12) P74 (A13) P75 (A14) P76 (A15) P77 (A16) P80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 (SPI_SDI0) P10 (SPI_SDO0) P11 (SPI_SCK0) P12 (#SPI_SSI0/#SPI_SSI1/SPI_SDI0) P13 (SPI_SDI1) P14 (SPI_SDO1) P15 (SPI_SCK1) P16 (REMC_IN/PWMPRT0) P43 VSS (REMC_OUT) P44 (#WAIT) P45 (I2S_SDI1) P24 (I2S_WS1) P25 (I2S_SCK1) P26 (I2S_MCLK1) P27 TEST VDD (TM0) P30 (#TM0/#ADTRG) P31 (P37) DST2 (P36) DSIO VSS (P35) DCLK (A17) P81 (A18) P82 6 EPSON PA0 (#CE0) P51 (I2C_SCL) P50 (I2C_SDA/EXCL0) P42 (#SCLK0/EXCL0) P41 (SOUT0/#SMWR) P40 (SIN0/#SMRD) #NMI VDD #RESET TVEP P23 (I2S_MCLK0) P22 (I2S_SCK0) P21 (I2S_WS0) P20 (I2S_SDO0) VSS OSC4 OSC3 VDD P53 (REMC_OUT) P52 (REMC_IN/#TM0) OSC2 OSC1 RTCVDD WAKEUP #STBY S1C17501 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 AVDD P00 (AIN0) P01 (AIN1) P02 (AIN2) P03 (AIN3) P04 (AIN4) P05 (AIN5) P06 (AIN6) P07 (AIN7) VSS PC1 (#WDT_NMI) PC0 (CMU_CLK) P56 (#TM0) P97 (D7) P96 (D6) P95 (D5) P94 (D4) P93 (D3) P92 (D2) P91 (D1) P90 (D0) PB3 (D11) PB2 (D10) PB1 (D9) PB0 (D8) VDD P32 (WDT_CLK/#WDT_NMI/CMU_CLK) PA5 (#WRL) PA4 (#RD) PA3 (#CE3) PA2 (#CE2) PA1 (#CE1) TQFP15-128pin 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 PA0 (#CE0) P51 (I2C_SCL) P50 (I2C_SDA/EXCL0) P42 (#SCLK0/EXCL0) P41 (SOUT0/#SMWR) P40 (SIN0/#SMRD) PC7 PC6 PC5 PC4 #NMI VDD #RESET TVEP P23 (I2S_MCLK0) P22 (I2S_SCK0) P21 (I2S_WS0) P20 (I2S_SDO0) P34 (#SMWR) P33 (#SMRD/#TM0) VSS VSS OSC4 OSC3 VDD P53 (REMC_OUT) P52 (REMC_IN/#TM0) OSC2 OSC1 RTCVDD WAKEUP #STBY 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 USBVBUS PUENB USBDP USBDM VSS VDD (A0/#BSL) P60 (A1) P61 (A2) P62 (A3) P63 (#WRH/#BSH) PA6 (EXCL0) P54 P55 (A4) P64 VSS (A5) P65 (A6) P66 (A7) P67 (A8) P70 (A9) P71 (A10) P72 (D12) PB4 (D13) PB5 (D14) PB6 (D15) PB7 VDD (A11) P73 (A12) P74 (A13) P75 (A14) P76 (A15) P77 (A16) P80 (SPI_SDI0) P10 (SPI_SDO0) P11 (SPI_SCK0) P12 (#SPI_SSI0/#SPI_SSI1/SPI_SDI0) P13 (SPI_SDI1) P14 (SPI_SDO1) P15 (SPI_SCK1) P16 (REMC_IN/PWMPRT0) P43 VSS (REMC_OUT) P44 (#WAIT) P45 P57 (#ADTRG) PC2 (PWMPRT0) PC3 (I2S_SDI1) P24 (I2S_WS1) P25 (I2S_SCK1) P26 (I2S_MCLK1) P27 TEST VDD (TM0) P30 (#TM0/#ADTRG) P31 (A19) P83 (A20) P84 (A21) P85 (A22/CMU_CLK) P86 (P37) DST2 (P36) DSIO VSS (P35) DCLK (A17) P81 (A18) P82 EPSON 7 S1C17501 NOTICE: No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as, medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of Economy, Trade and Industry or other approval from another government agency. ∗ This product uses SuperFlash® Technology licensed from Silicon Storage Technology, Inc. © SEIKO EPSON CORPORATION 2008, All right reserved. SEIKO EPSON CORPORATION SEMICONDUCTOR OPERATIONS DIVISION IC Sales Dept. IC International Sales Group 421-8, Hino, Hino-shi, Tokyo 191-8501, JAPAN Phone: +81-42-587-5814 FAX: +81-42-587-5117 ■ EPSON Electronic Devices Website http://www.epson.jp/device/semicon_e Document code: 411025504 First issue May, 2007 Printed March, 2008 in Japan H