ChipFind - документация

Электронный компонент: EM78458

Скачать:  PDF   ZIP

EM78458/459
8-Bit Microcontroller
with MASK ROM
Product
Specification
D
OC
. V
ERSION
1.4
ELAN MICROELECTRONICS CORP.
May 2005

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
2005 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.
Rm. 1005B, 10/F Empire Centre
68 Mody Road, Tsimshatsui
Kowloon , HONG KONG
Tel: +852 2723-3376
Fax: +852 2723-7780
elanhk@emc.com.hk
USA:
Elan Information
Technology Group
1821 Saratoga Ave., Suite 250
Saratoga, CA 95070
USA
Tel: +1 408 366-8223
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
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
Shanghai:
Elan Microelectronics
Shanghai Corporation, Ltd.
23/Bldg. #115 Lane 572, Bibo Road
Zhangjiang Hi-Tech Park
Shanghai, CHINA
Tel: +86 021 5080-3866
Fax: +86 021 5080-4600
Contents
Product Specification (V1.4) 05.27.2005
iii
Contents
1 GENERAL
DESCRIPTION................................................................................................... 1
2 FEATURES........................................................................................................................... 1
3 PIN
ASSIGNMENT ............................................................................................................... 3
3.1 EM78458 Pin Description.............................................................................................3
3.2 EM78459 Pin Description.............................................................................................4
4 FUNCTION
DESCRIPTION.................................................................................................. 5
4.1 Operational
Registers ..................................................................................................5
4.1.1 R0
(Indirect
Addressing Register) .................................................................................5
4.1.2 R1 (Time Clock /Counter)..............................................................................................5
4.1.3 R2
(Program
Counter) & Stack......................................................................................5
4.1.4 R3
(Status Register) ......................................................................................................7
4.1.5 R4 (RAM Select Register) .............................................................................................7
4.1.6 R5 ~ R6 (Port 5 ~ Port 6)...............................................................................................7
4.1.7 R7 ~ R8 .........................................................................................................................7
4.1.8 R9
(ADCON:
Analog
to Digital Control).........................................................................9
4.1.9 RA (ADDATA: the converted value of ADC) ..................................................................9
4.1.10 RB..................................................................................................................................9
4.1.11 RC................................................................................................................................10
4.1.12 RD................................................................................................................................10
4.1.13 RE................................................................................................................................10
4.1.14 RF (Interrupt Status Register) .....................................................................................10
4.2.15 R10 ~ R3F ...................................................................................................................10
4.2 Special Purpose Registers ......................................................................................... 11
4.2.1 A
(Accumulator) ........................................................................................................... 11
4.2.2 CONT
(Control Register) ............................................................................................. 11
4.2.3 IOC50 ~ IOC60 (I/O Port Control Register).................................................................12
4.2.4 IOC90
(GCON:
I/O Configuration & Control of ADC ) .................................................12
4.2.5 IOCA0 ( AD-CMPCON ) .............................................................................................13
4.2.6 IOCB0
(Pull-down
Control Register) ...........................................................................14
4.2.7 IOCC0
(Open-Drain Control Register) ........................................................................14
4.2.8 IOCD0
(Pull-high
Control Register) .............................................................................15
4.2.9 IOCE0 (WDT Control Register) ...................................................................................15
4.2.10 IOCF0 (Interrupt Mask Register) .................................................................................16
4.2.11 IOC51 ( PWMCON ) ....................................................................................................17
4.2.12 IOC61 ( DT1L: the Least Significant Byte
( Bit 7 ~ Bit 0) of Duty Cycle of PWM1 ) .....................................................................17
4.2.13 IOC71 ( DT1H: the Most Significant Byte
( Bit 1 ~ Bit 0 ) of Duty Cycle of PWM1 ) ....................................................................18
4.2.14 IOC81 ( PRD1: Period of PWM1 )...............................................................................18
4.2.15 IOC91 ( DT2L: the Least Significant Byte
( Bit 7 ~ Bit 0 ) of Duty Cycle of PWM2 ) ..................................................................18

