|
Part Number |
EM78M680 |
|
Manufacturer |
ELAN Microelectronics |
|
Semiconductor DataSheet |
|
DataSheet View |
|
EM78M680
USB Full Speed Microcontroller
Product Specification
DOC. VERSION 1.1
ELAN MICROELECTRONICS CORP.
February 2007
Trademark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM. Windows is a trademark of Microsoft Corporation. ELAN and ELAN logo are trademarks of ELAN Microelectronics Corporation.
Copyright © 2006 by ELAN Microelectronics Corporation
All Rights Reserved
Printed in Taiwan
The contents of this specification are subject to change without further notice. ELAN Microelectronics assumes no responsibility concerning the accuracy, adequacy, or completeness of this specification. ELAN Microelectronics makes no commitment to update, or to keep current the information and material contained in this specification. Such information and material may change to conform to each confirmed order. In no event shall ELAN Microelectronics be made responsible for any claims attributed to errors, omissions, or other inaccuracies in the information or material contained in this specification. ELAN Microelectronics shall not be liable for direct, indirect, special incidental, or consequential damages arising from the use of such information or material. The software (if any) described in this specification is furnished under a license or nondisclosure agreement, and may be used or copied only in accordance with the terms of such agreement. ELAN Microelectronics products are not intended for use in life support appliances, devices, or systems. Use of ELAN Microelectronics product in such applications is not supported and is prohibited. NO PART OF THIS SPECIFICATION MAY BE REPRODUCED OR TRANSMITTED IN ANY FORM OR BY ANY MEANS WITHOUT THE EXPRESSED WRITTEN PERMISSION OF ELAN MICROELECTRONICS.
ELAN MICROELECTRONICS CORPORATION
Headquarters: No. 12, Innovation Road 1 Hsinchu Science Park Hsinchu, Taiwan 30077 Tel: +886 3 563-9977 Fax: +886 3 563-9966 http://www.emc.com.tw Hong Kong: Elan (HK) Microelectronics Corporation, Ltd. Flat A, 19F., World Tech Centre 95 How Ming Street, Kwun Tong Kowloon , HONG KONG Tel: +852 2723-3376 Fax: +852 2723-7780 elanhk@emc.com.hk Shenzhen: Elan Microelectronics Shenzhen, Ltd. SSMEC Bldg., 3F, Gaoxin S. Ave. Shenzhen Hi-Tech Industrial Park Shenzhen, Guandong, CHINA Tel: +86 755 2601-0565 Fax: +86 755 2601-0500 USA: Elan Information Technology Group (USA) 1821 Saratoga Ave., Suite 250 Saratoga, CA 95070 USA Tel: +1 408 366-8225 Fax: +1 408 366-8220
Europe: Elan Microelectronics Corp. (Europe) Siewerdtstrasse 105 8050 Zurich, SWITZERLAND Tel: +41 43 299-4060 Fax: +41 43 299-4079 http://www.elan-europe.com
Shanghai: Elan Microelectronics Shanghai, Ltd. 23/Bldg. #115 Lane 572, Bibo Road Zhangjiang Hi-Tech Park Shanghai, CHINA Tel: +86 21 5080-3866 Fax: +86 21 5080-4600
Contents
Contents
1 2 3 General Description .................................................................................................. 1 Features ..................................................................................................................... 1 Pin Assignment ......................................................................................................... 4 3.1 4 5 6 Function Type Description .................................................................................. 4 3.2 Pin Configuration................................................................................................ 4 Pin Description.......................................................................................................... 6 Block Diagram ........................................................................................................... 7 Function Description ................................................................................................ 7 6.1 6.2 Program Memory................................................................................................ 7 Data Memory ...................................................................................................... 8
6.2.1 Operational Registers........................................................................................10 6.2.1.1 R0 (Indirect Address Register) ........................................................... 10 6.2.1.2 R1 (Timer/Clock Counter, TCC) ......................................................... 10 6.2.1.3 R2 (Program Counter & Stack)........................................................... 10 6.2.1.4 R3 (Status Register) ........................................................................... 11 6.2.1.5 R4 (RAM Select Register) .................................................................. 12 6.2.1.6 R5 (Port 5 I/O Register)...................................................................... 13 6.2.1.7 R6 (Port 6 I/O Register)...................................................................... 13 6.2.1.8 R7 (Port 7 I/O Register)...................................................................... 13 6.2.1.9 R8 (Port 8 I/O Register)...................................................................... 13 6.2.1.10 R9 (Port 9 I/O Register)...................................................................... 13 6.2.1.11 RA (USB Endpoint 0 Status Register)................................................ 13 6.2.1.12 RC (FIFO Indirect Index Register)...................................................... 14 6.2.1.13 RD (FIFO Indirect Data Register) ....................................................... 14 6.2.1.14 RE (Interrupt Status Register) ............................................................ 15 6.2.1.15 RF (Interrupt Status Register) ............................................................ 15 6.2.1.16 R10 (USB Endpoint Status Register) ................................................. 15 6.2.1.17 R11 (AD Controller/AD Selection Pin)................................................ 16 6.2.1.18 R12 (Dual Mode Control).................................................................... 17 6.2.1.19 R14 (ADC Output Data) : ADC Output Data for Selecting Pin ........... 17 6.2.1.20 R17 (EEPROM Control Register) ....................................................... 18 6.2.1.21 R18~R1F (General Purpose Register) ............................................... 18 6.2.1.22 R20~R3F (General Purpose Register) ............................................... 18 A (Accumulator).................................................................................................19 CONT (Control Register)...................................................................................19 IOC5 ~ IOC9 (I/O Port Control Register) ..........................................................20 IOCA (RFCNT: RF Control Register).................................................................20 IOCB (PWM_CNT: PWM Controller).................................................................20
6.3
Special Function Registers............................................................................... 19
6.3.1 6.3.2 6.3.3 6.3.4 6.3.5
Product Specification (V1.11) 02.10.2007
• iii
Contents
6.3.6 6.3.7 6.3.8 6.3.9
IOCC (Reserve).................................................................................................21 IOCD (Port 9 Pull High Control Register)..........................................................21 IOCE (MCU Control Register)...........................................................................21 IOCF (Interrupt Mask Register).........................................................................22
6.4 6.5 6.6
USB Device Controller ..................................................................................... 23 Device Address and Endpoints......................................................................... 23 Reset ................................................................................................................ 23
6.6.1 6.6.2 6.6.3 Power-on Reset.................................................................................................23 Watchdog Reset................................................................................................23 USB Reset.........................................................................................................24 Power Down Mode ............................................................................................24 Dual Clock Mode ...............................................................................................24
6.7
Saving Power Mode ......................................................................................... 24
6.7.1 6.7.2
6.8 6.9
Interrupt ............................................................................................................ 25 Pattern Detect Application (PDA) ..................................................................... 26
Function Description..........................................................................................26 Control Register ................................................................................................26 6.9.2.1 IOCF [2~3] PDA Enable Control Bit t ................................................. 26 6.9.2.2 IOCA (PDA Control Register) ............................................................. 26 6.9.2.3 R15 ERAM1 (P.92 Low Pattern Counter)........................................... 26 6.9.2.4 R16 ERAM1 (P.92 High Pattern Counter).......................................... 26 6.9.2.5 R17 ERAM1 (P.93 Low Pattern Counter)........................................... 26 6.9.2.6 R18 ERAM1 (P.93 High Pattern Counter).......................................... 27 6.9.3 Sampling Rate and Debounce Length ..............................................................27 6.9.1 6.9.2
6.10 Pulse Width Modulation (PWM) ....................................................................... 28
6.10.1 Function Description..........................................................................................28 6.10.2 Duty Cycle .. |