E09aan e
E09aan e
CARD-E09A
Application Note
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 Law of Japan and may require an export license from the Ministry of International Trade
and Industry or other approval from another government agency.
PC/AT and VGA are trademarks of International Business Machines Corporation in U.S.A.. Windows is a registered
trademark of Microsoft in U.S.A.. Ethernet is a registered trademark of Xerox Corporation in U.S.A..
CompactFlash is a trademark of Sandisk Corporation in U.S.A.. CompactFlash is licensed to CFA (CompactFlash
Association).
All other product names mentioned herein are trademarks and/or registered trademarks of their respective companies.
                                                                                                        CARD-E09A Application Note
1. Introduction ................................................................................................................................ 1
2. Video Interface........................................................................................................................... 2
    2.1. CRT Interface ................................................................................................................... 2
    2.2. LCD Interface ................................................................................................................... 2
    2.3. LCD Connection............................................................................................................... 3
          2.3.1. Signal and Power Line Connections .................................................................... 3
               2.3.1.1. Signal Lines............................................................................................... 3
                     2.3.1.1.1. LCD interface................................................................................. 3
                     2.3.1.1.2. External Clock Input Mode............................................................ 5
               2.3.1.2. Power Sequence ........................................................................................ 8
          2.3.2. Panel Parameter Setup Method ............................................................................ 14
               2.3.2.1. SED1355 Register Settings....................................................................... 14
               2.3.2.2. Hardware Portrait Mode............................................................................ 19
               2.3.2.3. Frame Rate and Display Performance....................................................... 20
               2.3.2.4. LCD and CRT Simultaneous Display ....................................................... 21
               2.3.2.5. Notes on Connecting a Monochrome LCD Panel..................................... 22
          2.3.3. STARTUP.DAT Settings..................................................................................... 23
          2.3.4. Design Notes........................................................................................................ 25
3. External Buses............................................................................................................................ 26
    3.1. Memory Map .................................................................................................................... 26
    3.2. SH Bus.............................................................................................................................. 27
           3.2.1. Notes on Operation .............................................................................................. 27
           3.2.2. Wait Cycles .......................................................................................................... 28
    3.3. ISA bus ............................................................................................................................. 29
           3.3.1. Differences from Full ISA Bus ............................................................................ 30
           3.3.2. 8/16-bit Devices ................................................................................................... 32
           3.3.3. Other Notes .......................................................................................................... 33
    3.4. PCMCIA Interface............................................................................................................ 34
           3.4.1. Access Method..................................................................................................... 34
                3.4.1.1. Windows ................................................................................................... 34
                3.4.1.2. Bank Switching ......................................................................................... 36
           3.4.2. CompactFlash card connection to the PCMCIA Slot........................................... 37
           3.4.3. 8/16-bit Access..................................................................................................... 38
           3.4.4. Interface Timing................................................................................................... 39
                3.4.4.1. PCMCIA Timing ...................................................................................... 39
                3.4.4.2. External Buffer Control Timing for Address/Data Signals....................... 41
           3.4.5. Other Considerations............................................................................................ 42
4. Serial Communication Interface................................................................................................. 43
    4.1. Serial Interface.................................................................................................................. 43
    4.2. Infrared Communication................................................................................................... 44
5. Parallel Port Interface................................................................................................................. 45
    5.1. Design Notes..................................................................................................................... 45
    5.2. EPP Mode......................................................................................................................... 45
    5.3. Current Flows ................................................................................................................... 46
Rev. A                                                               EPSON                                                                           i
CARD-E09A Application Note
ii                                                                 EPSON                                                                  Rev. A
                                                                                               CARD-E09A Application Note
1. Introduction
This document is an Application Note to be used for reference when designing systems using the
CARD-E09A. Use it in conjunction with the "CARD-E09A Hardware Manual," "SED1355F0A
Technical Manual," the "Evaluation Board Hardware Manual" supplied with the CARD-E09A
evaluation kit (SCE88J0X01), and the "Windows CE Development Kit Instruction Manual" supplied
with the CARD-E09A Windows CE Development Kit (SCE88J3X01).
This document assumes incorporation into an operating system created using the Windows CE
Development Kit provided by Epson for the CARD-E09A. Therefore, if a different operating system
is used, additional software, such as device drivers, and additional hardware, such as extra circuits
on the motherboard on which the CARD-E09A is mounted may be required.
Rev. A                                        EPSON                                                1
CARD-E09A Application Note
2. Video Interface
The CARD-E09A includes LCD controller (SED1355, Seiko Epson) with internal RAM DAC. For
the video memory 2MB (1M × 16 bits, 60 ns) of EDO-RAM is connected. In terms of display device,
it can drive a CRT, a LCD, or both at the same time. Video signal output switching can be specified
in STARTUP.DAT (described below). The STARTUP.DAT setting not only switches between CRT
and LCD panel, but can also set the panel parameters so that various LCD panels can be connected.
The main difference between the CRT interface and the LCD interface is that the former is an analog
output whereas the latter is a digital (TTL) output. For details, see "SED1355F0A Technical
Manual."
Interface types
E 4-bit single monochrome passive LCD panel (bus configuration: 4 × 1)
E 8-bit single monochrome passive LCD panel (bus configuration: 8 × 1)
E 4-bit single color passive LCD panel (bus configuration: 4 × 1)
E 8-bit single color passive LCD panel (bus configuration: 8 × 1)
E 16-bit single color passive LCD panel (bus configuration: 16 × 1)
E 8-bit dual monochrome passive LCD panel (bus configuration: 4 × 2)
E 8-bit dual color passive LCD panel (bus configuration: 4 × 2)
E 16-bit dual color passive LCD panel (bus configuration: 8 × 2)
E 9-bit TFT color LCD panel (color configuration: R, G, B × 3)
E 12-bit TFT color LCD panel (color configuration: R, G, B × 4)
E 16-bit TFT color LCD panel (color configuration: R × 5, G × 6, B × 5)
2                                            EPSON                                          Rev. A
                                                                      CARD-E09A Application Note
Rev. A                                        EPSON                                                 3
CARD-E09A Application Note
4                                          EPSON                                            Rev. A
                                                                    CARD-E09A Application Note
Notes
1) Unused data lines on the CARD-E09A are driven at low level.
2) For single color passive panels, format 1 and 2 have different data formats. See "SED1355F0A
    Technical Manual."
Notes
DOTCLK is different from the CARD-E09A internal display reference clock signal (PCLK) for each
pixel. The setting of SED1355 REG[19h] only affects PCLK, and therefore when determining
DOTCLK, it is essential to check Table 2-10 "Relation between DOTCLK and PCLK," and Table 2-
11 "Restrictions on PCLK settings" in Section 2.3.2, "Panel parameter settings." Table 2-4 shows the
relationship for a TFT panel or the like, when DOTCLK = PCLK.
Rev. A                                       EPSON                                                5
CARD-E09A Application Note
Table 2-4 Dot clock signal in internal clock mode (when DOTCLK = PCLK)
    Frequency divisor    DOTCLK [MHz]
        CKIO/1               33.2
        CKIO/2               16.6
        CKIO/3               11.1
        CKIO/4                8.3
              Table 2-5 Dot clock signal for standard LCD panel (typical frequency)
                        Color VGA TFT    Color VGA STN       Mono VGA STN         Mono VGA STN
                                           (Dual Scan)        (Dual Scan)          (Single Scan)
    DOTCLK [MHz]           25.175            12.587              6.294                 3.147
Table 2-5 shows only typical frequency for the dot clock, but in general an LCD panel has minimum,
reference, and maximum values stipulated for the dot clock signal. For any of the frequency divisors
shown in Table 2-4, if the specification range cannot be satisfied, or if it is necessary to make fine
adjustments to the dot clock signal to optimize the display performance, this cannot be supported in
internal clock mode.
The above problems can be solved by operating in external clock input mode. In external clock input
mode, for the SED1355 reference clock signal, CKIO is replaced by an external input to the CARD-
E09A. The following procedure is required for setting external clock input mode.
1)    The input voltage rating and AC characteristics rating must be strictly observed.
      VIL = VCC × 0.3 Max., VIH = VCC × 0.7 Min., VCC = 3.3V
      For the AC characteristics, refer to Chapter 8, "AC Characteristics" in the "CARD-E09A
      Hardware Manual."
6                                             EPSON                                           Rev. A
                                                                    CARD-E09A Application Note
#1) If the minimum rating of the dot clock signal specification for the LCD panel is 11.1 MHz or
    below, in internal clock mode a divisor of 3 can be set. In the external clock input mode, the
    SED1355 reference clock signal is 25.175 MHz, while in the internal clock mode it is 33.2
    MHz, and therefore the internal clock mode gives better performance.
#2) This is the example in which DOTCLK = PCLK/4. If the maximum rating of the dot clock signal
    specification of the LCD panel is 8.3 MHz or above, in internal clock mode a divisor of 1 can
    be set. As in Note #1, the internal clock mode gives better performance.
#3) This is the example in which DOTCLK = PCLK/8. If the maximum rating of the dot clock signal
    specification of the LCD panel is 4.2 MHz or above, in internal clock mode a divisor of 1 can
    be set. As in Note #1, the internal clock mode gives better performance.
Rev. A                                       EPSON                                                 7
CARD-E09A Application Note
SUSPEND# or
LCD Enable Bit
LINE, DOTCLK
MOD
FPDAT[0..15]
FRAME
PPVEEON
FPVCCON
                                                                                        T4
                   T5                                              T1
T7 T2 T3
T6
8                                            EPSON                                           Rev. A
                                                                    CARD-E09A Application Note
[Fig. 2-1]
 Symbol               Item                        Min.                     Max.          Units
    T1     "SUSPEND# Bit" enable, or               -                 2 Frame + Dotclk     ns
           "LCD Enable Bit" disable to
           FPVEEON off
    T2     "SUSPEND# Bit" enable or                  -                      1            Frame
           "LCD Enable Bit" disable to
           FRAME inactive
    T3     FRAME inactive to LINE,                 128                      -            Frame
           DOTCLK, MOD, and
           FPDAT[0..15] inactive
    T4     "SUSPEND# Bit" enable or                 10                      -             ms
           "LCD Enable Bit" disable to       (Setting can be
           FPVCCON off                         changed in
                                            STARTUP.DAT)
   T5      "SUSPEND# Bit" disable or                 -              1 Frame + 8 Dotclk    ns
           "LCD Enable Bit" enable to
           LINE, DOTCLK, MOD,
           FPDAT[0..15] active
   T6      LINE, DOTCLK, MOD,                      128                      -            Frame
           FPDAT[0..15] active to
           FRAME active, and
           FPVEEON on
   T7      "SUSPEND# Bit" disable or                 0                     127           Frame
           "LCD Enable Bit" enable to     (This value is fixed in
           FPVCCON on                           a resume)
           (Timing can be set in
           STARTUP.DAT, and in a
           resume is fixed at 0 frame)
1) In the figure above, "LCD Enable Bit" indicates REG[0Dh] Bit 0 (LCD Enable).
2) "SUSPEND# Bit" indicates the SH7709A Port E register Bit 7 (in the CARD-E09A, assigned to
   control of SUSPEND#). The output of this port is connected internally to the CARD-E09A to the
   SUSPEND# pin of the SED1355. SED1355 REG[1Ah] Bit 0 (Software SUSPEND Mode) is not
   used.
3) For the FPVCCON on timing setting, see Section 2.3.3, "STARTUP.DAT settings."
A summary of the power sequence is now described. In the system power on/off sequence,
NKLOADS.BIN (part of the loader), in the suspend/resume sequence, Windows CE HAL,
respectively sets the SED1355 and SH7709A registers based on the STARTUP.DAT settings. The
user simply has to make settings in STARTUP.DAT, and the following power sequence
requirements can be met. Read this in conjunction with Section 2.3.3, "STARTUP.DAT settings."
Rev. A                                     EPSON                                                 9
CARD-E09A Application Note
<<STEP1>>
1) The SH7709A Port E register Bit 2 (assigned to SED1355 reference clock signal switching
   control in CARD-E09A) is set, and a check made of whether the internal clock mode or external
   clock input mode is selected.
