MF CMOS 8-BIT SINGLE CHIP MICROCOMPUTER. S5U1C8F360T1 Manual. (S1C8F360 DEMO Board) Hardware/Software

Similar documents
S5U1C88816P Manual (Peripheral Circuit Board for S1C88816/8F360)

HT1611C Timer with Dialer Interface

S5U1C6F632T1/T2 (SVT6F632)

RSSI RTC FREQ CLK AD compare RF50 antenna test port ISP UART. PWR DR FDEV BW power SW LEDTX LEDRX KEY VR101

XA1600E Development Board Reference Manual

Audio. Distribution. Network ADN C1/ADN D1. Quick guide

Practical Design of Intelligent Reminder System of Having Medicine for Chronic Patients

X-1500 Reference Manual

ECE 271 Microcomputer Architecture and Applications University of Maine

NURSE CALLING SYSTEM

Wiring Diagrams 15/30RES 15/30RYG. Residential Generator Sets Commercial Generator Sets. Models: Controllers: Advanced Digital Control ADC 2100

Current-compensated Chokes EMC/EMI Chokes RN series

Siemens TEC Unit Vent 0-10V Output Controller. Accessories. Control Applications. Product Description. Product Numbers. Warning/Caution Notation

Wiring Diagrams 200REOZPB REOZDB 350/400REOZD 350/400REOZDC 450REOZDB. Industrial Generator Sets. Models:

GLI Standards Composite Submission Requirements Initial Release, Version: 1.0 Release Date: August 25, 2011

Features PART MARKING TEMP. RANGE ( C) PKG. DWG. # ICM7243BlPL** (No longer available or supported) ICM7243BlPL -25 to Ld PDIP E40.

Wiring Diagrams RZD RZDB (Detroit Diesel Powered) Industrial Generator Sets. Models:

OPERATOR'S, ORGANIZATIONAL, DIRECT SUPPORT, AND GENERAL SUPPORT MAINTENANCE MANUAL FOR MULTIPLEXER SET AN/FCC-97 (NSN )

Wiring Diagrams REOZM REOZMB. Industrial Generator Sets. Models: Controllers: Decision-Maker 550 Decision-Maker 3+ TP /07d

Bridgetek Pte Ltd. Datasheet CleO-Speaker Module. 1 Introduction. 2 Ordering Information. CleO-Speaker Module Datasheet Version 1.

Medical Grade Power Strips

32-Segment CMOS LCD Driver VDD LOAD SEG 32 SEG 31 SEG 30 SEG 29 SEG 28 SEG 27 SEG 26 SEG 25 SEG 24 SEG 23 SEG 22 SEG 21 SEG 20 SEG 19 SEG 18 6

HY16F19X Series ICE Hardware User s Manual

APPLE-l CASSETTE INTERFACE

Easylink to Square D Module

Computer Science Undergraduate Scholarship

Thank you for purchasing the Actuator Systems NextBolt fingerprint deadbolt.

Wiring Diagrams REOZJ REOZJB. Industrial Generator Sets. Models: Controllers: Decision-Maker 550 Decision-Maker 3000 Decision-Maker 6000

MLR Institute of Technology

COMMERCIAL ITEM DESCRIPTION SHUNT, INSTRUMENT (EXTERNAL, 50 MILLIVOLT, 10 THROUGH 150 AMPERES (A) LIGHTWEIGHT TYPE)

EE 579: Digital System Testing. EECS 579 Course Goals

Moving from Sentinel SuperPro to Sentinel LDK Migration Guide

Computer System. Computer hardware. Application software: Time-Sharing Environment. Introduction to Computer and C++ Programming.

AIRCRAFT WEAPONS SYSTEMS TEST EQUIPMENT

TECHNICAL MANUAL UNIT, DIRECT SUPPORT AND GENERAL SUPPORT MAINTENANCE MANUAL

NOTE ON PERFORMANCE TESTING

STEVAL-ICB003V1. Smart touchpanel interface based on the STMPE1208S, STLED316S and STM8S. Features. Description

So You Want to Be a Programmer?

ioutpatient SRP The Patient-focused Service for Outpatients

medical and commercial f ields.

Overview. Airespace AP a Radio Card Quick Installation

Le Moyne College. BEICKERT AUDIO 219 Arnold Ave, Syracuse, NY Thomas J. Niland Jr. Athletic Complex SOUND STUDY QUOTATION.

ECE Computer Engineering I. ECE Introduction. Z. Aliyazicioglu. Electrical and Computer Engineering Department Cal Poly Pomona

Smoke Control BACnet PTEC Unit Vent Controller. Control Applications. Product Description. Product Numbers

The birth of a new era Excellent neonatal respiratory support at your fingertips DRÄGER BABYLOG VN500

Moving from HASP4 to Sentinel HASP. Migration Guide

INTERNET OF THINGS BASE REMOTE PATIENT MONITORING SYSTEM

DEFCON Authenticator. with Dual USB Port Hub

REVEAL. Patient Assistant 9538/9539. Clinician Manual. Caution: Federal Law (USA) restricts this device to sale by or on the order of a physician.

Published in: Proceedings of the 2010 IEEE International Symposium on Circuits and Systems (ISCAS), May 30 - June 2, 2010, Paris, France

Presentation by Julie Sinnamon, CEO Enterprise Ireland. 22 nd November 2016

TM ARMY AH-64A HELICOPTER HELLFIRE MISSILE EQUIPMENT AVIATION INTERMEDIATE MAINTENANCE MANUAL TECHNICAL MANUAL

iward SRP Innovating Nursing Care and Patient Experience

User Manual Lobby Camera Phone

IMPORTANT See last page for changes from VERSION 1.3. To enter programming, press [ENTER] + installer code (Installer default code )

INSTRUMENTATION TECHNICIAN I/II/III

ARMY TM AIR FORCE TO 35C MARINE CORPS TM 10155A-13/1

TEST SET, TRANSISTOR TS-1836D/U NSN

Feel at home. No matter where you stay. TECHNICAL MANUAL

PC-1600 Mech 230/460v PC v BL PC v BL PC-1300 Mech 230/460v

Realization of FPGA based numerically Controlled Oscillator

Microprocessor Nurse Call System In-Service Training

WIRING DIAGRAM KITCHEN OUTLETS

Ekagra Partners, LLC. Contractor Site Rates

$98.22 $ $ $ $ $ $ $ $ $ AG02 Business Process Reengineering Specialist Level II HR

HP Attachment_J 1_(Pricing_Tables) Ammendment 0001 rev EN Contractor Site Hourly Rate Page 1 of 4

Please find enclose Addendum No. 01 for the subject ITB, which includes the following:

These release notes for the Altera NCO Compiler version contain the following information:

805C-42A-1259 Create a Manifest Using the Tactical Personnel System (TPS) Status: Approved

A. General provisions and other electrical systems are specified in other Sections of Division 26.

700R4 LOCKUP WIRING TOGGLE SWITCH DOCUMENT

INTERNAL FRENCHFOLD DOOR SYSTEM

