Epson E0C6001 User manual

MF943-02
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
E0C6001 T
ECHNICAL
M
ANUAL
E0C6001 Technical Hardware
E0C6001 Technical Software

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 Control Law of Japan and may require an export license
from the Ministry of International Trade and Industry or other approval from another government agency. Please
note that "E0C" is the new name for the old product "SMC". If "SMC" appears in other manuals understand that
it now reads "E0C".
© SEIKO EPSON CORPORATION 1998 All rights reserved.

PREFACE
This manual is individualy described about the hardware and the software
of the E0C6001.
I. E0C6001 Technical Hardware
This part explains the function of the E0C6001, the circuit configura-
tions, and details the controlling method.
II. E0C6001 Technical Software
This part explains the programming method of the E0C6001.
Hardware
Software

Hardware
E0C6001
I.
Technical Hardware

Hardware
CONTENTS
CHAPTER 1 INTRODUCTION............................................................... I-1
1.1 Configuration ................................................................... I-1
1.2 Features .......................................................................... I-2
1.3 Block Diagram ................................................................. I-3
1.4 Pin Layout Diagram......................................................... I-4
1.5 Pin Description ................................................................ I-5
CHAPTER 2 POWER SUPPLY AND INITIAL RESET ................................ I-6
2.1 Power Supply .................................................................. I-6
2.2 Initial Reset...................................................................... I-8
Oscillation detection circuit...................................... I-9
Reset pin (RESET) .................................................... I-9
Simultaneous high input to input ports (K00–K03) ... I-9
Internal register following initialization.................... I-10
2.3 Test Pin (TEST).............................................................. I-10
CHAPTER 3 CPU, ROM, RAM ............................................................ I-11
3.1 CPU................................................................................ I-11
3.2 ROM ............................................................................... I-12
3.3 RAM ............................................................................... I-12

CHAPTER 4 PERIPHERAL CIRCUITS AND OPERATION ...................... I-13
4.1 Memory Map .................................................................. I-13
4.2 Oscillation Circuit............................................................ I-18
Crystal oscillation circuit......................................... I-18
CR oscillation circuit ............................................... I-19
4.3 Input Port (K00–K03)...................................................... I-20
Configuration of input port...................................... I-20
Interrupt function ................................................... I-20
Mask option ............................................................ I-22
Control of input port ............................................... I-23
4.4 Output Port (R00, R01) .................................................. I-25
Configuration of output port.................................... I-25
Mask option ............................................................ I-26
Control of output port ............................................. I-28
4.5 I/O Port (P00–P03)......................................................... I-31
Configuration of I/O port ........................................ I-31
I/O control register and I/O mode........................... I-32
Mask option ............................................................ I-32
Control of I/O port .................................................. I-33
4.6 LCD Driver (COM0–COM3, SEG0–SEG19) .................. I-35
Configuration of LCD driver..................................... I-35
Cadence adjustment of oscillation frequency ........... I-41
Mask option (segment allocation)............................. I-42
Control of LCD driver .............................................. I-44
4.7 Clock Timer .................................................................... I-45
Configuration of clock timer .................................... I-45
Interrupt function ................................................... I-46
Control of clock timer.............................................. I-47
4.8 Heavy Load Protection Function .................................... I-49
Operation of heavy load protection function ............ I-49
Control of heavy load protection function ................ I-50

Hardware
4.9 Interrupt and HALT......................................................... I-51
Interrupt factors...................................................... I-53
Specific masks and factor flags for interrupt............ I-54
Interrupt vectors ..................................................... I-54
Control of interrupt ................................................. I-55
CHAPTER 5 BASIC EXTERNAL WIRING DIAGRAM.............................I-56
CHAPTER 6 ELECTRICAL CHARACTERISTICS .................................... I-58
6.1 Absolute Maximum Rating ............................................. I-58
6.2 Recommended Operating Conditions ............................ I-59
6.3 DC Characteristics ......................................................... I-60
6.4 Analog Circuit Characteristics
and Power Current Consumption ................................... I-62
6.5 Oscillation Characteristics .............................................. I-66
CHAPTER 7 PACKAGE ...................................................................... I-68
7.1 Plastic Package.............................................................. I-68
7.2 Ceramic Package for Test Samples............................... I-69
CHAPTER 8 PAD LAYOUT .................................................................. I-70
8.1 Diagram of Pad Layout................................................... I-70
8.2 Pad Coordinates............................................................. I-71

