SEIKO EPSON CORPORATION 2011, All rights reserved.

Similar documents
Silicon Storage Technology, Inc. SuperFlash SEIKO EPSON CORPORATION 2011, All rights reserved.

S1C17W12 S1C17W13 (WDT2) (RTCA) 16 (T16) 16PWM (T16B) SQFN7-48pin TQFP12-48pin SQFN7-48pin NMI, NMI/ Hz, / / / // / 1, 3 SPIA 2 / PWM PWM : 2/ (

S1C17M20/M23 S1C17M21/M24 S1C17M22/M25 24PKG 32PKG (SVD3) (1, ) : 28 ( V)/: 32 ( V), UART(UART3) 2, IrDA1.0,, (SPIA) I 2 C(I2C)

S1C17M30 S1C17M31 S1C17M32 S1C17M33 S1C17M34 (SVD3) (1, ) : 28 ( V)/: 32 ( V), UART(UART3) 2, IrDA1.0,, (SPIA) (T16) I 2 C(I2C)

SEIKO EPSON CORPORATION 2011, All rights.

S1C60N05データシート

S1C60N08/60R08データシート

S5U1C8F360T1 Manual (S1C8F360 DEMO Board)

(Making the electronic circuit with use of micro-processor)

R1RW0408D シリーズ

mbed祭りMar2016_プルアップ.key

VM-53PA1取扱説明書

R1RP0416D シリーズ

1

R1RW0416DI シリーズ

内蔵メモリ Flash EEPROM - 128K バイト (S1C17501F0A) - 96K バイト (S1C17501F1A) RAM - 4K バイト - 2K バイト ( バッテリーバックアップ可能 ) 動作クロック メインクロック - 48MHz USB を使用する場合 - 1~48M

untitled

3 SIMPLE ver 3.2: SIMPLE (SIxteen-bit MicroProcessor for Laboratory Experiment) 1 16 SIMPLE SIMPLE 2 SIMPLE 2.1 SIMPLE (main memo

MAX191 EV J

R1LV0416Dシリーズ データシート

.,. 0. (MSB). =2, =1/2.,. MSB LSB, LSB MSB. MSB 0 LSB 0 0 P

ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) Copyright c 2

AD5933: 1 MSPS、12 ビット・インピーダンス・コンバータネットワーク・アナライザ

N Express5800/R320a-E4 N Express5800/R320a-M4 ユーザーズガイド

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド

ADC121S Bit, ksps, Diff Input, Micro Pwr Sampling ADC (jp)

A Responsive Processor for Parallel/Distributed Real-time Processing

AD9833: 低消費電力 20 mW 2.3 〜 5.5 V プログラマブル波形発生器

DebugFactory Builder 4 for AMOTユーザーズマニュアル

Microsoft Word - AK2300-MS0997-J-00_ doc

R1LV1616H-I シリーズ

DS

LMC6022 Low Power CMOS Dual Operational Amplifier (jp)

S1C31D50 (rev1.0) 32-bit Single Chip Microcontroller ARM 32- ビット RISC CPU コア Cortex -M0+ 192K バイト Flash メモリ (Program& 音声共用 ) 8K バイト RAM を内蔵 2ch 音声ミキシン

Express5800/R110a-1Hユーザーズガイド

PIN S 5 K 0 K 1 K 2 K 3 K 4 V DD V 0 V 1 V 2 V SS OSC SEG 32 SEG 31 SEG 30 SEG 29 SEG 28 SEG 27 SEG 26 SEG 25 SEG 24 SEG 23 SEG 22 SEG 21 SEG 20 SEG 1

MAX7319 EV.J

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド

プロセッサ・アーキテクチャ

DAC121S101/DAC121S101Q 12-Bit Micro Power, RRO Digital-to-Analog Converter (jp)

untitled

main.dvi

ADC78H90 8-Channel, 500 kSPS, 12-Bit A/D Converter (jp)

untitled

ADC082S021 2 Channel, 50 ksps to 200 ksps, 8-Bit A/D Converter (jp)

R1EV5801MBシリーズ データシート

MAX1241EV Kit.J


HN58V256Aシリーズ/HN58V257Aシリーズ データシート

NL-22/NL-32取扱説明書_操作編

AN6591FJM

XC9500 ISP CPLD JTAG Port 3 JTAG Controller In-System Programming Controller 8 36 Function Block Macrocells to 8 /GCK /GSR /GTS 3 2 or 4 Blocks FastCO

Express5800/320Fc-MR

HN58C256A シリーズ/HN58C257A シリーズ データシート

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

untitled

TOS7200 CD-ROM DUT PC 1.0X p.15 NEMA Vac/10 A [85-AA-0003] m : CEE7/7 : 250Vac/10 A [85-AA-0005] : GB1002 : 250Vac/10A [ ] 2016

S1D13505F00Aデータシート

タイマ ウォッチドッグタイマ (WDT) NMI, またはウォッチドッグタイマリセットを 生 成 リアルタイムクロック (RTCA) 128~1 Hz カウンタ 秒 / 分 / 時 / 日 / 曜 日 / 月 / 年 カウンタ 1 秒 補 正 のための 論 理 緩 急 機 能 アラーム 機 能 スト

WAGO Profibus /-833及び三菱MELSEC Q02HCPU/QJ71PB92Dのコンフィグレーション

ESP8266-CORE-R Copyrig

Express5800/320Fa-L/320Fa-LR

1