CIO SP3 Company Site Rates Contractor Site Hourly Rate Page 1 of 5

UTAdvanced Series Communication Interface (Open Network)

Business Globalization

Sentinel LDK. Migration Guide Sentinel SuperPro to Sentinel LDK

Higher Education Employment Report

Information and Communications Technologies (ICT) Quarterly Monitor of the Canadian ICT Sector Second Quarter 2011

IEEE ISCAS Bid Packet Requirements and Timeline

Chapter The Importance of ICT in Development The Global IT Sector

MediCom. MediCom AUSTCO. State of the art Hospital Emergency Call System. The very best in nurse call and. care management solutions

THE HOUSING AUTHORITY OF THE CITY OF DURHAM REQUEST FOR PROPOSALS SECURITY CAMERA AND MONITORED PANIC BUTTON SYSTEM INSTALLATION RFP #17-015

Key to BEDSIDE External Pulse Generator Controls and Features

TESTING APPLICATION STANDARD (TAS) IMPACT TEST PROCEDURES

ELECTRICAL TECHNICIAN I/II/III

Easylink to Liebert Sitelink Module

OPERATOR, ORGANIZATIONAL, DIRECT SUPPORT AND GENERAL SUPPORT MAINTENANCE MANUAL (INCLUDING REPAIR PARTS AND SPECIAL TOOLS LIST AND

Hill-Rom Advanta 2 Bed Tips Simply Intuitive FOR COMPLETE INSTRUCTIONS ON HOW TO OPERATE THE ADVANTA 2 BED, SEE USER S MANUAL.

MCC. SMBJP6KE6.8(C)A THRU SMBJP6KE550(C)A. Features. Transient Voltage Suppressor 6.8 to 550 Volts 600 Watt.

TECHNICAL MANUAL OPERATOR'S, UNIT, DIRECT SUPPORT, AND GENERAL SUPPORT MAINTENANCE MANUAL

Site Install Guide. Hardware Installation and Configuration

1510 Self-Contained Biological Indicator Incubator OPERATION MANUAL

Sentinel LDK. Migration Guide HASP HL to Sentinel LDK

Application Notes for IgeaCare ApoloDS with Avaya IP Office Issue 1.0

Singapore Semiconductor Industry Association

ANALOG DESIGN CONTEST RULES FOR UNIVERSITY OF TEXAS AT DALLAS

Approved for public release. Distribution is unlimited.

5.1 Demonstration Segment: Using the Workflow

INTRADEPARTMENTAL CORRESPONDENCE. The Honorable Board of Police Commissioners

Buck & Boost Transformer Installation Instructions

Transcription:

MF0-0 CMOS -BIT SINGLE CHIP MICROCOMPUTER SUCF0T Manual (SCF0 DEMO Board) Hardware/Software

NOTICE No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from another government agency. This product uses SuperFlash technology licensed from Silicon Storage Technology, Inc. SEIKO EPSON CORPORATION 00, All rights reserved.

Configuration of product number Devices S C 0 F 0A0 00 Packing specifications 00 : Besides tape & reel 0A : TCP BL directions 0B : Tape & reel BACK 0C : TCP BR directions 0D : TCP BT directions 0E : TCP BD directions 0F : Tape & reel FRONT 0G : TCP BT directions 0H : TCP BD directions 0J : TCP SL directions 0K : TCP SR directions 0L : Tape & reel LEFT 0M : TCP ST directions 0N : TCP SD directions 0P : TCP ST directions 0Q : TCP SD directions 0R : Tape & reel RIGHT : Specs not fixed Specification Package D: die form; F: QFP Model number Model name C: microcomputer, digital products Product classification S: semiconductor Development tools SU C D 00 Packing specifications 00: standard packing Version : Version Tool type Hx : ICE Ex : EVA board Px : Peripheral board Wx : Flash ROM writer for the microcomputer Xx : ROM writer peripheral board Cx : C compiler package Ax : Assembler package Dx : Utility tool by the model Qx : Soft simulator Corresponding model number : for SC Tool classification C: microcomputer use Product classification SU: development tool for semiconductor products

SUCF0T Manual I HARDWARE

CONTENTS PREFACE The "SUCF0T Manual - I Hardware" describes hardware specifications for the SUCF0T, the SC Family demonstration tool. For more information on using applications included with the SUCF0T, see the "SUCF0T Manual - II Software". CONTENTS OVERVIEW I- BOARD CONFIGURATION AND CONTROL OF EACH PART I-. SUCF0T Main Board... I-. SUCF0T CPU Board... I-. SUCF0T Peripheral Board... I- MEMORY MAP I- FUNCTIONS OF EACH I/O PORT I- CHANGING SETTINGS AND MOUNTING PARTS I-. Battery Mode and ICE Mode... I-. Installing External RAM... I-. Installing External ROM... I-. Switching between MCU and MPU Modes... I-. Changing VREF Modes... I-. Recommended Parts List... I- CONNECTOR PIN ASSIGNMENTS I-0. Interface between Main Board and CPU Board... I-0. Interface between Main Board and Peripheral Board... I- PARTS TABLE I- CIRCUIT DIAGRAM I- SUCF0T MANUAL EPSON I-i (SCF0 DEMO BOARD) HARDWARE

OVERVIEW OVERVIEW The SUCF0T is a demonstration tool for the SC Family of Seiko Epson's -bit single-chip microcomputers. The SUCF0T can be operated in MCU mode by writing data to the SCF0's Flash memory or in MPU mode by mounting an external program ROM to the on-board socket. The SUCF0T CPU board can be removed to connect the SUCF0T to the peripheral board (SUCxxxxP) on the ICE (SUC000H). It can also be used to monitor the power-supply voltage of the SCF0 or the amount of current consumed by it. Because all I/O pins of the SUCF0T are combined into two connectors, the unit can be customized flexibly to suit various applications by, for example, adding a circuit to the SUCF0T peripheral board's user area, connecting an external user board to the SUCF0T peripheral board, or fabricating a user-original peripheral board. The following lists the system configuration of the SUCF0T when it is shipped from the factory. CPU: OSC clock: OSC clock: SCF0 0K-byte internal ROM (Flash memory), K-byte internal RAM MCU and extended K minimum modes.-khz crystal oscillator.00-mhz ceramic oscillator External memory: RAM not installed (K-byte SOP-type SRAM can be added) ROM not installed (K-byte DIP-type EPROM can be added) LCD panel: Keyboard: A/D input: Speaker: dot-matrix LCD Driven by the SCF0's internal LCD driver and selectable between com seg and com seg modes using a switch = keys -kω variable resistor (output voltage VSS to ) Used for buzzer output SUCF0T SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

BOARD CONFIGURATION AND CONTROL OF EACH PART BOARD CONFIGURATION AND CONTROL OF EACH PART The SUCF0T consists of three boards. Main Board LCD panel Power switch JP (com/com selector) RESET switch JP (MCU/MPU selector) Peripheral Board ADC input variable resistors Key matrix I/O connection area User area Main Board Peripheral board connector CPU Board JP (ADCVref selector) Battery holder External RAM pad Flash-memory Serial Writer connector External ROM pad Current-consumption measurement terminal Power-supply voltage measurement terminal SCF0 CPU ICE connector I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE

. SUCF0T Main Board BOARD CONFIGURATION AND CONTROL OF EACH PART This is the base board on which other boards are mounted. It contains the following devices: External RAM pad This pad is provided for mounting a K-byte SOP-type SRAM. This SRAM is allocated to addresses 00000h through FFFFh, and is accessed by the CE signal. External ROM pad This pad is provided for mounting a K-byte DIP-type EPROM. This EPROM is allocated to addresses 00000h through FFFFh in MCU mode, or addresses 0h through FFFFh in MPU mode, and is accessed by the CE0 signal. Power-supply circuit The power-supply circuit consists of a holder for connecting three AAA batteries in series, a voltage regulator, and a power switch. To operate the SUCF0T alone, load three AAA batteries into this socket, taking care not to mistake their electrode polarities, and turn on the power switch. To use the SUCF0T after connecting it to the ICE (SUC000H), always be sure to remove the batteries and turn off the power switch, as its power is supplied by the ICE. If the SUCF0T is connected to the ICE and the power for the ICE is turned on without removing the batteries or turning the power switch off, the ICE, peripheral board installed in the ICE, or SUCF0T may be damaged. RESET switch Connected to the RESET pin of the SCF0, this switch resets the system. ICE connector This is an interface connector the same as that of the ICE (SUC000H) for connecting to the peripheral board. When the SUCF0T is shipped from the factory, the CPU board is mounted on its interface connector. Through the use of this interface connector, the SUCF0T can easily be connected to the ICE instead of the CPU board. Peripheral board connector All I/O pins of the target microcomputer are connected to this peripheral board connector. Therefore, the SUCF0T allows various applications to be demonstrated and debugged by fabricating a board that is to be connected to this connector. LCD panel A com seg dot-matrix LCD is included. The com/com selector enables selection of com seg or com seg display mode. Switching between the com/com modes requires setting up the internal LCD driver of the SCF0. For more information, refer to the SCF0 Technical Manual. When setting the com/com selector in either mode, be sure to change all of the jumper connectors JP JP collectively ( or connections). SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

BOARD CONFIGURATION AND CONTROL OF EACH PART The following shows the relationship between each dot of the LCD panel and the SCF0's internal display memory. <COM SEG> 0 Segment 0 F00h Fh F00h Fh Common FB00h FBh FA00h FAh 0 <COM SEG> 0 Segment 0 F00h Fh (DSPAR = 0) FB00h FBh (DSPAR = ) Common F00h Fh (DSPAR = 0) FA00h FAh (DSPAR = ) For com mode, the CPU has dual-screen-display RAM, enabling the display screens to be switched over by changing the DSPAR value. Fig... Relationship between the LCD panel and the display memory. SUCF0T CPU Board This board primarily contains the SCF0 and two oscillator circuits, and can be connected to the main board using the same interface used for the ICE (SUC000H). Oscillator circuits The types of oscillator circuits and their oscillation frequencies are listed below. OSC: Crystal oscillator,. khz OSC: Ceramic oscillator,.00 MHz ADC reference voltage The reference voltage for the internal A/D converter can be selected between (the CPU's powersupply voltage) and an externally sourced voltage using the ADCVref selector. Power-supply voltage/current-consumption measurement terminal A terminal is included that can be used to measure the power-supply voltage of the SCF0, as well as the amount of current consumed by it. Current consumption by the SCF0 can also be monitored by measuring the voltage across a measurement resistor inserted in the power-supply line. Alternatively, an ammeter can be inserted in place of that resistor to measure the current consumption. Note that the resistance value of a measurement resistor must be known before the current consumption can be calculated from the voltage measured across that resistor. Flash-memory Serial Writer connector This connector is used to connect the Flash-memory Serial Writer separately available from Seiko Epson, allowing program data to be written to the internal Flash memory of the SCF0. For details on the Flash-memory Serial Writer, contact your nearest Seiko Epson office or distributor. I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE

. SUCF0T Peripheral Board BOARD CONFIGURATION AND CONTROL OF EACH PART This board comes equipped with a key matrix, variable resistors for testing A/D conversion, and a buzzer. Key matrix This is a = key matrix. It connects to each I/O port of the SCF0 as shown in the table below. Output port R R R R Table.. Input and output ports used for key matrix Input port K00 K0 K0 K0 K0 K0 K0 SW SW SW SW SW SW SW SW SW0 SW SW SW SW SW SW SW SW SW0 SW SW SW SW SW SW SW SW SW0 SW K0 SW SW SW SW The key matrix is configured using a circuit similar to that shown below. When a switch is not depressed (i.e., open), its corresponding input port (K00 K0) is held at the High-voltage level by a pullup resistor. When a Low-level voltage is output by one of the output ports (R R), one of the K ports goes Low. Therefore, it is possible to determine which switch is depressed (i.e., shorted) by inspecting which R port is outputting Low-level voltage. K0 K00 R R SW SW SW SW0 ADC input variable resistors Fig... Key-matrix circuit Two variable resistors are included that connect to AD (P) and AD (P). They allow the input voltages on AD and AD to be varied from 0 V to the power-supply voltage (), for verification of the functionality of the A/D converter. Buzzer Connected to BZ (R0) output, this buzzer enables verification of the functionality of the sound generator. User area A user area comprised only of through-holes is included, and can be used to add a simple user circuit. I/O connection area All I/Os of the SCF0 connect to this area. This area allows a user board to be connected to the SUCF0T via a connector or directly through a cable. SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

MEMORY MAP MEMORY MAP MCU mode MPU mode CE0 area CE area CE area CE area FFFFh 00000h FFFFFh 0000h FFFFh 00000h 0FFFFFh 00000h 0FFFFh Unused area Unused area Unused area Unused area External ROM socket External RAM socket CE area CE area CE area FFFFFh 0000h FFFFh 00000h 0FFFFFh 00000h 0FFFFh Unused area Unused area Unused area External RAM socket 00000h 00FFFFh 00FF00h 00FEFFh 00FDh 00FDh 00F00h 00FFFh 00F000h 00EFFFh Unused area I/O memory Unused area Display memory Internal RAM (KB) 00000h 00FFFFh 00FF00h 00FEFFh 00FDh 00FDh 00F00h 00FFFh 00F000h 00EFFFh Unused area I/O memory Unused area Display memory Internal RAM (KB) External ROM socket External ROM (0KB) CE0 area External ROM External ROM socket 000000h 000000h Fig.. Memory map I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE

FUNCTIONS OF EACH I/O PORT FUNCTIONS OF EACH I/O PORT Pin No. 0 0 0 00 0 0 0 Port name K00 K0 K0 K0 K0 K0 K0 K0 R R R R AD AD BZ MCU/MPU AVREF RESET CLKW SPRG RXD TXD Table. Functions of each I/O port I/O I I I I I I I I O O O O I I O I I I I I I O Function Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix input pin Key-matrix output pin Key-matrix output pin Key-matrix output pin Key-matrix output pin Analog-voltage input pin Analog-voltage input pin Buzzer-signal output pin MCU/MPU-mode setting pin Analog-reference-voltage pin Initial-reset input pin Clock input pin for Flash program Control input pin for Flash program Serial-data input pin for Flash program Serial-data output pin for Flash program For the functions of other pins, refer to the SCF0 Technical Manual. SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

CHANGING SETTINGS AND MOUNTING PARTS CHANGING SETTINGS AND MOUNTING PARTS The SUCF0T can be used as a user program development tool. The following describes how to set up or modify the demonstration board for that purpose. Note: Always be sure to remove the batteries before changing settings or modifying the demonstration board.. Battery Mode and ICE Mode When shipped from the factory, the SUCF0T is set to operate using batteries (battery mode). When connected to the ICE (SUC000H), the power to the SUCF0T can be supplied by the ICE (ICE mode). Table.. Switching between battery mode and ICE mode Mode ICE mode Battery mode S OFF (front) ON (back) Note: Do not connect the SUCF0T to the ICE while in battery mode, as this may result in damage to SUCF0T, ICE or the peripheral board on the ICE.. Installing External RAM A mounting pattern has been prepared on the SUCF0T for installing an external RAM. Attach a - pin RAM to this pattern by soldering. The RAM size is K bytes. The RAM is mapped into the CE area (addresses beginning with 00000h).. Installing External ROM A mounting pattern has been prepared on the SUCF0T for installing an external ROM. Attach a - pin ROM to this pattern by soldering. The ROM size is K bytes. The ROM is mapped into the CE0 area (addresses beginning with 00000h in MCU mode or addresses beginning with 0h in MPU mode).. Switching between MCU and MPU Modes The MCU/MPU pin can be set to select either MCU or MPU mode. Connect the jumper pins on JP as shown in the table below. Table.. Switching between MCU and MPU modes CPU mode MCU mode MPU mode I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE JP Note: Be sure to turn off the power before reversing the jumper-pin connections.. Changing VREF Modes The ADC reference voltage can be selected between two choices. Use the ADCVref selector to choose the reference voltage for the internal A/D converter from (CPU power-supply voltage) or an external source voltage. Table.. Changing VREF modes JP VREF mode Power-supply voltage External source voltage EXT Note: Be sure to turn off the power before reversing the jumper-pin connections.

. Recommended Parts List CHANGING SETTINGS AND MOUNTING PARTS The table below lists the parts that Seiko Epson recommends as suitable for functional modification. Use the listed parts or their equivalents when modifying any intended function of the SUCF0T. Part name ROM RAM Extension connector Extension header Table.. Recommended parts list Product number MC00-0F HMWBLFP- 0-00SC 0-00SC Manufacturer ST Micro HITACHI M M Remark V drive*. V drive* When operating the SUCF0T in ICE mode, be aware that the power-supply voltage varies depending on the tool used. V drive: SUCP00. V drive: SUC000P00 + SUCP00 SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

CONNECTOR PIN ASSIGNMENTS I-0 EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE CONNECTOR PIN ASSIGNMENTS. Interface between Main Board and CPU Board Table.. CN, CN and CN connector pin assignments No. 0 0 0 0 CN- Pin name VSS VSS K00 K0 K0 K0 K0 K0 K0 K0 K0 K P00 P0 P0 P0 P0 P0 P0 P0 P0 P P P P P P P R00 R0 R0 R0 R0 R0 R0 R0 R0 R No. 0 0 0 0 CN- Pin name R R R R R R R0 R R R R R R R R0 R R R R R R R R0 R COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM No. 0 0 0 0 CN- Pin name VSS VSS RESET MCU/MPU OSC OSC VC VC VC VC VC SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG No. 0 0 0 0 CN- Pin name SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 COM COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM No. 0 0 0 0 CN- Pin name SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG

CONNECTOR PIN ASSIGNMENTS. Interface between Main Board and Peripheral Board Table.. CN and CN connector pin assignments No. 0 0 0 0 CN Pin name K00 K0 K0 K0 K0 K0 K0 K0 K00 K0 P0 P P P P P P P P0 P P P P P P P No. 0 0 0 0 CN Pin name R0 R R R R R R R R0 R R R R R R R R0 R R R R R R R R0 R R R R R R R R0 R SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE

PARTS TABLE PARTS TABLE Main board No. Part name Header Header DIP shorting plug DIP shorting plug DIP shorting-plug socket Battery holder Toggle switch Push-button switch Regulator 0 Resistor Capacitor Capacitor, tantalum Capacitor, tantalum Capacitor Bead Symbol CN, CN CN JP JP JP P S SW U R CC, C C C C U Value, etc. 0-pin 0-pin -pin -pin White AAA batteries Bipolar double-throw sw Used for reset Supplies. V 00 kω (-mm pitch) 0. µf (-mm pitch) µf (.-mm pitch) µf (.-mm pitch) 0. µf (.-mm pitch) Used for regulator Product number 0-00SC 0-00SC DSP0-0-G DSP0-00-G DSP0-00-0G- BX00 G-AP EVQPAC0M µpcmhb LF/ 0F RPEF0Z0 DNC0MS DNE00MS RPERK0 Manufacturer M M KEL KEL KEL BULGIN Nikkai Matsushita NEC Tama Electric Murata NEC NEC Murata CPU board No. 0 Part name CPU Crystal oscillator Ceramic oscillator Connector Connector Pin header DIP shorting plug DIP shorting-plug socket Capacitor Capacitor Capacitor, tantalum Resistor Resistor Resistor Check pin Socket Symbol U OSC OSC CN CN CN JP JP C, C, C C, C C R R R TP S Value, etc.. khz.00 MHz 0-pin 0-pin -pin angle -pin row White pf 0. µf. µf (.-mm pitch) MΩ (-mm pitch) 0 kω (-mm pitch) 00 kω (-mm pitch) Product number SCF0 P- CSA.00MG 0-00SC 0-00SC HIFBA-PA-.DS DSP0-00-G DSP0-00-0G- RPECH0J0 RPEF0Z0 DNCRMS LF/ 0F LF/ F LF/ 0F LC--S Used to measure current ICC0-00-C Manufacturer EPSON Kinseki Murata M M HIROSE KEL KEL Murata Murata NEC Tama Electric Tama Electric Tama Electric MAC KEL Peripheral board No. 0 Part name Piezoelectric element Connector Header Diode Coil Transistor Resistor Resistor Variable resistor Tactile switch Switch keytop Spacer Spacer Screw Rubber foot Symbol BZ CN CN D L Q R R VR SW SW Value, etc. V / khz 0-pin 0-pin mh / 0 ma 00 kω 0 kω Finger adjustable mm square, light gray Brass Brass M self-binding screw Product number PS0P0 0-00SC 0-00SC S0 LY-K SC LF/ 0F LF/ 0F F-TW 0K BF-00 B-00 BSB- ASB-0 SK- Manufacturer TDK M M Hitachi Toko Toshiba Tama Electric Tama Electric Bourns Omron Omron Hirosugi Keiki Hirosugi Keiki Tochigiya I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE

CIRCUIT DIAGRAM SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE CIRCUIT DIAGRAM Fig.. Circuit diagram (Main board) D D C C B B A A R = _CE R = _CE R = _CE.V x CS P DIP _RD A[:0] = R[:0] D[:0] = P[:0] R = _RD R = _WR R0 = _CE0 MAIN BOARD MCU/_MPU DR-0-0.0 SCF0 Demo Board A Tuesday, June 0, 00 Title Size Document Number Rev Date: Sheet of COM COM R R R COM0 CS R COM R SEG R SEG SEG R SEG R K CS R P0 R SEG0 SEG SEG R K0 COM COM R P K00 SEG R COM CS P0 K0 SEG COM P K SEG COM R P K0 P00 COM P0 R CS COM R SEG COM R0 R0 K0 SEG COM CS P0 R SEG SEG P0 SEG R CS SEG0 R P0 P0 P0 R K0 SEG SEG0 COM R0 COM R P0 COM[:] R0 R0 COM COM R00 R0 P COM SEG R R0 R0 R0 COM SEG COM P P SEG K0 P P0 R R00 P SEG R0 SEG0 COM COM SEG0 SEG R0 R COM R K00 R CS SEG SEG SEG P0 R CS SEG SEG R P0 CS COM COM0 COM R P0 K0 SEG R SEG R COM COM SEG SEG SEG COM P0 P SEG R0 R0 R K0 P0 COM SEG R R P K0 R0 R COM R00 R SEG R COM P COM P00 SEG COM0 COM R0 P0 R0 R SEG R00 R R0 C0S SEG CS COM R COM0 R SEG0 R0 COM COM SEG R P0 COM SEG R CS R P SEG SEG P0 R0 SEG0 SEG R R COM0 P00 R K0 SEG R R R0 R CS SEG R CS COM SEG R COM C0S SEG CS0 K0 COM K0 SEG COM P R0 COM R0 P0 SEG SEG R R K0 P0 R0 SEG R R0 P0 R R CS COM R SEG SEG R SEG0 COM CS COM0 R COM R SEG SEG SEG R C0S SEG SEG COM COM CS SEG P00 R0 COM SEG SEG R0 SEG SEG COM COM P0 COM R0 COM SEG CS0 R0 COM K0 K0 SEG R0 R R0 R0 R R0 P0 COM P0 R0 R0 R0 P0 P0 SEG P0 P P0 SEG K0 P0 COM CS SEG P0 SEG CS R0 R C0S CS CS SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG CS CS CS CS CS CS SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG[:] SEG SEG SEG0 COM COM SEG0 SEG[0:0] COM0 COM0 COM[:0] R0 R0 R0 R0 R0 R CS CS CS CS CS0 CS C0S CS CS CS CS CS CS C0S CS CS LCD LCD 0 0 0 0 0 0 0 0 0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM JP COM/SEG U KByte EPROM 0 0 0 Vpp A A A A A A A A A A A0 D0 D D D D D D D CE A0 OE A A A A A A A Vcc R 00k CN CON0A 0 0 0 0 CN CN- 0 0 0 0 VSS VSS K00 K0 K0 K0 K0 K0 K0 K0 K0 K P00 P0 P0 P0 P0 P0 P0 P0 P0 P P P P P P P R00 R0 R0 R0 R0 R0 R0 R0 R0 R CN CN- 0 0 0 0 VSS VSS RESET MCU/MPU OSC OSC VC VC VC VC VC SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG CN CON0B 0 0 0 0 CN CN- 0 0 0 0 SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 COM COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM CN CN- 0 0 0 0 R R R R R R R0 R R R R R R R R0 R R R R R R R R0 R COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM JP COM/SEG JP COM/SEG JP COM/SEG JP COM/SEG C 0.uF JP COM/SEG JP JPP JP COM/SEG CN CN- 0 0 0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG U upcmhb IN OUT S PowerSW JP COM/SEG U KByte SRAM SOP 0 0 0 A A A A A A A A A A A A0 I/O I/O I/O I/O I/O I/O I/O I/O CE A0 OE A A A A R/W A A Vdd JP COM/SEG P BATTERY CC 0.uF + C uf JP COM/SEG CC 0.uF JP COM/SEG JP COM/SEG JP0 COM/SEG + C uf JP COM/SEG C 0.uF JP COM/SEG SW RESET JP COM/SEG

CIRCUIT DIAGRAM I- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) HARDWARE Fig.. Circuit diagram (CPU board) D D C C B B A A External VREF A A A CPU Board D DR-0-0.0 SCF0 Demo Board A Tuesday, December, 00 Title Size Document Number Rev Date: Sheet of SEG SEG SEG0 COM SEG R0 K0 R0 K0 P COM0 P SEG SEG COM R0 R SEG0 SEG R SEG R0 K0 P SEG R R VC COM R C0S SEG SEG _RESET R00 R P0 SEG0 P0 _RESET CS R R OSC OSC CS COM COM R COM SEG P0 R0 COM0 K0 SEG COM SEG SEG SEG CS SEG R0 R SEG R R K0 SEG COM R R K00 SEG SEG COM COM SEG SEG0 R0 R CS SEG SEG R CS P P0 COM P0 P P COM P SEG0 R SEG SEG CS SEG R0 SEG R COM SEG COM COM P0 R0 R R0 P K0 R SEG R K SEG P COM R P0 SEG R SEG R0 SEG R0 SEG SEG K0 R COM COM COM COM P0 C0S SEG SEG SEG COM0 COM SEG K0 R0 K0 P MCU/_MPU CS SEG R0 SEG0 SEG P00 SEG R SEG P0 VC R R0 R SEG P0 R R SEG R0 SEG P0 K00 P0 VC R SEG P0 SEG0 SEG R0 R SEG R0 K0 R SEG COM R SEG SEG SEG COM K0 SEG SEG K0 COM R SEG COM P SEG0 R R R00 P K0 CS SEG K0 R0 P0 SEG SEG VC MCU/_MPU SEG SEG R0 SEG CS R P00 P0 COM R R P SEG SEG SEG R R0 R0 R CS SEG P0 CS COM VC CS0 R K0 CS COM K0 R CS SEG _RESET K SEG P SEG COM0 R SEG0 VC VC VC CS SEG SEG SEG SEG SEG CS SEG0 SEG SEG SEG CS CS CS SEG CS SEG SEG0 SEG SEG CS SEG SEG0 SEG CS SEG SEG SEG SEG SEG CS C0S CS CS0 SEG CS SEG C0S CS CS CS CS CS CS CS CS CS CS C0S CS C0S CS CS0 CS CS CS VC VC A D D D D D A D D C 0.uF CN CN- 0 0 0 0 VSS VSS K00 K0 K0 K0 K0 K0 K0 K0 K0 K P00 P0 P0 P0 P0 P0 P0 P0 P0 P P P P P P P R00 R0 R0 R0 R0 R0 R0 R0 R0 R CN CN- 0 0 0 0 R R R R R R R0 R R R R R R R R0 R R R R R R R R0 R COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM CN CN- 0 0 0 0 VSS VSS RESET MCU/MPU OSC OSC VC VC VC VC VC SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG C 0.uF C0 0.uF C pf C 0.uF CN CN- 0 0 0 0 SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 COM COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM CN CN- 0 0 0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG C 0.uF C 0.uF CN CN-P 0 CLK VSS SCLK VSS RXD VSS TXD VSS XRESET VSS XSPRG VSS Reserved SRDY C pf C 0.uF TP TP U SCF0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEG SEG SEG SEG SEG SEG0 SEG SEG SEG SEG SEGSEG SEG SEG SEG SEG0 COM/SEG COM0/SEG COM/SEG COM/SEG COM/SEG COM/SEG COM/SEG COM/SEG COM/SEG COM/SEG0 COM/SEG COM0/SEG COM/SEG COM/SEG COM/SEG COM/SEG VDF SPRG CLKW VEPEXT RXD SCLK TXD CE CD CC CB CA VC VC VC VC VC OSC OSC VD VSS VOSC OSC OSC TEST RESET MCU/MPU K/BREQ K0/EVIN K0 K0 K0 K0 K0 K0 K0 K00 P/CMPM/AD P/CMPP/AD P/CMPM0/AD P/CMPP0/AD P/SRDY P/SCLK P/SOUT P0/SIN A AVSS AVREF P0/D P0/D P0/D P0/D P0/D P0/D P0/D P00/D0 R00/A0 R0/A R0/A R0/A R0/A R0/A R0/A R0/A R0/A R/A R/A0 R/A R/A R/A R/A R/A R0/A R/A R/A R/RD R/WR R/CL R/FR/TOUT R/TOUT R0/CE0 R/CE R/CE R/CE R/FOUT R R R VSS R0/BZ R/BACK/BZ COM0 COM COM COM COM COM COM COM COM COM COM0 COM COM COM COM COM SEG0 SEG TP S R 00K R M S C 0.uF OSC.MHz + C.uF TP JP JPP C 0.uF C pf TP R 0K C 0.uF OSC.00MHz C 0.uF

