IBM EM78M611E User Manual

632.6 Kb
Loading...

EM78M611E

Product

Specification

DOC. VERSION 1.1

ELAN MICROELECTRONICS CORP.

November 2006

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.

Headquarters:

Hong Kong:

USA:

No. 12, Innovation Road 1

Elan (HK) Microelectronics

Elan Information

Hsinchu Science Park

Corporation, Ltd.

Technology Group (U.S.A.)

Hsinchu, TAIWAN 30077

Flat A, 19F., World Tech Centre

1821 Saratoga Ave., Suite 250

Tel: +886 3 563-9977

95 How Ming Street, Kwun Tong

Saratoga, CA 95070

Fax: +886 3 563-9966

Kowloon, HONG KONG

U.S.A.

http://www.emc.com.tw

Tel: +852 2723-3376

Tel: +1 408 366-8225

 

Fax: +852 2723-7780

 

Fax: +1 408 366-8220

 

elanhk@emc.com.hk

 

 

 

Europe:

Shenzhen:

Shanghai:

Elan Microelectronics Corp.

Elan Microelectronics

Elan Microelectronics

(Europe)

Shenzhen, Ltd.

Shanghai, Ltd.

Siewerdtstrasse 105

SSMEC Bldg., 3F, Gaoxin S. Ave.

23/Bldg. #115 Lane 572, Bibo Road

8050 Zurich, SWITZERLAND

Shenzhen Hi-Tech Industrial Park

Zhangjiang Hi-Tech Park

Tel: +41 43 299-4060

Shenzhen, Guandong, CHINA

Shanghai, CHINA

Fax: +41 43 299-4079

Tel: +86 755 2601-0565

Tel: +86 21 5080-3866

http://www.elan-europe.com

Fax: +86 755 2601-0500

Fax: +86 21 5080-4600

 

 

 

 

Contents

1

General Description ................................................................................................

1

2

Features ...................................................................................................................

1

3

Type Definition.........................................................................................................

3

4

Application...............................................................................................................

3

5

Pin Assignment .......................................................................................................

4

6

Pin Description ........................................................................................................

6

7

Block Diagram .........................................................................................................

7

8

Function Description...............................................................................................

8

 

8.1

Program Memory ..............................................................................................

8

 

8.2

Data Memory ....................................................................................................

9

8.2.1

Special Purpose Register....................................................................................

9

8.2.2

Operation Registers ..........................................................................................

10

 

8.2.2.1

R0

(Indirect Addressing Register) ......................................................

10

 

8.2.2.2

R1

(Timer / Clock Counter) ................................................................

10

 

8.2.2.3

R2

(Program Counter & Stack) ..........................................................

10

 

8.2.2.4

R3

(Status Register) ...........................................................................

11

 

8.2.2.5

R4

(RAM Select Register)..................................................................

13

 

8.2.2.6

R5

(Port 5 I/O Register)......................................................................

13

 

8.2.2.7

R6

(Port 6 I/O Register)......................................................................

13

 

8.2.2.8

R7

(Port 7 I/O Register)......................................................................

13

 

8.2.2.9

R8

(Port 8 I/O Register)......................................................................

13

 

8.2.2.10

R9

(Port 9 I/O Register)......................................................................

13

 

8.2.2.11