Triple 2:1 High-Speed Video Multiplexer (Rev. C

メモリ空間 - 最大 16M バイトの空間をアクセス可能 (24 ビットアドレス ) DSP MUL( 乗算演算 ) ビット (1 サイクル ) MAC( 積和演算 ) ビット (1サイクル) DIV( 除算演算 ) ビット (17~20 サイクル ) 内蔵

untitled

NJU3555 NJU

Stratix IIIデバイスの外部メモリ・インタフェース

AN-1077: ADXL345 Quick Start Guide

AN8472SA

1 2

HardCopy IIIデバイスの外部メモリ・インタフェース

Express5800/120Lf 1. Express5800/120Lf N N N Express5800/120Lf Express5800/120Lf Express5800/120Lf ( /1BG(256)) ( /1BG(256)) (

EVBUM2149JP - 静電容量タッチセンサ用容量デジタルコンバータLSI評価キット取扱説明書

untitled

「FPGAを用いたプロセッサ検証システムの製作」

LT 低コスト、シャットダウン機能付き デュアルおよびトリプル300MHz 電流帰還アンプ

PLQ-20 取扱説明書 詳細編

TK-S686_S686WP

MEDIAEDGE MEDIAEDGE TEL FAX :00 12:00 13:00 17: MEDIAEDGE MEDIAEDGE 8. HDMI HDMIHigh-Definition M

AFO AFO 4 2.3AFO 5 3 AFO 3.1 AFO

1516-機器センサ_J.indb

CX-G2400 ユーザーズガイド

ma_sk_3302_jp

LMC6082 Precision CMOS Dual Operational Amplifier (jp)

untitled

TM-m30 詳細取扱説明書

MAX1213N EV.J

WAGO Ch 測温抵抗体入力モジュール 取扱説明書

TM-m30 詳細取扱説明書

RW1097-0A-001_V0.1_170106

*1 * *2 *3 *3 *4 *5 *6 *4 *4 *4 *7 *8 *9 *10

IMI TSC1171 ( TSC1171) IMI YJ-M-002A( ) Zigbee TSC1171 TSC mm TSC1171 I/O A/D D/A 2.54mm 1

Arduino UNO IS Report No. Report Medical Information System Laboratory

橡EN1165.PDF

????????????MUX ????????????????????

OPA134/2134/4134('98.03)

RT300/140/105シリーズ 取扱説明書

Lab GPIO_35 GPIO

変更履歴 Revision 日付 内容 /10/10 初版 /10/24 車載関連説明文削除 /10/06 会社所在地を本社に修正 2

Transcription:

CMOS 16-BIT SINGLE CHIP MICROCONTROLLER S1C17003 Rev. 1.1

1. 2. 3. 4. 5. 6. SEIKO EPSON CORPORATION 2011, All rights reserved.

S1 C 33209 F 00E1 00 00 : & 0A : TCP BL 2 0B : & BACK 0C : TCP BR 2 0D : TCP BT 2 0E : TCP BD 2 0F : & FRONT 0G: TCP BT 4 0H : TCP BD 4 0J : TCP SL 2 0K : TCP SR 2 0L : & LEFT 0M: TCP ST 2 0N : TCP SD 2 0P : TCP ST 4 0Q: TCP SD 4 0R : & RIGHT 99 : D: F: QFP B: BGA C: S1: S5U1 C 33000 H2 1 00 00: 1: Version 1 Hx : ICE Dx : Ex : ROM Mx: ROM Tx : Cx : Sx : 33L01: S1C33L01 C: S5U1:

- - 1...1-1 1.1...1-2 1.2...1-3 1.3...1-4 1.3.1...1-4 1.3.2...1-8 2 CPU...2-1 2.1 S1C17...2-1 2.2 CPU...2-2 2.3...2-3 2.4...2-7 2.5 PSR...2-8 2.6...2-9 3,...3-1 3.1...3-2 3.1.1...3-2 3.1.2...3-2 3.2 ROM...3-3 3.2.1 ROM...3-3 3.2.2 ROM...3-3 0x5320: ROM Control Register (MISC_FL)... 3-3 3.3 RAM...3-4 3.3.1 RAM...3-4 0x5326: IRAM Size Select Register (MISC_IRAMSZ)... 3-4 3.4...3-5 3.4.1 1 0x4000~...3-5 3.4.2 2 0x5000~...3-5 3.5 I/O...3-6 4...4-1 4.1...4-1 4.2 LVDD, VSS...4-2 4.3 I/O HVDD...4-2 4.4 AVDD...4-2 4.5...4-3 5...5-1 5.1...5-1 5.1.1 #RESET...5-1 5.1.2 P0...5-2 5.1.3...5-2 5.2...5-3 5.3...5-4 6 ITC...6-1 6.1 ITC...6-1 6.2...6-2 6.3...6-3 6.3.1...6-3 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation i

6.3.2 ITC...6-3 6.3.3 S1C17...6-4 6.4 NMI...6-5 6.5...6-6 6.6 HALT, SLEEP...6-7 6.7...6-8 0x4306: Interrupt Level Setup Register 0 (ITC_LV0)... 6-9 0x4308: Interrupt Level Setup Register 1 (ITC_LV1)... 6-10 0x430a: Interrupt Level Setup Register 2 (ITC_LV2)... 6-11 0x430c: Interrupt Level Setup Register 3 (ITC_LV3)... 6-12 0x430e: Interrupt Level Setup Register 4 (ITC_LV4)... 6-13 0x4310: Interrupt Level Setup Register 5 (ITC_LV5)... 6-14 0x4312: Interrupt Level Setup Register 6 (ITC_LV6)... 6-15 0x4314: Interrupt Level Setup Register 7 (ITC_LV7)... 6-16 0x4316: Interrupt Level Setup Register 8 (ITC_LV8)... 6-17 0x4318: Interrupt Level Setup Register 9 (ITC_LV9)... 6-18 6.8...6-19 7 OSC...7-1 7.1 OSC...7-1 7.2 OSC3...7-2 7.3 OSC1...7-3 7.4...7-4 7.5 8 OSC1...7-5 7.6 FOUTH, FOUT1...7-6 7.7 RESET, NMI...7-8 7.8...7-9 0x5060: Clock Source Select Register (OSC_SRC)... 7-10 0x5061: Oscillation Control Register (OSC_CTL)... 7-11 0x5062: Noise Filter Enable Register (OSC_NFEN)... 7-12 0x5064: FOUT Control Register (OSC_FOUT)... 7-13 0x5065: T8OSC1 Clock Control Register (OSC_T8OSC1)... 7-14 7.9...7-15 8 CLG...8-1 8.1...8-1 8.2 CPU CCLK...8-2 8.3 PCLK...8-3 8.4...8-4 0x5080: PCLK Control Register (CLG_PCLK)... 8-5 0x5081: CCLK Control Register (CLG_CCLK)... 8-6 8.5...8-7 9 PSC...9-1 9.1...9-1 9.2...9-2 0x4020: Prescaler Control Register (PSC_CTL)... 9-2 9.3...9-3 10 P...10-1 10.1...10-1 10.2 MUX...10-2 10.3...10-3 10.4...10-5 ii Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

10.5 P0/P1...10-6 10.6...10-7 10.7...10-9 0x5200/0x5210/0x5220/0x5230/0x5240: Px Port Input Data Registers (Px_IN)... 10-10 0x5201/0x5211/0x5221/0x5231/0x5241: Px Port Output Data Registers (Px_OUT)... 10-11 0x5202/0x5212/0x5222/0x5232/0x5242: Px Port Output Enable Registers (Px_OEN)... 10-12 0x5203/0x5213/0x5223/0x5233/0x5243: Px Port Pull-up Control Registers (Px_PU)... 10-13 0x5205/0x5215: Px Port Interrupt Mask Registers (Px_IMSK)... 10-14 0x5206/0x5216: Px Port Interrupt Edge Select Registers (Px_EDGE)... 10-15 0x5207/0x5217: Px Port Interrupt Flag Registers (Px_IFLG)... 10-16 0x5208/0x5218: P0/P1 Port Chattering Filter Control Register (Px_CHAT)... 10-17 0x5209: P0 Port Key-Entry Reset Configuration Register (P0_KRST)... 10-19 0x520a/0x521a/0x522a/0x523a/0x524a: Px Port Input Enable Registers (Px_IEN)... 10-20 0x52a0: P0 Port Function Select Register (P0_PMUX)... 10-21 0x52a1: P0 Port Function Select Register (P0_PMUX)... 10-22 0x52a2: P1 Port Function Select Register (P1_PMUX)... 10-23 0x52a3: P1 Port Function Select Register (P1_PMUX)... 10-24 0x52a4: P2 Port Function Select Register (P2_PMUX)... 10-25 0x52a5: P2 Port Function Select Register (P2_PMUX)... 10-26 0x52a6: P3 Port Function Select Register (P3_PMUX)... 10-27 0x52a7: P3 Port Function Select Register (P3_PMUX)... 10-28 0x52a8: P4 Port Function Select Register (P4_PMUX)... 10-29 10.8...10-30 11 16 T16...11-1 11.1 16...11-1 11.2 16...11-2 11.2.1...11-2 11.2.2...11-3 11.2.3...11-4 11.3...11-5 11.4 16...11-6 11.5 16...11-7 11.6 16 RUN/STOP...11-8 11.7 16...11-9 11.8 16...11-10 11.9...11-11 0x4220/0x4240/0x4260: 16-bit Timer Ch.x Input Clock Select Registers (T16_CLKx)... 11-12 0x4222/0x4242/0x4262: 16-bit Timer Ch.x Reload Data Registers (T16_TRx)... 11-13 0x4224/0x4244/0x4264: 16-bit Timer Ch.x Counter Data Registers (T16_TCx)... 11-14 0x4226/0x4246/0x4266: 16-bit Timer Ch.x Control Registers (T16_CTLx)... 11-15 0x4228/0x4248/0x4268: 16-bit Timer Ch.x Interrupt Control Registers (T16_INTx)... 11-17 11.10...11-18 12 8 T8F...12-1 12.1 8...12-1 12.2 8...12-2 12.3...12-3 12.4 8...12-4 12.5 8...12-5 12.6 8 RUN/STOP...12-6 12.7 8...12-7 12.8...12-8 12.9 8...12-9 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation iii

12.10...12-10 0x4200/0x4280: 8-bit Timer Ch.x Input Clock Select Register (T8F_CLKx)... 12-11 0x4202/0x4282: 8-bit Timer Ch.x Reload Data Register (T8F_TRx)... 12-12 0x4204/0x4284: 8-bit Timer Ch.x Counter Data Register (T8F_TCx)... 12-13 0x4206/0x4286: 8-bit Timer Ch.x Control Register (T8F_CTLx)... 12-14 0x4208/0x4288: 8-bit Timer Ch.x Interrupt Control Register (T8F_INTx)... 12-16 12.11...12-17 13 PWM T16E...13-1 13.1 PWM...13-1 13.2 PWM...13-2 13.3 /...13-3 13.4...13-4 13.5 PWM RUN/STOP...13-5 13.6...13-6 13.7 PWM...13-9 13.8...13-11 0x5300: PWM Timer Compare Data A Registers (T16E_CA)... 13-12 0x5302: PWM Timer Compare Data B Registers (T16E_CB)... 13-13 0x5304: PWM Timer Counter Data Registers (T16E_TC)... 13-14 0x5306: PWM Timer Control Registers (T16E_CTL)... 13-15 0x5308: PWM Timer Input Clock Select Registers (T16E_CLK)... 13-17 0x530a: PWM Timer Interrupt Mask Registers (T16E_IMSK)... 13-18 0x530c: PWM Timer Interrupt Flag Registers (T16E_IFLG)... 13-19 13.9...13-20 14 8 OSC1 T8OSC1...14-1 14.1 8 OSC1...14-1 14.2 8 OSC1...14-2 14.3...14-3 14.4 8 OSC1...14-4 14.5...14-5 14.6 8 OSC1 RUN/STOP...14-6 14.7 8 OSC1...14-7 14.8 PWM...14-8 14.9...14-9 0x50c0: 8-bit OSC1 Timer Control Register (T8OSC1_CTL)... 14-10 0x50c1: 8-bit OSC1 Timer Counter Data Register (T8OSC1_CNT)... 14-11 0x50c2: 8-bit OSC1 Timer Compare Data Register (T8OSC1_CMP)... 14-12 0x50c3: 8-bit OSC1 Timer Interrupt Mask Register (T8OSC1_IMSK)... 14-13 0x50c4: 8-bit OSC1 Timer Interrupt Flag Register (T8OSC1_IFLG)... 14-14 0x50c5: 8-bit OSC1 Timer PWM Duty Data Register (T8OSC1_DUTY)... 14-15 14.10...14-16 15 CT...15-1 15.1...15-1 15.2...15-2 15.3...15-3 15.4 RUN/STOP...15-4 15.5...15-5 15.6...15-6 0x5000: Clock Timer Control Register (CT_CTL)... 15-7 0x5001: Clock Timer Counter Register (CT_CNT)... 15-8 0x5002: Clock Timer Interrupt Mask Register (CT_IMSK)... 15-9 iv Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

0x5003: Clock Timer Interrupt Flag Register (CT_IFLG)... 15-10 15.7...15-11 16 SWT...16-1 16.1...16-1 16.2 BCD...16-2 16.3...16-3 16.4...16-4 16.5 RUN/STOP...16-5 16.6...16-6 16.7...16-7 0x5020: Stopwatch Timer Control Register (SWT_CTL)... 16-8 0x5021: Stopwatch Timer BCD Counter Register (SWT_BCNT)... 16-9 0x5022: Stopwatch Timer Interrupt Mask Register (SWT_IMSK)... 16-10 0x5023: Stopwatch Timer Interrupt Flag Register (SWT_IFLG)... 16-11 16.8...16-12 17 WDT...17-1 17.1...17-1 17.2...17-2 17.3...17-3 17.3.1 NMI/...17-3 17.3.2 RUN/STOP...17-3 17.3.3...17-3 17.3.4...17-3 17.4...17-4 0x5040: Watchdog Timer Control Register (WDT_CTL)... 17-5 0x5041: Watchdog Timer Status Register (WDT_ST)... 17-6 17.5...17-7 18 UART...18-1 18.1 UART...18-1 18.2 UART...18-2 18.3...18-3 18.4...18-4 18.5...18-5 18.6...18-8 18.7 UART...18-9 18.8 IrDA...18-11 18.9...18-13 0x4100/0x4120: UART Ch.x Status Registers (UART_STx)... 18-14 0x4101/0x4121: UART Ch.x Transmit Data Registers (UART_TXDx)... 18-16 0x4102/0x4122: UART Ch.x Receive Data Registers (UART_RXDx)... 18-17 0x4103/0x4123: UART Ch.x Mode Registers (UART_MODx)... 18-18 0x4104/0x4124: UART Ch.x Control Registers (UART_CTLx)... 18-19 0x4105/0x4125: UART Ch.x Expansion Registers (UART_EXPx)... 18-20 18.10...18-21 19 SPI...19-1 19.1 SPI...19-1 19.2 SPI...19-2 19.3 SPI...19-3 19.4...19-4 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation v

19.5...19-5 19.6 SPI...19-8 19.7...19-9 0x4320: SPI Status Register (SPI_ST)... 19-10 0x4322: SPI Transmit Data Register (SPI_TXD)... 19-11 0x4324: SPI Receive Data Register (SPI_RXD)... 19-12 0x4326: SPI Control Register (SPI_CTL)... 19-13 19.8...19-15 20 I 2 C I 2 CM...20-1 20.1 I 2 C...20-1 20.2 I 2 C...20-2 20.3 I 2 C...20-3 20.4...20-4 20.5...20-5 20.6 I 2 C...20-10 20.7...20-11 0x4340: I 2 C Enable Register (I2C_EN)... 20-12 0x4342: I 2 C Control Register (I2C_CTL)... 20-13 0x4344: I 2 C Data Register (I2C_DAT)... 20-15 0x4346: I 2 C Interrupt Control Register (I2C_ICTL)... 20-17 21 I 2 C I 2 CS...21-1 21.1 I 2 C...21-1 21.2 I 2 C...21-2 21.3 I 2 C...21-3 21.4 I 2 C...21-4 21.4.1...21-4 21.4.2...21-4 21.4.3...21-4 21.5...21-6 21.6 I 2 C...21-11 21.7...21-13 0x4360: I 2 C Slave Transmit Data Register (I2CS_TRNS)... 21-14 0x4362: I 2 C Slave Receive Data Register (I2CS_RECV)... 21-15 0x4364: I 2 C Slave Address Setup Register (I2CS_SADRS)... 21-16 0x4366: I 2 C Slave Control Register (I2CS_CTL)... 21-17 0x4368: I 2 C Slave Status Register (I2CS_STAT)... 21-20 0x436a: I 2 C Slave Access Status Register (I2CS_ASTAT)... 21-23 0x436c: I 2 C Slave Interrupt Control Register (I2CS_ICTL)... 21-24 21.8...21-25 22 REMC...22-1 22.1 REMC...22-1 22.2 REMC...22-2 22.3...22-3 22.4...22-4 22.5...22-5 22.6 REMC...22-8 22.7...22-10 0x5340: REMC Configuration Register (REMC_CFG)... 22-11 0x5342: REMC Carrier Length Setup Register (REMC_CAR)... 22-13 0x5344: REMC Length Counter Register (REMC_LCNT)... 22-14 0x5346: REMC Interrupt Control Register (REMC_INT)... 22-15 vi Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

22.8...22-17 23 A/D ADC10SA...23-1 23.1 A/D...23-1 23.2 ADC...23-2 23.3 A/D...23-3 23.4 A/D...23-6 23.5 A/D...23-9 23.6...23-11 0x5380: ADC10 Conversion Result Register (ADC10_ADD)... 23-12 0x5382: ADC10 Trigger/Channel Select Register (ADC10_TRG)... 23-13 0x5384: ADC10 Control/Status Register (ADC10_CTL)... 23-15 0x5386: ADC10 Divided Frequency Register (ADC10_DIV)... 23-17 23.7...23-18 24 DBG...24-1 24.1...24-1 24.2...24-2 24.3...24-3 24.4...24-4 0x5322: OSC1 Peripheral Control Register (MISC_OSC1)... 24-5 0x5326: IRAM Size Select Register (MISC_IRAMSZ)... 24-6 0xffff90: Debug RAM Base Register (DBRAM)... 24-7 0xffffa0: Debug Control Register (DCR)... 24-8 0xffffb8: Instruction Break Address Register 2 (IBAR2)... 24-10 0xffffbc: Instruction Break Address Register 3 (IBAR3)... 24-11 0xffffd0: Instruction Break Address Register 4 (IBAR4)... 24-12 25...25-1 25.1...25-1 25.2...25-2 25.3...25-3 25.4...25-4 25.5...25-5 25.6...25-7 26...26-1 26.1...26-1 26.2...26-1 26.3...26-2 26.4...26-3 26.5 A/D...26-4 26.6 SPI...26-5 26.7 I 2 C...26-5 26.8...26-6 26.9...26-6 27...27-1 28...28-1 28.1 TQFP12-64pin...28-1 28.2 WCSP-48...28-2 28.3...28-3 28.4...28-4 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation vii

28.4.1...28-4 Appendix A I/O... AP-1 0x4020 Prescaler... AP-5 0x4100 0x4125 UART (with IrDA)... AP-6 0x4200 0x4208 8-bit Timer (with Fine Mode) Ch.0... AP-8 0x4220 0x4268 16-bit Timer... AP-9 0x4280 0x4288 8-bit Timer (with Fine Mode) Ch.1... AP-11 0x4306 0x4318 Interrupt Controller... AP-12 0x4320 0x4326 SPI... AP-13 0x4340 0x4346 I 2 C Master... AP-14 0x4360 0x436c I 2 C Slave... AP-15 0x5000 0x5003 Clock Timer... AP-16 0x5020 0x5023 Stopwatch Timer... AP-17 0x5040 0x5041 Watchdog Timer... AP-18 0x5060 0x5065 Oscillator... AP-19 0x5080 0x5081 Clock Generator... AP-20 0x50c0 0x50c5 8-bit OSC1 Timer... AP-21 0x5200 0x52a8 P Port & Port MUX... AP-22 0x5300 0x530c PWM & Capture Timer... AP-26 0x5320 0x532c MISC Registers... AP-27 0x5340 0x5346 Remote Controller... AP-28 0x5380 0x5386 ADC10SA... AP-29 0xffff84 0xffffd0 S1C17 Core I/O... AP-30 Appendix B... AP-31 B.1... AP-31 Appendix C... AP-34 Appendix D ROM... AP-38 viii Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

1 1 S1C17003 ICE 16 MCU A/D I/F S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 1-1

1 1.1 S1C17003 CPU EPSON 16 RISC CPU S1C17 16 16 + 32 16 16 OSC3 20MHz (max.) ( / ) OSC1 32.768kHz(typ.) ( ) Mask ROM 64K RAM 4K A/D 10 4ch 30 4 SPI / 1ch. I 2 C 1ch. I 2 C 1ch. UART 460800bps IrDA1.0 2ch. REMC 1ch. 8 T8F 2ch. 16 T16 3ch. PWM T16E 1ch. CT 1ch. SWT 1ch. WDT 1ch. 8 OSC1 PWM T8OSC1 1ch. NMI P 3 5 9 HVDD(I/O) 1.65~3.6V LVDD( ) 1.65~1.95V AVDD(I/O) 2.7V 3.6V -40 85 C SLEEP 1µA (typ.)off/1.8v HALT 3.3µA (typ.)32khz/1.8v 4.0mA (typ.)20mhz/1.8v TQFP12-64pin(7mm 7mm 1.2mm 0.4mm) WCSP-48pin(3.124mm 3.124mm 0.78mm 0.4mm) (3.124mm 3.124mm 0.40mm) 1-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

1 1.2 32 bits 1 cycle Internal RAM (4K bytes) CPU Core S1C17 8/16 bits 1 cycle I/O 2 (0x5000 ) DCLK, DST2, DSIO(P41 43) Mask ROM (64K bytes) 16 bits 1 5 cycles A/D converter AIN0 3,#ADTRG (P22 20, P17) MISC register TEST Test circuit #RESET Reset circuit Oscillator/ Clock generator OSC1 2, OSC3 4 FOUT1(P35), FOUTH(P40) I/O 1 (0x4000 ) Interrupt controller 8/16 bits 1 cycle Interrupt system 8-bit OSC1 PWM timer TOUT4(P37) Prescaler Clock timer 8-bit timer Stopwatch timer EXCL0 2 (P02, P13, P14) SIN0, SOUT0, SCLK0(P12 10), SIN1, SOUT1, SCLK1(P30 29,P16) 16-bit timer UART (2ch) Watchdog timer 16-bit PWM timer EXCL3(P15), TOUT3(P36), TOUTN3(P37) SDI, SDO, SPICLK(P06 04) #SPISS(P07) SPI Remote controller REMI(P01), REMO(P00) SDA0, SCL0(P32 31) or (P34 33) SDA1, SCL1(P34 33) #BFR(P35) I 2 C master (1ch) I 2 C slave (1ch) I/O port/ I/O MUX P00 07, P10 17, P20 24, P27, P30 37, P40 43 1.2.1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 1-3

1 1.3 1.3.1 S1C17003 TQFP12-64pin WCSP-48 TQFP12-64pin 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 P23 VSS P24 (SOUT1) P27 (SIN1) P30 LVDD HVDD (SCL0) P31 (SDA0) P32 (SCL1/SCL0) P33 (SDA1/SDA0) P34 (FOUT1/#BFR) P35 HVDD (TOUT3) P36 (TOUTN3) P37 VSS LVDD N.C. P07 (#SPISS) P06 (SDI) HVDD P05 (SDO) P04 (SPICLK) VSS OSC4 VSS N.C. OSC3 VSS OSC2 VSS OSC1 (SCLK) P10 LVDD (SOUT) P11 (SIN) P12 (EXCL1) P13 (EXCL2) P14 HVDD VSS (EXCL3) P15 (SCLK1) P16 N.C. AVDD (AIN3) P17 (AIN2) P20 (AIN1) P21 (AIN0) P22 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 VSS P03 (#ADTRG) P02 (EXCL0) P01 (REMI) P00 (REMO) N.C. #RESET LVDD TEST DCLK (P43) LVDD DST2 (P42) HVDD VSS DSIO (P41) P40 (FOUTH) 1.3.1.1 TQFP12-64pin 1-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

1 WCSP-48 A1 Corner Top View Bottom View A1 Corner A A B C D E F G Index B C D E F G 1 2 3 4 5 6 7 7 6 5 4 3 2 1 Top View A 1 P23 2 3 4 5 6 7 P24 P30 P31 P34 P36 P40 SIN1 SCL0 SDA1 TOUT3 FOUTH SDA0 B P21 AIN1 P22 AIN0 P27 SOUT1 P32 SDA0 P35 FOUT1 #BFR P37 TOUTN3 DSIO P41 C P17 AIN3 P20 AIN2 HVDD P33 SCL1 SCL0 VSS DST2 P42 D P15 EXCL3 P16 SCLK1 AVDD VSS LVDD DCLK P43 TEST E P14 EXCL2 P13 EXCL1 P12 SIN HVDD P01 REMI P00 REMO #RESET F P11 SOUT LVDD P06 SDI P04 SPICLK VSS P03 #ADTRG P02 EXCL0 G P10 SCLK P07 #SPISS P05 SDO OSC4 OSC3 OSC2 OSC1 1.3.1.2 WCSP-48 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 1-5

1 CHIP-88pad 66 60 55 50 45 89 67 44 70 40 75 80 Y (0, 0) X 35 30 3.124mm 85 25 88 23 90 1 5 10 15 20 22 3.124mm 1-6 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

1 PAD No. X (mm) Y (mm) PAD No. X (mm) Y (mm) 1-1.075-1.433 P23 45 1.433 1.075 NC 2-0.975-1.433 VSS 46 1.075 1.433 OSC1 3-0.875-1.433 VSS 47 0.975 1.433 VSS 4-0.775-1.433 P24 48 0.875 1.433 VSS 5-0.675-1.433 NC 49 0.775 1.433 OSC2 6-0.575-1.433 P27 50 0.675 1.433 NC 7-0.475-1.433 P30 51 0.475 1.433 VSS 8-0.375-1.433 LVDD 52 0.375 1.433 OSC3 9-0.275-1.433 LVDD 53 0.275 1.433 NC 10-0.175-1.433 HVDD 54 0.175 1.433 VSS 11-0.063-1.433 HVDD 55 0.063 1.433 OSC4 12 0.063-1.433 P31 56-0.063 1.433 VSS 13 0.175-1.433 P32 57-0.175 1.433 NC 14 0.275-1.433 P33 58-0.275 1.433 P04 15 0.375-1.433 P34 59-0.375 1.433 P05 16 0.475-1.433 P35 60-0.475 1.433 HVDD 17 0.575-1.433 HVDD 61-0.575 1.433 P06 18 0.675-1.433 P36 62-0.675 1.433 P07 19 0.775-1.433 P37 63-0.775 1.433 NC 20 0.875-1.433 VSS 64-0.875 1.433 LVDD 21 0.975-1.433 VSS 65-0.975 1.433 NC 22 1.075-1.433 NC 66-1.075 1.433 NC 23 1.433-1.075 NC 67-1.433 1.075 P10 24 1.433-0.975 P40 68-1.433 0.975 NC 25 1.433-0.875 NC 69-1.433 0.875 LVDD 26 1.433-0.775 DSIO 70-1.433 0.775 LVDD 27 1.433-0.675 VSS 71-1.433 0.675 P11 28 1.433-0.575 VSS 72-1.433 0.575 P12 29 1.433-0.475 HVDD 73-1.433 0.475 P13 30 1.433-0.375 DST2 74-1.433 0.375 P14 31 1.433-0.275 LVDD 75-1.433 0.275 HVDD 32 1.433-0.175 DCLK 76-1.433 0.175 VSS 33 1.433-0.063 TEST 77-1.433 0.063 P15 34 1.433 0.063 LVDD 78-1.433-0.063 VSS 35 1.433 0.175 LVDD 79-1.433-0.175 P16 36 1.433 0.275 #RESET 80-1.433-0.275 AVDD 37 1.433 0.375 NC 81-1.433-0.375 NC 38 1.433 0.475 P00 82-1.433-0.475 AVDD 39 1.433 0.575 P01 83-1.433-0.575 P17/AIN3 40 1.433 0.675 P02 84-1.433-0.675 P20/AIN2 41 1.433 0.775 NC 85-1.433-0.775 AVDD 42 1.433 0.875 P03 86-1.433-0.875 P21/AIN1 43 1.433 0.975 VSS 87-1.433-0.975 P22/AIN0 44 1.433 1.075 VSS 88-1.433-1.075 NC S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 1-7

1 1.3.2 PAD / / No. CHIP TQFP WCSP I/O / 1 1 A1 P23 I/O I(Pull-UP) *2 2 *2 VSS - - ( ) 4 3 A2 P24 I/O I(Pull-UP) 6 4 B3 P27/SOUT1 I/O I(Pull-UP) *1 / UART Ch1 7 5 A3 P30/SIN1 I/O I(Pull-UP) *1 / UART Ch1 *3 6 *3 LVDD - - (+) *4 7 *4 HVDD - - I/O (+) 12 8 A4 P31/SCL0 I/O I(Pull-UP) *1 /I2C 13 9 B4 P32/SDA0 I/O I(Pull-UP) *1 /I2C 14 10 C5 P33/SCL1/SCL0 I/O I(Pull-UP) *1/I2C /I2C 15 11 A5 P34/SDA1/SDA0 I/O I(Pull-UP) *1/I2C /I2C 16 12 B5 P35/FOUT1/#BFR I/O I(Pull-UP) *1/OSC1 /I2C *4 13 *4 HVDD - - I/O (+) 18 14 A6 P36/TOUT3 I/O I(Pull-UP) *1 /T16E Ch0 PWM ( ) 19 15 B6 P37/TOUTN3 I/O I(Pull-UP) *1 /T16E Ch0 PWM ( ) *2 16 *2 VSS - - ( ) 24 17 A7 P40/FOUTH I/O I(Pull-UP) *1 /HSCLK ( ) 26 18 B7 DSIO/P41 I/O I(Pull-UP) *1 / *2 19 *2 VSS - - ( ) *4 20 *4 HVDD - - I/O (+) 30 21 C7 DST2/P42 I/O O(L) *1 / *3 22 *3 LVDD - - (+) 32 23 D6 DCLK/P43 I/O O(H) *1 / 33 24 D7 TEST I I(Pull-DN) ( VSS ) *3 25 *3 LVDD - - (+) 36 26 E7 #RESET I I(Pull-UP) ( ) - 27 - -NC - - - 38 28 E6 P00/REMO I/O I(Pull-UP) *1 /REMC 39 29 E5 P01/REMI I/O I(Pull-UP) *1 /REMC 40 30 F7 P02/EXCL0 I/O I(Pull-UP) *1/T16 Ch0 42 31 F6 P03/#ADTRG I/O I(Pull-UP) *1 /AD *2 32 *2 VSS - - ( ) 46 33 G7 OSC1 I I OSC1 *6 *2 34 *2 VSS - - ( ) 49 35 G6 OSC2 O O OSC1 1-8 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

1 PAD / / No. CHIP TQFP WCSP I/O / *2 36 *2 VSS - - ( ) 52 37 G5 OSC3 I I OSC3 *6-38 - -NC - - - *2 39 *2 VSS - - ( ) 55 40 G4 OSC4 O O OSC3 *2 41 *2 VSS - - ( ) 58 42 F4 P04/SPICLK I/O I(Pull-UP) *1 /SPI 59 43 G3 P05/SDO I/O I(Pull-UP) *1 /SPI *4 44 *4 HVDD - - I/O (+) 61 45 F3 P06/SDI I/O I(Pull-UP) *1 /SPI 62 46 G2 P07/#SPISS I/O I(Pull-UP) *1/SPI - 47 - -NC - - - *3 48 *3 LVDD - - (+) 67 49 G1 P10/SCLK I/O I(Pull-UP) *1/UART Ch0 *3 50 *3 LVDD - - (+) 71 51 F1 P11/SOUT I/O I(Pull-UP) *1/UART Ch0 72 52 E3 P12/SIN I/O I(Pull-UP) *1 /UART Ch0 73 53 E2 P13/EXCL1 I/O I(Pull-UP) *1/T16 Ch1 74 54 E1 P14/EXCL2 I/O I(Pull-UP) *1/T16 Ch2 *4 55 *4 HVDD - - I/O (+) *2 56 *2 VSS - - ( ) 77 57 D1 P15/EXCL3 I/O I(Pull-UP) *1/T16E Ch0 79 58 D2 P16/SCLK1 I/O I(Pull-UP) *1/UART Ch1-59 - -NC - - - *5 60 D3 AVDD - - (+) 83 61 C1 P17/AIN3 I I *1 / AD Ch3 84 62 C2 P20/AIN2 I I *1 / AD Ch2 86 63 B1 P21/AIN1 I I *1 / AD Ch1 87 64 B2 P22/AIN0 I I *1 / AD Ch0 *1 *2 VSS PAD No. 2, 3, 20, 21, 27, 28, 43, 44, 47, 48, 51, 54, 56, 76, 78 VSS BALL No. C6, D4, F5 *3 LVDD PAD No. 8, 9, 31, 34, 35, 64, 69, 70 LVDD BALL No. D5, F2 *4 HVDD PAD No. 10, 11, 17, 29, 60, 75 HVDD BALL No. C4, E4 *5 AVDD PAD No. 80, 82, 85 *6 OSC3 OSC1 LVDD NC pin TQFP NC CHIP/WCSP No. S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 1-9

2 CPU 2 CPU S1C17003 S1C17 S1C17 16 RISC 1 8 CPU S1C17 S1C17 Family S1C17 2.1 S1C17 16 RISC 0.35 0.15µm CMOS 16 111 184 1 24 C 24 8 24 2 8 1, 16M 24 16 32 NMI 32 HALT halt SLEEP slp 16 16 32 16 16 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 2-1

2 CPU 2.2 CPU S1C17 8 3 23 0 23 PC 7 SP 6 PSR 5 7 6 5 4 3 2 1 0 4 3 IL[2:0] IE C V Z N 2 1 0 2.2.1 R7 R6 R5 R4 R3 R2 R1 R0 0 2-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

2 CPU 2.3 S1C17 16 1 S1C17 Family S1C17 2.3.1 S1C17 ld.b %rd,%rs ( ) ( ) %rd,[%rb] %rd,[%rb]+ %rd,[%rb]- %rd,-[%rb] %rd,[%sp+imm7] %rd,[imm7] [%rb],%rs [%rb]+,%rs [%rb]-,%rs -[%rb],%rs [%sp+imm7],%rs ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) [imm7],%rs ( ) ld.ub %rd,%rs ( ) ( ) %rd,[%rb] %rd,[%rb]+ %rd,[%rb]- %rd,-[%rb] %rd,[%sp+imm7] ( ) ( ) ( ) ( ) %rd,[imm7] ( ) ( ) ld %rd,%rs (16 ) %rd,sign7 ( ) %rd,[%rb] %rd,[%rb]+ %rd,[%rb]- %rd,-[%rb] %rd,[%sp+imm7] %rd,[imm7] [%rb],%rs [%rb]+,%rs [%rb]-,%rs -[%rb],%rs [%sp+imm7],%rs (16 ) (16 ) (16 ) (16 ) (16 ) [imm7],%rs (16 ) ld.a %rd,%rs (24 ) %rd,imm7 ( ) %rd,[%rb] (32 ) (*1) %rd,[%rb]+ %rd,[%rb]- %rd,-[%rb] %rd,[%sp+imm7] (32 ) (*1) %rd,[imm7] (32 ) (*1) [%rb],%rs (32 ) (*1) [%rb]+,%rs [%rb]-,%rs -[%rb],%rs [%sp+imm7],%rs (32 ) (*1) [imm7],%rs (32 ) (*1) %rd,%sp SP %rd,%pc PC %rd,[%sp] (32 ) (*1) %rd,[%sp]+ %rd,[%sp]- %rd,-[%sp] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 2-3

2 CPU ld.a [%sp],%rs (32 ) (*1) [%sp]+,%rs [%sp]-,%rs -[%sp],%rs %sp,%rs (24 ) SP %sp,imm7 SP add %rd,%rs 16 add/c add/nc add %rd,imm7 (/c: C = 1, /nc: C = 0 ) 16 add.a %rd,%rs 24 add.a/c (/c: C = 1, /nc: C = 0 ) add.a/nc add.a %sp,%rs SP 24 %rd,imm7 24 %sp,imm7 SP 24 adc %rd,%rs 16 adc/c adc/nc adc %rd,imm7 (/c: C = 1, /nc: C = 0 ) 16 sub %rd,%rs 16 sub/c sub/nc sub %rd,imm7 (/c: C = 1, /nc: C = 0 ) 16 sub.a %rd,%rs 24 sub.a/c sub.a/nc sub.a %sp,%rs (/c: C = 1, /nc: C = 0 ) SP 24 %rd,imm7 24 %sp,imm7 SP 24 sbc %rd,%rs 16 sbc/c sbc/nc sbc %rd,imm7 (/c: C = 1, /nc: C = 0 ) 16 cmp %rd,%rs 16 cmp/c cmp/nc cmp %rd,sign7 (/c: C = 1, /nc: C = 0 ) 16 cmp.a %rd,%rs 24 cmp.a/c cmp.a/nc cmp.a %rd,imm7 (/c: C = 1, /nc: C = 0 ) 24 cmc %rd,%rs 16 cmc/c cmc/nc cmc %rd,sign7 (/c: C = 1, /nc: C = 0 ) 16 and %rd,%rs and/c and/nc and %rd,sign7 (/c: C = 1, /nc: C = 0 ) or %rd,%rs or/c or/nc or %rd,sign7 (/c: C = 1, /nc: C = 0 ) xor %rd,%rs xor/c xor/nc xor %rd,sign7 (/c: C = 1, /nc: C = 0 ) not %rd,%rs (1 ) not/c not/nc not %rd,sign7 (/c: C = 1, /nc: C = 0 ) (1 ) 2-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

2 CPU & sr %rd,%rs ( ) %rd,imm7 ( ) sa %rd,%rs ( ) %rd,imm7 ( ) sl %rd,%rs ( ) %rd,imm7 ( ) swap %rd,%rs 16 ext imm13 cv.ab %rd,%rs 8 24 cv.as %rd,%rs 16 24 cv.al %rd,%rs 32 24 cv.la %rd,%rs 24 32 cv.ls %rd,%rs 16 32 sign10 jpr jpr.d jpa jpa.d jrgt jrgt.d jrge jrge.d jrlt jrlt.d jrle jrle.d jrugt jrugt.d jruge jruge.d jrult jrult.d jrule jrule.d jreq jreq.d jrne jrne.d call call.d calla calla.d ret ret.d PC %rb imm7 %rb sign7 PC :!Z &!(N ^ V) sign7 PC :!(N ^ V) sign7 PC : N ^ V sign7 PC : Z N ^ V sign7 PC :!Z &!C sign7 PC :!C sign7 PC : C sign7 PC : Z C sign7 PC : Z sign7 PC :!Z sign10 PC %rb imm7 %rb int imm5 intl imm5,imm3 reti reti.d brk retd nop halt HALT slp SLEEP ei di ld.cw %rd,%rs %rd,imm7 ld.ca %rd,%rs %rd,imm7 ld.cf %rd,%rs %rd,imm7 *1 ld.a 32 8 0 32 8 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 2-5

2 CPU %rs %rd [%rb] [%rb]+ [%rb]- -[%rb] %sp [%sp],[%sp+imm7] [%sp]+ [%sp]- -[%sp] imm3,imm5,imm7,imm13 sign7,sign10 2.3.2 ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 2-6 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

2 CPU 2.4 S1C17 6. ITC MISC_TTBRL MISC_TTBRH 0x5328 0x532a TTBR MISC_TTBRL/MISC_TTBRH 0x8000 MISC_TTBRL 7 0 0 256 0x5328 0x532a: Vector Table Address Low/High Registers (MISC_TTBRL, MISC_TTBRH) Register name Address Bit Name Function Setting Init. R/W Remarks Vector Table 0x5328 D15 8 TTBR[15:8] Vector table base address A[15:8] 0x0 0xff 0x80 R/W Address Low Register (MISC_TTBRL) (16 bits) D7 0 TTBR[7:0] Vector table base address A[7:0] (fixed at 0) 0x0 0x0 R Vector Table Address High Register (MISC_TTBRH) 0x532a (16 bits) D15 8 reserved 0 when being read. D7 0 TTBR[23:16] Vector table base address A[23:16] 0x0 0xff 0x0 R/W : MISC_TTBRL/MISC_TTBRH MISC Protect Register 0x5324 0x96 MISC_TTBRL/MISC_TTBRH MISC Protect Register 0x5324 0x96 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 2-7

2 CPU 2.5 PSR S1C17003 S1C17 PSR Processor Status Register PSR Register 0x532c PSR PSR 0x532c: PSR Register (MISC_PSR) Register name Address Bit Name Function Setting Init. R/W Remarks PSR Register (MISC_PSR) 0x532c (16 bits) D15 8 reserved 0 when being read. D7 5 PSRIL[2:0] PSR interrupt level (IL) bits 0x0 to 0x7 0x0 R D4 PSRIE PSR interrupt enable (IE) bit 1 1 (enable) 0 0 (disable) 0 R D3 PSRC PSR carry (C) flag 1 1 (set) 0 0 (cleared) 0 R D2 PSRV PSR overflow (V) flag 1 1 (set) 0 0 (cleared) 0 R D1 PSRZ PSR zero (Z) flag 1 1 (set) 0 0 (cleared) 0 R D0 PSRN PSR negative (N) flag 1 1 (set) 0 0 (cleared) 0 R D[7:5] D4 D3 D2 D1 D0 PSRIL[2:0]: PSR Interrupt Level (IL) Bits PSR IL : 0x0 PSRIE: PSR Interrup Enable (IE) Bit PSR IE 1 R : 1 0 R : 0 PSRC: PSR Carry (C) Flag PSR C 1 R : 1 0 R : 0 PSRV: PSR Overflow (V) Flag PSR V 1 R : 1 0 R : 0 PSRZ: PSR Zero (Z) Flag PSR Z 1 R : 1 0 R : 0 PSRN: PSR Negative (N) Flag PSR N 1 R : 1 0 R : 0 2-8 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

2 CPU 2.6 S1C17003 Processor ID Register 0xffff84 CPU 0xffff84: Processor ID Register (IDIR) Register name Address Bit Name Function Setting Init. R/W Remarks Processor ID Register (IDIR) 0xffff84 (8 bits) D7 0 IDIR[7:0] Processor ID 0x10: S1C17 Core 0x10 0x10 R ID S1C17 ID 0x10 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 2-9

3, 3, 3.1 S1C17003 ( ) 0xff ffff 0xff fc00 0xff fbff 0x01 8000 0x01 7fff 0x00 8000 0x00 7fff 0x00 6000 0x00 5fff 0x00 5000 0x00 4fff 0x00 4400 0x00 43ff 0x00 4000 0x00 3fff 0x00 1000 0x00 0fff 0x00 0fc0 0x00 0000 I/O (1K, 1 ) reserved Mask ROM (64K ) reserved 2 (4K, 1 ) reserved 1 (1K, 1 ) reserved RAM (64 ) RAM (4K, 1 ) ( : 32 ) 0x5400~0x5fff reserved 0x53c0~0x53ff reserved 0x53a0~0x53bf reserved 0x5380~0x539f A/D 0x5360~0x537f reserved 0x5340~0x535f 0x5320~0x533f MISC 0x5300~0x531f PWM Ch.0 0x52c0~0x52ff reserved 0x52a0~0x52bf MUX 0x5280~0x529f reserved 0x5200~0x527f P 0x5140~0x51ff reserved 0x5120~0x513f reserved 0x5100~0x511f reserved 0x50e0~0x50ff reserved 0x50c0~0x50df 8 OSC1 0x50a0~0x50bf reserved 0x5080~0x509f 0x5060~0x507f 0x5040~0x505f 0x5020~0x503f 0x5000~0x501f 0x4380~0x43ff reserved 0x4360~0x437f I 2 C 0x4340~0x435f I 2 C 0x4320~0x433f SPI 0x42c0~0x431f 0x4280~0x42ff 8 Ch.1 0x4260~0x427f 16 Ch.2 0x4240~0x425f 16 Ch.1 0x4220~0x423f 16 Ch.0 0x4200~0x421f 8 Ch.0 0x4120~0x41ff UART Ch.1 0x4100~0x411f UART Ch.0 0x4040~0x40ff reserved 0x4020~0x403f 0x4000~0x401f reserved (16 ) (16 ) (16 ) (16 ) (8 ) (8 ) (8 ) (8 ) (8 ) (8 ) (8 ) (8 ) (16 ) (16 ) (16 ) (16 ) (16 ) (16 ) (16 ) (16 ) (16 ) (8 ) (8 ) (8 ) 3.1 S1C17003 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 3-1

3, 3.1 CPU CCLK CCLK 8.2 CPU CCLK CCLK 1 CCLK 1 3.1 1 CPU 3.1.1 CPU 8 8 1 16 2 32 * 4 16 8 1 16 1 32 * 2 32 8 1 16 1 32 * 1 * 32 8 32 8 0 8 PSR 8 24 32 / 3.1.1 8 16 32 3.1.2 RAM RAM 3-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

3, 3.2 ROM 3.2.1 ROM 0x8000 0x17fff 64K ROM 0x8000 ( 2.4 ) MISC_TTBRL/MISC_TTBRH (0x5328 0x532a) ROM 1 5 3.2.2 ROM S1C17602 ROM FLCYC[2:0](D[2:0]/ MISC_FL ) FLCYC[2:0] 0x4 0x5320: ROM Control Register (MISC_FL) Register name Address Bit Name Function Setting Init. R/W Remarks ROM Control 0x5320 D15-3 reserved 0 when being read. Register (MISC_FL) (16bits) D2-0 FLCYC[2:0] FLASHC read access cycle FLCYC[2:0] Read cycle 0x3 R/W 0x7-0x5 0x4 0x3 0x2 0x1 0x0 reserved 1 cycle 5 cycles 4 cycles 3 cycles 2 cycles D[2:0] FLCYC[2:0]: FLASHC Read Access Cycle Setup Bits ROM 3.2.2.1 ROM FLCYC[2:0] CCLK 0x7 0x5 Reserved 0x4 1 20MHz max. 0x3 5 20MHz max. 0x2 4 20MHz max. 0x1 3 20MHz max. 0x0 2 20MHz max. : 0x3 : CCLK FLCYC[2:0]=0x4 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 3-3

3, 3.3 RAM 3.3.1 RAM 0x0 0xfff 4K RAM RAM / 1 RAM : RAM 64 0xfc0 0xfff S1C17003 RAM 4KB 2KB S1C17003 ROM RAM RAM IRAMSZ[1:0] D[1:0]/MISC_IRAMSZ 0x5326: IRAM Size Select Register (MISC_IRAMSZ) Register name Address Bit Name Function Setting Init. R/W Remarks IRAM Size 0x5326 D15 2 reserved 0 when being read. Select Register (MISC_IRAMSZ) (16 bits) D1 0 IRAMSZ[1:0] IRAM size select IRAMSZ[1:0] Read cycle 0x2 R/W 0x3 0x2 0x1 0x0 reserved reserved reserved reserved D[1:0] IRAMSZ[1:0]: IRAM Size Select Bits RAM 3.3.1.1 RAM IRAMSZ[1:0] RAM 0x3 reserved 0x2 reserved 0x1 reserved 0x0 reserved : 0x2 : IRAM Size Select Register MISC Protect Register 0x5324 0x96 IRAM Size Select Register MISC Protect Register 0x5324 0x96 IRAMSZ[2:0]/MISC_IRAMSZ 3-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

3, 3.4 0x4000 1K 0x5000 4K I/O 3.4.1 1 0x4000~ 0x4000 1 I/O 1 PSC, 8 UART UART, 8 8 T8F, 16 16 T16, 16 ITC, 16 SPI SPI, 16 I 2 C I2C, 16 I 2 C I2C, 16 3.4.2 2 0x5000~ 0x5000 2 I/O 1 CT, 8 SWT, 8 WDT, 8 OSC, 8 CLG, 8 8 OSC1 PWM T8OSC1, 8 & MUX P, 8 PWM T16E, 16 MISC MISC, 16 REMC, 16 A/D ADC10, 16 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 3-5

3, 3.5 I/O 0xfffc00 0xffffff 1K CPU I/O I/O 3.5.1 I/O I/O S1C17 I/O 0xffff84 IDIR Processor ID Register ID 0xffff90 DBRAM Debug RAM Base Register RAM 0xffffa0 DCR Debug Control Register 0xffffb8 IBAR2 Instruction Break Address Register 2 #2 0xffffbc IBAR3 Instruction Break Address Register 3 #3 0xffffd0 IBAR4 Instruction Break Address Register 4 #4 IDIR 2.6 24 DBG S1C17 S1C17 3-6 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

4 4 SIC17003 4.1 S1C17003 4.1.1 TQFP Pin No. WCSP 4.1.1 I/O PU/PD HVDD 7, 13, 20, 44, 55 C4, E4 3.3V I/O (+)(1.8V/2.5V/3.3V) LVDD 6, 22, 25, 48, 50 D5, F2 1.8V (+)(1.8V) VSS 2, 16, 19, 32, 34, 36, D4, C6, F5 GND GND 39, 41, 56 AVDD 60 D3 3.3V (3.0V/3.3V) 1.8V Typ. (1.65 1.95V) GND LVDD VSS CPU 1.65 3.60V HVDD I/O 2.70 3.60V AVDD (A/D ) 4.1.1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 4-1

4 4.2 LVDD, VSS S1C17003 CPU LVDD VSS LVDD = 1.65V 1.95V 1.80V ± 0.15V VSS = GND : S1C17003 TQFP 5 LVDD 9 VSS WCSP 2 LVDD 3 VSS 4.3 I/O HVDD HVDD S1C17003 High HVDD Low VSS GND LVDD VSS HVDD HVDD = 1.65V 3.60V VSS = GND : S1C17003 TQFP 5 WCSP 2 HVDD OSC3 OSC1 LVDD 4.4 AVDD A/D LVDD HVDD AVDD AVDD VSS GND AVDD AVDD = 2.70V 3.60V 1.65V 3.60V VSS = GND : AVDD 1.65 3.60V HVDD ADC P0x AVDD = 1.65 3.60V High AVDD Low GND A/D 4-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

4 4.5 HVDD, AVDD LVDD OSC3 tlvdd LVDD min. tsta3 trst #RESET 4.5.1 1 tlvdd: : LVDD HVDD I/O, AVDD A/D LVDD, HVDD I/O, AVDD A/D " " 2 tsta3: OSC3 3 trst: 6 #RESET Low : HVDD : HVDD I/O, AVDD A/D LVDD HVDD I/O, AVDD A/D, LVDD : LVDD LVDD HVDD AVDD HVDD AVDD LVDD HVDD AVDD 1 HVDD AVDD CMOS CMOS IC PNPN HVDD VSS HVDD HVDD VSS 1 VSS 2 3 HVDD AVDD VSS 4 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 4-3

5 5 5.1 S1C17003 3 1 #RESET 2 P0 P00 P03 3 5.1.1 VDD S Q #RESET R P00 P01 P02 P03 P0KRST WDTMD 5.1.1 CPU CPU 5.1.1 #RESET #RESET Low S1C17003 #RESET Low 26.4 #RESET Low High CPU #RESET S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 5-1

5 5.1.2 P0 P00 P03 Low P0KRST[1:0] D[1:0]/P0_KRST * P0KRST[1:0]: P0 Port Key-Entry Reset Configuration Bits in the P0 Port Key-Entry Reset Configuration (P0_KRST) Register (D[1:0]/0x5209) 5.1.2.1 P0 P0KRST[1:0] 0x3 0x2 0x1 0x0 P00, P01, P02, P03 P00, P01, P02 P00, P01 P0KRST[1:0] 0x3 P00 P03 4 Low : P0 Low P0 SLEEP P0 5.1.3 S1C17003 CPU 4 CPU NMI WDTMD D1/WDT_ST 1 WDTMD 0 NMI * WDTMD: NMI/Reset Mode Select Bit in the Watchdog Timer Status (WDT_ST) Register (D1/0x5041) 17 WDT : 4 5-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

5 5.2 #RESET CPU 5.2.1 CPU fosc3 * fosc3: OSC3 : SLEEP 5.2.1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 5-3

5 5.3 CPU R0 R7: 0x0 PSR: 0x0 = 0 SP: 0x0 PC: RAM Appendix I/O 5-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 6 ITC 6.1 ITC ITC / 6.1.1 S1C17 NMI 6.1.1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-1

6 ITC 6.2 S1C17 MISC_TTBRL MISC_TTBRH 0x5328 0x532a 2.4 6.2.1 TTBR MISC_TTBRL/MISC_TTBRH 0x8000 6.2.1 S1C17003 6.2.1 1 No./ No. 0 (0x00) TTBR + 0x00 #RESET Low *2 1 (0x01) TTBR + 0x04 2 (0xfffc00) brk 3 2 (0x02) TTBR + 0x08 NMI *2 4 3 (0x03) TTBR + 0x0c C reserved C 4 (0x04) TTBR + 0x10 P0 P00~P07 *1 5 (0x05) TTBR + 0x14 P1 P10~P17 6 (0x06) TTBR + 0x18 100Hz 10Hz 1Hz 7 (0x07) TTBR + 0x1c 32Hz 8Hz 2Hz 1Hz 8 (0x08) TTBR + 0x20 8 OSC1 9 (0x09) TTBR + 0x24 reserved 10 (0x0a) TTBR + 0x28 reserved 11 (0x0b) TTBR + 0x2c PWM Ch.0 A B 12 (0x0c) TTBR + 0x30 8 Ch.0/Ch.1 13 (0x0d) TTBR + 0x34 16 Ch.0 14 (0x0e) TTBR + 0x38 16 Ch.1 15 (0x0f) TTBR + 0x3c 16 Ch.2 16 (0x10) TTBR + 0x40 UART Ch.0 17 (0x11) TTBR + 0x44 UART Ch.1 /I 2 C UART Ch1 UART Ch1 UART Ch1 I 2 C I 2 C I 2 C 18 (0x12) TTBR + 0x48 SPI 19 (0x13) TTBR + 0x4c I 2 C 20 (0x14) TTBR + 0x50 21 (0x15) TTBR + 0x54 reserved 22 (0x16) TTBR + 0x58 A/D 23 (0x17) TTBR + 0x5c reserved 24 (0x18) TTBR + 0x60 reserved : : : : 31 (0x1f) TTBR + 0x7c reserved *1 *1 *2 NMI 4 8, 11 20, 22 S1C17003 6-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 6.3 6.3.1 1 1 ITC S1C17 0 1 ITC 1 ITC 1 reti 6.3.2 ITC ITC S1C17 6.2.1 ITC S1C17 IL PSR S1C17 6.3.3 ITC 0 0 S1C17 ITC 0 7 6.3.2.1 P0 ILV0[2:0] D[2:0]/ITC_LV0 0x4306 P1 ILV1[2:0] D[10:8]/ITC_LV0 0x4306 ILV2[2:0] D[2:0]/ITC_LV1 0x4308 ILV3[2:0] D[10:8]/ITC_LV1 0x4308 8 OSC1 ILV4[2:0] D[2:0]/ITC_LV2 0x430a reserved ILV5[2:0] D[10:8]/ITC_LV2 0x430a reserved ILV6[2:0] D[2:0]/ITC_LV3 0x430c PWM Ch.0 ILV7[2:0] D[10:8]/ITC_LV3 0x430c 8 Ch.0/Ch.1 ILV8[2:0] D[2:0]/ITC_LV4 0x430e 16 Ch.0 ILV9[2:0] D[10:8]/ITC_LV4 0x430e 16 Ch.1 ILV10[2:0] D[2:0]/ITC_LV5 0x4310 16 Ch.2 ILV11[2:0] D[10:8]/ITC_LV5 0x4310 UART Ch.0 ILV12[2:0] D[2:0]/ITC_LV6 0x4312 UART Ch.1/I 2 C ILV13[2:0] D[10:8]/ITC_LV6 0x4312 SPI ILV14[2:0] D[2:0]/ITC_LV7 0x4314 I 2 C ILV15[2:0] D[10:8]/ITC_LV7 0x4314 ILV16[2:0] D[2:0]/ITC_LV8 0x4316 reserved ILV17[2:0] D[10:8]/ITC_LV8 0x4316 A/D ILV18[2:0] D[2:0]/ITC_LV9 0x4318 reserved ILV19[2:0] D[10:8]/ITC_LV9 0x4318 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-3

6 ITC ITC ITC S1C17 1. 2. S1C17 ITC S1C17 S1C17 ITC 6.3.3 S1C17 S1C17 PSR S1C17 IE 1 PSR IL NMI 1 S1C17 S1C17 S1C17 1 PSR PC 2 PSR IE 0 3 PSR IL NMI 4 PC 2 IE 1 3 IL reti PSR 6-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 6.4 NMI S1C17003 NMI NMI 2 + 8 S1C17 NMI 17 WDT S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-5

6 ITC 6.5 S1C17 int imm5 intl imm5,imm3 imm5 0 31 intl imm3 PSR IL 0 7 6-6 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 6.6 HALT, SLEEP HALT SLEEP CPU ITC CPU NMI ITC CPU HALT SLEP CPU halt slp ITC HALT SLEP Appendix B B.1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-7

6 ITC 6.7 6.7.1 ITC 0x4306 ITC_LV0 Interrupt Level Setup Register 0 P0 P1 0x4308 ITC_LV1 Interrupt Level Setup Register 1 SWT CT 0x430a ITC_LV2 Interrupt Level Setup Register 2 T8OSC1 0x430c ITC_LV3 Interrupt Level Setup Register 3 T16E Ch.0 0x430e ITC_LV4 Interrupt Level Setup Register 4 T8F Ch.0/Ch.1 T16 Ch.0 0x4310 ITC_LV5 Interrupt Level Setup Register 5 T16 Ch.1 Ch.2 0x4312 ITC_LV6 Interrupt Level Setup Register 6 UART CH.0 Ch.1/I 2 C 0x4314 ITC_LV7 Interrupt Level Setup Register 7 SPI I 2 C 0x4316 ITC_LV8 Interrupt Level Setup Register 8 REMC 0x4318 ITC_LV9 Interrupt Level Setup Register 9 A/D ITC 16 : Reserved 0 1 6-8 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 0x4306: Interrupt Level Setup Register 0 (ITC_LV0) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4306 Setup Register 0 (16 bits) (ITC_LV0) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV1[2:0] P1 interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV0[2:0] P0 interrupt level 0 to 7 0x0 R/W D[10:8] D[7:3] D[2:0] ILV1[2:0]: P1 Port Interrupt Level Bits P1 0 7 : 0 S1C17 PSR IL ITC ITC ITC_LVx 0x4306 0x4318 S1C17 S1C17 ITC S1C17 S1C17 ITC Reserved ILV0[2:0]: P0 Port Interrupt Level Bits P0 0 7 : 0 ILV1[2:0] D[10:8] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-9

6 ITC 0x4308: Interrupt Level Setup Register 1 (ITC_LV1) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4308 Setup Register 1 (16 bits) (ITC_LV1) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV3[2:0] CT interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV2[2:0] SWT interrupt level 0 to 7 0x0 R/W D[10:8] D[7:3] D[2:0] ILV3[2:0]: Clock Timer Interrupt Level Bits 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved ILV2[2:0]: Stopwatch Timer Interrupt Level Bits 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] 6-10 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 0x430a: Interrupt Level Setup Register 2 (ITC_LV2) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x430a Setup Register 2 (16 bits) (ITC_LV2) D15 3 reserved 0 when being read. D2 0 ILV4[2:0] T8OSC1 interrupt level 0 to 7 0x0 R/W D[15:3] D[2:0] Reserved ILV4[2:0]: 8-bit OSC1 Timer Interrupt Level Bits 8 OSC1 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-11

6 ITC 0x430c: Interrupt Level Setup Register 3 (ITC_LV3) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x430c Setup Register 3 (16 bits) (ITC_LV3) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV7[2:0] T16E Ch.0 interrupt level 0 to 7 0x0 R/W D7 0 reserved 0 when being read. D[10:8] D[7:0] ILV7[2:0]: PWM & Capture Timer Ch.0 Interrupt Level Bits PWM Ch.0 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved 6-12 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 0x430e: Interrupt Level Setup Register 4 (ITC_LV4) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x430e Setup Register 4 (16 bits) (ITC_LV4) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV9[2:0] T16 Ch.0 interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV8[2:0] T8F Ch.0/Ch.1 interrupt level 0 to 7 0x0 R/W D[10:8] D[7:3] D[2:0] ILV9[2:0]: 16-bit Timer Ch.0 Interrupt Level Bits 16 Ch.0 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved ILV8[2:0]: 8-bit Timer Ch.0/Ch.1 Interrupt Level Bits 8 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-13

6 ITC 0x4310: Interrupt Level Setup Register 5 (ITC_LV5) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4310 Setup Register 5 (16 bits) (ITC_LV5) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV11[2:0] T16 Ch.2 interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV10[2:0] T16 Ch.1 interrupt level 0 to 7 0x0 R/W D[10:8] D[7:3] D[2:0] ILV11[2:0]: 16-bit Timer Ch.2 Interrupt Level Bits 16 Ch.2 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved ILV10[2:0]: 16-bit Timer Ch.1 Interrupt Level Bits 16 Ch.1 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] 6-14 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 0x4312: Interrupt Level Setup Register 6 (ITC_LV6) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4312 D15 11 reserved 0 when being read. Setup Register 6 (16 bits) (ITC_LV6) D10 8 ILV13[2:0] UART Ch.1/I 2 C (slave) interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV12[2:0] UART Ch.0 interrupt level 0 to 7 0x0 R/W D[15:11] Reserved D[10:8] D[7:3] D[2:0] ILV13[2:0]: UART Ch.1/I 2 C (slave) Interrupt Level Bits UART Ch.1 I2C slave 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved ILV12[2:0]: UART Ch.0 Interrupt Level Bits UART Ch.0 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-15

6 ITC 0x4314: Interrupt Level Setup Register 7 (ITC_LV7) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4314 Setup Register 7 (16 bits) (ITC_LV7) D[15:11] Reserved D15 11 reserved 0 when being read. D10 8 ILV15[2:0] I 2 C (master) interrupt level 0 to 7 0x0 R/W D7 3 reserved 0 when being read. D2 0 ILV14[2:0] SPI interrupt level 0 to 7 0x0 R/W D[10:8] D[7:3] D[2:0] ILV15[2:0]: I 2 C (master) Interrupt Level Bits I 2 C 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] Reserved ILV14[2:0]: SPI Interrupt Level Bits SPI 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] 6-16 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 0x4316: Interrupt Level Setup Register 8 (ITC_LV8) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4316 Setup Register 8 (16 bits) (ITC_LV8) D15 3 reserved 0 when being read. D2 0 ILV16[2:0] REMC interrupt level 0 to 7 0x0 R/W D[15:3] D[2:0] Reserved ILV16[2:0]: REMC Interrupt Level Bits 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-17