2) SED1355 registers are set.
3) First SED1355 REG[23h] Bit 7 (Display FIFO Disable) is set to 1, (display inhibit mode), and
   next SED1355 REG[0Dh] Bit 0 (LCD Enable) is set to 1 for the LCD power on sequence.
For a resume
Previously, before the suspend, the settings in 1) and 2) above have been carried out, and the display
inhibit mode setting completed. At that time, to speed up the suspend/resume display power on
sequence, the display area is set to a minimum. The setting size is as follows. In this state,
NKLOADS.BIN carries out the next step, A).
     E HDP (horizontal display period)              = 8 pixels
     E HNDP (horizontal non-display period)         = 32 pixels
     E VDP (vertical display period)                = 1 line
     E VNDP (vertical non-display period)           = 1 line
<<STEP2>>
10                                            EPSON                                           Rev. A
                                                                   CARD-E09A Application Note
Note:
When the connected LCD panel has a specified time from logic power on until the signal lines are
driven not exceeding "T5 + T6", a buffer IC must be inserted in all signal lines, and the power on
sequence controlled. See Section 2.3.4, "Design Notes."
For a resume
B) FPVCCON is turned on. T7 = 0 Frame fixed.
C) After time T5, LINE, DOTCLK, MOD, FPDAT[0..15] are active, and further after time T6,
   FRAME and FPVEEON are active.
D) After 128 Frames (T6) from A), based on STARTUP.DAT, the proper display size is set, after
   which the display inhibit mode is ended.
The following is an example of the calculation of T5, T6, and T7 when DOTCLK = 25.175 MHz
The display size is the minimum setting (HDP = 8 pixels, HNDP = 32 pixels, VDP = 1 line, VNDP
= 1 line).
Rev. A                                      EPSON                                              11
CARD-E09A Application Note
<STEP3>
This is the display mode. When ending the display mode, the preparations must be made in advance.
E) Same as 7).
F) Windows CE HAL sets SUSPEND# Bit to 0 (Enable).
<STEP 4>
For a suspend
G) Same as 9).
H) Same as 10).
The following is an example of the calculation of T1, T2, T3, and T4 when DOTCLK = 25.175 MHz.
The display size is the minimum setting
(HDP = 8 pixels, HNDP = 32 pixels, VDP = 1 line, VNDP = 1 line).
12                                            EPSON                                           Rev. A
                                                                              CARD-E09A Application Note
The specification of time T4 is given in Section 7.4, "Power Sequence" of the "SED1355F0A
Technical Manual" as 130 Frames minimum, but in CARD-E09A, to improve the suspend/resume
and power off sequence response, HDP/HNDP, and VDP/VNDP are minimized, and it is fixed at 10
ms minimum. This value is generated using the SH7709A internal timer function, and therefore in
the external clock input mode does not depend on the external clock source or DOTCLK frequency.
However, with a very low frequency external clock source, if 130 Frames exceeds 10 ms, it is
necessary to change the STARTUP.DAT settings, and specify a larger time. For the method of
changing the specified time, see Section 2.3.3, "STARTUP.DAT Settings." The reference criterion
is as follows.
As described above, the LCD panel power sequence can be controlled by FPVCCON and
FPVEEON. Also, the signal line power on timing is determined by the HDP, HNDP, VDP, VNDP,
and DOTCLK as set in the SED1355 registers.
Fig. 2-2 shows an example of connections. In this example of connections, signals for the liquid
crystal display are directly connected between the CARD-E09A and the liquid crystal display device,
but depending on the LCD panel, the DC characteristics of the signal lines may not match those of
the CARD-E09A, or there may be strict requirements for the power on/off sequence. In such cases, a
buffer IC must be inserted, or other measures taken so that the LCD panel specification is met.
                    FPVCCON
                    FPVEEON
Liquid crystal
Rev. A                                                   EPSON                                        13
CARD-E09A Application Note
Basic settings
Set registers shown in Table 2-8 so that they meet with the LCD panel specification. When checking
the settings, read this in combination with Chapter 8, "Registers" and the timing charts for each LCD
panel shown in Section 7.5, "Display Interface" in the "SED1355F0A Technical Manual."
14                                            EPSON                                          Rev. A
                                                                   CARD-E09A Application Note
Rev. A                                        EPSON                                              15
CARD-E09A Application Note
#1) For the hardware portrait mode (Bit 7) see Section 2.3.2.2. When operating with an OS created
    using Epson's "CARD-E09A Windows CE Development Kit," there are restrictions on the bpp
    selection (bits 4, 3, 2). The device driver only supports 8 bpp and 16 bpp modes. If another
    mode is set, the display quality under Windows CE cannot be guaranteed. For the CRT/LCD
    simultaneous display setting (bits 6, 5), see Section 2.3.2.3. For details of setting the CRT
    Enable (Bit 1) and LCD Enable (Bit 0) in STARTUP.DAT, see Section 2.3.3.
#2) For details, see Chapter 10, "Display Configuration" of the "SED1355F0A Technical Manual."
    Note that the Windows CE device driver does not support a two-screen drive. Again, in the
    hardware portrait mode, the settings of REG[10h] to REG[15h] are different. See Section
    2.3.2.2.
#3) Table 2-9 illustrates example settings of the memory address offset. For hardware portrait mode
    see Section 2.3.2.2. The settings are different. Note that in the quick debugger LCD command,
    setting and entering HDP (REG[04h]), automatically displays the settings of REG[16h] and
    [17h].
Note:
The number of pixels that can be represented by 1 byte is 1/2 pixel (2 bytes per 1 pixel) for 16/15
bpp, 1 pixel for 8 bpp, 2 pixels for 4 bpp, 4 pixels for 2 bpp, and 8 pixels for 1 bpp.
#4) In this register, the frequency of MCLK (memory clock) and PCLK (pixel clock) is set based on
    the source frequency (CKIO or external clock input source). MCLK is the video memory (EDO-
    RAM) reference clock signal. To minimize the current consumption during EDO-RAM access,
    make the setting (bit 2 = 0) so that MCLK is equal to the source frequency.
    PCLK is a once-per-pixel display reference clock signal. It is not connected to the CARD-E09A
    interface internally. The relation between DOTCLK and PCLK is shown in Table 2-10.
    Table 2-11 shows restrictions when setting PCLK. Read this in combination with Section
    2.3.1.1.2, "External Clock Input Mode."
16                                            EPSON                                         Rev. A
                                                             CARD-E09A Application Note
By setting SED1355 REG[02h] (panel type setting), the relation between DOTCLK and PCLK can
be arbitrarily defined.
Rev. A                                   EPSON                                         17
CARD-E09A Application Note
18                                         EPSON                                     Rev. A
                                                                    CARD-E09A Application Note
Note:
This table was created by extracting the items for which Nrc=4 from Table 14-1 "Maximum PCLK
frequency with EDO-DRAM" in Chapter 14, "Clocking" of the "SED1355F0A Technical Manual."
The Epson Windows CE device driver always has "Ink = OFF" set.
When using the ink function, it is necessary to set REG[27h] to [30h].
#5) For details of setting display FIFO disable (Bit 7) in STARTUP.DAT, see Section 2.3.3,
    "STARTUP.DAT Settings."
In hardware portrait mode, not only the setting of REG[0Dh] Bit 7, but also the memory address
offset (REG[16h], [17h]), the screen 1 setting (REG[10h], [11h], [12h]), and the screen 2 setting
(REG[13h], [14h], [15h]) must be changed. For the method of making the setting in
STARTUP.DAT, see Section 2.3.3. "STARTUP.DAT Settings." Note that the Epson Windows CE
video driver does not support the hardware portrait mode on screen 2. This mode is available in 16
bpp and 8 bpp modes. It is not supported in hardware for 4 bpp /2 bpp /1 bpp. Note also that the
cursor and ink images are not rotated.
Setting for display start address (REG[10h], [11h], [12h], [13h], [14h], [15h])
E For 16 bpp:        1024 - W (words)
E For 8 bpp:         (1024 - W)/2 (words)
In the above, W is the number of lines on the screen after the portrait setting. For example, when a
screen 640 pixels × 480 lines is rotated, W = 640. Note that in hardware portrait mode the
processing size maximum value is fixed at 1024 pixels × 1024 lines. It is not possible to make a
setting which exceeds this.
An example of the display address setting in hardware portrait mode is shown in Table 2-12. Note
that in the quick debugger LCD command, setting HDP (REG[04h]) and setting REG[0Dh] Bit 7 to
1, automatically displays the settings of REG[10h] to [17h].
Rev. A                                       EPSON                                               19
CARD-E09A Application Note
Table 2-13 shows example calculations of the frame rate. In the CARD-E09A, the following
specification of video memory is used. This table shows parts of the specification extracted from
Table 14-3 "Example Frame Rates with Ink Disabled" in the "SED1355F0A Technical Manual."
           E 60ns EDO-RAM
           E NRC = 4, NRP = 1.5, NRCD = 2 (see detailed description of REG[22h])
20                                            EPSON                                          Rev. A
                                                                    CARD-E09A Application Note
Note:
The example is in internal clock mode. When using external clock input mode:
        E MCLK = external clock source
        E Note that maximum DOTCLK = external clock source or a division thereof, and the
           maximum HNDP and maximum frame rate values are different with internal clock
           mode.
If a bandwidth calculation is required to optimize the display performance, see Section 14.3,
"Bandwidth Calculation" in the "SED1355F0A Technical Manual."
Basically, when using a CRT display, the timing must meet the VESA (Video Electronics Standards
Association) standard, but for a normal multiscan CRT, the frame rate synchronization can be
achieved over the range 50 Hz to 130 Hz, so check the type of CRT being used.
Most LCD panels can be adjusted within the CRT synchronization frequency (50 Hz to 130 Hz)
range, and therefore to use a simultaneous CRT and LCD panel display, first the parameters must be
set so that the standard value of the frame rate for the LCD panel being considered for use is
satisfied, and then a check made whether the values are within the rating range for the CRT being
adopted. Table 2-14 shows standard VESA specifications.
Rev. A                                         EPSON                                              21
CARD-E09A Application Note
The CARD-E09A has a maximum specification for DOTCLK of 33.2 MHz, and therefore does not
meet the standard for the 800 pixel × 600 line (SVGA) resolution, but as described above, if a
multiscan CRT is used, a correct display may be able to be obtained.
In monochrome mode, the maximum number of gray levels is 16. Even if more than 4 bpp is set, the
display still has only 16 levels. Therefore, 8 bpp or 15/16 bpp settings do not increase the gray levels,
but when the hardware portrait mode is used, an 8 bpp or 16 bpp setting is required. This is because
the hardware portrait mode only operates in the 8 bpp and 16 bpp modes.
When operating with an OS developed using the "CARD-E09A Windows CE Development Kit,"
note the following points. This is because the LUT settings are optimized to display the Windows
CE screen on a monochrome LCD panel. For details, see the "CARD-E09A Windows CE
Development Kit Instruction Manual."
E The STARTUP.DAT setting must always be 8 bpp. This is so that 16 grayscale levels are
  displayed using an 8 bpp LUT for color. For details of the STARTUP.DAT settings, see Section
  2.3.3.
E In the case of simultaneous display with a CRT, the CRT shows the same monochrome image as
  the LCD panel. This is because the setting uses the red, green, and blue elements of the LUT
  superimposed.
E When displaying on a monochrome LCD panel, there is no procedure to be noted during the
  NK.BIN (in Windows CE) build. If the monochrome LCD setting and the 8 bpp setting are made
  in STARTUP.DAT, then an LUT for the monochrome LCD panel is automatically used for the
  display.
