Page 1
MF1114-01 CMOS 4-BIT SINGLE CHIP MICROCOMPUTER E0C6006 T ECHNICAL ANUAL E0C6006 Technical Hardware...
Page 2
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.
CHAPTER NTRODUCTION The E0C6006 is a single-chip microcomputer which uses an E0C6200B CMOS 4-bit CPU as the core. It contains a 2,048 (words) × 12 (bits) ROM, 128 (words) × 4 (bits) RAM, LCD driver circuit, remote-control carrier output circuit, time base counter and watchdog timer.
DC output pin * COM0–3 43–40 45–42 LCD common output pin (1/3 duty or 1/4 duty are selectable *) RESET Initial reset input pin TEST Input pin for test ∗ Can be selected by mask option EPSON E0C6006 TECHNICAL MANUAL...
2.1 Power Supply With a single external power supply (∗) supplied to V through V , the E0C6006 generates the neces- sary internal voltages with the regulated voltage circuit (<V > for oscillator and internal circuit) and the LCD voltage circuit (<V...
CHAPTER 2: POWER SUPPLY AND INITIAL RESET 2.2 Initial Reset The E0C6006 must be initially reset to initialize its circuits. Initial reset is triggered by an external reset (RESET) signal, oscillation detector signal, or watchdog timer signal. The RESET input is needed for initialization at power-on.
= 32 kHz, the CPU will be initialized at initial reset. OSC1 See Section 4.2, "Watchdog Timer", for details. 2.2.5 Initialization by initial reset When the E0C6006 is initially reset, its internal registers are set as follows: Table 2.2.5.1 Initial status CPU Core Name...
Note the following points with regard to the E0C6006: (1) The E0C6006 does not support the SLEEP function, therefore the SLP instruction cannot be used. (2) Because the ROM capacity is 2,048 words, 12 bits per word, bank bits are unnecessary, and PCB and NBP are not used.
4.1 Memory Map The data memory of the E0C6006 has an address space of 175 words, of which 32 words are allocated to display memory and 15 words, to I/O memory. Figure 4.1.1 show the overall memory map for the E0C6006, and Table 4.1.1, the memory maps for the peripheral circuits (I/O space).
Page 14
I/O port I/O control ∗3 ∗2 – – – Unused ∗1 ∗3 ∗5 Undefined Initial value at initial reset Always "0" being read ∗2 ∗4 Not set in the circuit Reset (0) immediately after being read EPSON E0C6006 TECHNICAL MANUAL...
4.2.1 Configuration of watchdog timer The E0C6006 has a built-in watchdog timer that operates with a divided clock from the OSC1 as the source clock. The watchdog timer must be reset cyclically by the software while it operates. If the watch- dog timer is not reset in at least 3–4 seconds (when f...
4.3.1 Configuration of oscillation circuit The E0C6006 has two oscillation circuits (OSC1 and OSC3). OSC1 is a crystal oscillation circuit that supplies the operating clock to the CPU and peripheral circuits. OSC3 is either a CR or a ceramic oscilla- tion circuit.
Table 4.3.5.1 shows the instruction execution time according to each frequency of the system clock. Table 4.3.5.1 Clock frequency and instruction execution time Instruction execution time (µsec) Clock frequency 5-clock instruction 7-clock instruction 12-clock instruction OSC1: 32.768 kHz 152.6 213.6 366.2 OSC3: 455 kHz 11.0 15.4 26.4 E0C6006 TECHNICAL MANUAL EPSON...
(2) When switching the clock from OSC3 to OSC1, use a separate instruction for switching the OSC3 oscillation off. An error in the CPU operation can result if this processing is performed at the same time by the one instruction. EPSON E0C6006 TECHNICAL MANUAL...
4.4 Input Ports (K00–K03, K10–K13) 4.4.1 Configuration of input port The E0C6006 has two 4-bit general-purpose input ports (K00–K03 and K10–K13). As shown in Figure 4.4.1.1, each input port terminal is provided with a pull-up and a feedback pull-up so that the port is suitable for push switch or key matrix switch input.
When "0" is written: Masked Reading: Valid With these registers, masking of the input port bits can be done for each of the four-bit terminal groups. At initial reset, these registers are all set to "0". EPSON E0C6006 TECHNICAL MANUAL...
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not be generated. Be very careful when interrupt factor flags are in the same address. E0C6006 TECHNICAL MANUAL EPSON...
4.5 Output Ports (R00–R03) 4.5.1 Configuration of output port The E0C6006 has 4 bits of general output ports (R00–R03). Output specifications of the output ports can be selected individually with the mask option. Two kinds of output specifications are available: complementary output and Nch open drain output. Also, the mask option enables the output ports R02 and R03 to be used as special output ports.
When "0" is written, the FOUT (R02) terminal goes low. Figure 4.5.3.2 shows the output waveform of the FOUT output. R02 register FOUT output waveform Fig. 4.5.3.2 FOUT output waveform Note: A hazard may occur when the FOUT signal is turned on or off. E0C6006 TECHNICAL MANUAL EPSON...
Page 24
The buzzer signal frequency can be selected from 2 types (f /8, f /16) by the mask option. When OSC1 OSC1 the OSC1 oscillation frequency is 32.768 kHz, they becomes 4 kHz and 2 kHz, respectively. EPSON E0C6006 TECHNICAL MANUAL...
The BZ and BZ outputs can be controlled by writing data to the R02 and R03 registers. At initial reset, these registers are set to "0". 4.5.5 Programming note The FOUT and buzzer output signals may produce hazards when the output ports R02 and R03 are turned on or off. E0C6006 TECHNICAL MANUAL EPSON...
4.6.1 Configuration of I/O port The E0C6006 has 4 bits of general-purpose I/O ports. Figure 4.6.1.1 shows the configuration of the I/O ports. The I/O ports P00–P03 can be set to either input mode or output mode by writing data to the I/O control register (IOC).
Hence, the electric potential of the terminals must settle within 0.5 cycles. If this condi- tion cannot be met, some measure must be devised, such as arranging a pull-up resistor externally, or performing multiple read-outs. E0C6006 TECHNICAL MANUAL EPSON...
4.7 LCD Driver 4.7.1 Configuration of LCD driver The E0C6006 has four common terminals (COM0–COM3) and 20 segment terminals (SEG0–SEG19), so that an LCD with a maximum of 80 (20 × 4) segments can be driven. The driving method is 1/4 duty (1/3 duty can also be selected by mask option) dynamic drive, adopting...
Page 29
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (LCD Driver) LCD status COM0 COM0 COM1 COM2 COM1 COM3 COM2 SEG0–19 COM3 SEG0 –SEG19 Frame frequency Fig. 4.7.1.2 Drive waveform for 1/4 duty E0C6006 TECHNICAL MANUAL EPSON...
Because the display memory is for writing only, re-writing the contents with logical instructions (e.g., AND, OR, etc.) which come with read-out operations is not possible. To perform bit operations, a buffer to hold the display data is required on the RAM. EPSON E0C6006 TECHNICAL MANUAL...
4.8.1 Configuration of clock timer The E0C6006 has a built-in clock timer that uses the OSC1 oscillation circuit as the clock source. The clock timer is configured as a 8-bit binary counter that counts with a 256 Hz source clock from the divider. The 8 bits of the counter (128 Hz–1 Hz) can be read by the software in 4-bit units.
When "1" is written: Enabled When "0" is written: Masked Reading: Valid The interrupt mask registers (EIT32, EIT8, EIT2) mask the corresponding interrupt frequencies (32 Hz, 8 Hz, 2 Hz). At initial reset, these registers are all set to "0". EPSON E0C6006 TECHNICAL MANUAL...
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not be generated. Be very careful when interrupt factor flags are in the same address. E0C6006 TECHNICAL MANUAL EPSON...
4.9 Remote Controller (REM) 4.9.1 Configuration of remote controller The E0C6006 has a remote controller (REM circuit) built-in. It can easily adapt to various remote control- lers by connecting an infrared remote LED and a transistor as shown in Figure 4.9.1.1.
Note: The setting of the RCDIV register and the RCDUTY register should be done when the REM circuit is OFF (REMC = "0") before starting remote transmission. If changing the contents when the REM circuit is ON, it may cause a malfunction. E0C6006 TECHNICAL MANUAL EPSON...
Page 36
However at initial reset, the REMC register is set to "1" for initializing the carrier generation circuit. The register must not be set to "0" until after initialization (within 32 machine cycles). EPSON E0C6006 TECHNICAL MANUAL...
Fig. 4.9.3.3 Carrier ON/OFF by REMSO register • Be sure to control the carrier output using the REMSO register. Do not control the carrier output using the REMC register by setting the REMSO register to "1". E0C6006 TECHNICAL MANUAL EPSON...
4.9.4 Hard-timer mode and REM interrupt In the soft-timer mode, the CPU is occupied for the remote output processing so that it has no flexibility for execution of other routines. To alleviate this problem, the E0C6006 supports the hard-timer mode explained below.
Page 39
Note: The setting of the RT register should be done when the REM circuit is OFF (REMC = "0") before starting remote transmission. Changing the contents when the REM circuit is ON may cause a malfunction. E0C6006 TECHNICAL MANUAL EPSON...
Page 40
The timing to generate interrupt can be set by the software using τ cycle as reference the same as the carrier output width. The interrupt timing can be selected by writing data to the RIC3–RIC0 register (F8H). EPSON E0C6006 TECHNICAL MANUAL...
Page 41
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not be generated. E0C6006 TECHNICAL MANUAL EPSON...
When "1" is written to the RCDIV register, the carrier frequency is set to f /12. When "0" is written, it OSC3 is set to f /8. This setting must be done when the remote controller is OFF (REMC = "0") status. OSC3 At initial reset, this register is undefined. EPSON E0C6006 TECHNICAL MANUAL...
Page 43
At initial reset, this register is undefined. Note: The RIC register is for the exclusive use of the hard-timer mode. When controlling with the soft- timer mode, be sure not to write data to this register to prevent malfunction. E0C6006 TECHNICAL MANUAL EPSON...
Page 44
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not be generated. At initial reset, this flag is set to "0". EPSON E0C6006 TECHNICAL MANUAL...
(9) The values that can be set in the REM interrupt counter (0F8H) are from 0 to 0EH. Remember, writing 0FH into the counter may cause an error. (10) Soft-timer mode cannot coexist with hard-timer mode. To use them in combination, stop the REM circuit before selecting either. E0C6006 TECHNICAL MANUAL EPSON...
Execution of the HALT instruction stops the CPU clock of the E0C6006 to halt the CPU. An interrupt enables it to restart from the halt state. If the CPU can not restart, because dose not detect an interrupt, it restarts from initial reset state under watchdog timer control.
Page 47
Note that, if this is impossible, initial resetting under watchdog timer control is required. Interrupt factor flag Noise reject (Falling edge) circuit Mask option Noise reject circuit (Falling edge) /8 (4 kHz) OSC1 Fig. 4.10.1.2 Input interrupt circuit E0C6006 TECHNICAL MANUAL EPSON...
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not be generated. Be very careful when interrupt factor flags are in the same address. E0C6006 TECHNICAL MANUAL EPSON...
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Lower Current Dissipation) 4.11 Lower Current Dissipation The E0C6006 contains a control register for each circuit block to realize lower current consumption. The registers are programmed so as to operate each circuit with a minimum current. For reference in pro-...
100pF Capasitor 100pF Capacitor 0.33µF Resistor Open(VL=1.0V), 2MΩ (VL=1.5V) Resistor Short(VL=1.0V), 1MΩ (VL=1.5V) Resistor 100Ω Capacitor 0.1µF Capacitor 0.1µF –C Capacitor 0.1µF Note: The above table is simply an example, and is not guaranteed to work. E0C6006 TECHNICAL MANUAL EPSON...
=140kΩ, Ta=25°C Item Symbol Condition Min. Typ. Max. Unit Oscillation frequency – – OSC3 Oscillation start voltage Vsta -2.2 – – Oscillation start time =-2.2 to -3.5V – – Oscillation stop voltage Vstp -2.2 – – E0C6006 TECHNICAL MANUAL EPSON...
CHAPTER 6: ELECTRICAL CHARACTERISTICS E0C6006 oscillation characteristics — f vs R — (for reference) OSC3 Condition: Ta = 25°C, V = GND, V = -3.0 V, Non board and package capacitance Note: Oscillation characteristics are affected by various conditions (board pattern, parts used, etc.).
(1) The power supply should be connected to the V and V terminal with patterns as short and large as possible. (2) When connecting between the V and V terminals with a bypass capacitor, the terminals should be connected as short as possible. E0C6006 TECHNICAL MANUAL EPSON...
Page 60
(1) Design the product and implement the IC on the board so that it is shielded from visible radiation in actual use. (2) The inspection process of the product needs an environment that shields the IC from visible radiation. (3) As well as the face of the IC, shield the back and side too. EPSON E0C6006 TECHNICAL MANUAL...
Page 61
SOUTH EASTERN AREA SALES AND TECHNOLOGY CENTER - TAIWAN, R.O.C. - 4300 Six Forks Road, Suite 430 Raleigh, NC 27609, U.S.A. EPSON TAIWAN TECHNOLOGY & TRADING LTD. Phone: +1-919-781-7667 Fax: +1-919-781-6778 10F, No. 287, Nanking East Road, Sec. 3 Taipei, TAIWAN, R.O.C.
Page 62
In pursuit of “Saving” Technology, Epson electronic devices. Our lineup of semiconductors, liquid crystal displays and quartz devices assists in creating the products of our customers’ dreams. Epson IS energy savings.
Page 63
ELECTRONIC DEVICES MARKETING DIVISION Electronic devices information on the Epson WWW server http://www.epson.co.jp Issue SEPTEMBER 1998, Printed in Japan...