6 ITC 0x4318: Interrupt Level Setup Register 9 (ITC_LV9) Register name Address Bit Name Function Setting Init. R/W Remarks Interrupt Level 0x4318 Setup Register 9 (16 bits) (ITC_LV9) D15 3 reserved 0 when being read. D2 0 ILV18[2:0] A/D converter interrupt level 0 to 7 0x0 R/W D[15:3] D[2:0] Reserved ILV18[2:0]: A/D Convertere Interrupt Level Bits A/D 0 7 : 0 ITC_LV0 0x4306 ILV1[2:0] D[10:8] 6-18 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

6 ITC 6.8 PSR reti S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 6-19

7 OSC 7 OSC 7.1 OSC S1C17003 2 OSC3 OSC1 OSC3 S1C17 OSC1 OSC3 On/Off OSC3 OSC1 HSCLK( ) OSC3 7.1.1 OSC OSC CLG OSC3 OSC4 OSC3 wakeup HSCLK OSC1 (1/1~1/8) HALT CCLK BCLK S1C17, RAM, ROM FOUTH OSC1 OSC2 FOUT1 RESET NMI SLEEP, On/Off FOUTH On/Off SLEEP, On/Off OSC1 FOUT1 On/Off On/Off (1/1~1/4) S1C17 S1C17 OSC1 On/Off On/Off (1/128) (1/1~1/32) HALT (1/1~1/16K) PSC PCLK T16, T8F, UART, SPI, I2C( ), T16E, P, MISC, REMC, ADC, I2C( ) T8F, T16, T16E, REMC, P, UART, SPI, I2C( ), ADC CLK_256Hz CT, SWT, WDT T8OSC1 On/Off On/Off 7.1.1 OSC Appendix B S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-1