E This function is supported from "CARD-E09A Windows CE 2.11 development kit Ver. 1.05."
  Note that it is not supported in previous versions.
22                                             EPSON                                             Rev. A
                                                                    CARD-E09A Application Note
Next a summary of the settings is given. The video parameters must be set at two places in the
STARTUP.DAT file: key "1355" and key "1355PROPERTY". For details, see Section 13.1,
"Startup Data Overview" in the "CARD-E09A Windows CE Development Kit Instruction Manual"
supplied with the Windows CE Development Kit.
Table 2-15 shows the setting format for key "1355". Here the SED1355 internal register settings are
specified. This should be checked with the sequence of steps in Section 2.3.1.2, "Power Sequence."
Rev. A                                       EPSON                                               23
CARD-E09A Application Note
 ;;;FFFF0004      Any value      When FPVCCON is turned on in the next step, the delay time
                                 from setting "LCD Enable" until it goes on is set in units of
                                 display frames. When the delay time setting is required, remove
                                 the semicolons so that this is no longer commented out.
                                 Example: If delay time = 128 Frames, set to "80h".
 ;;;FFFF0005           00        Removing the comment semicolons turns FPVCCON on. Use this
                                 in combination with the delay time setting.
 FFFF0001              00        Clear screen.
 B4000023              00        REG[23h] setting. Set bit 7 (Display FIFO Disable) to 0, and end
                                 the display inhibit mode.
 FFFFFFFF         FFFFFFFF       End of initialization
Table 2-16 shows the setting format for key "1355PROPERTY". Here the data referenced when
Windows CE starts is specified.
24                                            EPSON                                            Rev. A
                                                                                CARD-E09A Application Note
E Check that there is a match between the VOL/VOH rating of the CARD-E09A (the LCD panel I/F
  output signal rating is: VOL = 0.3V Max., VOH = VCC-0.3V Min., VCC = 3.3V) and the VIL/VIH
  specification of the LCD panel under consideration. If they do not match, to ensure that the LCD
  panel specification is met, a TTL level input CMOS device or similar should be inserted as a
  buffer in all signal lines.
E Be sure to check the LCD panel power on/off sequence rating. As described in Section 2.3.1.2,
  "Power Sequence," FPVCCON can be used for control of the LCD panel logic power, and
  FPVEEON for control of the LCD panel device power, but note that when buffers or similar are
  inserted in the signal lines, depending on the power switching circuit specification, the logic
  power on/off sequence and LCD panel refresh start timing (when the signal starts to be driven)
  may be reversed. In cases such as this, in the worst case the LCD panel could be damaged. If LCD
  panel logic power controlled by FPVCCON is connected to the buffer IC gate signal, then the
  above problem is solved. However, care is required in cases where there are stringent
  specifications for the time from applying the logic power until the signal begin to be driven.
E Connect a pull-down resistor of around 10 KΩ to FPVCCON. The SH7709A Port D register Bit 1
  is connected to FPVCCON, but in the interval between the system power being applied and the
  initialization this port has an input setting with a pull-up resistor, and therefore if an external pull-
  down resistor is not provided, will be held high in this interval.
FPVCCON
                                     10K                               100K
                                                                 244
                                                           Gate
E Even when an 18-bit TFT panel is connected, since the SED1355 supports up to 16-bit (65,536 colors),
  R0 and B0 are not driven. These data lines of the LCD panel should be held either high or low.
E When an external clock circuit is connected to EXTCLKI, the design must meet the conditions in
  Section 2.3.1.1.2, "External Clock Input Mode."
E Circuit connections to DOTCLK and EXTCLKI must be kept absolutely as short as possible.
Rev. A                                                            EPSON                                        25
CARD-E09A Application Note
3. External Buses
The CARD-E09A is provided with ISA, PCMCIA, and SH bus external expansion bus interfaces.
The SH bus is assigned to area 2, and the ISA bus / PCMCIA interface is assigned to area 6. Other
areas cannot be used.
The SH7709A has a privileged mode (4 GB space) and a user mode (2 GB space). Table 3-1 shows
the physical address space, which does not take account of these modes. Normally, when the user is
developing device drivers for a circuit added to an external bus or application software, user mode is
used. However, in this mode, since the whole region is a cacheable area, this cannot be used in cases
where there would be problems if the data is rewritten from the cache.
In cases such as this, it is necessary to use area P2 (the area not cached) in privileged mode. In
practice this means adding A0000000h to the physical address for the access address. For details, see
the "SH3 Hardware Manual."
26                                            EPSON                                           Rev. A
                                                                         CARD-E09A Application Note
3.2. SH Bus
For details of timing etc., see the "SH3 Hardware Manual."
3) The memory which can be connected is SRAM, ROM, and other normal memory. The CARD-
   E09A does not have RAS signal and CAS signal connections, and therefore a RAM device
   cannot be connected. When Windows CE is used, if a memory controller is connected externally,
   and a RAM device added, correct operation is not possible. This is because unless it is sequential
   memory expansion, Windows CE cannot be recognized.
4) By default, the bus width is set to 16 bits. When using an 8-bit width, the SH7709A BCR2
   register setting must be changed. Note that the SH7709A also supports a 32-bit width, but in the
   CARD-E09A, only the 16 data signal lines D[15:0] are present on the interface, and so this
   cannot be used.
5) The initial idle cycle setting is 1 idle cycle. In the SH7709A, setting up to 3 idle cycles is possible.
   When a change is required, a change in the setting of the SH7709A WCR1 register is required.
6) The initial wait cycle setting is 3 wait cycles. In the SH7709A, a 1 or 2 wait cycle setting is also
   possible. When a change is required, a change in the SH7709A WCR2 register setting is required.
   In addition to the above software settings, a wait cycle can be inserted in hardware by inputting
   active low to the WAIT# pin. For details, see Section 3.2.2, "Wait Cycles."
7) Do not input an active low signal simultaneously to both of the RESETP# and RESETM# pins.
   A reset may not be generated.
8) When using the clock output (CKIO) in an external circuit, due care must be taken of the
   capacitive component of the connected device, and with attention to the following item, the
   waveform must be met specification, and the delay time kept to a minimum. CKIO is used
   internally to the CARD-E09A, and therefore there is a possibility of the CARD-E09A itself being
   unable to carry out normal operation.
   E The external circuit must be connected in such a way that the CKIO clock timing
      specifications in Chapter 8, "AC characteristics" of the "CARD-E09A Hardware Manual" are
      met.
   E Clock line on a PCB must be absolutely as short as possible, no more than 20 mm.
   E If a connected device has a large capacitive component, insert a buffer between the CARD-
      E09A interface and the device. Even in this case, the interconnect between the CARD-E09A
      interface and the buffer should not exceed 20 mm.
   E If CKIO is not used, leave the pin unconnected.
Rev. A                                          EPSON                                                  27
CARD-E09A Application Note
1) The WAIT# signal is sampled on the rising edge of CKIO. To change to sampling on the falling
   edge, a change in the setting of SH7709A WCR1 register is required.
2) If the WAIT# signal is not synchronized to CKIO, then the CARD-E09A may malfunction.
   When generating the WAIT# signal, ensure a setup time (10 ns Min.) and a hold time (0 ns Min.)
   with respect to CKIO.
3) Note that if a wait exceeds 15 µs, the refresh operation of the SDRAM in the CARD-E09A will
   stop, and therefore data loss may occur.
28                                          EPSON                                         Rev. A
                                                                  CARD-E09A Application Note
                                                4MB       400000h
                                               4Mbyte                    CA23=0 CA22=1, A[21:0]
                                                          800000h
                                                4MB
                                               4Mbyte                    CA23=1 CA22=0, A[21:0]
                                                4MB       C00000h
1B800000h         4MB                          4Mbyte                    CA23=1 CA22=1, A[21:0]
                 4Mbyte
                                                          FFFFFFh
1BC00000h         4MB
                 4Mbyte
1BFFFFFFh
                                                                         ISA Address Register :
                                                                         ISA I/O
                                           ISA I/O
                                                4MB       000000h
                                               4Mbyte                    CA23=0 CA22=0, A[21:0]
                                                4MB       400000h
                                               4Mbyte                    CA23=0 CA22=1, A[21:0]
                                                4MB       800000h
                                               4Mbyte                    CA23=1 CA22=0, A[21:0]
                                                4MB       C00000h
                                               4Mbyte                    CA23=1 CA22=1, A[21:0]
                                                          FFFFFFh
Rev. A                                      EPSON                                                 29
CARD-E09A Application Note
30                                         EPSON                                           Rev. A
                                                                      CARD-E09A Application Note
