Page 2 - Trademark Acknowledgments:; IBM is a registered trademark and PS/2 is a trademark of IBM.; Copyright; 006 by ELAN Microelectronics Corporation; Printed in Taiwan
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 Taiwa...
Page 4 - APPENDIX; Revision Description
Contents iv •••• Product Specification (V1.1) 11.22.2006 8.3 Extra Control Register..................................................................................... 21 8.4 USB Application FIFOs ................................................................................... 21 8.5 USB Applica...
Page 5 - Universal Serial Bus Series Microcontroller; Product Specification; General Description
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 1 (This specification is subject to change without further notice) 1 General Description The EM78611E is a series of 8-bit Universal Serial Bus RISC architecture microcontroller, Multi-Time Programmin...
Page 7 - Type Definition; Original; Application
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 3 (This specification is subject to change without further notice) Built-in 24-Channel Analog-to-Digital Converter (ADC) Up to 24 channels Up to 10 bits resolution 4 ADC conversion rates: 256K/128K/64...
Page 8 - Pin Assignment
EM78M611E Universal Serial Bus Series Microcontroller 4 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 5 Pin Assignment 12345678910 1112 29 30 35 36 37 38 39 40 VSS V3.3 D+/CLK.P74 D-/DATA/P75 P90P91 P92/SE1/PWM1P93/SE2/PWM2 P94/VPP VNN ...
Page 10 - Pin Description; Symbol
EM78M611E Universal Serial Bus Series Microcontroller 6 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 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 intern...
Page 11 - Block Diagram
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 7 (This specification is subject to change without further notice) 7 Block Diagram Oscillator Timing Control Built-in RC Prescaler R1 (TCC) WDT Timer DATA & CONTROL BUS OSCI OSCO R2 (PC) Stack 1 A...
Page 12 - Function Description; 3 bits ROM space, Data Memory in 144 bytes SRAM space, EEPROM
EM78M611E Universal Serial Bus Series Microcontroller 8 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 8 Function Description The EM78M611E memory is organized into three spaces, namely; User Program memory in 6K × 13 bits ROM space, Dat...
Page 15 - = No carry-out from the result’s Most Significant bit; = A carry-out from the 4th low-order bit of the result occurred; NOTE
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 11 (This specification is subject to change without further notice) A12 A11 A10 A9 A8 A7~A0 0000 Page 0 03FF0400 Page 1 07FF0800 Page 2 0BFF1000 Page 0 13FF1400 Page 0 17FF Stack 1Stack 2Stack 3Stack ...
Page 16 - : Watchdog timer overflow occurs; Condition
EM78M611E Universal Serial Bus Series Microcontroller 12 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) R3 [2] Zero flag. It will be set to 1 when the result of an arithmetic or logic operation is zero. R3 [3] Power down flag. It will be...
Page 17 - R4 (RAM select register) contains the address of the registers.
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 13 (This specification is subject to change without further notice) 8.2.2.5 R4 (RAM Select Register) Default Value: (0B_00XX_XXXX) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 BK1 BK0 Ad5 Ad4 Ad3 A...
Page 18 - When this bit is equal to “1,” it indicates that the UDC is writing
EM78M611E Universal Serial Bus Series Microcontroller 14 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 8.2.2.11 RA (EEPROM Control Register) Default Value: (0B_1111_1111) RA is a command register for EEPROM control. For detailed usage o...
Page 19 - pointers of USB Application FIFO.
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 15 (This specification is subject to change without further notice) 8.2.2.12 RD (USB Application FIFO Address Register) Default Value: (0B_0000_0000) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 ...
Page 20 - USB Suspend Signal on USB bus. This bit is cleared by the firmware.; detect application.
EM78M611E Universal Serial Bus Series Microcontroller 16 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) RF [2] USB Suspend interrupt flag. It will be set when the EM78M611E finds the USB Suspend Signal on USB bus. This bit is cleared by ...
Page 21 - Watchdog Timer prescaler.; TCC Rate; : Disable the Interrupt function
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 17 (This specification is subject to change without further notice) 8.2.3.2 CONT (Control Register) Default Value: (0B_0011_1111) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 LED INT TSR2 TSR1 TSR0...
Page 22 - Operation Mode; : Disable PDA function
EM78M611E Universal Serial Bus Series Microcontroller 18 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 8.2.3.3 IOC5 ~IOC9 I/O (Port Direction Control Registers) Default Value: (0B_1111_1111) These are I/O port (Port 5 ~ Port 7) directio...
Page 23 - Frequency; IOCC (Port 9 LED Sink Capacity Control Register)
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 19 (This specification is subject to change without further notice) IOCA [6, 7] Select the operation frequency in Dual Clock Mode. Four frequencies are available and can be chosen as Dual Clock Mode i...
Page 24 - : Selects to run on slow frequency
EM78M611E Universal Serial Bus Series Microcontroller 20 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 8.2.3.8 IOCE (Special Function Control Register) Default Value: (0B_1101_0111) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 /Dual ...
Page 25 - Default Value; : Disable Interrupt; Extra Control Register
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 21 (This specification is subject to change without further notice) 8.2.3.9 IOCF (Interrupt Mask Register) Default Value J (0B_0000_0000) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 USB Host Resum...
Page 26 - USB Application
EM78M611E Universal Serial Bus Series Microcontroller 22 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) Counter Pointer Data Byte Pointer of EP0 EP0's FIFO 0 1 2 3 4 5 6 7 Bi-directional Uni-directional Data Byte Pointer of EP1 EP1's FIF...
Page 27 - Saving Power Mode
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 23 (This specification is subject to change without further notice) 8.5.2 Device Address and Endpoints EM78M611E supports one device address and three endpoints, EP0 for control endpoint, EP1 and EP2 ...
Page 28 - IOW PORT6; The interrupt condition could be one of the following:
EM78M611E Universal Serial Bus Series Microcontroller 24 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) : // Set the Port 6 to input port MOV A, @0xFF IOW PORT6 // Read the state of Port 6 MOV PORT6, PORT6 // Clear the RUN bit IOR 0xE AN...
Page 29 - R13 register value.
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 25 (This specification is subject to change without further notice) b) Signal from P.92 changes to high, and Pattern Counter value bigger than R10 register value. c) P.92 remains high, and the Pattern...
Page 30 - Sampling Rate and Debounce Length
EM78M611E Universal Serial Bus Series Microcontroller 26 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) Pattern Detect Application (PDA) can calculate the length of one pattern and interrupt the MCU while the serial signal is transiting ...
Page 31 - Debounce Time; shown below; Sampling Rate
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 27 (This specification is subject to change without further notice) high state, then the “high pattern counter“ will increase; otherwise the “low pattern counter” increases. As long as the signal stat...
Page 32 - The PWM Period is defined as
EM78M611E Universal Serial Bus Series Microcontroller 28 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) After the PDA function is enabled (by setting IOCA[2] to 1), user can write a default value to the High Pattern counter register and ...
Page 33 - Vref
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 29 (This specification is subject to change without further notice) ERE [0~2] PWM Clock Prescaler PS2 PS1 PS0 Clock (Hz) Period/255 (s) 0 0 0 Fosc/3 0.5µ 0 0 1 Fosc/6 1µ 0 1 0 Fosc/12 2µ 0 1 1 Fosc/24...
Page 34 - Channel; Data Register, this bit will be set by hardware.; bits AD LSB Digital Data
EM78M611E Universal Serial Bus Series Microcontroller 30 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) ERA [0~4]: AD Channel Selector AD4 AD3 AD2 AD1 AD0 Channel I/O Port 0 0 0 0 0 0 P50 0 0 0 0 1 1 P51 0 0 0 1 0 2 P52 0 0 0 1 1 3 P53 0...
Page 35 - bits AD MSB Digital Data.; Command Value
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 31 (This specification is subject to change without further notice) ERC (AD MSB Data Register) Default Value: (0B_0000_0000) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 9 Bit 8 Bit 7 Bit 6 Bit...
Page 36 - Absolute Maximum Ratings; MCU Operation
EM78M611E Universal Serial Bus Series Microcontroller 32 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 9 Absolute Maximum Ratings Symbol Min Max Unit Temperature under bias 0 70 ºC Storage temperature -65 150 ºC Input voltage -0.5 6.0 V...
Page 38 - 1 Application Circuit
EM78M611E Universal Serial Bus Series Microcontroller 34 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) 11 Application Circuit NOTE A. BC1 , BC2 : load Capacitor B. C1 (bypass capacitor) : that placed adjacent to V DD pin , to minimize n...
Page 39 - Operation Registers; Address
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 35 (This specification is subject to change without further notice) APPENDIX A Special Register Map Operation Registers Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit1 Bit 0 Default Value 0x00 R...
Page 40 - Control Registers
EM78M611E Universal Serial Bus Series Microcontroller 36 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) Control Registers Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Default Value CONT S7 INT TSR2 SR1 TSR0 PSR2 PSR1 PSR0...
Page 41 - B Instruction Set; Under these cases, the execution takes two instruction cycles.; Binary Instruction
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 37 (This specification is subject to change without further notice) B Instruction Set Each instruction in the instruction set is a 13-bit word divided into an OP code and one or more operands. All ins...
Page 42 - This instruction is not recommended for RE, RF operation.
EM78M611E Universal Serial Bus Series Microcontroller 38 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) Binary Instruction Hex Mnemonic Operation Status Affected 0 0001 10rr rrrr 01rr DECA R R-1 → A Z 0 0001 11rr rrrr 01rr DEC R R-1 → R ...
Page 43 - C Code Option Register; Bit; User ID
EM78M611E Universal Serial Bus Series Microcontroller Product Specification (V1.11) 04.20.2007 •••• 39 (This specification is subject to change without further notice) C Code Option Register EM78M611E has two Code option registers, which are not part of the normal program memory. The option bits can...
Page 44 - : Connect Resistor Switch
EM78M611E Universal Serial Bus Series Microcontroller 40 •••• Product Specification (V1.1) 11.22.2006 (This specification is subject to change without further notice) Bit 4 (/R.S.) : D- Pull-up Resistance 0 : Connect Resistor Switch 1 : Disconnect Resistor Switch Bit 5 (/AD_Hold) : Halts the MCU dur...