7 OSC 7.2 OSC3 OSC3 S1C17 7.2.1 OSC3 CG3 Rf OSC3 X'tal3 or Ceramic fosc3 CD3 VSS OSC4 7.2.1 OSC3 SLEEP OSC3 OSC4 X'tal3 Ceramic Rf OSC3 OSC4 VSS 2 CG3 CD3 OSC3 On/Off OSC3 OSC3EN D0/OSC_CTL 0 1 OSC3 SLEEP * OSC3EN: OSC3 Enable Bit in the Oscillation Control (OSC_CTL) Register (D0/0x5061) OSC3EN 1 OSC3 OSC3 On/Off 7.4 OSC3 OSC3 SLEEP OSC3 On OSC3 OSC3 OSC3 OSC3WT[1:0] D[5:4]/OSC_CTL 4 * OSC3WT[1:0]: OSC3 Wait Cycle Select Bits in the Oscillation Control (OSC_CTL) Register (D[5:4]/0x5061) 7.2.1 OSC3 OSC3WT[1:0] 0x3 128 0x2 256 0x1 512 0x0 1024 : 0x0 1024 OSC3 : OSC3 OSC3 max. OSC3 OSC3 OSC3 VSS 26 7-2 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 7.3 OSC1 OSC1 32.768kHz OSC1 8 OSC1 OSC3 7.3.1 OSC1 OSC1 SLEEP fosc1 CG1 X'tal1 OSC2 VSS 7.3.1 OSC1 VSS OSC1 OSC2 X'tal1 Typ. 32.768kHz OSC1 VSS CG1 0 25pF OSC1 On/Off OSC1 OSC1EN D1/OSC_CTL 0 1 OSC1 SLEEP * OSC1EN: OSC1 Enable Bit in the Oscillation Control (OSC_CTL) Register (D1/0x5061) OSC1EN 0 OSC1 OSC1 SLEEP OSC1 On OSC1 OSC1 OSC1 256 OSC OSC1 max. OSC1 OSC1 OSC1 OSC2 : OSC1 OSC2 OSC1EN D1/OSC_CTL 0 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-3