CHAPTER 1: INTRODUCTION
I-1
INTRODUCTION
Each member of the E0C6001 Series of single chip micro-
computers feature a 4-bit E0C6200B core CPU, 1,024 words
of ROM (12 bits per word), 80 words of RAM (4 bits per
word), an LCD driver, 4 bits for input ports (K00–K03), 2
bits for output ports (R00, R01), one 4-bit I/O port (P00–
P03) and one timer (clock timer).
Because of their low voltage operation and low power con-
sumption, the E0C6001 Series are ideal for a wide range of
applications.
Configuration
The E0C6001 Series are configured as follows, depending on
the supply voltage.
CHAPTER 1
1.1
Table 1.1.1
Configuration of the
E0C6001 Series
Model Supply Voltage Oscillation Circuits
3.0 V
1.5 V
E0C6001
E0C60L01
Crystal or CR
Crystal or CR
Supply Voltage Range
1.8–3.6 V
1.2–2.0 V

E0C6001 TECHNICAL HARDWARE
I-2
Features
Crystal or CR oscillation circuit, 32.768 kHz (typ.)
100 instructions
1,024 words ×12 bits
80 words ×4 bits
4 bits (Supplementary pull-down resistors may be used )
2 bits (Piezo buzzer and programmable frequency output
can be driven directry by mask option)
4 bits
20 segments ×4, 3 or 2 common duty
1 system: clock timer
Input port interrupt 1 system
Timer interrupt 1 system
1.5 V (1.2–2.0 V) E0C60L01
3.0 V (1.8–3.6 V) E0C6001
1.0 µA
(Crystal oscillation CLK = 32.768 kHz, when halted)
2.5 µA
(Crystal oscillation CLK = 32.768 kHz, when executing)
QFP12-48pin (plastic) or chip
1.2
Built-in oscillation circuit
Instruction set
ROM capacity
RAM capacity (data RAM)
Input port
Output port
Input/output port
LCD driver
Timer
Interrupts:External interrupt
Internal interrupt
Supply voltage
Current consumption (typ.)
Supply form

CHAPTER 1: INTRODUCTION
I-3
1.3
Fig. 1.3.1
Block diagram
Power
Controller
LCD
Driver
RAM
80 ×4Interrupt
Generator
I Port
Test Port
I/O Port
O Port
Timer
Core CPU E0C6200B
ROM
1,024 ×12 OSC System
Reset
Control
RESET
OSC1
COM0
|
COM3
SEG0
|
SEG19
VDD
VL1
|
VL3
CA
CB
VS1
VSS
K00~K03
TEST
P00~P03
R00, R01
OSC2
FOUT
&
BUZZER
(FOUT/BUZZER)
(BUZZER)
Block Diagram

E0C6001 TECHNICAL HARDWARE
I-4
1.4
N.C. = No Connection
1
2
3
4
5
6
7
8
9
10
11
12
OSC2
VS1
N.C.
P00
P01
P02
P03
K00
K01
K02
K03
N.C.
13
14
15
16
17
18
19
20
21
22
23
24
R01
R00
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
25
26
27
28
29
30
31
32
33
34
35
36
TEST
RESET
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
SEG0
37
38
39
40
41
42
43
44
45
46
47
48
COM0
COM1
COM2
COM3
VL3
VL2
VL1
CA
CB
VSS
VDD
OSC1
Pin No Pin Name Pin No Pin Name Pin No Pin No Pin NamePin Name
Fig. 1.4.1
Pin assignment
QFP12-48pin
2536
13
24
INDEX
121
48
37
Pin Layout Diagram