CIRCUIT DIAGRAM SUCF0T MANUAL EPSON I- (SCF0 DEMO BOARD) HARDWARE Fig.. Circuit diagram (Peripheral board) D D C C B B A A PERIPHERAL BOARD DR-0-0.0 SCF0 Demo Board A Tuesday, December, 00 Title Size Document Number Rev Date: Sheet of R0 R R K0 R R R R R0 R K0 R R P R R P00 K0 K0 R0 P0 R K R P0 R P P R R K0 P0 R R K0 P R0 P R00 K0 R0 R P P0 P K0 P0 P R R K0 R K0 R0 R R0 R0 R0 K0 R0 R R0 R P P R R R0 R P0 P0 R K0 R0 P P00 R K0 K0 R P0 P0 P K0 R0 R R R R0 R0 R R0 K0 P0 R R R R P P K0 K0 K0 R00 K0 R R0 P0 P0 R R P0 R0 P P K0 R0 R R0 R R P0 R0 R R P0 R0 P0 K0 K0 K R K00 K00 K00 SW R 0k CN CON0B 0 0 0 0 SW CN CON0A 0 0 0 0 SW SW0 SW SW SW SW SW R CN CON0A 0 0 0 0 CN CON0B 0 0 0 0 SW R SW D S0 SW D S0 SW R SW SW D S0 D S0 R SW SW SW R SW SW VR 0K R R R 00k SW SW SW SW L mh SW0 SW BZ BUZZER SW QA SC SW0 VR 0K SW SW SW SW

SUCF0T Manual II SOFTWARE

CONTENTS PREFACE The "SUCF0T Manual - II Software" describes how to use the demonstration program supplied with the SUCF0T Demonstration Tool for the SC Family. For SUCF0T hardware specifications, see the "SUCF0T Manual - I Hardware". CONTENTS OVERVIEW II- STATE TRANSITION DIAGRAM II- STARTING UP AND QUITTING II-. Starting Up the System... II-. Quitting the System... II-. Initialization... II- INITIAL SCREEN II- TOP MENU II- KEY TEST II- A/D-CONVERSION TEST II- SOUND-GENERATOR TEST II- CLOCK II- 0 APPLICATION NOTES II-0 0. Operation Mode and OSC Selection... II-0 0. Scroll Display... II- 0.. Horizontal Scroll... II- 0.. Vertical Scroll... II- 0. Key Input... II- 0.. Key Matrix... II- 0.. Key Scan... II- 0. A/D Conversion... II- 0. Sound Generator... II- SUCF0T MANUAL EPSON II-i (SCF0 DEMO BOARD) SOFTWARE

OVERVIEW OVERVIEW The SUCF0T is a demonstration tool for the SC Family of Seiko Epson's -bit single-chip microcomputers. The SUCF0T incorporates the SCF0 as its CPU and comes equipped with a keyboard, and an LCD panel. As for software, it is installed with a demonstration program having the following functions: Key-input demonstration: A sample program for matrix key input A/D-conversion demonstration: A sample program for A/D conversion Sound-generator demonstration: A sample program for the sound generator Clock demonstration: A sample program for the clock timer SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

STATE TRANSITION DIAGRAM STATE TRANSITION DIAGRAM Shown below is a state transition diagram of the demonstration program. Power-on or reset I/O initialization OSC switching Initial screen Top menu Pressing any key Key test SW A/D-conversion test SW Sound-generator test SW Clock SW SW Return SW SW SW SW Key test A/D-conversion test Sound-generator test Clock SW SW SW SW Fig.. State transition diagram II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

STARTING UP AND QUITTING STARTING UP AND QUITTING The following explains how to start up and quit the system.. Starting Up the System Load batteries (three AAA batteries) into the battery holder, taking care not to mistake their electrode polarities. Turn on the power switch; the initial screen will appear.. Quitting the System Turn off the power switch; the system is shut down.. Initialization The system enters an initialization sequence immediately after it is started up, after being plugged into a power supply, or when its RESET switch is pressed. The contents of initialization are listed below. LCD initialization LCD power supply: Type B (. V) Drive duty: / Display control: Normal display Contrast: Operation mode selection OSC oscillation: On Operating mode: High-speed mode Peripheral-circuit I/O-register initialization Programmable timer, clocking timer, input (K) port, etc. SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

INITIAL SCREEN INITIAL SCREEN The following is shown on the initial screen. Fig.. Initial screen The system enters a key-input wait state, with the message "Push Any Key" scrolled on the screen. Press any key here; the system displays the top menu. II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

TOP MENU TOP MENU On the top menu, select a function to be executed. Top menu Key test SW A/D-conversion test SW Sound-generator test SW Clock SW SW Return SW SW SW SW Key test A/D-conversion test Sound-generator test Clock SW SW SW SW Fig.. Top menu SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