7 OSC 7.4 S1C17003 OSC1-HSCLK 7.4.1 CLKSRC OSC3 =HSCLK OSC1 7.4.1 OSC1 HSCLK S1C17003 OSC1 OSC1 HSCLK HSCLK OSC1 OSC1 On 7.4 CLKSRC D0/OSC_SRC 1 HSCLK HSCLK SRCSRC 0 * CLKSRC: System Clock Source Select Bit in the Clock Source Select (OSC_SRC) Register (D0/0x5060) : OSC1_HSCLK OSC1 HSCLK CLKSRC CLKSRC Off CLKSRC CLKSRC 1 OSC1 HSCLK HSCLK OSC1 HSCLK 1 OSC1 1 7-4 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 7.5 8 OSC1 OSC 8 OSC1 8 OSC1 OSC1 14 8 OSC1 T8OSC1 OSC1 (1/1~1/32) 8 OSC1 On/Off 7.5.1 8 OSC1 T8O1CK[2:0] D[3:1]/OSC_T8OSC1 OSC1 * T8O1CK[2:0]: T8OSC1 Clock Division Ratio Select Bits in the T8OSC1 Clock Control (OSC_T8OSC1) Register (D[3:1]/0x5065) 7.5.1 T8OSC1 T8O1CK[2:0] 0x7 0x6 Reserved 0x5 OSC1 1/32 0x4 OSC1 1/16 0x3 OSC1 1/8 0x2 OSC1 1/4 0x1 OSC1 1/2 0x0 OSC1 1/1 : 0x0 8 OSC1 T8O1CE D0/OSC_T8OSC1 T8O1CE 0 T8O1CE 1 8 OSC1 8 OSC1 * T8O1CE: T8OSC1 Clock Enable Bit in the T8OSC1 Clock Control (OSC_T8OSC1) Register (D0/0x5065) : T8O1CK[2:0] D[3:1]/0x5065 T8O1CE D0/0x5065 0 8 OSC1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-5