CHAPTER 1: INTRODUCTION
I-5
1.5
Table 1.5.1 Pin description
Terminal Name
V
DD
V
SS
V
S1
V
L1
V
L2
V
L3
CA, CB
OSC1
OSC2
K00–K03
P00–P03
R00, R01
SEG0–19
COM0–3
RESET
TEST
Pin No.
47
46
2
43
42
41
44, 45
48
1
8–11
4–7
14, 13
36–27
24–15
37–40
26
25
Input/Output
(I)
(I)
O
O
O
O
–
I
O
I
I/O
O
O
O
I
I
Function
Power source (+) terminal
Power source (-) terminal
Oscillation and internal logic system regulated
voltage output terminal
LCD system reducer output terminal (V
L2
×1/2)
/ LCD system reducer output terminal (V
L3
×1/3)
LCD system booster output terminal (V
L1
×2)
/ LCD system reducer output terminal (V
L3
×2/3)
LCD system booster output terminal (V
L1
×3)
/ LCD system booster output terminal (V
L2
×3/2)
Booster capacitor connecting terminal
Crystal or CR oscillation input terminal
Crystal or CR oscillation output terminal
Input terminal
I/O terminal
Output terminal
LCD segment output terminal
(convertible to DC output terminal by mask option)
LCD common output terminal
Initial setting input terminal
Test input terminal
Pin Description

E0C6001 TECHNICAL HARDWARE
I-6
POWER SUPPLY AND INITIAL RESETCHAPTER 2
2.1 Power Supply
With a single external power supply (*1) supplied to VDD
through VSS, the E0C6001 Series generate the necessary
internal voltages with the regulated voltage circuit (<VS1> for
oscillators and internal circuit) and the voltage booster/
reducer (<VL2, VL3 or VL1, VL3> for LCDs).
When the E0C6001 LCD power is selected for 4.5 V LCD
panel by mask option, the E0C6001 short-circuits between
<VL2> and <VSS> in internally, and the voltage booster/
reducer generates <VL1> and <VL3>. When 3.0 V LCD panel
is selected, the E0C6001 short-circuits between <VL3> and
<VSS>, and the voltage reducer generates <VL1> and <VL2>.
The E0C60L01 short-circuits between <VL1> and <VSS>, and
the voltage booster generates <VL2> and <VL3>.
The voltage <VS1> for the internal circuit that is generated
by the regulated voltage circuit is -1.2 V (VDD standard).
Figure 2.1.1 shows the power supply configuration of the
E0C6001 Series in each condition.
*1 Supply voltage: E0C6001 ...... 3.0 V
E0C60L01 .... 1.5 V
- External loads cannot be driven by the output voltage of the
regulated voltage circuit and the voltage booster/reducer.
- See Chapter 6, "ELECTRICAL CHARACTERISTICS", for
voltage values.
Note

CHAPTER 2: POWER SUPPLY AND INITIAL RESET
I-7
• E0C6001
4.5 V LCD panel
1/4, 1/3, 1/2 duty, 1/3 bias
Note: V
L2
is shorted to V
SS
inside the IC.
3 V LCD panel 3 V LCD panel
1/4, 1/3, 1/2 duty, 1/3 bias 1/4, 1/3, 1/2 duty, 1/2 bias
• E0C60L01
4.5 V LCD panel 3 V LCD panel
1/4, 1/3, 1/2 duty, 1/3 bias 1/4, 1/3, 1/2 duty, 1/2 bias
Note: V
L1
is shorted to V
SS
inside the IC.
Fig. 2.1.1 External element configuration of power system
Note: V
L3
is shorted to V
SS
inside the IC.
V
DD
V
S1
V
L1
V
L2
V
L3
CA
CB
V
SS
3 V
V
DD
V
S1
V
L1
V
L2
V
L3
CA
CB
V
SS
3 V
V
DD
V
S1
V
L1
V
L2
V
L3
CA
CB
V
SS
3 V
V
DD
V
S1
V
L1
V
L2
V
L3
CA
CB
V
SS
1.5 V
V
DD
V
S1
V
L1
V
L2
V
L3
CA
CB
V
SS
1.5 V