(#1) When 5V operation device are expanded, buffers or level shifters must be inserted in lines
     D[15:0] and IRQ[4:1]. However, the MEMCS16#, IOCS16#, and IOCHRDY pins are tolerant
     of a 5V input, so a buffer or similar is not required, but depending on the device specification,
     insert a pull-up resistor of around 1 KΩ to 3.3V or 5V.
(#2) IRQ1 is assigned to the LAN circuit on the evaluation board. For this reason, the LAN driver
     supplied with the "CARD-E09A Windows CE Development Kit" uses IRQ1 (rising edge
     sense). In the evaluation board, IRQ[4:2] are not used, and therefore these lines are masked.
     When IRQ1 is used for another purpose, or when IRQ[4:2] are used, a device driver must be
     created to set the SH7709A interrupt control register.
(#3) A block diagram for generating SMEMR# and SMEMW# externally is shown in Fig. 3-2.
                CA23
                CA22
                A21                                                      SMEMR#
                A20                                                         or
                                                                         SMEMW#
                MEMR#
                  or
                MEMW#
(#4) SH7709A I/O is memory-mapped I/O, and therefore the supported DMA transfers from
     memory to memory. In the CARD-E09A, two channels of the SH7709A internal four-channel
     DMAC are available on the four pins which are DREQ[1:0]# and DACK[1:0]#, but the DMA
     is different from that on a full ISA bus. For details, see the "SH3 Hardware Manual." Note that
     the remaining two channels are used as SCIF and AUDIO internally to the CARD-E09A.
(#5) In a full ISA bus, BALE is used to latch LA[23:19], but all of the CARD-E09A address lines
     are latched so this is not necessary internally.
Rev. A                                        EPSON                                                31
CARD-E09A Application Note
These are 5 V-tolerant input signals, and can drive at 5V or 3.3V depending on the connected device.
Internally to the CARD-E09A they are not pulled up. An external pull-up resistor of around 1 KΩ
must always be provided to pull up to 5V or 3.3V. By the provision of the pull-up resistor, they are
normally (when low is not driven) inactive. Because of this reason, an 8-bit device does not need to
drive MEMCS16#/IOCS16# to become inactive.
Fig. 3-3 shows an example of a circuit for generating MEMCS16#. This is an example of a memory
device mapped to logical addresses A00000h to BFFFFFh. Assuming that first CA23=1, CA22=0 is
set by an ISA address register setting, accessing addresses 1BA00000h to 1BBFFFFFh in the
SH7709A 4 MB memory space 1B800000h to 1BBFFFFFh actually accesses logical addresses
A00000h to BFFFFFh. The address is decoded, and provides an open collector drive to MEMCS16#.
The address lines used in decoding are all latched.
                    CA23
                    CA22                                          MEMCS16#
                      A21
Fig. 3-4 shows an example of a memory device mapped to logical addresses 0D0000h to 0DFFFFh.
In this case again, the address is decoded, and MEMCS16# is driven with an open collector.
                    CA23
                    CA22
                     A21
                     A20
                                                                  MEMCS16#
                      A19
                      A18
                      A17
                      A16
Above example circuits for generating MEMCS16# were shown, but the case for IOCS16# is
exactly the same. For details of the MEMCS16#/IOCS16# timing specifications, see Chapter 8, "AC
Characteristics" in the "CARD-E09A Hardware Manual."
32                                           EPSON                                          Rev. A
                                                                       CARD-E09A Application Note
1)   For area 6 to which the ISA bus and PCMCIA interface are assigned, the IPL (part of the Epson
     Windows CE loader) stored in flash ROM mounted on the CARD-E09A sets the SH7709A bus
     state controller (BSC) as shown below during the power-on sequence. Do not change these
     settings under any circumstances, because this may cause operation to fail. Note that the bus
     width is set to 16 bits, but if the access method is set to PCMCIA, then if MEMCS16# /
     IOCS16# cannot be asserted, 8-bit access is possible.
           Access method       : PCMCIA
           Bus width           : 16 bits
           Wait cycles         : 2 wait cycles
           Idling cycles       : 2 idle cycles
3)   It is possible to extend cycles by asserting IOCHRDY, but do not do this for more than 15 µs.
     The refresh operation of the SDRAM in the CARD-E09A will stop, and therefore SDRAM
     data loss may occur.
4)   When deasserting IOCHRDY, the hold time (0 ns Min.) for the data lines (D[15:0]) must be
     strictly observed. See Chapter 8, "AC Characteristics" of the "CARD-E09A Hardware
     Manual."
Rev. A                                       EPSON                                             33
CARD-E09A Application Note
3.4.1.1. Windows
For each of the memory and I/O 64 MB spaces, access is made through an 8 MB window assigned
in area 6. There are two windows, for memory space and for I/O space.
The 8 MB window is specified by the companion chip Slot Configuration Register: "Slot
A=11000100h, Slot B=11000140h, Compact Flash CARD=11000180h" (Memory area Select bit,
I/O area Select bit). When using the Epson Windows CE development environment, when system
power is on, the IPL (part of the Windows CE loader) stored in flash ROM mounted on the CARD-
E09A first carries out window setting, making possible access to Windows CE itself (NK.BIN)
which is stored on a PC card (normally CF). Thereafter, the Windows CE PCMCIA driver resets the
windows. The window assignment is shown in Table 3-3.
34                                         EPSON                                           Rev. A
                                                                      CARD-E09A Application Note
As shown in Table 3-3, first the IPL has the memory window 19000000h to 197FFFFFh set to be
valid. Other windows are left invalid, and I/O card operations are not carried out. At this time, each
of the slots - slot A, slot B, and CF - can only accept a memory card such as an ATA on which is
stored an SBR (Sub Boot Record: for details, see the "CARD-E09A Windows CE Development Kit
Operation Manual"). Again, since only one window is valid, the three slots cannot be used
simultaneously. The slot priority is in the sequence Slot A => Slot B => CF. Table 3-4 shows the
slots recognized.
The quick debugger supplied with the "CARD-E09A Windows CE Development Kit" or "CARD-
E09A evaluation kit (SCE88J0X01)" recognizes a PC card (CF or ATA card) in the above priority
sequence. When the setting in the IPL is finished, control is passed to the PC card containing the
SBR and Windows CE, and then the Windows CE PCMCIA driver resets the windows. If Windows
CE is not to be run, software such as a device driver for window setting must be prepared.
Rev. A                                        EPSON                                                35
CARD-E09A Application Note
                                                    8MB      1000000h
                                                   8Mbyte               CA25=0 CA24=1 CA23=0
              SH7709A Area6
                                                    8MB      1800000h
 18000000h         8MB                             8Mbyte               CA25=0 CA24=1 CA23=1
                  8Mbyte
                                                    8MB      2000000h
 18800000h         8MB                             8Mbyte               CA25=1 CA24=0 CA23=0
                  8Mbyte
                                                    8MB      2800000h
 19000000h         8MB                             8Mbyte               CA25=1 CA24=0 CA23=1
                  8Mbyte
                                                             3000000h
 19800000h                                          8MB
                                                   8Mbyte               CA25=1 CA24=1 CA23=0
                                                    8MB      3800000h
 1A000000h         8MB                             8Mbyte               CA25=1 CA24=1 CA23=1
                  8Mbyte
 1A800000h         8MB                                                  Slot Address Register :
                  8Mbyte                       PCMCIA I/O Bank
                                                                        Slot I/O Address
 1B000000h                                          8MB      0000000h
                   8MB
                  8Mbyte                           8Mbyte               CA25=0 CA24=0 CA23=0
 1B800000h                                          8MB      0800000h
                                                   8Mbyte               CA25=0 CA24=0 CA23=1
 1BFFFFFFh
                                                    8MB      1000000h
                                                   8Mbyte               CA25=0 CA24=1 CA23=0
                                                    8MB      3000000h
                                                   8Mbyte               CA25=1 CA24=1 CA23=0
                                                    8MB      3800000h
                                                   8Mbyte               CA25=1 CA24=1 CA23=1
In Fig. 3-5, PCMCIA Memory Bank and PCMCIA I/O Bank are selected by the setting of
CA[25:23], and each divided into 8 MB units. For this reason, when exceeding 8 MB and accessing
the next bank, software such as a device driver is required to do bank switching.
36                                                EPSON                                           Rev. A
                                                                     CARD-E09A Application Note
                                                Address Buffer
            A[0..10]                                                        A[0..10]
            A[11..22]          N.C
           CA[23..25]          N.C
           ADRENA#                               G#
                CE1#                                                        CE1#
                CE2#                                                        CE2#
                 OE#                                                        OE#
                 WE#                                                        WE#
               IORD#                                                        IORD#
              IOWR#                                                         IOWR#
                REG#                                                        REG#
              RESET                                                         RESET
        RDY_IREQ#                                                           RDY/BUSY
            WAIT#                                                           WAIT#
        WP_IOIS16#                                                          WP_IOIS16#
     BVD1_STSCHG#                                                           BVD1_STSCHG#
        BVD2_SPKR                                                           BVD2_SPKR
             CD1#                                                           CD1#
             CD2#                                                           CD2#
             AVS1                                                           VS1
             AVS2                                                           VS2
                                                               N.C
                                                                            CSEL#
                                                               N.C          INPACK#
         SLOT_x_VCC
           SLOT_x_VCC
             VPPPGM
             VPPVCC                                                         VCC
                                                                            VCC
              VCC5#                                    Power
                VCC5#                                                       VPP
                                                                            VPP
              VCC3#
                VCC3#
                 GND                                                        GND
Rev. A                                      EPSON                                                    37
CARD-E09A Application Note
The CF can be inserted on the CARD-E09A, but there are the following advantages when connected
to the PCMCIA slot.
E A design allowing "hot plugging" is possible (a CF inserted on the CARD-E09A does not allow
  this function).
E Depending on the CF and motherboard specifications, either 5V or 3.3V power can be used (CF
  inserted on CARD-E09A is restricted to 3.3V).
E Since the interface connector can be mounted at any position on the motherboard, a configuration
  so that it can be inserted and removed externally can be considered.
E Since the size is smaller than a 68-pin type PC card, the system can be made more compact.
Table 3-5 shows the assignment in memory card mode, and Table 3-6 shows the assignment in I/O
card mode and when PC card attribute memory is being accessed. These settings comply with
PCMCIA/JEIDA standards.
38                                          EPSON                                         Rev. A
                                                                      CARD-E09A Application Note
          Table 3-6 Assignment in I/O card mode and when accessing attribute memory
   Mode        REG#     CE2#      CE1#       A0       IORD#    IOWR#        D[15:8]       D[7:0]
  Standby        X        H         H         X         X         X          Hi-Z         Hi-Z
 8bit READ       H        H         L         L         L         H          Hi-Z       EVEN byte
                 H        H         L         H         L         H          Hi-Z       ODD byte
                 H        L         H         X         L         H        ODD byte       Hi-Z
   8bit          H        H         L         L         H         L        Don’t care   EVEN byte
  WRITE          H        H         L         H         H         L        Don’t care   ODD byte
                 H        L         H         X         H         L        ODD byte     Don’t care
   16bit         H        L         L         X         L         H        ODD byte     EVEN byte
  READ
   16bit         H        L         L         X         H         L        ODD byte     EVEN byte
  WRITE
  REG# : AREG#, BREG#                   CE2# : ACE2#, BCE2#               CE1# : ACE1#, BCE1#
  IORD# : AIORD#, BIORD#                IOWR# : AIOWR#, BIOWR#
Rev. A                                       EPSON                                                 39
CARD-E09A Application Note
                                                Tc
     Address
     REG#
     A0
                                      Tsu(A)                   Th(A)
     CE1#, CE2#
                                                     Tw                     Th(CE)
                    Tsu(CE)
     OE#
WE#
                                 Tv                       Td
     WAIT#
                                                     Tds(R)            Tdh(R)
     Data (Read)
       8bit
                                                Tc
     Address
     REG#
     A0
                                      Tsu(A)                   Th(A)
CE1#, CE2#
     OE#
                                                     Tw
                    Tsu(CE)                                                 Th(CE)
     WE#
                                               Tv         Td
     WAIT#
                                      Tds(W)                           Tdh(W)
     Data (Write)
       8bit
40                                         EPSON                                 Rev. A
                                                                       CARD-E09A Application Note
When switching the slot power, the PCMCIA interface signal lines must also be 5 V-tolerant and 3.3
V-tolerant with respect to the slot power. For applications such as this, a buffer IC (E0C37120) with
internal voltage level shifter function is available. For the method of connection, see Sheet 7, "Buffer
circuit for PCMCIA Interface" in Section 13.2.1.2, "Reference Circuit Diagrams."
This buffer IC can be used for the PCMCIA interface address and data lines. Signals other than the
address and data lines have level conversion supported internally to the CARD-E09A, and it is not
necessary to connect an external buffer IC. See Section 7.4, "Pin Characteristics" in the "CARD-
E09A Hardware Manual." In the table, the "Group" column the source power pin is listed. The
PCMCIA interface signals are in groups, "Slot_A," and "Slot_B," and these use respective
SLOT_A_VCC (Slot A power voltage) and SLOT_B_VCC (Slot B power voltage) as source power.
Signals other than the address and data lines are input and output from the CARD-E09A at the
SLOT_A_VCC and SLOT_B_VCC voltage levels. The CARD-E09A SLOT_A_VCC and
SLOT_B_VCC pins must always be connected to the corresponding slot power.
Rev. A                                         EPSON                                                 41
CARD-E09A Application Note
In the CARD-E09A, a gate signal is provided for buffer IC control. Normally, for a DIR (direction)
signal is used RD/WE#. For connections, see the above reference circuit diagrams.
3) As described in Section 3.3.3, "Other Notes," do not change the settings of the SH7709A bus
   state controller (BSC).
4) The card detect signals (ACD[2:1]#, BCD[2:1]#), and voltage sense signals (AVS[2:1],
   BVS[2:1]) are pulled-up to VCC (3.3V) internally to the CARD-E09A. Do not pull-up an external
   circuit or connected PC card to 5V. There is a possibility of damage. These signals are normally
   connected to ground or left open-circuit within the PC card. If the PC card is left connected, note
   that a current will flow between the CARD-E09A internal 3.3V line and the PC card ground.
   When in suspend or other low current consumption mode, it is recommended to remove the PC
   card.
5) In the PCMCIA/JEIDA standard, in I/O card mode, "-SPKR" (digital audio signal) is assigned to
   pin 62 of the 68-pin interface, but this is not supported by the CARD-E09A.
6) When using a 3.3V power specification memory card, check that the CARD-E09A timing
   specification is complied with. Depending on the PC card, the specification may not be met in the
   read cycle.
42                                            EPSON                                           Rev. A
                                                                         CARD-E09A Application Note