7 OSC 7.6 FOUTH, FOUT1 HSCLK FOUTH OSC1 FOUT1 P40 HSCLK (1/1~1/4) FOUTH FOUTH(P40) On/Off P35 P40 OSC1 FOUT1 FOUT1(P35) On/Off 7.6.1 P35 FOUTH FOUTH HSCLK FOUTH P40 P40 FOUTH P40MUX D0/P4_PMUX 1 * P40MUX: P40 Port Function Select Bit in the P4 Port Function Select (P4_PMUX) Register (D0/0x52a8) FOUTH 3 FOUTHD[1:0] D[3:2]/OSC_FOUT HSCLK * FOUTHD[1:0]: FOUTH Clock Division Ratio Select Bits in the FOUT Control (OSC_FOUT) Register (D[3:2]/0x5064) 7.6.1 FOUTH FOUTHD[1:0] 0x3 Reserved 0x2 HSCLK 1/4 0x1 HSCLK 1/2 0x0 HSCLK 1/1 : 0x0 FOUTHE D1/OSC_FOUT FOUTHE 1 FOUTH FOUTH FOUTHE 0 * FOUTHE: FOUTH Output Enable Bit in the FOUT Control (OSC_FOUT) Register (D1/0x5064) FOUTHE FOUTH (P30) 0 1 0 7.6.2 FOUTH : FOUTH FOUTHE On/Off FOUTH 1 FOUTHD[1:0] D[3:2]/0x5064 FOUTHE D1/ 0x5064 0 7-6 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC FOUT1 FOUT1 OSC1 FOUT1 P35 P35 FOUT1 P35MUX D3/P1_PMUX 1 * P35MUX: P35 Port Function Select Bit in the P3 Port Function Select (P3_PMUX) Register (D3-2/0x52a7) FOUT1E D0/OSC_FOUT FOUT1E 1 FOUT1 FOUT1 FOUT1E 0 * FOUT1E: FOUT1 Output Enable Bit in the FOUT Control (OSC_FOUT) Register (D0/0x5064) FOUT1E FOUT1 (P13) 0 1 0 7.6.3 FOUT1 : FOUT1 FOUT1E On/Off S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-7

7 OSC 7.7 RESET, NMI S1C17 RESET NMI NMI OSC S1C17 RESET : RSTFE D1/OSC_NFEN = 1 RSTFE = 0 NMI : NMIFE D0/OSC_NFEN = 1 NMIFE = 0 * RSTFE: Reset Noise Filter Enable Bit in the Noise Filter Enable (OSC_NFEN) Register (D1/0x5062) * NMIFE: NMI Noise Filter Enable Bit in the Noise Filter Enable (OSC_NFEN) Register (D0/0x5062) : RESET S1C17003 NMI NMI 7-8 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 7.8 7.8.1 OSC 0x5060 OSC_SRC Clock Source Select Register 0x5061 OSC_CTL Oscillation Control Register 0x5062 OSC_NFEN Noise Filter Enable Register ON/OFF 0x5063 reserved reserved reserved 0x5064 OSC_FOUT FOUT Control Register 0x5065 OSC_T8OSC1 T8OSC1 Clock Control Register 8 OSC1 0x5066 reserved reserved reserved 0x5067 reserved reserved reserved OSC 8 : Reserved 0 1 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-9

7 OSC 0x5060: Clock Source Select Register (OSC_SRC) Register name Address Bit Name Function Setting Init. R/W Remarks Clock Source Select Register (OSC_SRC) 0x5060 (8 bits) D7 2 reserved 0 when being read. D1 HSCLKSEL High-speed clock select 1 OSC3 1 R 1 when being read. D0 CLKSRC System clock source select 1 OSC1 0 HSCLK 0 R/W D[7:2] D1 D0 Reserved HSCLKSEL: High-speed Clock Select Bit HSCLK 1 R : OSC3 CLKSRC: System Clock Source Select Bit 1 R/W : OSC1 0 R/W : HSCLK HSCLK OSC3 HSCLK OSC1 HSCLK OSC3 : OSC1 HSCLK OSC1 OSC1 OSC1 256 CLKSRC D0/0x5060 CLKSRC 1 7-10 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 0x5061: Oscillation Control Register (OSC_CTL) Register name Address Bit Name Function Setting Init. R/W Remarks Oscillation Control Register (OSC_CTL) 0x5061 (8 bits) D7 6 reserved 0 when being read. D5 4 OSC3WT[1:0] OSC3 wait cycle select OSC3WT[1:0] Wait cycle 0x0 R/W 0x3 0x2 0x1 0x0 128 cycles 256 cycles 512 cycles 1024 cycles D3-2 reserved 0 when being read. D1 OSC1EN OSC1 enable 1 Enable 0 Disable 0 R/W D0 OSC3EN OSC3 enable 1 Enable 0 Disable 1 R/W D[5:4] OSC3WT[1:0]: OSC3 Wait Cycle Select Bits OSC3 SLEEP OSC3 On OSC3 OSC3 7.8.2 OSC3 OSC3WT[1:0] 0x3 128 0x2 256 0x1 512 0x0 1024 : 0x0 1024 OSC3 : OSC3 26 D[3:2] D1 D0 Reserved OSC1EN: OSC1 Enable Bit OSC1 / 1 R/W : On 0 R/W : Off : OSC1 OSC1 OSC1EN 0 1 OSC1 OSC1 256 OSC3EN: OSC3 Enable Bit OSC3 / 1 R/W : On 0 R/W : Off : OSC3 OSC3 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-11