Contents
iv
Product Specification (V1.4) 05.27.2005
4.2.16 IOCA1 ( DT2H: the Most Significant Byte
( Bit 1 ~ Bit 0 ) of Duty Cycle of PWM2 ) ....................................................................18
4.2.17 IOCB1 ( PRD2: Period of PWM2 ) ..............................................................................19
4.2.18 IOCC1 ( DL1L: the Least Significant Byte
( Bit 7 ~ Bit 0 ) of Duty Cycle Latch of PWM1 ) ..........................................................19
4.2.19 IOCD1 ( DL1H: the Most Significant Byte
( Bit 1 ~ Bit 0 ) of Duty Cycle Latch of PWM1 ) ..........................................................19
4.2.20 IOCE1 ( DL2L: the Least Significant Byte
( Bit 7 ~ Bit 0) of Duty Cycle Latch of PWM2 ) ...........................................................19
4.2.21 IOCF1 ( DL2H: the Most Significant Byte
( Bit 1 ~ Bit 0 ) of Duty Cycle Latch of PWM2 ) ..........................................................19
4.3 TCC/WDT & Prescaler ...............................................................................................19
4.4 I/O
Ports .....................................................................................................................20
4.5 RESET
and
Wake-up .................................................................................................23
4.5.1 The
Function
of
RESET and Wake-up ........................................................................23
4.5.2 The Status of T, and P of STATUS Register ................................................................25
4.6 Interrupt......................................................................................................................26
4.7 Analog-To-Digital Converter (ADC) ............................................................................27
4.7.1 ADC Control Register (ADCON/R9, AD-CMP-CON/IOCA0, GCON/IOC90) .............28
4.7.2 ADC Data Register (ADDATA/RA) ..............................................................................30
4.7.3 A/D
Sampling Time......................................................................................................30
4.7.4 A/D
Conversion Time...................................................................................................30
4.7.5 A/D
Operation
During Sleep Mode..............................................................................31
4.7.6 Programming
Steps/Considerations............................................................................31
4.8 Dual Sets of PWM ( Pulse Width Modulation )...........................................................34
4.8.1 Overview......................................................................................................................34
4.8.2 Increment Timer Counter ( TMRX: TMR1H/TWR1L or TMR2H/TWR2L )..................35
4.8.3 PWM Period ( PRDX : PRD1 or PRD2 ) .....................................................................35
4.8.4 PWM Duty Cycle ( DTX: DT1H/ DT1L and DT2H/ DT2L; DTL:
DL1H/DL1L
and
DL2H/DL2L ).....................................................................................35
4.8.5 Comparator X ..............................................................................................................35
4.8.6 PWM
Programming
Procedures/Steps........................................................................35
4.9 Timer ..........................................................................................................................36
4.9.1 Overview......................................................................................................................36
4.9.2 Function
description ....................................................................................................36
4.9.3 Programming the Related Registers ...........................................................................37
4.9.4 Timer
programming
procedures/steps.........................................................................37
4.10 Comparator ................................................................................................................37
4.10.1 External Reference Signal...........................................................................................37
4.10.2 Comparator Outputs ....................................................................................................38
4.10.3 Using as An Operation Amplifier..................................................................................38
4.10.4 Interrupt .......................................................................................................................38
4.10.5 Wake-up from SLEEP Mode .......................................................................................39
4.11 The Initialized Values after Reset...............................................................................39
4.12 Oscillator ....................................................................................................................43
Contents
Product Specification (V1.4) 02.27.2005
v
4.12.1 Oscillator Modes..........................................................................................................43
4.12.2 Crystal Oscillator/Ceramic Resonators (XTAL) ...........................................................44
4.12.3 External RC Oscillator Mode .......................................................................................45
4.12.4 RC Oscillator Mode with Internal Capacitor ................................................................46
4.13 Power-on Considerations...........................................................................................47
4.13.1 External Power on Reset Circuit .................................................................................47
4.13.2 Residue-Voltage Protection.........................................................................................48
4.14 CODE OPTION ..........................................................................................................49
4.15 Instruction Set ............................................................................................................49
4.16 Timing Diagrams ........................................................................................................52
5 ABSOLUTE
MAXIMUM
RATINGS..................................................................................... 53
6 ELECTRICAL
CHARACTERISTICS.................................................................................. 53
6.1 DC Electrical Characteristic(Ta=0
C ~ 70 C, VDD=5.0V5%, VSS=0V) ..................53
6.2 AC Electrical Characteristic (Ta=0
C ~ 70 C, VDD=5V5%, VSS=0V) ....................54
6.3 A/D Converter Characteristic(Vdd=3.0V to 5.5V,Vss=0V,Ta=0 to 70) ....................54
6.4 Comparator(OP) Characteristic(Vdd = 5.0V,Vss=0V,Ta=0 to 70) ...........................55
APPENDIX
A Package
Types .................................................................................................................. 56