CARD-E09A's serial port interface can drive the TTL device directly, but long distance transfer via
devices such as RS-232 requires driver/receiver IC that meets the standard specification. Sheet 4
"Serial Interface" in Section 13.2.1.2, "Reference Circuit Diagrams" shows an example circuit.
In the example circuit, serial 0 is directly connected to the connector, but if necessary a
driver/receiver IC can be inserted. In the "CARD-E09A Windows CE Development Kit," no device
driver is provided for serial 0, so that if necessary, it must be separately created. Again, serial 1 is
designed so that it can be driven with switching to IrDA (RXD line can be switched with 0-Ω
resistors - R35, R36), but if necessary an optimized design can be used.
In the evaluation board, an NEC µPD4724 is used as the RS-232C-compliant driver/receiver. This
IC converts between CARD-E09A TTL level signals and RS-232C-compliant signals. Since the
CARD-E09A STANDBY# and µPD4724 STBY# signals are connected, when the CARD-E09A
goes into the suspend mode, this IC can also be put on standby. However, note that it is not possible
to resume using RI# on serial 3 and 4. The µPD4724 is only guaranteed up to a transfer rate of 9600
bps. To implement 115 kbps, consider a different IC.
Rev. A                                          EPSON                                                43
CARD-E09A Application Note
CARD-E09A +5V
                                                      TFDS6000
                                                                     3 Vcc      8 Anode
4 GND
Fig. 4-1 shows the concept of the infrared communications interface using the TFDS6000 made by
TEMIC. A reference example circuit is shown in Section 13.2.3, "IrDA." TFDS6000 is a light
module with built-in light emission and light reception capability for infrared communication.
If the IrDA light module supplies power to the LED for a long time, the LED may become damaged.
For this reason, to prevent the optical module input connector (Txd) from remaining high for a long
time, thus leaving the photoemitter element continuous activated, the software must ensure that the
CARD-E09A output (TXD1) is not held high, or a differentiator circuit must be inserted between the
CARD-E09A TXD1 connector and the optical module input connector as protection. Polarity of the
TXD1 of CARD-E09A is as follows:
     1. Default (reset)
        TXD1 is in the OFF state of the 3-State.
     2. During transmission
        TXD1 sends data at active high. Be sure to design in a way so that the LED lights when
        TXD1 is HIGH.
44                                           EPSON                                         Rev. A
                                                                       CARD-E09A Application Note
EAll signal lines should have pull-up resistors to VCC (3.3V) or 5V.
ESince the direction control signal (DIR) is not supported, it is not possible to insert buffers in the
 data lines (LPTD[0..7]). The circuit pattern should be designed to optimize the connections.
EIn EPP mode, the WAIT# signal active interval should not exceed 15 µs.
If the WAIT# signal is held low for 15 µs or more, the CARD-E09A internal SDRAM and
expansion memory on the ISA bus will no longer be able to be refreshed, and the contents of
memory may be lost. To avoid this, the WAIT# active time must be designed not to exceed 15 µs.
Rev. A                                        EPSON                                                 45
CARD-E09A Application Note
As shown in Table 5-2, the current flows occur between the CARD-E09A and the external
connected device when one is powered on and the other is powered off. This can cause an excess
current to flow in a CMOS device input or output in the forward direction of an input protective
diode or parasitic diode, causing the CMOS device to latch up, and in the worst case resulting in
damage. For example, when a device (printer, for example) is powered on and is connected to the
CARD-E09A which is powered off, then immediately after power is supplied to the CARD-E09A, a
current may flow which is easily large enough to make the device latch up. Avoid use in such a way
as to cause the states 2 and 3 in Table 5-2.
46                                          EPSON                                         Rev. A
                                                                   CARD-E09A Application Note
EKBCLK, KBDATA, MSCLK, and MSDATA are open drain output bi-directional signals.
 Provide pull-up resistors external to the CARD-E09A. A keyboard/mouse is normally specified to
 operation on 5V, so a 5V pull-up is required. (If the keyboard/mouse is specified for 3.3V
 operation, a 3.3V pull-up may be used. The absolute maximum rating for these pins of the CARD-
 E09A is 7.5V.)
ETo prevent "hot plugging" or other misoperations from causing keyboard/mouse damage, it is
 recommended to put a fuse in the power line of the interface connector.
EWhen the CARD-E09A keyboard or mouse interface is connected to proprietary hardware, this
 must comply with the PS/2 style interface specification. See the item "Keyboard/Mouse Timing"
 in Chapter 8, "AC Characteristics" of the "CARD-E09A Hardware Manual."
When using only one of the keyboard and mouse, or when a branching connector is not desirable,
the optimum pin layout can be determined with reference to this table.
Rev. A                                       EPSON                                             47
CARD-E09A Application Note
As shown in Table 7-1, six A/D converter channels supported by the SH7709A, that is analog inputs
0 to 3, 6, and 7, are not provided on the CARD-E09A interface, and cannot be used. Analog input 4
(AN4), analog input 5 (AN5), and analog output 0 (DA0) are already used on the evaluation board.
The touch panel driver and audio driver provided with the CARD-E09A Windows CE Development
Kit are compliant with the specification of the touch panel control circuit and audio (speaker) circuit
mounted on the evaluation board. When changing the configuration of the external circuit connected
to the AN4 connector, AN5 connector, and DA0 connector, or using them for other purposes, it will
be necessary to develop a separate device driver with reference to the "SH3 Hardware Manual."
To prevent damage to the analog input connectors from abnormal voltage such as excess surges, it is
necessary to connect a protective circuit as described in Section 5.15, "AD/DA" of the "CARD-
E09A Hardware Manual."
For a reference circuit diagram of the touch panel control and audio mounted on the evaluation
board, see Sheet 10 "Touch Panel, Audio circuit" of Section 13.2.1.2, "Reference Circuit Diagrams."
The following describes the configuration of the touch panel control circuit.
<<Configuration of the touch panel control circuit mounted on the evaluation board>>
1.     Description of four-wire resistive film touch panel control circuit supplied on the evaluation
       board
Fig. 7-1 shows a block diagram, and Table 7-2 shows the relation between PTC4/PINT4,
PTC3/PINT3, and PTC2/PINT2 used for switching control of the voltage applied to the x/y-axes and
the touch panel status.
48                                             EPSON                                           Rev. A
                                                                                    CARD-E09A Application Note
PTC4/PINT4 TPY2
                                           switching unit
                                           switching unit
                                           X/Y electrode
                                                                                         Y2
                                            X/Y electrode
                       PTC3/PINT3
                                                            TPX2
         CARD-E09A
           CARD-E09A
                       PTC2/PINT2
                                                            TPY1              X2     Touch panel X1
                                                            TPX1
                                                                                         Y1
                       IRQ2
                       AN5
                       AN4
The resistive film touch panel has a uniform resistor film, with film and glass transparent electrodes
over the whole effective area, so that a finger or pen (non-metallic) press shorts the upper and lower
electrodes, and an analog voltage is detected between them in alternately the x- and y-directions.
When detecting along the x-axis, a voltage Vx is obtained from Y electrodes, and when detecting
along the y-axis, a voltage Vy is obtained from X electrodes; these voltages are converted to digital
values by an A/D converter.
In the evaluation board circuit configuration, PTC4/PINT4, PTC3/PINT3, and PTC2/PINT2 are
assigned to the applied x- and y-axis voltage switching, and by means of the combinations shown in
Table 7-2, the x-coordinate is read as an analog voltage Vx (input to connector AN5), and the y-
coordinate is read as an analog voltage Vy (input to connector AN4). These analog coordinate
values are input through the CARD-E09A interface connector to the SH7709A A/D converter, and
converted to digital values, after which they are notified to the host. The x-axis or y-axis voltages are
not applied continuously: when an interrupt generated by a press on the touch panel (in the
evaluation board IRQ2 is used) is recognized by the CARD-E09A, it switches to reading mode.
Rev. A                                                      EPSON                                                   49
CARD-E09A Application Note
In the configuration shown in Fig. 7-1, three signals are assigned to switching control of the voltages
applied to the x- and y-axes, but in this case, the electrodes cannot all be turned off. Even while
waiting for an interrupt, a certain current is flowing. To avoid this situation, four signals must be
assigned to switching control of the voltages applied, and TPX1, TPX2, TPY1, and TPY2 switched
on and off.
In the evaluation board, a control circuit for a four-wire configuration is provided, but as the LCD
panel size increases the touch panel size increases, and reading errors, and malfunctions due to
external noise become more common. Generally, to avoid such problems eight-wire resistive film
touch panels have become common. In the eight-wire method, close to the four-wire electrodes (X1,
X2, Y1, and Y2) are added four more electrodes (X1ref, X2ref, Y1ref, and Y2ref) for the purpose of
monitoring the respective voltage values, and are designed so as to output information on the
discrepancy between the electrode and input point to the host (A/D converter).
Connecting a touch panel configured in this way requires four A/D converters, for x-coordinate, x-
coordinate correction, y-coordinate, and y-coordinate correction, and this is not supported by the
channels provided on the CARD-E09A interface. It is necessary to add A/D converters to the ISA
bus or SH bus. In this case, a separate device driver for the touch panel must also be developed.
In a configuration in which data correction is not used, two methods of connecting the eight-wire
resistive film touch panel to the CARD-E09A can be considered:
     (1) The touch panel X1ref, X2ref, Y1ref, and Y2ref electrodes are left open.
     (2) The touch panel X1 and X1ref, X2 and X2ref, Y1 and Y1ref, and Y2 and Y2ref electrode
         are shorted in pairs.
50                                             EPSON                                           Rev. A
                                                                  CARD-E09A Application Note
8. Power Management
As low power consumption modes for the CARD-E09A, CPU standby mode and suspend mode are
supported. The SH7709A (CPU) itself additionally supports a hardware standby mode and module
standby mode, but in the CARD-E09A, the hardware standby mode is not supported. Standard
Windows CE does not support module standby mode. When using this mode, separate means such
as a device driver will be required.
The return from CPU standby mode occurs when the following events become active and HAL
recognizes a thread in preparation.
ENMI
EIRQ0: interrupt from CARD-E09A companion chip
        See Section 5.4.1, "IRQ0" of the "CARD-E09A Hardware Manual."
EIRQ1 to IRQ4
        In the evaluation board, IRQ1 is used for LAN, and IRQ2 for the touch panel
ERTC Alarm
        See Section 8.2.1.
When using an OS other than Windows CE, a step is required to put the SH7709A in sleep mode.
For details, see the "CARD-E09A Hardware Manual" and "SH3 Hardware Manual."
Rev. A                                     EPSON                                            51
CARD-E09A Application Note
Since the switch to CARD-E09A suspend mode and the return from suspend mode (resume) is all
handled by Windows CE, the user is not required to carry out any procedure on the SH7709A or
companion chip register settings.
However, when an OS other than Windows CE is used, a procedure for suspending and resuming is
required, as described in Section 5.8.5, "Suspend/Resume" of the "CARD-E09A Hardware Manual."
52                                         EPSON                                      Rev. A
                                                                      CARD-E09A Application Note
An example circuit is shown in Sheet 12, "Switches" in Section 13.2.1.2, "Reference Circuit
Diagrams." The CARD-E09A internally has no chattering prevention circuit provided for the
SRBTN# pin, and therefore as in the reference circuit diagram an external chattering prevention
circuit for the button switch should be considered.
For the button switch mechanism, if the design is such that it is left pressed for the duration of the
suspend, then this requires STARTUP.DAT settings and an external circuit the same as in "System
1" in the next method (2. "Connecting a suspend/resume trigger circuit to the SRBTN# pin").
This is the method of connecting an external trigger circuit to the SRBTN# connector.
Since the SRBTN# signal pin does not carry out edge sensing, but recognizes a low level pulse,
when making a suspend request, if SRBTN# pin is hold to low, then the resume in the next step will
not be possible. The input level must be switched High => Low => High. Again, if the SRBTN#
pulse is extremely short, the interrupt handler (Windows CE HAL) may not catch the suspend or
resume request.
To avoid these problems, the signal provided is SRBTN_RST# (suspend response logic control flag:
on the CARD-E09A interface connector, any one of PTC[7:5], pins 194 to 196 can be assigned by a
setting in STARTUP.DAT). After the interrupt handler has accepted a suspend or resume request,
SRBTN_RTS# indicates that the SRBTN# pin can be returned high. In the STARTUP.DAT settings,
there are two settings which can be made: "System 1," in which after it has been confirmed that the
SRBTN# pin level has gone from low to high the next step is operated to, and "System 2," in which
the next step is operated to without confirming the SRBTN# pin level. For the method of making
STARTUP.DAT settings, see Section 8.2.1.2, "PTC Assignment and STARTUP.DAT Settings."
Rev. A                                        EPSON                                                53
CARD-E09A Application Note
"System 1"
Fig. 8-1 shows an overview of the sequence. As shown in the figure, the external trigger signal must
be driven by a pulse when there is a suspend or resume request. The switch to status #3 and #7
occurs after it has been checked that the SRBTN# pin has changed from low to high.
External trigger
signal
SRBTN#
SRBTN_RST#
Processing #1 #2 #3 #4 #5 #6 #7
STANDBY#
<<STATUS>>
54                                             EPSON                                        Rev. A
                                                                    CARD-E09A Application Note