7 OSC 0x5062: Noise Filter Enable Register (OSC_NFEN) Register name Address Bit Name Function Setting Init. R/W Remarks Noise Filter Enable Register (OSC_NFEN) 0x5062 (8 bits) D7 2 reserved 0 when being read. D1 RSTFE Reset noise filter enable 1 Enable 0 Disable 1 R/W D0 NMIFE NMI noise filter enable 1 Enable 0 Disable 0 R/W D[7:2] D1 Reserved RSTFE: Reset Noise Filter Enable Bit RESET / 1 R/W : 0 R/W : HSCLK OSC1 16 RESET S1C17 D0 NMIFE: NMI Noise Filter Enable Bit NMI / 1 R/W : 0 R/W : HSCLK OSC1 16 NMI S1C17 16 : S1C17003 NMI NMI 7-12 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 0x5064: FOUT Control Register (OSC_FOUT) Register name Address Bit Name Function Setting Init. R/W Remarks FOUT Control 0x5064 D7 4 reserved 0 when being read. Register (OSC_FOUT) (8 bits) D3 2 FOUTHD [1:0] FOUTH clock division ratio select FOUTHD[1:0] Division ratio 0x0 R/W 0x3 0x2 0x1 0x0 reserved HSCLK 1/4 HSCLK 1/2 HSCLK 1/1 D1 FOUTHE FOUTH output enable 1 Enable 0 Disable 0 R/W D0 FOUT1E FOUT1 output enable 1 Enable 0 Disable 0 R/W D[7:4] D[3:2] Reserved FOUTHD[1:0]: FOUTH Clock Division Ratio Select Bits HSCLK FOUTH 7.8.3 FOUTH FOUTHD[1:0] 0x3 Reserved 0x2 HSCLK 1/4 0x1 HSCLK 1/2 0x0 HSCLK 1/1 : 0x0 D1 D0 FOUTHE: FOUTH Output Enable Bit FOUTH HSCLK / 1 R/W : On 0 R/W : Off FOUTHE 1 FOUTH FOUTH FOUTHE 0 FOUT1E: FOUT1 Output Enable Bit FOUT1 OSC1 / 1 R/W : On 0 R/W : Off FOUT1E 1 FOUT1 FOUT1 FOUT1E 0 : FOUTH 1 FOUTHD[1:0] D[3:2]/0x5064 FOUTHE D1/ 0x5064 0 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-13

7 OSC 0x5065: T8OSC1 Clock Control Register (OSC_T8OSC1) Register name Address Bit Name Function Setting Init. R/W Remarks T8OSC1 Clock Control Register (OSC_T8OSC1) 0x5065 (8 bits) D7 4 reserved 0 when being read. D3 1 T8O1CK[2:0] T8OSC1 clock division ratio select T8O1CK[2:0] Division ratio 0x0 R/W 0x7 0x6 0x5 0x4 0x3 0x2 0x1 0x0 reserved OSC1 1/32 OSC1 1/16 OSC1 1/8 OSC1 1/4 OSC1 1/2 OSC1 1/1 D0 T8O1CE T8OSC1 clock output enable 1 Enable 0 Disable 0 R/W D[7:4] D[3:1] Reserved T8O1CK[2:0]: T8OSC1 Clock Division Ratio Select Bits OSC1 8 OSC1 7.8.4 T8OSC1 T8O1CK[2:0] 0x7 0x6 Reserved 0x5 OSC1 1/32 0x4 OSC1 1/16 0x3 OSC1 1/8 0x2 OSC1 1/4 0x1 OSC1 1/2 0x0 OSC1 1/1 : 0x0 D0 T8O1CE: T8OSC1 Clock Output Enable Bit 8 OSC1 / 1 R/W : On 0 R/W : Off T8O1CE 0 T8O1CE 1 8 OSC1 8 OSC1 : T8O1CK[2:0] D[3:1]/0x5065 T8O1CE D0/0x5065 0 8 OSC1 7-14 Seiko Epson Corporation S1C17003 TECHNICAL MANUAL

7 OSC 7.9 OSC3 26 OSC1 HSCLK OSC1 OSC1 OSC1 256 OSC3 OSC3 OSC1 OSC1 FOUTH/FOUT1 FOUTHE/FOUT1E On/Off CLKSRC D0/0x5060 CLKSRC 1 T8O1CK[2:0] D[3:1]/0x5065 T8O1CE D0/0x5065 0 8 OSC1 FOUTH 1 FOUTHD[1:0] D[3:2]/0x5064 FOUTHE D1/0x5064 0 OSC3 OSC3 (max.)+osc3 OSC3 OSC4 OSC3EN D0/OSC_CTL 0 OSC1 OSC2 OSC1EN(D1/OSC_CTL ) 0 S1C17003 TECHNICAL MANUAL Seiko Epson Corporation 7-15