
7
Data Sheet U15002EJ1V1DS
PD17240, 17241, 17242, 17243, 17244, 17245, 17246
CONTENTS
1.
PIN FUNCTIONS ..........................................................................................................................
9
1.1
Pin Function List ...............................................................................................................
9
1.2
I/O Circuits .........................................................................................................................
12
1.3
Handling of Unused Pins .................................................................................................
14
2.
MEMORY SPACE .........................................................................................................................
15
2.1
Program Counter (PC) ......................................................................................................
15
2.2
Program Memory (ROM) ..................................................................................................
18
2.3Stack ...................................................................................................................................
20
2.4
Data Memory (RAM) ..........................................................................................................
22
2.5
Register File (RF) ..............................................................................................................
31
3.
PORTS ..........................................................................................................................................
34
3.1
Port 0A (P0A0 to P0A3) .....................................................................................................
34
3.2
Port 0B (P0B0 to P0B3) .....................................................................................................
34
3.3
Port 0C (P0C0 to P0C3) .....................................................................................................
34
3.4
Port 0D (P0D0 to P0D3) .....................................................................................................
34
3.5
Port 0E (P0E0 to P0E3) ......................................................................................................
35
3.6
Port 1A (P1A0 to P1A2) .....................................................................................................
35
3.7
Port 1B (P1B0) ....................................................................................................................
36
3.8INT Pin ................................................................................................................................
37
3.9
Switching Bit I/O (Port 0B, 0E, 1A) .................................................................................
38
3.10 Selecting I/O Mode of Group I/O (Port 0C, 0D) .............................................................
40
3.11 Selecting Whether Key Matrix Is Used or Not (Port 0E, 1A) .......................................
41
3.12 Specifying Resistor Connection (Port 0E, 1A) .............................................................
42
3.13 Selecting Standby Mode Release Condition and Whether Pull-Up or Pull-Down
Resistor Is Connected (Port 1A) .....................................................................................
44
3.14 Selecting Whether Key Matrix Is Used, Standby Mode Release Condition, and
Whether Pull-Up or Pull-Down Resistor Is Connected (Port 1B) ...............................
46
4.
CLOCK GENERATOR .................................................................................................................
47
4.1
Instruction Execution Time (CPU Clock) Selection ......................................................
47
5.
8-BIT TIMER AND REMOTE CONTROLLER CARRIER GENERATOR ...................................
48
5.1
Configuration of 8-Bit Timer (with Modulo Function) ..................................................
48
5.2
Function of 8-Bit Timer (with Modulo Function) ..........................................................
50
5.3
Carrier Generator for Remote Controller .......................................................................
51
6.
BASIC INTERVAL TIMER/WATCHDOG TIMER .........................................................................
57
6.1
Source Clock for Basic Interval Timer ...........................................................................
57
6.2
Controlling Basic Interval Timer .....................................................................................
57
6.3
Operation Timing for Watchdog Timer ...........................................................................
59
7.
RAM RETENTION DETECTOR ...................................................................................................
60
7.1
RAM Retention Flag ..........................................................................................................
60