RA (EEPROM Control Register..........................................................

14

 

8.2.2.12

RB (Pattern Detect Application Control Register) ..............................

14

 

8.2.2.13

RC (USB Application Status Register) ...............................................

14

 

8.2.2.12

RD (USB Application FIFO Address Register) ...................................

15

 

8.2.2.13

RE (USB Application FIFO Data Register).........................................

15

 

8.2.2.14

RF (Interrupt Status Register) ............................................................

15

8.2.3

Control Registers...............................................................................................

16

 

8.2.3.1

A (Accumulator)..................................................................................

16

 

8.2.3.2

CONT (Control Register)....................................................................

17

 

8.2.3.3

IOC5 ~IOC9 I/O (Port Direction Control Registers) ...........................

18

 

8.2.3.4

IOCA (Operation Mode Control Register) ..........................................

18

 

8.2.3.5

IOCB (Port 9 Wake-up Pin Select Register) ......................................

19

 

8.2.3.7

IOCD (Port 9 Pull High Control Register)...........................................

19

 

8.2.3.8

IOCE (Special Function Control Register)..........................................

20

 

8.2.3.9

IOCF (Interrupt Mask Register)..........................................................

21

Product Specification (V1.11) 04.20.2006

iii

Contents

 

8.3

Extra Control Register.....................................................................................

21

 

8.4

USB Application FIFOs ...................................................................................

21

 

8.5

USB Application ..............................................................................................

22

 

 

8.5.1

USB Device Controller ......................................................................................

22

 

 

8.5.2

Device Address and Endpoints .........................................................................

23

 

8.6

Reset

..............................................................................................................

23

 

 

8.6.1

Power - on Reset .................................................................................................

23

 

 

8.6.2 ................................................................................................

Watchdog Reset

23

 

 

8.6.3 .........................................................................................................

USB Reset

23

 

8.7

Saving ........................................................................................Power Mode

23

 

 

8.7.1 ............................................................................................

Power Down Mode

23

 

 

8.7.2 ...............................................................................................

Dual Clock Mode

24

 

8.8

Interrupt .........................................................................................................

24

 

8.9

Pattern ....................................................................Detect Application (PDA)

25

 

 

8.9.1 ..........................................................................................

Function Description

25

 

 

8.9.2 ................................................................................................

Control Register

26

 

 

8.9.3 ..............................................................

Sampling Rate and Debounce Length

26

 

8.10 Pulse ......................................................................Width Modulation (PWM)

28

 

 

8.10.1 ..........................................................................................

Function Description

28

 

 

8.10.2 .........................................................................................................

Duty Cycle

28

 

 

8.10.3 ................................................................................................

Control Register

28

 

8.11

Analog .................................................................-To-Digital Converter (ADC)

29

 

 

8.11.1 ..........................................................................................

Function Description

29

 

 

8.11.2 ................................................................................................

Control Register

29

 

8.12 EEPROM ........................................................................................................

31

9

Absolute Maximum ..................................................................................Ratings

32

10

DC Electrical ..................................................................................Characteristic

32

11

Application .................................................................................................Circuit

34

APPENDIX

A

Special Register Map ............................................................................................

35

B

Instruction Set .......................................................................................................

37

C

Code option Register ............................................................................................

39

Specification Revision History

 

Doc. Version

 

Revision Description

 

 

Date

 

 

 

 

 

 

 

 

 

 

1.0

 

Preliminary version

 

 

2006/04/17

 

 

 

 

 

 

 

 

 

 

1.1

 

Released version

 

 

2006/11/24

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

iv

 

Product Specification (V1.1) 11.22.2006

EM78M611E

Universal Serial Bus Series Microcontroller

1 General Description

The EM78611E is a series of 8-bit Universal Serial Bus RISC architecture microcontroller, Multi-Time Programming (MTP) microcontrollers. It is specifically designed for USB low speed device application and to support standard devices such as PS/2 keyboard. The EM78611E also supports one device address and three endpoints. With no firmware involved, these series of microcontrollers can automatically identify and decode Standard USB Command to Endpoint Zero.

The EM78611E has eight-level stacks and six interrupt sources. It has 144 bytes of general purpose SRAM, 6K bytes of program ROM, and an embedded 4 bytes of E2PROM.

These series of ICs have many powerful features, including:

Dual clock mode which allows the device to run on low power saving frequency.

Pattern Detect Application function which is used in a serial transmission to count waveform width.

Pause Width Modulation that can generate a duty-cycle-programmable signal.

24-channel AD converter with up to 10 bits resolution.

2Features

Operating voltage: 4.4V ~ 5.5V

Low-cost solution for low-speed USB devices, such as keyboard, joystick, and Gamepad

USB Specification Compliance

Universal Serial Bus Specification Version 1.1

USB Device Class Definition for Human Interface Device (HID), Firmware Specification Version 1.1

Supports one device address and three endpoints

USB Application

P75 (D-) has an internal pull-high resistor (1.5 KΩ)

USB protocol handling

USB device state handling

Identifying and decoding of Standard USB commands to EndPoint Zero

PS/2 Application Support

Built-in PS/2 port interface for keyboard and mouse

Product Specification (V1.11) 04.20.2007

1

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

Built-in 8-bit RISC MCU

8-level stacks for subroutine nesting and interrupt

8-bit real time clock/counter (TCC) with overflow interrupt

Six available interrupts

Built-in RC oscillator free running for Watchdog Timer and Dual clock mode

Two independent programmable prescalers for WDT and TCC

Two power saving methods:

1.Power-down mode (Sleep mode)

2.Dual clock mode

Two clocks per instruction cycle

Multi-time programmable

I/O Ports

Up to 11 LED sink pins

Each GPIO pin of Ports 5, 6, 8, P90~P93, P95 and P96; has an internal programmable pull-high resistor (25KΩ)

Each GPIO pin of Port 6, P74 ~ P77 and Port 9 can wake up the MCU from sleep mode by input state change

Internal Memory

Built-in 6K×13 bits Program ROM

Built-in 144 bytes general purpose registers (SRAM)

Built-in USB Application FIFOs

Built-in 4 bytes EEPROM with a minimum of 4K write/erase cycles

Operation Frequency

Normal Mode: MCU runs with an external oscillator frequency of 6 MHz or 12 MHz

Dual Clock Mode: MCU runs at a frequency of 256kHz (or 32 kHz, 4kHz, 500Hz), emitted by the internal oscillator with the external ceramic resonator turned off to save power.

Built-in Pattern Detect Application for serial signal transmission

Built-in Pulse Width Modulation (PWM)

Up to 2 channels PWM function on P92 (PWM1) and P93 (PWM2)

Up to 8-bit resolution PWM output

Up to 8 selections of duty cycles

2

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

Built-in 24-Channel Analog-to-Digital Converter (ADC)

Up to 24 channels

Up to 10 bits resolution

4 ADC conversion rates: 256K/128K/64K/32K

Built-in 3.3V Voltage Regulator

For MCU power supply

Pull-up source for the external USB resistor on D-pin

Package Type:

40-pin PDIP (600mil) (EM78M611EXAP)

44-pin QFP (10×10mm, footprint=3.2mm) (EM78M611EXAQ)

20-pin PDIP (300mil)/SOP (300mil) (EM78M611EXBP/BM)

20-pin SSOP (209mil) (EM78M611EXDM)

24-pin PDIP (600mil)/SOP (300mil) (EM78M611EXCP/CM)

24-pin SSOP (150mil) (EM78M611EXEM)

3 Type Definition

The EM78M611E series has six types of packaging. Each type is divided into two modules, namely; original, and with both E2PROM and A/D Converter. Hence, packaging configuration for each series is defined. Table 3.1 below summarizes which series of the EM78M611E belong to which module.

Table 3-1 Packaging Summary of EM78M611E Series IC

Original

With Both

 

 

EM78M611EA**

EM78M611ED**

 

 

4Application

USB Keyboard only

USB and PS/2 both compatible with Keyboard

USB Keyboard with USB Mouse

USB Joystick

Product Specification (V1.11) 04.20.2007

3

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

5 Pin Assignment

 

 

 

 

VSS

 

 

1

 

 

 

 

 

 

 

 

 

 

40

 

 

OSCO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

V3.3

 

 

2

 

 

 

 

 

 

 

 

 

 

39

 

 

OSCI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D+/CLK.P74

 

 

3

 

 

 

 

 

 

 

 

 

 

38

 

 

VDD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D-/DATA/P75

 

 

4

 

 

 

 

 

 

 

 

 

 

37

 

 

P70

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P90

 

 

5

 

 

 

 

 

 

 

 

 

 

36

 

 

P71

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P91

 

 

6

 

 

 

 

 

 

 

 

 

 

35

 

 

P72

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P92/SE1/PWM1

 

 

7

 

 

 

 

 

 

 

 

 

 

34

 

 

P67/AD23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P93/SE2/PWM2

 

 

8

 

 

 

 

 

 

 

 

 

 

33

 

 

P66/AD22

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P94/VPP

 

 

9

 

 

 

 

 

 

 

 

 

 

32

 

 

P65/AD21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VNN

 

 

10

 

 

 

 

 

 

 

 

31

 

 

P64/AD20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P50/AD0

 

 

11

 

 

 

 

 

 

 

 

30

 

 

P63/AD19

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P51/AD1

 

 

12

 

 

 

 

 

 

 

 

29

 

 

P62/AD18

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P52/AD2

 

 

13

 

 

 

 

 

 

 

 

28

 

 

P61/AD17

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P53/AD3

 

 

14

 

 

 

 

 

 

 

 

27

 

 

P60/AD16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P54/AD4

 

 

15

 

 

 

 

 

 

 

 

26

 

 

P87/AD15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P55/AD5

 

 

16

 

 

 

 

 

 

 

 

25

 

 

P86/AD14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P56/AD6

 

 

17

 

 

 

 

 

 

 

 

24

 

 

P85/AD13

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P57/AD7

 

 

18

 

 

 

 

 

 

 

 

23

 

 

P84/AD12

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P80/AD8

 

 

19

 

 

 

 

 

 

 

 

22

 

 

P83/AD11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P81/AD9

 

 

20

 

 

 

 

 

 

 

 

21

 

 

P82/AD10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 3-1 EM78M611EXAP (40-Pin DIP)

 

 

 

 

P90

 

D-/DATA/P75

 

D+/CLK/P74

 

V3.3

VSS

 

OSCO

 

OSCI

 

VDD

 

P76

P77

 

P70

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

44

43

42

 

41

40

39

38

37

36

 

35

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P91

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

33

 

P71

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P92/SE1/PWM1

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

32

 

P72

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P93/SE2/PWM2

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

 

P67/AD23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P94/VPP

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

30

 

P66/AD22

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P95

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

29

 

P65/AD21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P96

 

6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

28

 

P64/AD20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VNN

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

27

 

P63/AD19

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P50/AD0

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26

 

P62/AD18

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P51/AD1

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

25

 

P61/AD17

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P52/AD2

 

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

24

 

P60/AD16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P53/AD3

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

P87/AD15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

13

14

 

15

16

17

18

19

20

 

21

22

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P54/AD4

P55/AD5

P56/AD6

P57/AD7

P80/AD8

P81/AD9

P82/AD10

P83/AD11

P84/AD12

P85/AD13

P86/AD14

 

 

 

Fig. 3-2 EM78M611EXAQ (44-Pin QFP)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

P56/AD6

 

1

20

 

P55/AD5

 

 

P57/AD7

 

2

19

 

P54/AD4

 

 

P60/AD16

 

3

18

 

VNN

 

 

P61/AD17

 

4

17

 

P94/VPP

 

 

P62/AD18

 

5

16

 

P93/SE2/PWM2

 

 

P77

 

6

15

 

P92/SE1/PWM1

 

 

P76

 

7

14

 

D- / DATA /P75

 

 

VDD

 

8

13

 

D+ / CLK /P74

 

 

OSCI

 

9

12

 

V3.3

 

 

OSCO

 

10

11

 

VSS

 

 

 

 

 

 

 

 

Fig. 3-3 EM78M611EXBP/BM/DM (20-Pin DIP/SOP/SSOP)

OSCO

 

1

24

 

OSCI

 

 

VSS

 

2

23

 

VDD

 

 

V3.3

 

3

22

 

P76

 

 

D+ / CLK / P74

 

4

21

 

P77

 

 

D- / DATA /P75

 

5

20

 

P66/AD22

 

 

P92/SE1/PWM1

 

6

19

 

P65/AD21

 

 

P93/SE2/PWM2

 

7

18

 

P64/AD20

 

 

P94/VPP

 

8

17

 

P63/AD19

 

 

VNN

 

9

16

 

P62/AD18

 

 

P54/AD4

 

10

15

 

P61/AD17

 

 

P55/AD5

 

11

14

 

P60/AD16

 

 

P56/AD6

 

12

13

 

P57/AD7

 

 

 

 

 

 

 

 

Fig. 3-4 EM78M611EXCP/CM/EM (24-Pin DIP/SOP/SSOP)

Product Specification (V1.11) 04.20.2007

5

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

6

Pin Description

 

 

Symbol

I/O

Function

 

 

 

 

 

 

 

 

 

P50 ~ P57

I/O

General 8-bit bidirectional input/output port. All pins on this port can be

 

 

 

internally pulled-high by software control.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P60 ~ P67

I/O

General 8-bit bidirectional input/output port. All pins on this port can be

 

 

 

internally pulled-high by software control.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P70 ~ P72

 

LED sink pins

 

 

 

I/O

P76 ~ P77 will have an internally pulled-high resistor when the EM78M611E is

 

 

 

P76 ~ P77

 

 

 

 

running in PS/2 mode.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P80 ~ P87

I/O

General 8-bit bidirectional input/output port. All pins on this port can be

 

 

 

internally pulled-high by software control.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P90 ~ P93

I/O

General 6-bit bidirectional input/output port. All pins on this port can be

 

 

 

P95 ~ P96

internally pulled-high by software control or LED sink pins.

 

 

 

 

 

 

 

 

 

 

 

 

 

P94 / Vpp

I

Input only. MTP program pin.

 

 

 

 

 

 

 

 

 

PWM1

O

PWM output pins.

 

 

 

PWM2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USB plus data line interface or CLK for PS/2 keyboard.

 

 

D+/CLK/P74

I/O

When the EM78M611E is running in PS/2 mode, this pin will have an internal

 

 

 

 

 

pulled-high resistor (2.2KΩ), with VDD=5.0V.

 

 

 

 

 

 

 

 

 

 

 

USB minus data line interface or DATA for PS/2 keyboard.

 

 

 

 

 

When the EM78M611E is running in PS/2 mode, this pin will have an internal

 

 

D-/DATA/P75

I/O

pulled-high resistor (2.2KΩ), with V3.3=3.3V.

 

 

 

 

 

When the EM78M611E is running in USB mode, this pin will have an internal

 

 

 

 

 

pulled-high resistor (1.5KΩ), with VDD=3.3V.

 

 

 

 

 

 

 

 

 

OSCI

I

6MHz / 12MHz ceramic resonator input.

 

 

 

 

 

 

 

 

 

OSCO

O

Return path for 6MHz / 12MHz ceramic resonator.

 

 

 

 

 

 

 

 

 

VNN

MTP program pin. Used in programming the on-chip ROM. During normal

 

 

 

operation, this pin is connected to Ground.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

V3.3

PWR

3.3V regulator output

 

 

 

 

 

 

 

 

 

VDD

PWR

Power supply pin

 

 

 

 

 

 

 

 

 

GND

PWR

Ground pin

 

 

 

 

 

 

 

6

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

7 Block Diagram

 

OSCI

OSCO

VDD

V3.3

D+

D-

R2

Stack 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(PC)

Stack 2

 

 

 

 

 

 

 

 

Stack 3

Built-in

Oscillator

3.3V

Transceiver

ROM

Stack 4

Timing

Regulator

Stack 5

RC

 

 

Control

 

 

 

 

 

Stack 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Stack 7

 

 

 

 

 

USB

 

 

Stack 8

 

 

 

 

 

Device

Instruction

R3

 

 

 

 

 

Controller

Register

 

 

 

 

 

(Status)

 

Prescaler

Prescaler

 

 

 

 

 

 

 

 

 

 

 

 

Reset,

WDT

 

TCC

 

RAM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt

 

 

 

 

 

ALU

 

Sleep &

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-up

 

 

 

 

 

 

 

 

 

 

 

Control

 

Instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

Control

WDT

 

R1

 

 

 

 

 

 

 

 

 

Decoder

 

 

 

 

 

 

 

Timer

 

(TCC)

 

R4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(RSR)

 

 

 

 

 

 

 

 

ACC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DATA & CONTROL BUS

 

P74/D+/Clk

 

P90

 

P80

 

P60

 

P50

 

 

P91

 

P81

 

P61

 

P51

 

P75/D-/Data

 

 

 

 

 

I/O

P92

I/O

P82

I/O

P62

I/O

P52

I/O

P70

P93

P83

P63

P53

Port 7

P72

Port 9

P95

Port 8

P85

Port 6

P65

Port 5

P55

 

P71

 

P94

 

P84

 

P64

 

P54

 

P76

 

P96

 

P86

 

P66

 

P56

 

 

P97

 

P87

 

P67

 

P57

 

P77

 

 

 

 

 

 

 

 

 

 

 

 

 

Product Specification (V1.11) 04.20.2007

7

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

8 Function Description

The EM78M611E memory is organized into three spaces, namely; User Program memory in 6K×13 bits ROM space, Data Memory in 144 bytes SRAM space, EEPROM space and USB Application FIFOs for EndPoint0, EndPoint1, and EndPoint2. Furthermore, several registers are used for special purposes.

8.1 Program Memory

The program space of the EM78M611E is 6K words, and is divided into six pages. Each page is 1K words long. After a reset, the 13-bit Program Counter (PC) points to location zero of the program space.

The Interrupt Vector is at 0x0001 and accommodates TCC interrupt, RF1 (SE1) timing counter interrupt, RF2 (SE2) timing counter interrupt, P74~P77 State Changed interrupt, EndPoint0 interrupt, USB Suspend interrupt, USB Reset interrupt, and USB Host Resume interrupt.

After an interrupt, the MCU will fetch the next instruction from the corresponding address as illustrated in the following diagram.

 

After Reset

 

Address

 

 

PC

 

0X0000

Reset Vector

 

 

 

 

 

 

0X0001

 

 

 

 

Interrupt Vector

 

 

 

 

 

 

 

 

0X03FF

Page 0

 

 

 

 

0X0400

Page 1

 

 

 

 

0X07FF

 

 

 

 

 

 

 

 

 

0X0800

Page 2

 

 

 

 

0X0BFF

 

 

 

 

 

 

 

 

 

0X0C00

Page 3

 

 

 

 

0X0FFF

 

 

 

 

 

 

 

 

 

0X1000

Page 4

 

 

 

 

0X13FF

 

 

 

 

 

 

 

 

 

0X1400

Page 5

 

 

 

 

0X17FF

 

 

 

 

 

 

 

 

 

 

 

 

8

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

8.2 Data Memory

The Data Memory has 144 bytes SRAM space. It has also an on-chip USB Application FIFO space for USB Application. Figure 8-1 (next page) shows the organization of the Data Memory Space.

8.2.1 Special Purpose Register

When the microcontroller executes instructions, specific registers are implemented to ensure proper operation of essential functions such as Status Register which records the calculation status, Port I/O Control Registers which control the I/O pins’ direction, etc. Lots of other special purpose registers are provided for various functions.

Note that Special Control Registers can only be read or written to by two instructions: IOR and IOW.

 

 

 

 

 

 

 

 

 

3234

 

 

 

 

 

 

 

 

 

! " #

'5637 635#

 

 

 

 

 

 

 

 

-.* *

 

 

$%

 

 

 

 

$%

 

 

 

-.* *

 

 

$%

 

 

 

-.*

 

 

$% &

 

 

 

-.* 0

 

 

$%

 

 

 

-.*

' ) ) =B ) 0A 635

 

' ( (

 

 

 

-.*

 

) )

 

