CONTENTS
S1C17704 TECHNICAL MANUAL
EPSON
iii
8 Clock Generator (CLG) .................................................................................................8-1
8.1 Configuration of Clock Generator .....................................................................................8-1
8.2 Controlling the CPU Core Clock (CCLK) ..........................................................................8-2
8.3 Controlling the Peripheral Module Clock (PCLK) .............................................................8-3
8.4 Details of Control Registers .............................................................................................8-4
0x5080: PCLK Control Register (CLG_PCLK) .......................................................................... 8-5
0x5081: CCLK Control Register (CLG_CCLK) .......................................................................... 8-6
8.5 Precautions ......................................................................................................................8-7
9 Prescaler (PSC) .............................................................................................................9-1
9.1 Configuration of the Prescaler ..........................................................................................9-1
9.2 Details of Control Register ...............................................................................................9-2
0x4020: Prescaler Control Register (PSC_CTL) ....................................................................... 9-2
9.3 Precaution ........................................................................................................................9-3
10 I/O Ports (P) ................................................................................................................10-1
10.1 Structure of I/O Port ......................................................................................................10-1
10.2 Selecting I/O Pin Functions (Port MUX) .......................................................................10-2
10.3 Data Input/Output ..........................................................................................................10-3
10.4 Pull-Up Control ..............................................................................................................10-4
10.5 Input Interface Level .....................................................................................................10-5
10.6 Chattering Filter for P0 Ports .........................................................................................10-6
10.7 Port Input Interrupt ........................................................................................................10-7
10.8 Details of Control Registers .........................................................................................10-10
0x5200/0x5210/0x5220/0x5230: P
x
Port Input Data Registers (P
x
_IN) ................................. 10-11
0x5201/0x5211/0x5221/0x5231: P
x
Port Output Data Registers (P
x
_OUT) ........................... 10-12
0x5202/0x5212/0x5222/0x5232: P
x
Port I/O Direction Control Registers (P
x
_IO) ................. 10-13
0x5203/0x5213/0x5223/0x5233: P
x
Port Pull-up Control Registers (P
x
_PU) ......................... 10-14
0x5204/0x5214/0x5224/0x5234: P
x
Port Schmitt Trigger Control Registers (P
x
_SM) ............ 10-15
0x5205/5215: P
x
Port Interrupt Mask Registers (P
x
_IMSK) ................................................... 10-16
0x5206/5216: P
x
Port Interrupt Edge Select Registers (P
x
_EDGE) ....................................... 10-17
0x5207/5217: P
x
Port Interrupt Flag Registers (P
x
_IFLG) ...................................................... 10-18
0x5208: P0 Port Chattering Filter Control Register (P0_CHAT) .............................................. 10-19
0x5209: P0 Port Key-Entry Reset Configuration Register (P0_KRST) ................................... 10-20
0x52a0: P0 Port Function Select Register (P0_PMUX) .......................................................... 10-21
0x52a1: P1 Port Function Select Register (P1_PMUX) .......................................................... 10-22
0x52a2: P2 Port Function Select Register (P2_PMUX) .......................................................... 10-23
0x52a3: P3 Port Function Select Register (P3_PMUX) .......................................................... 10-24
10.9 Precautions ..................................................................................................................10-25
11 16-bit Timers (T16) .....................................................................................................11-1
11.1 Outline of the 16-bit Timers ...........................................................................................11-1
11.2 16-bit Timer Operating Mode .........................................................................................11-2
11.2.1 Internal Clock Mode ........................................................................................11-2
11.2.2 External Clock Mode .......................................................................................11-3
11.2.3 Pulse Width Measurement Mode ....................................................................11-4
11.3 Count Mode ...................................................................................................................11-5
11.4 16-bit Timer Reload Register and Underflow Period .....................................................11-6
11.5 Resetting the 16-bit Timer .............................................................................................11-7
11.6 16-bit Timer Run/Stop Control .......................................................................................11-8
11.7 16-bit Timer Output Signal .............................................................................................11-9
11.8 16-bit Timer Interrupt ....................................................................................................11-10
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...