E0C6001 TECHNICAL HARDWARE
I-8
Initial Reset
To initialize the E0C6001 Series circuits, an initial reset
must be executed. There are three ways of doing this.
(1)Initial reset by the oscillation detection circuit (Note)
(2)External initial reset via the RESET pin
(3)External initial reset by simultaneous high input to pins
K00–K03 (depending on mask option)
Figure 2.2.1 shows the configuration of the initial reset
circuit.
Fig. 2.2.1
Configuration of
initial reset circuit
2.2
Vss
RESET
K03
K02
K01
K00
OSC2
OSC1
OSC1
Oscillation
circuit
Vss
Oscillation
detection
circuit Noise
rejection
circuit
Initial
reset
Noise
rejection
circuit
Note Be sure to use reset function (2) or (3) at power-on because the
initial reset function by the oscillation detection circuit (1) may not
operate normally depending on the power-on procedure.

CHAPTER 2: POWER SUPPLY AND INITIAL RESET
I-9
The oscillation detection circuit outputs the initial reset
signal at power-on until the crystal oscillation circuit starts
oscillating, or when the crystal oscillation circuit stops
oscillating for some reason.
However, use the following reset functions at power-on
because the initial reset function by the oscillation detection
circuit may not operate normally depending on the power-on
procedure.
An initial reset can be invoked externally by making the
reset pin high. This high level must be maintained for at
least 5 ms (when oscillating frequency, fosc = 32 kHz),
because the initial reset circuit contains a noise rejection
circuit. When the reset pin goes low the CPU begins to
operate.
Another way of invoking an initial reset externally is to input
a high signal simultaneously to the input ports (K00–K03)
selected with the mask option. The specified input port pins
must be kept high for at least 4 sec (when oscillating fre-
quency fosc = 32 kHz), because of the noise rejection circuit.
Table 2.2.1 shows the combinations of input ports (K00–
K03) that can be selected with the mask option.
ANot used
BK00*K01
CK00*K01*K02
DK00*K01*K02*K03
When, for instance, mask option D (K00*K01*K02*K03) is
selected, an initial reset is executed when the signals input
to the four ports K00–K03 are all high at the same time.
If you use this function, make sure that the specified ports
do not go high at the same time during normal operation.
Oscillation detection
circuit
Reset pin (RESET)
Simultaneous high
input to input ports
(K00–K03)
Table 2.2.1
Input port combinations

E0C6001 TECHNICAL HARDWARE
I-10
Internal register fol-
lowing initialization
Table 2.2.2
Initial values
2.3
An initial reset initializes the CPU as shown in the table
below.
CPU Core
Name
Program counter step
Program counter page
New page pointer
Stack pointer
Index register X
Index register Y
Register pointer
General register A
General register B
Interrupt flag
Decimal flag
Zero flag
Carry flag
Signal
PCS
PCP
NPP
SP
X
Y
RP
A
B
I
D
Z
C
Number of Bits
8
4
4
8
8
8
4
4
4
1
1
1
1
Setting Value
00H
1H
1H
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
0
0
Undefined
Undefined
Peripheral Circuits
Name
RAM
Display memory
Other peripheral circuit
Number of Bits
80 ×4
20 ×4
–
Setting Value
Undefined
Undefined
*1
*1: See section 4.1, "Memory Map"
Test Pin (TEST)
This pin is used when IC is inspected for shipment.
During normal operation connect it to VSS.