An example circuit is shown in Fig. 8-2 of a "System 1" external trigger. SRBTN# can be generated
from RESETP#, SRBTN_RST#, and the external trigger signal.
             RESETP#
             SRBTN-RST#
                                                       S
                                                   D       Q                SRBTN#
             External trigger
             signal                                 CK Q#
"System 2"
Fig. 8-3 shows an overview of the sequence. As shown in the figure, the external trigger signal must
be driven low when there is a suspend request, and high when in operation.
As in "System 1," before the change of status to #3 and #7, no check is made that the SRBTN# pin
has gone from low to high. Therefore, if the low level input to the SRBTN# pin continues, the
suspend/resume operation will be repeated, and thus care is required.
Rev. A                                       EPSON                                               55
CARD-E09A Application Note
External trigger
signal
SRBTN#
SRBTN_RST#
Processing #1 #2 #3 #4 #5 #6 #7
STANDBY#
<<STATUS>>
An example circuit is shown in Fig. 8-4 of the "System 2" external trigger. SRBTN# can be
generated from the external trigger signal, SRBTN_RST#, and RESETP#.
             External trigger
             signal
                                                                                  SRBTN#
            SRBTN-RST#
            RESETP#
56                                                  EPSON                                    Rev. A
                                                                      CARD-E09A Application Note
To execute suspend/resume control, the SRBTN_RST# signal assignment, "System 1"/"System 2"
selection, and RTC alarm setting must be made on the key "suspend" of STARTUP.DAT. Table 8-4
shows the setting format for the key "suspend." Read this in combination with Section 13.9,
"Suspend/Resume Control Data" in the "CARD-E09A Windows CE Development Kit Instruction
Manual."
In a system with an LCD panel connected, apart from the below, the delay time for switching to
suspend mode or resuming must be specified on the key "1355PROPERTY". For details, see Table
2-16 in Chapter 2, "Video Interface." Read this also in combination with Section 8.2.2, "LCD Panel
Power On/Off Sequence."
Rev. A                                        EPSON                                                 57
CARD-E09A Application Note
          PTD1
         FPVCCON
          PTD3
        DAC IREF
      Video suspend              Frame size        SED1355       Wait for 130         FPVCCON Low
                               Set to minimum      Suspend        frames             DAC IREF Off
        processing
                                                               Automatically 10 ms
          PTE7
     SED1355 Suspend
          PTD1
         FPVCCON
          PTD3
        DAC IREF
      Video suspend             SED1355         Wait for 130      FPVCCON High   Frame size
                                                 frames                        Return to original
        processing               Resume                            DAC IREF On
                                           Automatically 10 ms
In the figure above, PTE7, PTD1, and PDT3 respectively indicate the SH7709A Port E register Bit 7,
Port D register Bit 1, and Bit 3. These signals are not connected to the interface connector internally.
At the time of a suspend, the SED1355 is set to the hardware suspend mode. PTE7 in Fig. 8-5 is
connected to the SED1355 SUSPEND# pin. When there is a low input to the SUSPEND# pin, all
signal lines of the LCD panel go to low output, and after the time defined in STARTUP.DAT,
FPVCCON and FPVEEON (LCDPWR of SED1355) are driven low. The LCD panel logic power
and device power are turned off using these power control signals.
58                                               EPSON                                              Rev. A
                                                                      CARD-E09A Application Note
Normally, when the SED1355 switches to the hardware suspend mode, the LINE and FRAME
signals go to inactive level output, based on the polarity setting of REG[06h], REG[07h]. Supposing
that the inactive state is high, then after the LCD panel logic power goes off, this means that a high
level signal is input to the LCD panel. In this case, a large current flows from the LINE and FRAME
signal lines to the LCD panel, and in the worst case the LCD panel could be damaged. To avoid such
problems in the CARD-E09A, the CARD-E09A Windows CE video driver is set to a low output,
regardless of the settings of REG[06h], REG[07h]. In a resume, the suspend transition procedure is
reversed.
However, when the CARD-E09A is running an OS other than Windows CE, in the suspend mode,
care must be taken to ensure that measures are in place to ensure that LINE and FRAME are not
driven high. For details, see Section 15, "Power Save Mode" of the "SED1355F0A Technical
Manual." Fig. 8-6 shows an example of an external circuit in which LINE and FRAME are masked.
In the figure, "FPVCCON controlled "LCD Logic VCC"" is the LCD panel logic power after control
by the FPVCCON power on/off circuit.
                                         FPVCCON
                                         controlled
             CARD-E09A                “LCD Logic VCC”                  LCD Panel
                                                                  FPLINE, FPFRAME
             LINE, FRAME
At this point, with the PC card still inserted in the slot, a current will flow in the card detect
signals (ACD1#, ACD2#, BCD1#, BCD2#). This is because the card detect signals are input pins
with 100 KΩ pull-up resistors. On the other hand, the compact flash card directly inserted on the
CARD-E09A cannot have the slot power turned off in suspend mode. "hot plugging" is not
provided for, and therefore the interface has no card detect signal.
A PCMCIA slot circuit example is shown in Sheet 6, "PCMCIA Interface" and Sheet 7 "Buffer
circuit for PCMCIA Interface," Section 13.2.1.2, "Reference Circuit Diagrams." For details of the
slot power on/off sequence, see Section 5.12.6, "Slot Power-On/Off Timing" in the "CARD-E09A
Hardware Manual."
Rev. A                                        EPSON                                                59
CARD-E09A Application Note
E When a pin which the CARD-E09A drives low has a pull-up resistor, a current flows in the
  resistor, and the current consumption increases. Note that although pins PTC7/PINT7 to
  PTC1/PINT1 have pull-up resistors in the CARD-E09A itself, depending on the settings they may
  be driven low, however when the CARD-E09A itself is driving low these pull-up resistors are
  disconnected so that no current flows in the pull-up resistors.
E If a pin driven high by the CARD-E09A has a pull-down resistor connected, then a current flows
  in the resistor, and the current consumption increases.
E When a low input is applied to a pin with a pull-up resistor, a current flows in the pull-up resistor,
  and the current consumption increases.
E When a high input is applied to a pin with a pull-down resistor, a current flows in the pull-down
  resistor, and the current consumption increases.
E For input pins having no pull-up or pull-down resistor (in the table, pins marked "External" in the
  Termination item, and RESETP#, RESETM# pins), fix the level. Avoid having inputs floating.
E For output pins having a three-state off, when connected to a CMOS device in the power on state,
  fix the input to the device with a pull-up or pull-down resistor.
E For devices connected to pins to pins in the following states only, in suspend mode the power can
  be turned off:
         E Output pin in a three-state off
         E Pin driven low
         E Input pin with a pull-down resistor
         E Input/output pin with a pull-down resistor and being input
  For pins in other states, a current flows in the pull-up or pull-down resistor, or the input is floating,
  and therefore the device power cannot be turned off. To power off, a buffer is required between
  the CARD-E09A and the device.
60                                              EPSON                                              Rev. A
                                                                        CARD-E09A Application Note
E The PCMCIA card detect signals (ACD[2:1]#, BCD[2:1]#) are pulled up to VCC (3.3V) internally
  to the CARD-E09A. If a PC card is left in Slot A or Slot B, note that a current flows between VCC
  internal to the CARD-E09 and the PC card ground. In a suspend, it is recommended to remove
  the PC card.
E Pins PTC4/PINT4 to PTC2/PINT2 are assigned to power control of the four-wire resistive film
  touch panel mounted on the evaluation board. Therefore, in suspend mode, in accordance with the
  evaluation board touch panel control circuit standby specification, the following levels are output.
                   PTC4/PINT4 = high, PTC3/PINT3 = low, PTC2/PINT2 = high
  If the touch panel control circuit is changed, or if other circuits are connected to the pins, in
  accordance with the changed circuit specification, control of the relevant bits of the SH7709A
  Port C register must be modified. If a pull-up or pull-down resistor is connected without
  modifying the control of the Port C register, a current may flow in the external circuit and thus
  care is required. Check Section 8.2.4, "Notes on Pin Termination."
Rev. A                                         EPSON                                                  61
CARD-E09A Application Note
9. Power Supply
9.1. RTC Backup
In addition to the SH7709A internal RTC (Real Time Clock), the CARD-E09A incorporates an
external RTC (Epson RTC-4543). This is because the SH7709A internal RTC is not backed up
when the system power is off. The external RTC has a backup function.
The internal RTC and external RTC are synchronized as follows. For details, see the "CARD-E09A
Windows CE Development Kit Instruction Manual."
1)   When the system power is turned on, the Windows CE loader (NKLOADS.BIN) copies the
     time from the external RTC to the internal RTC.
2)   In operation, when the RTC is set, the Windows CE driver sets the time in both the internal
     RTC and the external RTC.
3)   When the system power is turned off, the Windows CE loader (NKLOADS.BIN) copies the
     internal RTC time to the external RTC.
Note that if a development environment other than the Epson "CARD-E09A Windows CE
Development Kit" is used, the above procedures must be provided by separate software.
VBK (166pin) is a power pin for backup of External RTC. When power (VCC) is supplied to CARD-
E09A, the same power as VCC5 is supplied to the VBK pin; when power is not supplied to CARD-E09A,
power is supplied from the backup power (lithium battery, etc.). If no RTC backup is required, supply
the same power to the VBK pin as the CARD-E09A VCC.
An example backup circuit is shown in Sheet 11 "DC Power regulator, Reset circuit" in Section
13.2.1.2, "Reference Circuit Diagrams." The current consumption of the backup power is shown in
Section 7.3, "Consumed Current" of the "CARD-E09A Hardware Manual." The backup current
(IVBK) during backup is 1 µA Typ. / 3 µA Max., and during a read/write of the RTC is 30 µA Max.
The capacity of the backup battery should be calculated to take this into account.
62                                           EPSON                                           Rev. A
                                                                     CARD-E09A Application Note
1. RESETP# signal
This is a power on reset signal. When the power is turned on, input the RESETP# signal with the
timing shown in Fig. 9-2. This can also be used as a hardware reset signal.
2. RESETM# signal
This initializes the CARD-E09A, but does not affect main memory (SDRAM). When the RESETM#
signal is input, the system is rebooted while preserving the contents of main memory.
A reference circuit diagram for RESETP# is shown in Sheet 11 "DC Power Regulator, Reset circuit"
in Section 13.2.1.2, "Reference Circuit Diagrams" and a reference circuit diagram for RESETM# is
shown in Sheet 12 "Switches." Since the RESETP# reference circuit diagram is based on the
evaluation board, for convenience it is generated from the evaluation board input voltage of 5V.
However, in practice, it must be generated monitoring the level of the CARD-E09A input voltages
of VCC (3.3V) and VCORE (1.9V). Fig. 9-1 shows an example circuit for RESETP#.
          Vcc
          VCC
                     Reset IC 1
                                                         V
                                                         VBK
                                                          BK