KEY TEST KEY TEST In the key test, an English letter corresponding to the key you press makes one revolution. Press the return key to return to the top menu. A I Q Y B J R Z C K S D L T E M U F N V G O W Fig.. Relationship between display screen and input keys H P X II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

A/D-CONVERSION TEST A/D-CONVERSION TEST The SUCF0T has two variable resistors that are connected to AD (P) and AD (P). These variable resistors allow the input voltages on AD and AD to be varied from 0 V to the powersupply voltage (). The varying A/D conversion values (0 bits) can be displayed hexadecimally on the LCD panel. The A/D conversion results displayed are converted into 0 to FFh values. Press the return key to return to the top menu. CH: A/D-conversion result at AD (0 FFh) CH: A/D-conversion result at AD (0 FFh) Fig.. Display screen during A/D conversion test VR: Input-voltage change at AD (0 ) VR: Input-voltage change at AD (0 ) DMTF0 Peripheral Fig.. Variable resistors for setting A/D input voltage SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

SOUND-GENERATOR TEST SOUND-GENERATOR TEST The R0 ouyput port has a buzzer connected to it. The buzzer sounds when the sound-generator test is selected from the top menu. The buzzer frequency and the duty cycle (sound volume) of the buzzer signal can be set by key input. Press the return key to return to the top menu. DUTY: Current duty cycle BZFQ: Current buzzer frequency Fig.. Display screen during sound-generator test 0 0 DUTY: 0 BZFQ: 0 BZFQ DUTY 0 0 0.0 Hz / / / / / / / /. Hz /0 /0 /0 /0 /0 /0 /0 /0 0. Hz / / 0/ / / / / / 0. Hz / / 0/ / / / / / 0.0 Hz / / / / / / / /. Hz /0 /0 /0 /0 /0 /0 /0 /0. Hz / / 0/ / / / / / Fig.. Relationship between key input and buzzer frequency/duty cycle 0. Hz / / 0/ / / / / / II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

CLOCK CLOCK This function shows an elapsed time from power-on or reset using a -Hz clock timer. The time is displayed in the form of HH:MM:SS (hours : minutes : seconds). When the time :: is reached, it cycles back to 00:00:00. Press the return key to return to the top menu. Fig.. Clock display SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0 APPLICATION NOTES This section explains the major functions of the program. 0. Operation Mode and OSC Selection The system clock is switched from OSC (normal mode; VD =. V) to OSC (high-speed mode; VD =. V). <Precautions> Wait at least ms before turning on the OSC oscillation circuit after switching operation modes. Wait a sufficient time for the OSC oscillation circuit to stabilize after being turned on. <Flowchart> change_clk Switch operation mode from normal to high speed WAIT Decrement BA register BA register = n - n: wait time (ms) WAIT ms Turn OSC oscillation on no BA==0? yes WAIT WAIT 0 ms Switch system clock from OSC to OSC END II-0 EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

0. Scroll Display 0 APPLICATION NOTES The LCD display is scrolled in the vertical and horizontal directions. An interrupt is generated every 0 ms using Programmable Timer 0. A flag is set within the interruptfunction. If the flag is detected to have been set in the main loop, the horizontal- or vertical-scrollfunction is called. <Flowchart> Programmable timer interrupt Scroll Clear the interrupt factor flag HALT Set the interrupt-generated flag RETI Interrupt-generated flag==? yes Scroll (vertical, horizontal) no Clear the interrupt-generated flag SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0.. Horizontal Scroll The display is scrolled from right to left. Data in the LCD area is shifted to the left by one full segment. For the last byte of data, the new data to be displayed is retrieved from memory and written into the LCD area. SEG0 Data in the LCD area is shifted to the left by one segment Next data to be displayed <Flowchart> Horizontal scroll Shift data in the LCD area to the left Fig. 0... Horizontal scroll Count==? yes Write 0 to the last segment (intercharacter space) no Retrieve the next character data to display Write one byte of character data to the last segment Crear the count (0) Increment the count (+) RET <Relationship between the data written into the LCD area and counts> LSB Count 0 MSB Character data byte Count Character data (example: '0') 0 st byte (Eh) nd byte (h) rd byte (h) th byte (h) th byte (Eh) Space (0) Fig. 0... Counts and character data One piece of character data is bytes in size, and one byte of space is required between characters. The count initial value is 0, and the leftmost byte of character data is written to the LCD area. When the count is, the second leftmost byte of character data is written to the LCD area. When the count is, an intercharacter space is written to the LCD area. II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0.. Vertical Scroll Characters are scrolled vertically (turned 0 degrees), one character at a time. The display area that should be scrolled vertically is set within the key-input-function. <Flowchart> Fig. 0... Vertical scroll Vertical scroll Any key input? no yes Rotate data in the corresponding LCD area Decriment the counter (KeyScrCnt) no Finished checking all key inputs? yes RET <Key-input check> The variable KeyScrCnt [0 to ] [0 to ] corresponds on a one-for-one basis to the key-matrix array. When a key input is made, the value is set in the corresponding KeyScrCnt. Unless KeyScrCnt = 0, the relevant display area is scrolled one dot vertically. KeyScrCnt is decremented each time the data in the display area is scrolled. When KeyScrCnt = 0, the scroll processing is terminated. SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0. Key Input 0.. Key Matrix A = key matrix is provided. It connects to each I/O port of the SCF0 as shown in the table below. Output port R R R R Table 0... Input and output ports used for key matrix Input port K00 K0 K0 K0 K0 K0 K0 SW SW SW SW SW SW SW SW SW0 SW SW SW SW SW SW SW SW SW0 SW SW SW SW SW SW SW SW SW0 SW K0 SW SW SW SW The key matrix is configured using a circuit similar to that shown below. When a switch is not depressed (i.e., open), its corresponding input port (K00 K0) is held at the High-voltage level by a pull-up resistor. When a Low-level voltage is output by one of the output ports (R R), one of the K ports goes Low. Therefore, it is possible to determine which switch is depressed (i.e., shorted) by inspecting which R port is outputting Low-level voltage. K0 K00 R R SW SW SW SW0 Fig. 0... Key-matrix circuit II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0.. Key Scan There are two types of key scan: initial key scan and cyclic key scan. Initial key scan An initial key scan detects which key has been pressed. All outputs to the key matrix (R, R, R, and R) are preset at the Low-voltage level, and initial key scan is started by a fall in input that occurs when any key is pressed. In an initial key scan, which key was pressed is determined by sequentially pulling the outputs Low to detect which output was Low when the corresponding input went Low. When the key input thus detected is found to be valid, cyclic key scan is activated in which the keys are scanned every ms ( Hz). <Flowchart> Key-input interrupt Disable the key-input interrupt Set all the R R outputs to high Set all the R R outputs to high Set all the R R outputs to high Set all the R R outputs to high Wait for 0 cycles Wait for 0 cycles Wait for 0 cycles Wait for 0 cycles Set the R output to low Set the R output to low Set the R output to low Set the R output to low Save key data Save key data Save key data Save key data Any key input? no Any key input? no Any key input? no Any key input? no yes yes yes yes Save key position Set all the R R outputs to high KeyPos : Key position (vertical) KeyNo : Key number (horizontal) KeyFlg : Set to when key input is detected Start the Hz timer Clear chattering count (0) Clear the interrupt factor flag RETI SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES Cyclic key scan Cyclic key scan is used to scan the keys to determine whether the pressed key remains depressed. In order to further lighten the current-consumption reduction process, only the corresponding output is pulled Low while the corresponding input is checked. To prevent misjudgment of key input caused by external noise-such as when an unpressed key is mistakenly determined to have been pressed, or a depressed key is mistakenly determined to have been released-cyclic key scan serves as a noise rejection filter. If any key is confirmed to have been entered three times in succession at -ms intervals (including initial key scan), the key is determined to be on; otherwise, the key is determined to be off. When a key is determined to be off, the cyclic key scan is terminated and all outputs (R, R, R, and R) are pulled Low, awaiting input. When a key is determined to be on, the valid key is saved to the input key buffer. <Flowchart> -Hz interrupt Any key input? no yes Set all the R R outputs to high Set the Rx output to low according to the KeyPos value Read K ports Same as previous input? no yes Increment chattering count No key input KeyFlg=0 Set all the R R outputs to low no Chattering count==? yes Confirm key input KeyFlg= Disable -Hz interrupt Enable K-port input interrupt Set all the R R outputs to high RETI II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