I-11
CHAPTER 3: CPU, ROM, RAM
CPU, ROM, RAM
CPU
The E0C6001 Series employs the E0C6200B core CPU, so
that register configuration, instructions, and so forth are
virtually identical to those in other processors in the family
using the E0C6200B. Refer to the "E0C6200/6200A Core
CPU Manual" for details of the E0C6200B.
Note the following points with regard to the E0C6001 Series:
(1)The SLEEP operation is not provided, so the SLP instruc-
tion cannot be used.
(2)Because the ROM capacity is 1,024 words, 12 bits per
word, bank bits are unnecessary, and PCB and NBP are
not used.
(3)The RAM page is set to 0 only, so the page part (XP, YP)
of the index register that specifies addresses is invalid.
PUSH XP PUSH YP
POP XP POP YP
LD XP,r LD YP,r
LD r,XP LD r,YP
CHAPTER 3
3.1

E0C6001 TECHNICAL HARDWARE
I-12
3.2 ROM
The built-in ROM, a mask ROM for the program, has a
capacity of 1,024 ×12-bit steps. The program area is 4
pages (0–3), each consisting of 256 steps (00H–FFH). After
an initial reset, the program start address is page 1, step
00H. The interrupt vector is allocated to page l, steps 01H–
07H.
3.3
Fig. 3.2.1
ROM configuration
RAM
The RAM, a data memory for storing a variety of data, has a
capacity of 80 words, 4-bit words. When programming,
keep the following points in mind:
(1)Part of the data memory is used as stack area when
saving subroutine return addresses and registers, so be
careful not to overlap the data area and stack area.
(2)Subroutine calls and interrupts take up three words on
the stack.
(3)Data memory 000H–00FH is the memory area pointed by
the register pointer (RP).
00H step
07H step
08H step
FFH step
12 bits
Program start address
Interrupt vector area
Bank 0
Program area
0 page
1 page
2 page
3 page
01H step

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Memory Map)
I-13
PERIPHERAL CIRCUITS
AND OPERATION
Peripheral circuits (timer, I/O, and so on) of the E0C6001
Series are memory mapped. Thus, all the peripheral circuits
can be controlled by using memory operations to access the
I/O memory. The following sections describe how the pe-
ripheral circuits operate.
CHAPTER 4
Memory Map
The data memory of the E0C6001 Series has an address
space of 113 words, of which 32 words are allocated to
display memory and 13 words, to I/O memory. Figure 4.1.1
show the overall memory map for the E0C6001 Series, and
Tables 4.1.1(a)–(d), the memory maps for the peripheral
circuits (I/O space).
4.1
Unused area
Fig. 4.1.1
Memory map
Note Memory is not mounted in unused area within the memory map
and in memory area not indicated in this chapter. For this reason,
normal operation cannot be assured for programs that have been
prepared with access to these areas.
Address
Page High
Low 0123456789ABCDEF
M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 MA MB MC MD ME MF
3
0
1
2
4
5
6
7
8
9
A
B
C
D
E
F
0
RAM area (000H–04FH)
80 words x 4 bits (R/W)
Display memory area (090H–0AFH)
32 words x 4 bits (Write only)
I/O memory area Tables 4.1.1(a)–(d)
Table of contents
Other Epson Computer Hardware manuals

Epson
Epson S5U13719P00C100 User manual

Epson
Epson B80818 Series User manual

Epson
Epson 6200A User manual

Epson
Epson UB-E04 User manual

Epson
Epson S5U1C63007P User manual

Epson
Epson UB-S01 User manual

Epson
Epson UB-R04 User manual

Epson
Epson G-Series User manual

Epson
Epson S1C60N03 User manual

Epson
Epson S5U1C17801T1100 User manual

Epson
Epson S5U1C88348T User manual

Epson
Epson UB-U01III User manual

Epson
Epson S5U13U00P00C100 USB 2.0 User manual

Epson
Epson S5U1C6F632T1 User manual

Epson
Epson S1C62 Family User manual

Epson
Epson UB-E03 User manual

Epson
Epson S 1C63 Series User manual

Epson
Epson S1C88 Series User manual

Epson
Epson S1D13505 User manual

Epson
Epson S1C88655 User manual