RESETP#
         Vcore
         VCORE
                     Reset IC 2
Rev. A                                        EPSON                                               63
CARD-E09A Application Note
        1.9V
                 1.6V                                                                  1.6V
     VCORE
                           Min.
                           min.50msec
                                50msec                                 Min.
                                                                        min.0msec
                                                                             0msec
         0V
        3.3V
                        3.0V                                                  3.0V
                                                          Min.
                                                          min. 0msec
                                                               0msec
      VCC
                            Min. 50msec
                            min. 50msec
0V
3.3V
RESETP#
                           Max.
                           max.0.5V
                                0.5V                                                 Max. 0.5V
                                                                                     max.
64                                          EPSON                                             Rev. A
                                                                    CARD-E09A Application Note
3.3V Regulator
VCC3V
1.9V Regulator
Fig. 9-3 Reference example of circuit for powering off with PWOFF#
Rev. A                                         EPSON                                               65
CARD-E09A Application Note
The CARD-E09A has a power management function, and therefore the current consumption may
vary depending on the CPU operation mode. To ensure stable CARD-E09A operation and display
quality, try as much as possible to use low impedance when connecting CARD-E09A power pin
(VCC/VCORE) and ground pin to the power circuitry.
When selecting power circuitry, use electric capacity appropriate to the application and make sure
instant power supply can be secured. Also, precaution should be take to handle noise problem and
reduce high frequency noise or low frequency noise.
(2) If the CARD-E09A address and data bus have many cablings, and they change simultaneously,
    the signal's energy will become more and when the cabling coil around and around this may
    affect other signals. Therefore, it is necessary to usually insert dumping resistance at the address
    and data bus to smooth off the wave form, or increase the distance from other signals.
(3) For reset, clock and other control line, bus noise may heavily overlap due to cross talk, etc. If
    there is fear of noise overlapping, the following remedies, for example, can be tried.
     1)   For signal such as clock whose delay would cause system problem, the guard pattern etc.
          can be used to reduce influence from other signals, or the distance from other signals can
          be increased.
     2)   For signals such as reset signal which has margin in timing, integrated circuit etc. can be
          used to remove the noise.
(4) Usually, CMOS output buffer has output impedance ranging from several to tens of ohms.
    However, cables on the printed board has impedance over 100 ohms and so the output buffer
    and the cable do not match in impedance. As a result, depending on the shape of the board's
    pattern, influence from reflection, etc. may occur to cause distortion in the wave form.
    Therefore, it is necessary to check each wave form and, if necessary, add dumping resistance or
    terminator resistance to correct the problem.
66                                              EPSON                                             Rev. A
                                                                 CARD-E09A Application Note
(5) Do not locate a linear regulator or other component emitting large amounts of heat within 20
    mm of around the CARD-E09A (component or solder surface). Fig. 10-1 shows the zone of the
    motherboard on which the CARD-E09A is mounted in which heat-emitting component
    mounting is prohibited.
Rev. A                                     EPSON                                             67
CARD-E09A Application Note
The precision of RTC is determined by the vibration frequency of the quartz for the RTC. At room
temperature, the vibration frequency of the quartz has Tolerance, and the vibration frequency varies
according to change in temperature. The frequency Tolerance at room temperature is roughly
±50ppm. The relationship between the temperature and the frequency can be shown in a secondary
curve as described Fig. 10-2. The frequency error is least when the temperature is around 25ºC, and
if the temperature fluctuates the frequency error increases.
When the temperature reaches the maximum limit of the operating temperature (Ta) of CARD-
E09A, the frequency is approximately 45 ppm lower than at room temperature. Also, at close to 0ºC,
the frequency is approximately 25 ppm lower than at room temperature. In conclusion, the RTC's
precision is by and large about roughly +50 to -110 ppm.
-10
                                 -20
         Frequency ∆ f/f (ppm)
-30
-40
-50
-60
-70
                                 -80
                                       -20      -10     0     10      20     30       40   50        60   70
                                                                   Temperature (°C)
68                                                                 EPSON                                       Rev. A
                                                                                  CARD-E09A Application Note
Rev. A                                              EPSON                                                              69
CARD-E09A Application Note
70                                           EPSON                                            Rev. A
                                                                       CARD-E09A Application Note
Rev. A                                     EPSON                                                          71
CARD-E09A Application Note
72                                           EPSON                                            Rev. A
                                                                        CARD-E09A Application Note
Rev. A                                      EPSON                                                          73
CARD-E09A Application Note
(*1)    This is an output connector, but goes high-impedance while system is resetted, and is held
        high by a pull-up resistor. After a reset, the SH7709A registers are set by software, and this is
        then an output (no pull-up resistor).
(*2)    This is an input or output depending on SH7709A register settings. One of PTC7/PINT7,
        PTC6/PINT6, and PTC5/PINT5 is assigned to SRBTN_RST# and becomes an output. The
        other two and PTC1/PINT1 are inputs or as specified by the last setting. For details of
        SRBTN_RST#, see Chapter 8, "Power Management." On the evaluation board, PTC4/PINT4,
        PTC3/PINT3, PTC2/PINT2 are used for a four-wire resistor film touch panel. Therefore,
        depending on the method of use, a setting change is required.
(*3)    Depending on the SED1355 register settings, this is high or low. FRAME and LINE are set to
        Active High or Active Low, according to the specification of the connected panel. When
        Windows CE is used as the OS, during a suspend the Epson loader sets these low, regardless
        of the Active High or Active Low setting.
(*4)    This is input or low, according to the companion chip register settings. When Windows CE is
        used as the OS, the Epson loader sets this to input.
(*5)    The SLOT_A_VCC and SLOT_B_VCC pins cannot be set to be unused. If the PCMCIA slot is
        not required, connect VCC (3.3V ± 0.15V).
(*6)    The RESETP# pin cannot be set to be unused. When this signal goes active, a power on reset
        is applied to the CARD-E09A. Connect a circuit for generating Power Good signal. Do not
        make this active simultaneously with RESETM#. A reset may not occur.
74                                                 EPSON                                           Rev. A
                                                                    CARD-E09A Application Note
(*7)   The RESETM# pin cannot be set to be unused. When this signal goes active, a manual reset is
       applied to the CARD-E09A. When a manual reset circuit is not required, pull up to VCC
       (3.3V ± 0.15V). Do not make this active simultaneously with the RESETP# connector. A
       reset may not occur.
(*8)   The VBK pin cannot be set to be unused. If a backup circuit is not required, connect to V CC
       (3.3V ± 0.15V).
Rev. A                                       EPSON                                              75
CARD-E09A Application Note
Label side
76                                          EPSON                                         Rev. A
                                                                     CARD-E09A Application Note
Attachment procedure
(1) Insert the male ends of the hexagonal pillars into the three holes in the motherboard, and fasten
    with the nuts.
(2) Next, as shown in Fig. 12-2, plug the CARD-E09A into the 240-pin connector.
(3) Fasten the three screws.
Use 0.3 N.m as a guide value. However, this is only a reference value. The torque must be made to
be appropriate for the vibration conditions to which the system is subject.
Rev. A                                        EPSON                                               77
CARD-E09A Application Note
12.2. Connector
There are two types of connector which can be used to accept the CARD-E09A (on the
motherboard), as follows. The height dimension from the mounting surface is different.
78                                     EPSON                                       Rev. A
                                                                    CARD-E09A Application Note
13. Appendix
13.1. Multifunction Buffer IC (E0C37120)
A data sheet for the multifunction buffer IC (E0C37120) used as a level shifter circuit for the
evaluation board PCMCIA is shown. It can be used in combination with the CARD-E09A.
13.1.1. Overview
The E0C37120 is a multifunction buffer IC which can be used as a PCMCIA interface buffer and
3.3V ⇔ 5V level shifter, among other things. Since it allows multiple chip buffer ICs to be replaced
by a single chip, it allows the system to be made more compact. Again, it has excellent
characteristics as an interface buffer for PCMCIA card "hot plugging."
13.1.2. Features
E Internal 26-bit unidirectional buffer
E Internal 16-bit bi-directional buffer
E Target power (3.3V and 5V) can be turned off
E Internal 3.3V, 5V level shifter
E High-speed 0.35 µm CMOS process
E QFP15-100 compact package
Rev. A                                       EPSON                                               79
CARD-E09A Application Note
AEN# EN#
                                          EN#
                                          DIR
TEST
            DEN#                          EN#
            DDIR                          DIR
80                                               EPSON                                      Rev. A
                                                 CARD-E09A Application Note
TVCC
                                   TVCC
                                   TA10
                                   TA11
                                   TA12
                                   TA13
                                   TA14
                                   TA15
                                   TA16
                                   TA17
                                   TA18
                                   TA19
                                   TA20
                                   TA21
                                   TA22
                                   VSS
                                   VSS
                                   TA2
                                   TA3
                                   TA4
                                   TA5
                                   TA6
                                   TA7
                                   TA8
                                   TA9
                                   75
                                   74
                                   73
                                   72
                                   71
                                   70
                                   69
                                   68
                                   67
                                   66
                                   65
                                   64
                                   63
                                   62
                                   61
                                   60
                                   59
                                   58
                                   57
                                   56
                                   55
                                   54
                                   53
                                   52
                                   51
                      TA1    76                   50   TA23
                      TA0    77                   49   TA24
                      TD0    78                   48   TA25
                      TD1    79                   47   TD15
                      TD2    80                   46   TD14
                      TD3    81                   45   TD13
                      VSS    82                   44   V
                                                       VSS
                                                        SS
                     TVCC    83                   43   TVCC
                      TD4    84                   42   TD12
                      TD5
                      TD6
                      TD7
                      SD7
                             85
                             86
                             87
                             88
                                   EPSON JAPAN    41
                                                  40
                                                  39
                                                  38
                                                       TD11
                                                       TD10
                                                       TD9
                                                       TD8
                                   E0C37120
                      SD6    89                   37   SD8
                      SD5    90                   36   SD9
                      SD4    91                   35   SD10
                      SD3    92                   34   SD11
                      SD2    93                   33   SD12
                      SD1    94                   32   SD13
                      SD0    95                   31   SD14
                      SA0    96                   30   SD15
                      SA1    97                   29   SA25
                      SA2    98                   28   SA24
                      SA3    99                   27   SA23
                      VSS
                       VSS   100                  26   VSS
                                                       VSS
                                   10
                                   11
                                   12
                                   13
                                   14
                                   15
                                   16
                                   17
                                   18
                                   19
                                   20
                                   21
                                   22
                                   23
                                   24
                                   25
                                   1
                                   2
                                   3
                                   4
                                   5
                                   6
                                   7
                                   8
                                   9
                                   TEST
                                   SVCC
                                   SVCC
                                     SA4
                                     SA5
                                     SA6
                                     SA7
                                     SA8
                                     SA9
                                    SA10
                                    SA11
                                    SA12
                                   DEN#
                                   AEN#
                                    SA13
                                    SA14
                                    SA15
                                    SA16
                                    SA17
                                    SA18
                                    SA19
                                    SA20
                                    SA21
                                    SA22
                                   DDIR