0. A/D Conversion The SUCF0T has two variable resistors that are connected to AD (P) and AD (P). 0 APPLICATION NOTES P VR Fig. 0.. AD (P) input The input voltage for A/D conversion can be varied by changing its resistance value using these variable resistors. This demonstration program performs successive A/D conversion and displays the result on the LCD panel. <Flowchart> A/D conversion Turn the A/D-conversion clock on Set duty cycle Configure A/D inputs for P and P Set input channel Start A/D conversion A/D finished? yes Form the A/D result bits no The AD conversion result (two separated values, upper bits and lower bits) is transformed into a -byte hexadecimal data (0 to FFh). Display on the LCD SUCF0T MANUAL EPSON II- (SCF0 DEMO BOARD) SOFTWARE

0 APPLICATION NOTES 0. Sound Generator The sound generator produces a buzzer output. The buzzer frequency (BZFQ) and the duty cycle (DUTY) of the buzzer signal can be set by key input. The table below lists the BZFQ and DUTY settings. BZFQ DUTY 0 <Flowchart> 0 0.0 Hz / / / / / / / /. Hz /0 /0 /0 /0 /0 /0 /0 /0 Table 0.. BZFQ and DUTY settings 0. Hz / / 0/ / / / / / 0. Hz / / 0/ / / / / / 0.0 Hz / / / / / / / /. Hz /0 /0 /0 /0 /0 /0 /0 /0. Hz / / 0/ / / / / / 0. Hz / / 0/ / / / / / Sound generator Set initial values of DUTY and BZFQ Initial values DUTY= BZFQ=0 Buzzer output no Any key input? yes Set DUTY and BZFQ Display the input key number on the LCD II- EPSON SUCF0T MANUAL (SCF0 DEMO BOARD) SOFTWARE

International Sales Operations AMERICA EPSON ELECTRONICS AMERICA, INC. - HEADQUARTERS - 0 River Oaks Parkway San Jose, CA, U.S.A. Phone: +-0--000 Fax: +-0--0 - SALES OFFICES - West 0 E. Grand Avenue EI Segundo, CA 0, U.S.A. Phone: +-0--00 Fax: +-0--00 Central 0 Virginia Street, Suite 0 Crystal Lake, IL 00, U.S.A. Phone: +---0 Fax: +--- Northeast 0 Edgewater Place, Suite 0 Wakefield, MA 00, U.S.A. Phone: +---00 Fax: +--- Southeast 00 Royal Blvd. South, Suite 0 Alpharetta, GA 000, U.S.A. Phone: +--EEA-000 Fax: +-0-- EUROPE EPSON EUROPE ELECTRONICS GmbH - HEADQUARTERS - Riesstrasse 0 Munich, GERMANY Phone: +-(0)-00-0 Fax: +-(0)-00-0 DÜSSELDORF BRANCH OFFICE Altstadtstrasse Leverkusen, GERMANY Phone: +-(0)-0-0 Fax: +-(0)-0-0 UK & IRELAND BRANCH OFFICE Unit., Doncastle House, Doncastle Road Bracknell, Berkshire RG PE, ENGLAND Phone: +-(0)-00 Fax: +-(0)-0 FRENCH BRANCH OFFICE Avenue de l' Atlantique, LP Les Conquerants Z.A. de Courtaboeuf, F- Les Ulis Cedex, FRANCE Phone: +-(0)-0 Fax: +-(0)- BARCELONA BRANCH OFFICE Barcelona Design Center Edificio Testa, Avda. Alcalde Barrils num. - E-00 Sant Cugat del Vallès, SPAIN Phone: +---0 Fax: +--- ASIA EPSON (CHINA) CO., LTD. F, Beijing Silver Tower # North RD DongSanHuan ChaoYang District, Beijing, CHINA Phone: 0 Fax: 0 SHANGHAI BRANCH F, High-Tech Bldg., 00, Yishan Road Shanghai 00, CHINA Phone: --- Fax: --- EPSON HONG KONG LTD. 0/F., Harbour Centre, Harbour Road Wanchai, Hong Kong Phone: +--00 Fax: +-- Telex: EPSCO HX EPSON TAIWAN TECHNOLOGY & TRADING LTD. F, No., Song Ren Road, Taipei 0 Phone: 0-- Fax: 0--0 HSINCHU OFFICE F-, No., Kuang-Fu Road, Sec. HsinChu 00 Phone: 0--00 Fax: 0-- EPSON SINGAPORE PTE., LTD. No. Temasek Avenue, #-00 Millenia Tower, SINGAPORE 0 Phone: +-- Fax: +-- SEIKO EPSON CORPORATION KOREA OFFICE 0F, KLI Bldg., 0 Yoido-dong Youngdeungpo-Ku, Seoul, 0-, KOREA Phone: 0--0 Fax: 0-- GUMI OFFICE F, Good Morning Securities Bldg. Songjeong-Dong, Gumi-City, 0-00, KOREA Phone: 0--0 Fax: 0--0 SEIKO EPSON CORPORATION ELECTRONIC DEVICES MARKETING DIVISION IC Marketing Department IC Marketing & Engineering Group -, Hino, Hino-shi, Tokyo -0, JAPAN Phone: +-(0)-- Fax: +-(0)-- ED International Marketing Department -, Hino, Hino-shi, Tokyo -0, JAPAN Phone: +-(0)-- Fax: +-(0)-- Scotland Design Center Integration House, The Alba Campus Livingston West Lothian, EH EG, SCOTLAND Phone: +-0-000 Fax: +-0-00

SUCF0T Manual (SCF0 DEMO Board) ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epsondevice.com First issue July, 00 Printed June, 00 in Japan L A