(: ? @$<:

-.0 *

) 0A C1 =

 

* +,

 

-.0

* ) 0A DE =

 

' /- .0 )

 

(: ?$

 

-.*

' ) ! 63

 

1 /- .0

>

3? ?&%6 #

 

-.*

1 FGDHA =I' (

 

/-

 

( A ! "/#

 

-.0

 

!

 

 

 

 

 

 

 

( A # " #

 

 

 

 

1 6x8 C o m m on

 

 

 

 

>

R eg is ter

! >

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

/

8 9

: 4

8 9

 

: 4 8 ,

 

: 4 8 9

: 4

>

 

 

63; <# 6 %=

: 463; <# 6 %=

 

: 4 ! 6&; <# 6 %=

 

: 4 63; <# 6 %= = 3: 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 8-1 Data RAM Organization of EM78M611E

Product Specification (V1.11) 04.20.2007

9

(This specification is subject to change without further notice)

EM78M611E

Universal Serial Bus Series Microcontroller

8.2.2 Operation Registers

The following subsections describe each of the Operation Registers of the Special Purpose Registers. The Operation Registers are arranged according to the order of the registers’ address. Note that some registers are read only, while others are both readable and writable.

8.2.2.1R0 (Indirect Addressing Register) Default Value: (0B_0000_0000)

R0 is not a physically implemented register. Its major function is as an indirect addressing pointer. Any instruction using R0 as a pointer actually accesses data pointed by the RAM Select Register (R4).

8.2.2.2R1 (Timer / Clock Counter) Default Value: (0B_0000_0000)

The TCC register is an 8-bit timer or counter. It is readable and writable as any other register. The Timer module will be incremented after execution of every instruction cycles. User can work around this by writing an adjusted value. The Timer interrupt is generated when the R1 register overflows from FFh to 00h. This overflow sets bit TCIF (RF[0]). The interrupt can be masked by clearing bit TCIE (IOCF[0]). After Power-on reset and Watchdog reset, the initial value of this register is 0x00.

8.2.2.3R2 (Program Counter & Stack) Default Value: (0B_0000_0000)

The EM78M611E Program Counter is a 13-bit register that allows accessing of the 6k words of the Program Memory with 8 level stacks. The eight LSB bits, A0~A7, are located at R2, while the three MSB bits, A12~A10, are located at R3. The Program Counter is cleared after Power-on reset or Watchdog reset. The first instruction that is executed after a reset is located at address 00h.

10

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

+ 30 hidden pages