Rev. A                                EPSON                             81
CARD-E09A Application Note
• Connector functions
   Connector                        Description                            Number of
                                                               Type                        Power
      name                                                                 connectors
    SA0-19      System address bus signals                        I                   20   SVCC
                System address bus signals
                When TEST is high, SA20 to SA25 are a test
    SA20-25     signal output                                   I/O                    6   SVCC
                When unused, connect to VSS through a
                resistor of at least 10-Kohms
                System data bus signal
    SD0-15      When unused, connect to VSS through a           I/O                   16   SVCC
                resistor of at least 10-Kohms
    TA0-25      Target address bus signal                        O                    26   TVCC
                Target data bus signal
    TD0-15                                                    I/O PD                  16   TVCC
                When unused, leave unconnected
     AEN#       Address bus buffer enable signal                  I                    1   SVCC
                Test signal
     TEST                                                         I                    1   SVCC
                Be sure to connect to VSS
     DEN#       Data bus buffer enable signal                     I                    1   SVCC
                Data bus buffer direction signal
                When DDIR is high, driven in direction SDxx
     DDIR       ← TDxx                                            I                    1   SVCC
                When DDIR is low, driven in direction SDxx
                → TDxx
                System power and internal logic power 3.3V
     SVCC       Be sure to connect all power connectors to       P                     2     -
                power
                When target address bus buffer and data bus
                buffer power (3.3V/5V/Off) is off, to prevent
                increased static current consumption, set
     TVCC                                                        P                     4     -
                "AEN# high
                Be sure to connect all power connectors to
                power
                Ground
      VSS       Be sure to connect all power connectors to       P                     6     -
                ground
  Note: The symbols in the connector types have the following meanings.
  IFInput port               O: Output port                I/O: Bi-directional port
  PFPower port               PD: with pull-down resistance
82                                           EPSON                                          Rev. A
                                                                            CARD-E09A Application Note
                                                                 VSS=0V
         Parameter            Symbol            Rating             units
   Power voltage              SVCC            -0.3 to 4.6           V
                              TVCC            -0.3 to 6.0           V
   Pin voltage                 VPIN       -0.3 to SVCC+0.5          V
                                          -0.3 to TVCC+0.5          V
   Output current / pin         IOUT              ±5               mA
   Output current / pin
                               ∑IOUT               ± 30            mA
   Output current (total)
   Storage temperature          Tstg             -65 to 150         °C
                                                                                               VSS=0V
     Symbol               Parameter                  Min.        Typ.        Max.      units   notes
    SVCC         SVCC power voltage                  3.0         3.3          3.6       V        –
    TVCC         TVCC power voltage                  3.0          –           5.5       V      note 1
    VPIN         SVCC pin voltage                    VSS          –          SVCC       V        –
                 TVCC pin voltage                    VSS          –          TVCC       V        –
    Ta           Operating temperature               -40          –           85        °C       –
• DC characteristics
Rev. A                                           EPSON                                              83
CARD-E09A Application Note
84                                             EPSON                                Rev. A
                                                               CARD-E09A Application Note
• AC characteristics
SAxx,SDxx
                                           tac             tac
          TAxx,TDxx
TDxx
                                           tac             tac
          SDxx
AEN#,DEN
                                           toz             toz
          TAxx,SDxx
Rev. A                                       EPSON                                        85
CARD-E09A Application Note
VPP
SLOT_A_VCC
3.3V
      AVPPVCC                     CA25
      AVPPPG                         I
      AVCC3#                      CA22                                      SA25                    TA25
      AVCC5#                       A21                Address Bus           I                          I                   Address Bus
                                     I                                      SA0                      TA0
                                    A0
                                                                                   E0C37120
                                   D15                                      SD15                    TD15
                                     I                    Data Bus          I                          I                    Data Bus
                                    D0                                      SD0                      TD0
            CARD-E09A
                             ADATAENA#                                      DEN#
                                RD/WR#                                      DDIR
                              AADRENA#                                      AEN#
                                                                            TEST
                        ACE1#, ACE2#
                                AOE#
                                AWE#
                              AIORD#
                             AIOWR#
                              AREG#
                         ARDY_IREQ#                                                Control Signal
                             AWAIT#
                       ACD1#, ACD2#
                        AWP_IOIS16#
                             ARESET
                     ABVD1_STSCHG#
                        ABVD2_SPKR
                          AVS1, AVS2                                                                                                                 PCMCIA SLOT
VCC
SVCC TVCC
                       CA25
                          I
                       CA22                                          SA25           TA25
                        A21               Address Bus                I                 I                    Address Bus
                          I                                          SA0             TA0
                         A0
      CARD-E09A                                                         E0C37120                                                         ISA 5V IC
                        D15
                          I                                          SD15            TD15
                                           Data Bus                  I                  I                       Data Bus
                         D0
                                                                     SD0              TD0
                    ISAENA#                                          DEN#
                    RD/WR#                                           DDIR
                                                                     AEN#
                                                                     TEST
86                                                                     EPSON                                                                          Rev. A
                                                                                                          CARD-E09A Application Note
75 51
76 50
14.0±0.1
16.0±0.4
INDEX
                                                                                                26
                        100
1 25
1.4±0.1
                                                                                                     0~10º
                     Max. 1.7                                                    0.5±0.2
                                                                                               Typ. 1.0
                                                all dimensions in mm
Details of changes
The multifunction buffer IC (E0C37120: U2) mounted on the evaluation board is configured as a
discrete circuit. This corresponds to Sheets 13/14 to 14/14 of the reference circuit diagrams. In the
reference circuit diagrams, U2, R22 to R24, and C8 to C10, which are mounted on the evaluation
board are omitted.
The E0C37120 (U1, U2, U6, U7) is a multifunction buffer IC manufactured by Seiko Epson
comprising buffer and level shift circuits. It can be used for the PCMCIA interface and 3.3V ⇔ 5V
level shifting. In the evaluation board this is adopted for U1, U6, and U7. However, U2 is not a
standard manner of use, and since Epson cannot provide a quality guarantee, the reference circuit
diagrams have been changed. There is absolutely no problem with any evaluation using the
evaluation board.
Rev. A                                                         EPSON                                                             87
CARD-E09A Application Note
Notes
     1) Serial interfaces
        As described in Section 4.1, "Serial Interfaces," the performance of the NEC RS-232C-
        compliant driver/receiver used in the evaluation board is guaranteed up to a transfer rate of
        9600 bps. When used at a transfer rate above 9600 bps, transfer errors may occur, depending
        on the cable length or capacitance. For such applications, a different driver/receiver IC should
        be considered.
     2) Touch panel
        As described in the section 7. "A/D and D/A Conversion," the evaluation board only assigns
        three signals to control the switching of voltage application to the x- and y-axes. Therefore, a
        current flows even in the standby state. To implement even lower current consumption, four
        signals should be assigned to control, and the circuit configured so that the voltage is
        completely off.
     4) Suspend/resume button
        See the section 1. "Method of connecting a button switch to the SRBTN# pin for manual
        switching" in Section 8.2.1.1. "Suspend Resume Button (SRBTN#)." Depending on the manner
        of use, the circuit shown in Fig. 8-2 is required.
88                                              EPSON                                           Rev. A
                                              CARD-E09A Application Note
Rev. A                                EPSON                          89
CARD-E09A Application Note
90                           EPSON   Rev. A
                                                CARD-E09A Application Note
Rev. A                                  EPSON                          91
CARD-E09A Application Note
92                                      EPSON   Rev. A
                                               CARD-E09A Application Note
Rev. A                                 EPSON                          93
CARD-E09A Application Note
94                                     EPSON                     Rev. A
                                               CARD-E09A Application Note
Rev. A                                 EPSON                          95
CARD-E09A Application Note
96                                     EPSON              Rev. A
                                               CARD-E09A Application Note
Rev. A                                 EPSON                          97
CARD-E09A Application Note
98                                   EPSON              Rev. A
                                                   CARD-E09A Application Note
Rev. A                                EPSON                               99
CARD-E09A Application Note
13.2.1.4. IrDA
ISADATAENA# G#
DIR
                              IOR#                             RD#
                              IOW#                             WR#
                                                                       OUT
                                         Address Decode
                   A[21:0],CA[23:22]                           CS#
Timer A[1:0]
                                                               GATE
                                         CLK Generator
                                                               CLK
                         RESETP#
                                              04
                            or
                         RESETM#
In the above example, the OUT pin of the 82C54 is connected to the CARD-E09A reset pins
(RESETP#, RESETM#), it can also be connected to the IRQ pin or NMI pin so that when a timeout
occurs an interrupt is sent to the CPU. However, care is required, because if the interrupt controller
has hung, the interrupt will not be accepted. And also note that for external expansion, a new port
must be assigned for the additional timer.
In this case the watchdog timer is used as follows.
This section has described an example using a general-purpose timer (82C54), but equally any
commercially available microprocessor monitoring IC with a watchdog timer function (for example,
Linear Technology's LTC692 or LTC693) can be connected. For details, refer to the data book for
the IC under consideration.
On the other hand, without adding a timer to the external bus, it is possible to use the internal 8254-
compatible timer of the CARD-E09A companion chip, but when a fault occurs it will not be possible
to notify the fault outside the CARD-E09A, and as a result there will be cases that a system reset is
not possible, so care is needed. This is because within the CARD-E09A the timer OUT pin is
assigned to an interrupt (IRQ0) of the SH7709A together with other interrupt causes.
In the above, it is possible to judge whether a reset was generated by the watchdog timer, normally
this judgment can be made by looking at the SH7709A WTCSR register TME bit. However, when
using the CARD-E09A loader, since the IPL (part of the loader) clears the relevant flag, the required
reference is not possible. After the system has been reset, a decision as to whether this was due to the
watchdog timer utilizes the following characteristic: an IPL manual reset does not clear memory; that
is to say, files in RAM and the Windows CE Registry are preserved through a manual reset. The
procedure is as follows.
1)    In the application software the watchdog timer is initialized. At this point, the SH7709A RSTS
      bit is set to 1 (manual reset).
2)    The application software creates an arbitrary file in RAM, or makes some setting in the
      Registry. The arbitrary file or Registry setting must be such as not to exist at a power on reset.
3)    The application software regularly writes back zero to the SH7709A WTCNT at an interval
      shorter than the watchdog timer timeout time.
4)    When a fault occurs, a manual reset is generated by the watchdog timer timeout, and the system
      is restarted.
5)    After a restart, the application software checks RAM or the Windows CE Registry, to see if the
      file- or Registry setting is present. If it is present, the reset can be seen to have been caused by
      the watchdog timer, and if it is not present, the reset must have been from another cause.
Notes on Operation
The maximum interval that can be set for the watchdog timer is about 30 ms. This is because the
peripheral clock (PΦ) is set to one-fourth of the CPU clock (133 MHz) frequency (133 MHz/4 =
33.25 MHz = 30 ms). For details, see Chapter 9, "Internal Oscillator Circuit" of the "SH3 Hardware
Manual." If the application software cannot clear the watchdog timer within this interval, then a reset
is generated even if there is no fault.
In particular, for Windows CE, thread switching is done at 25 ms, and therefore however the
application software is arranged, the possibility of this occurring is quite high. In cases where this
problem cannot be avoided, in place of the SH7709A internal watchdog timer, it is necessary to add
an external timer to the CARD-E09A ISA bus or SH bus.
      The measurement points for Ta1 and Ta2 are shown below. Since both are environmental
      temperatures, precise positions are not specified.
SH-3
                                                        Measurement point: 50 mm
                                                        vertically up
ISP0110 CF connector
      Measurement point:
      between motherboard
  E The CARD-E09A is attached with the compact Flashcard, and connected to the evaluation
    board. The evaluation board is installed horizontally within the case.
  E All openings in the case are sealed with tape, so that there is absolutely no ventilation within
    the case.
  E In the above state the whole is placed in a constant-temperature chamber, and left for an
    adequate time, after which Ta1 and Ta2 are measured.
The current consumption does not depend on the SDRAM capacity. Thus although the
measurements here were made only for a CARD-E09A with SDRAM = 32MB, the above
measurement data is also valid for a card with SDRAM = 16 MB. In any event, this data should be
used only as a guideline.
13.4.4. Cautions
This measured values are only for a reference. When designing the system, be sure to measure the
temperatures of CARD-E09A and other devices inside the system during actual operation, and make
sure they meet the operating temperature specifications.
Circuit layout must be made ensuring that a heat source such as a linear regulator is not close to the
CARD-E09A.
Note that if the CARD-E09A fails, repair is not envisaged, so no MTBF (Mean Time Between
Failures) is defined.