Epson E0C6006 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Quick Links

MF1114-01
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
E0C6006 T
M
ECHNICAL
ANUAL
E0C6006 Technical Hardware

Advertisement

Table of Contents
loading

Summary of Contents for Epson E0C6006

  • 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.
  • Page 3: Table Of Contents

    4.5 Output Ports (R00–R03) ................18 4.5.1 Configuration of output port ..............18 4.5.2 Mask option ....................18 4.5.3 Special output .................... 19 4.5.4 I/O memory of output ports ............... 21 4.5.5 Programming note ..................21 E0C6006 TECHNICAL MANUAL EPSON...
  • Page 4 ACKAGE 7.1 Plastic Package .................... 52 7.2 Ceramic Package for Test Samples .............. 53 _____________________________________________ 54 CHAPTER AYOUT 8.1 Diagram of Pad Layout ................54 8.2 Pad Coordinates ..................54 _________________________________ 55 CHAPTER RECAUTIONS ON OUNTING EPSON E0C6006 TECHNICAL MANUAL...
  • Page 5: Chapter Ntroduction

    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.
  • Page 6: Block Diagram

    L1– ∗1 Output Port R02 (FOUT, BZ) CA, CB Controller ∗1 R03 (BZ) Watchdog FOUT Timer & Buzzer Clock R33 (REM) Timer ∗1: Terminal specifications can be selected by mask option. Fig. 1.2.1 E0C6006 block diagram EPSON E0C6006 TECHNICAL MANUAL...
  • Page 7: Pin Layout

    OSC2 INDEX SEG8 COM3 OSC1 SEG9 COM2 SEG10 COM1 N.C. COM0 SEG11 TEST N.C. = No connection Fig. 1.3.1 E0C6006 pin layout (QFP6-60pin) QFP13-64pin Pin name Pin name Pin name Pin name N.C. N.C. RESET N.C. N.C. R33(REM) SEG12 N.C.
  • Page 8: Pin Description

    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...
  • Page 9: Chapter Power Supply And Initial Reset

    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...
  • Page 10: Initial Reset

    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.
  • Page 11: Oscillation Detection Circuit

    = 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...
  • Page 12: Chapter 3 Cpu, Rom, Ram

    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.
  • Page 13: Peripheral Circuits And Operation

    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...
  • Page 15: Watchdog Timer

    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...
  • Page 16: Oscillation Circuit

    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.
  • Page 17: Switching The System Clock

    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...
  • Page 18: I/O Memory Of Oscillation Circuit

    (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...
  • Page 19: Input Ports (K00-K03, K10-K13)

    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.
  • Page 20: Mask Option

    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...
  • Page 21: Programming Notes

    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...
  • Page 22: Output Ports (R00-R03)

    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.
  • Page 23: Special Output

    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...
  • Page 25: I/O Memory Of Output Ports

    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...
  • Page 26: I/O Ports (P00-P03)

    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).
  • Page 27: Programming Notes

    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...
  • Page 28: Lcd Driver

    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...
  • Page 30: Mask Option

    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...
  • Page 31: Clock Timer

    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.
  • Page 32: I/O Memory Of Clock Timer

    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...
  • Page 33: Programming Notes

    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...
  • Page 34: Remote Controller (Rem)

    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.
  • Page 35: Carrier

    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...
  • Page 37: Soft-Timer Mode

    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...
  • Page 38: Hard-Timer Mode And Rem Interrupt

    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...
  • Page 42: I/O Memory Of Remote Controller

    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...
  • Page 45: Programming Notes

    (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...
  • Page 46: Interrupt And Halt

    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...
  • Page 48: Interrupt Mask Register

    PCS0 K00–K03 interrupt requested K00–K03 interrupt not requested Examples: • Only timer interrupt requested — Jump to page 1, step 08H • Both timer interrupt and REM interrupt requested — Jump to page 1, step 0CH EPSON E0C6006 TECHNICAL MANUAL...
  • Page 49: Programming Notes

    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...
  • Page 50: Lower Current Dissipation

    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-...
  • Page 51: Chapter Basic External Wiring Diagram

    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...
  • Page 52: Chapter Electrical Characteristics

    Low level output current (3) =0.9·V R33(REM) µA Common output current =-0.05V COM0–3 -3.0 µA +0.05V µA Segment output current =-0.05V SEG0–19 -3.0 µA (during LCD output) +0.05V ∗1 Only at read cycle using internal program. EPSON E0C6006 TECHNICAL MANUAL...
  • Page 53: Analog Circuit Characteristics And Power Current Consumption

    =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...
  • Page 54: Input Current Characteristics (For Reference)

    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.).
  • Page 55: Output Current Characteristics (For Reference)

    Vss = -3.0 V P0∗ R0∗ Vss = -2.2 V R0∗ P0∗ Vss = -2.2 V P0∗ R0∗ R0∗ P0∗ Vss = -3.0 V Vss+1 Vss+2 Vss+3 R33 (REM) Vss = -2.2 V Vss = -3.0 V E0C6006 TECHNICAL MANUAL EPSON...
  • Page 56: Chapter 7: Package

    (Unit: mm) 17.6 ±0.4 ±0.2 INDEX 0.35 ±0.1 ±0.05 0.15 0° 10° 0.85 ±0.2 QFP13-64pin (Unit: mm) ±0.4 ±0.1 INDEX +0.1 0.18 –0.05 +0.05 0.125 –0.025 0° 10° ±0.2 The dimensions are subjected to change without notice. EPSON E0C6006 TECHNICAL MANUAL...
  • Page 57: Ceramic Package For Test Samples

    COM1 SEG9 COM0 SEG10 SEG11 N.C. N.C. N.C. N.C. TEST N.C. N.C. N.C. RESET VADJ N.C. R33(REM) SEG12 SEG0 SEG13 SEG1 SEG14 SEG2 SEG15 OSC4 SEG3 SEG16 OSC3 SEG4 SEG17 SEG5 SEG18 N.C. = No Connection E0C6006 TECHNICAL MANUAL EPSON...
  • Page 58: Chapter Pad Layout

    -997 -1285 1204 TEST -1204 1215 -867 -1285 1204 RESET -1204 1086 -130 -1285 1204 SEG12 -1204 OSC4 -1285 1204 SEG13 -1204 OSC3 -1285 1204 1067 SEG14 -1204 -1285 1204 1198 SEG15 -1204 OSC2 -1285 – EPSON E0C6006 TECHNICAL MANUAL...
  • Page 59: Chapter Precautions On Mounting

    (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...

Table of Contents