Sign In
Upload
Manuals
Brands
Epson Manuals
Microcontrollers
S1C17W36
Epson S1C17W36 Manuals
Manuals and User Guides for Epson S1C17W36. We have
1
Epson S1C17W36 manual available for free PDF download: Technical Manual
Epson S1C17W36 Technical Manual (351 pages)
CMOS 16-BIT SINGLE CHIP MICROCONTROLLER
Brand:
Epson
| Category:
Microcontrollers
| Size: 10 MB
Table of Contents
Notational Conventions and Symbols in this Manual
3
Table of Contents
4
Overview
15
Features
15
Block Diagram
17
Pins
18
Pin Configuration Diagram (Package)
18
Pad Configuration Diagram (Chip)
19
Pin Descriptions
21
Power Supply, Reset, and Clocks
25
Power Generator (PWG2)
25
Overview
25
Pins
25
Operations
26
Normal Mode
26
Economy Mode
26
Automatic Mode
26
System Reset Controller (SRC)
28
Overview
28
Input Pin
28
Reset Sources
28
Initialization Conditions (Reset Groups)
29
Clock Generator (CLG)
30
Overview
30
Input/Output Pins
31
Clock Sources
31
OSC3 Oscillator Circuit
32
Crystal/Ceramic Oscillator
32
Internal Oscillator
32
Operations
33
System Clock Switching
36
Operating Mode
38
Initial Boot Sequence
38
Transition between Operating Modes
38
Interrupts
40
Control Registers
40
PWG2 Control Register
40
PWG2 Timing Control Register
41
PWG2 Interrupt Flag Register
41
PWG2 Interrupt Enable Register
41
CLG System Clock Control Register
42
CLG Oscillation Control Register
43
CLG IOSC Control Register
44
CLG OSC1 Control Register
44
CLG OSC3 Control Register
46
CLG Interrupt Flag Register
47
CLG Interrupt Enable Register
47
CLG FOUT Control Register N
48
CLG Oscillation Frequency Trimming Register
49
CPU and Debugger
50
Overview
50
CPU Core
51
CPU Registers
51
Instruction Set
51
Reading PSR
51
I/O Area Reserved for the S1C17 Core
51
Debugger
51
Debugging Functions
51
Resource Requirements and Debugging Tools
52
List of Debugger Input/Output Pins
52
External Connection
52
Flash Security Function
53
Control Register
53
MISC PSR Register
53
Debug RAM Base Register
54
Memory and Bus
55
Overview
55
Bus Access Cycle
55
Flash Memory
56
Flash Memory Pin
56
Flash Bus Access Cycle Setting
56
Flash Programming
57
Ram
57
Display Data RAM
57
Peripheral Circuit Control Registers
58
System-Protect Function
63
Control Registers
63
MISC System Protect Register
63
MISC IRAM Size Register
63
FLASHC Flash Read Cycle Register
63
Interrupt Controller (ITC)
65
Overview
65
Vector Table
65
Vector Table Base Address (TTBR)
67
Initialization
67
Maskable Interrupt Control and Operations
67
Peripheral Circuit Interrupt Control
67
ITC Interrupt Request Processing
68
Conditions to Accept Interrupt Requests by the CPU
68
Nmi
68
Software Interrupts
68
Interrupt Processing by the CPU
69
Control Registers
69
MISC Vector Table Address Low Register
69
MISC Vector Table Address High Register
69
ITC Interrupt Level Setup Register X
69
O Ports (PPORT)
72
Overview
72
I/O Cell Structure and Functions
73
Schmitt Input
73
Over Voltage Tolerant Fail-Safe Type I/O Cell
73
Pull-Up/Pull-Down
73
CMOS Output and High Impedance State
74
Clock Settings
74
PPORT Operating Clock
74
Clock Supply in SLEEP Mode
74
Clock Supply in DEBUG Mode
74
Operations
74
Initialization
74
Port Input/Output Control
76
Interrupts
77
Control Registers
77
Px Port Data Register
77
Px Port Enable Register
78
Px Port Pull-Up/Down Control Register
78
Px Port Interrupt Flag Register
79
Px Port Interrupt Control Register
79
Px Port Chattering Filter Enable Register
79
Px Port Mode Select Register
79
Px Port Function Select Register
80
P Port Clock Control Register
80
P Port Interrupt Flag Group Register
81
Control Register and Port Function Configuration of this IC
82
P0 Port Group
82
P1 Port Group
83
P2 Port Group
84
P3 Port Group
85
P4 Port Group
86
P5 Port Group
87
Pd Port Group
88
Common Registers between Port Groups
89
Universal Port Multiplexer (UPMUX)
90
Overview
90
Peripheral Circuit I/O Function Assignment
90
Control Registers
91
Pxy-Xz Universal Port Multiplexer Setting Register
91
Watchdog Timer (WDT2)
92
Overview
92
Clock Settings
92
WDT2 Operating Clock
92
Clock Supply in DEBUG Mode
92
Operations
93
WDT2 Control
93
Operations in HALT and SLEEP Modes
94
Control Registers
94
WDT2 Clock Control Register
94
WDT2 Control Register
95
WDT2 Counter Compare Match Register
96
Real-Time Clock (RTCA2)
97
Overview
97
Output Pin and External Connection
97
Output Pin
97
Clock Settings
98
RTCA2 Operating Clock
98
Theoretical Regulation Function
98
Operations
99
RTCA2 Control
99
Time Setting
99
Real-Time Clock Counter Operations
100
Stopwatch Control
101
Stopwatch Count-Up Pattern
101
Interrupts
101
Control Registers
102
RTC Control Register
102
RTC Second Alarm Register
104
RTC Hour/Minute Alarm Register
104
RTC Stopwatch Control Register
105
RTC Main Time Zone Second/1Hz Register
106
RTC Time Zone 2 Second/1Hz Register
106
RTC Time Zone 3 Second/1Hz Register
106
RTC Main Time Zone Hour/Minute Register
107
RTC Time Zone 2 Hour/Minute Register
107
RTC Time Zone 3 Hour/Minute Register
107
RTC Main Time Zone Month/Day Register
107
RTC Time Zone 2 Month/Day Register
107
RTC Time Zone 3 Month/Day Register
107
RTC Main Time Zone Year/Week Register
108
RTC Time Zone 2 Year/Week Register
108
RTC Time Zone 3 Year/Week Register
108
RTC Interrupt Flag Register
109
RTC Interrupt Enable Register
110
Supply Voltage Detector (SVD)
111
Overview
111
Input Pin and External Connection
112
Input Pin
112
External Connection
112
Clock Settings
112
SVD Operating Clock
112
Clock Supply in SLEEP Mode
112
Clock Supply in DEBUG Mode
113
Operations
113
SVD Control
113
SVD Operations
114
SVD Interrupt and Reset
114
SVD Interrupt
114
SVD Reset
115
Control Registers
115
SVD Clock Control Register
115
SVD Control Register
116
SVD Status and Interrupt Flag Register
117
SVD Interrupt Enable Register
118
16-Bit Timers (T16)
119
Overview
119
Input Pin
119
Clock Settings
120
T16 Operating Clock
120
Clock Supply in SLEEP Mode
120
Clock Supply in DEBUG Mode
120
Event Counter Clock
120
Operations
120
Initialization
120
Counter Underflow
121
Operations in Repeat Mode
121
Operations in One-Shot Mode
121
Counter Value Read
122
Interrupt
122
Control Registers
122
T16 Ch.n Clock Control Register
122
T16 Ch.n Mode Register
123
T16 Ch.n Control Register
123
T16 Ch.n Reload Data Register
124
T16 Ch.n Counter Data Register
124
T16 Ch.n Interrupt Flag Register
124
T16 Ch.n Interrupt Enable Register
125
Uart (Uart2)
126
Overview
126
Input/Output Pins and External Connections
127
List of Input/Output Pins
127
External Connections
127
Input Pin Pull-Up Function
127
Output Pin Open-Drain Output Function
127
Input/Output Signal Inverting Function
127
Clock Settings
127
UART2 Operating Clock
127
Clock Supply in SLEEP Mode
128
Clock Supply in DEBUG Mode
128
Baud Rate Generator
128
Data Format
128
Operations
129
Initialization
129
Data Transmission
130
Data Reception
131
Irda Interface
132
Receive Errors
132
Framing Error
132
Parity Error
133
Overrun Error
133
Interrupts
133
Control Registers
134
UART2 Ch.n Clock Control Register
134
UART2 Ch.n Mode Register
134
UART2 Ch.n Baud-Rate Register
135
UART2 Ch.n Control Register
136
UART2 Ch.n Transmit Data Register
136
UART2 Ch.n Receive Data Register
136
UART2 Ch.n Status and Interrupt Flag Register
137
UART2 Ch.n Interrupt Enable Register
138
Synchronous Serial Interface (SPIA)
139
Overview
139
Input/Output Pins and External Connections
140
List of Input/Output Pins
140
External Connections
140
Pin Functions in Master Mode and Slave Mode
141
Input Pin Pull-Up/Pull-Down Function
141
Clock Settings
141
SPIA Operating Clock
141
Clock Supply in DEBUG Mode
142
SPI Clock (Spiclkn) Phase and Polarity
142
Data Format
143
Operations
143
Initialization
143
Data Transmission in Master Mode
143
Data Reception in Master Mode
145
Terminating Data Transfer in Master Mode
146
Data Transfer in Slave Mode
146
Terminating Data Transfer in Slave Mode
148
Interrupts
148
Control Registers
149
SPIA Ch.n Mode Register
149
SPIA Ch.n Control Register
150
SPIA Ch.n Transmit Data Register
151
SPIA Ch.n Receive Data Register
151
SPIA Ch.n Interrupt Flag Register
151
SPIA Ch.n Interrupt Enable Register
152
C (I2C)
153
Overview
153
Input/Output Pins and External Connections
154
List of Input/Output Pins
154
External Connections
154
Clock Settings
155
I2C Operating Clock
155
Clock Supply in DEBUG Mode
155
Baud Rate Generator
155
Operations
156
Initialization
156
Data Transmission in Master Mode
157
Data Reception in Master Mode
159
Data Receiving Procedure
159
10-Bit Addressing in Master Mode
161
Data Transmission in Slave Mode
162
Data Reception in Slave Mode
164
Slave Operations in 10-Bit Address Mode
166
Automatic Bus Clearing Operation
166
Error Detection
167
Interrupts
168
Control Registers
169
I2C Ch.n Clock Control Register
169
I2C Ch.n Mode Register
170
I2C Ch.n Baud-Rate Register
170
I2C Ch.n Own Address Register
170
I2C Ch.n Control Register
171
I2C Ch.n Transmit Data Register
172
I2C Ch.n Receive Data Register
172
I2C Ch.n Status and Interrupt Flag Register
172
I2C Ch.n Interrupt Enable Register
173
16-Bit PWM Timers (T16B)
175
Overview
175
Input/Output Pins
176
Clock Settings
177
T16B Operating Clock
177
Clock Supply in SLEEP Mode
177
Clock Supply in DEBUG Mode
177
Event Counter Clock
177
Operations
178
Initialization
178
Counter Block Operations
179
Comparator/Capture Block Operations
182
TOUT Output Control
190
Interrupt
196
Control Registers
196
T16B Ch.n Clock Control Register
196
T16B Ch.n Counter Control Register
197
T16B Ch.n Max Counter Data Register
198
T16B Ch.n Timer Counter Data Register
198
T16B Ch.n Counter Status Register
199
T16B Ch.n Interrupt Flag Register
200
T16B Ch.n Interrupt Enable Register
201
T16B Ch.n Comparator/Capture M Control Register
202
T16B Ch.n Compare/Capture M Data Register
204
Sound Generator (SNDA)
205
Overview
205
Output Pins and External Connections
206
List of Output Pins
206
Output Pin Drive Mode
206
Clock Settings
207
SNDA Operating Clock
207
Clock Supply in SLEEP Mode
207
Clock Supply in DEBUG Mode
207
Operations
207
Initialization
207
Buzzer Output in Normal Buzzer Mode
207
Buzzer Output in One-Shot Buzzer Mode
210
Output in Melody Mode
211
Interrupts
213
SNDA Clock Control Register
213
SNDA Select Register
214
SNDA Control Register
215
SNDA Data Register
215
SNDA Interrupt Flag Register
216
SNDA Interrupt Enable Register
217
IR Remote Controller (REMC2)
218
Overview
218
Input/Output Pins and External Connections
218
External Connections
219
Clock Settings
219
REMC2 Operating Clock
219
Clock Supply in SLEEP Mode
219
Clock Supply in DEBUG Mode
219
Operations
219
Initialization
219
Data Transmission Procedures
220
REMO Output Waveform
220
Continuous Data Transmission and Compare Buffers
222
Interrupts
223
Application Example: Driving el Lamp
224
Control Registers
224
REMC2 Clock Control Register
224
REMC2 Data Bit Counter Control Register
225
REMC2 Data Bit Counter Register
226
REMC2 Data Bit Active Pulse Length Register
227
REMC2 Data Bit Length Register
227
REMC2 Status and Interrupt Flag Register
227
REMC2 Interrupt Enable Register
228
REMC2 Carrier Waveform Register
228
REMC2 Carrier Modulation Control Register
229
LCD Driver (LCD32B)
230
Overview
230
Output Pins and External Connections
231
List of Output Pins
231
External Connections
231
Clock Settings
231
LCD32B Operating Clock
231
Clock Supply in SLEEP Mode
232
Clock Supply in DEBUG Mode
232
Frame Frequency
232
LCD Power Supply
235
Internal Generation Mode
235
LCD Voltage Regulator Settings
236
LCD Voltage Booster Setting
236
LCD Contrast Adjustment
236
Operations
236
Initialization
236
Display On/Off
237
Inverted Display
237
Drive Duty Switching
237
Drive Waveforms
239
Partial Common Output Drive
245
N-Segment-Line Inverse AC Drive
245
Display Data RAM
246
Display Area Selection
246
Segment Pin Assignment
246
Common Pin Assignment
246
Interrupt
253
Control Registers
253
LCD32B Clock Control Register
253
LCD32B Control Register
254
LCD32B Timing Control Register 1
254
LCD32B Timing Control Register 2
255
LCD32B COM Pin Control Registers 0 and 1
257
LCD32B Interrupt Flag Register
258
LCD32B Interrupt Enable Register
258
F Converter (RFC)
259
Overview
259
Input/Output Pins and External Connections
260
List of Input/Output Pins
260
External Connections
260
Clock Settings
261
RFC Operating Clock
261
Clock Supply in SLEEP Mode
261
Clock Supply in DEBUG Mode
261
Operations
261
Initialization
261
Operating Modes
262
Oscillation Mode
262
RFC Counters
262
Converting Operations and Control Procedure
263
Forced Termination
264
CR Oscillation Frequency Monitoring Function
265
Interrupts
265
Control Registers
266
RFC Ch.n Clock Control Register
266
RFC Ch.n Control Register
266
RFC Ch.n Oscillation Trigger Register
267
RFC Ch.n Measurement Counter Low and High Registers
268
RFC Ch.n Time Base Counter Low and High Registers
268
RFC Ch.n Interrupt Flag Register
269
RFC Ch.n Interrupt Enable Register
269
12-Bit A/D Converter (ADC12A)
270
Overview
270
Input Pins and External Connections
271
List of Input Pins
271
External Connections
271
Clock Settings
271
ADC12A Operating Clock
271
Sampling Time
271
Operations
272
Initialization
272
Conversion Start Trigger Source
272
Conversion Mode and Analog Input Pin Settings
273
A/D Conversion Operations and Control Procedures
273
Interrupts
275
Control Registers
275
ADC12A Ch.n Control Register
275
ADC12A Ch.n Trigger/Analog Input Select Register
276
ADC12A Ch.n Configuration Register
277
ADC12A Ch.n Interrupt Flag Register
278
ADC12A Ch.n Interrupt Enable Register
279
ADC12A Ch.n Result Register M
279
Temperature Sensor/Reference Voltage Generator (TSRVR)
280
Overview
280
Output Pin and External Connections
280
Output Pin
280
External Connections
281
Operations
281
Reference Voltage Setting
281
Temperature Sensor Setting
281
Control Registers
282
TSRVR Ch.n Temperature Sensor Control Register
282
TSRVR Ch.n Reference Voltage Generator Control Register
282
Multiplier/Divider (COPRO2)
283
Overview
283
Operation Mode and Output Mode
283
Multiplication
284
Division
285
Mac
287
Reading Operation Results
289
Electrical Characteristics
290
Absolute Maximum Ratings
290
Recommended Operating Conditions
290
Current Consumption
291
System Reset Controller (SRC) Characteristics
293
Clock Generator (CLG) Characteristics
293
Flash Memory Characteristics
296
Input/Output Port (PPORT) Characteristics
296
Supply Voltage Detector (SVD) Characteristics
297
UART (UART2) Characteristics
298
Synchronous Serial Interface (SPIA) Characteristics
299
I 2 C (I2C) Characteristics
300
LCD Driver (LCD32B) Characteristics
300
R/F Converter (RFC) Characteristics
303
12-Bit A/D Converter (ADC12A) Characteristics
304
Temperature Sensor/Reference Voltage Generator (TSRVR) Characteristics
305
Basic External Connection Diagram
306
Package
308
Appendix A List of Peripheral Circuit Control Registers
309
0X40C0-0X40E6 Real-Time Clock (RTCA2)
313
C (I2C)
313
Flash Controller (FLASHC)
316
0X54C0-0X54C2 Temperature Sensor/Reference Voltage Generator (TSRVR)
338
0Xffff90
338
Debugger (DBG)
338
Appendix B Power Saving
339
Operating Status Configuration Examples for Power Saving
339
Other Power Saving Methods
340
Appendix C Mounting Precautions
341
Power Supply Circuit
342
Unused Pins
342
Appendix D Measures against Noise
344
Power Supply Pins
344
Appendix E Initialization Routine
346
Interrupt Handler
347
Revision History
348
Advertisement
Advertisement
Related Products
Epson S1C17W34
Epson S1C17W35
Epson S1C17W03
Epson S1C17W04
Epson S1C17W14
Epson S1C17W16
Epson S1C17W13
Epson S1C17W23
Epson S1C17W15
Epson S1C17W22
Epson Categories
Printer
Projector
All in One Printer
Scanner
Printer Accessories
More Epson Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL