EMC EM78612 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of EMC EM78612, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of EMC EM78612 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of EMC EM78612. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of EMC EM78612 should contain:
- informations concerning technical data of EMC EM78612
- name of the manufacturer and a year of construction of the EMC EM78612 item
- rules of operation, control and maintenance of the EMC EM78612 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of EMC EM78612 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of EMC EM78612, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the EMC service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of EMC EM78612.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the EMC EM78612 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    EM78612                Produc t Specif ication D OC . V ERSION 1.0 EL A N MICROELECTRONICS CORP. March 2006[...]

  • Page 2

    T rademark Acknow ledgments : IBM is a r egister ed trad em a rk and PS/2 is a tradem ark of IBM. Wi ndow s is a tradem ark of Micr osoft C orporation. ELAN and ELAN logo are trad emarks of ELAN Micr oelectr onics Co rporation . Copyright © 2006 by ELAN Microelectr onics Corporation All Rights Reserved Printed in T aiwan The contents of i n t his [...]

  • Page 3

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 1 (This specification is subje ct to ch ang e w ithout further notice)         1 Gener al Desc ript ion························[...]

  • Page 4

    EM78612 Universal Se rial Bus Microcontroller 2 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 8 Absolu te Maxi mum Rati ngs ················································ ···················· 27 9 DC Ele [...]

  • Page 5

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 3 (This specification is subje ct to ch ang e w ithout further notice) Specification Revision History Doc. Version Revision Description Date 1.0 Initial V ersio n 2006/03/ 22[...]

  • Page 6

    EM78612 Universal Se rial Bus Microcontroller 4 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 1 Gener al Descrip tion The EM78 612 is a series of U niversal Seria l B us 8-bit RI SC m icrocontrollers. It is specificall y designed for USB low spe ed device applicati on and t[...]

  • Page 7

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 5 (This specification is subje ct to ch ang e w ithout further notice) • • • • Up to 12 general purposes I/O pi ns grouped int o two ports (Port 6 and 7). • • • • Up to 2 LED sink pins • • • • Each GP IO p in of Ports 6 &am[...]

  • Page 8

    EM78612 Universal Se rial Bus Microcontroller 6 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 4 Pin Configurati on EM78612A P61 1 16 P60 P62 2 15 P64 P63 3 14 P65 P70 4 13 P71 P72 5 12 D+/P50 VSS 6 11 D-/P51 V3.3V 7 10 V DD OSCI 8 9 OSCO EM78612B P60 1 18 P64 P61 2 17 P65 P[...]

  • Page 9

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 7 (This specification is subje ct to ch ang e w ithout further notice) 5 Pin Description S y mbol I/O Function OSCI I 6MHz / 12MHz ceramic re sonato r i nput . OSCO I/O Return path for 6 MHz / 12MHz cerami c resonator. V 3.3V O 3.3V DC voltage o u[...]

  • Page 10

    EM78612 Universal Se rial Bus Microcontroller 8 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 6 Function Block Diagram Oscillator Timing Control Built-in RC Prescaler R1 (TCC) WDT Timer DAT A & CONTROL BUS OSCI OSCO R2 (PC) Stack1 AL U A CC R3 (Status) ROM Instruction r[...]

  • Page 11

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 9 (This specification is subje ct to ch ang e w ithout further notice) Af t er reset Address 0x0000 Reset V ector 0x0001 Interrupt V ector 0x000A USB Application Interrupt V ector 0x03FF Page 0 0x0400 0x07FF Page 1 7.2 Dat a Memory The Data Memor [...]

  • Page 12

    EM78612 Universal Se rial Bus Microcontroller 10 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) R0 (I nd i rec t io n Add r es s in g Re g is te r) R1 (T im e Cl o ck / Co u n te r R e gi st er ) R2 (P r og r am C o u nt er ) & S ta c k R3 (S ta tu s Re g is ter ) R4 (R [...]

  • Page 13

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 11 (This specification is subje ct to ch ang e w ithout further notice) R2 (Prog ram Counter & Stack) Defaul t V alue: (0B_0 000_ 0000) The EM78612 Program Counter is an 1 1-bit lon g register that allo ws access t o 2K bytes of Program Me mor[...]

  • Page 14

    EM78612 Universal Se rial Bus Microcontroller 12 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) R3 [2] Zero f lag. It will be set to 1 when the res ult of an ari thm etic or logic o peratio n is zero. R3 [3] Power do wn flag. It will be set to 1 during Power- on p hase or b [...]

  • Page 15

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 13 (This specification is subje ct to ch ang e w ithout further notice) R4 ( R AM Select Registe r) Default V alue: (0B _0xxx_x xxx ) 76543210 - BK0 Ad5 Ad4 Ad3 Ad2 Ad1 Ad0 R4 (RA M select reg ister) contains the addr ess of the re gisters. R4 [0~[...]

  • Page 16

    EM78612 Universal Se rial Bus Microcontroller 14 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 0: Enab le the wak e-up f unction R9 (Port 7 Wake-up Pi n S electio n Registe r) Defau lt V al ue: ( 0B_1 1 1 1 _1 1 1 1) 76543210 - - - - /Wu73 /Wu72 /Wu71 /W u70 R9 [0 ~ 3] Sel [...]

  • Page 17

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 15 (This specification is subje ct to ch ang e w ithout further notice) Therefore, before writing data int o the FIFO, the firmware will first check this bit to preve nt over writing th e existing data. These two bits can only be set by the firm w[...]

  • Page 18

    EM78612 Universal Se rial Bus Microcontroller 16 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) RF (Interrupt Status Regi ster ) Defaul t V alue: (0B_0000_ 0000) 7 6 5 4 3 2 1 0 - -- Port 5 State Change_IF USB Host Resume_IF USB Reset_IF USB Suspend_IF EP0_IF TCC_IF RF [0] T[...]

  • Page 19

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 17 (This specification is subje ct to ch ang e w ithout further notice) CONT (Control Register) 7 6 5 4 3 2 1 0 R W _E /INT TSR2 TSR1 TSR0 PSR2 PSR 1 PSR0 NOTE The CONT register can be read by the instruction "CO NTR" a nd written by the[...]

  • Page 20

    EM78612 Universal Se rial Bus Microcontroller 18 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) IOC5 ( Dat a Line I/O Control Registe r) Default V al ue: (0B_000 0_001 1) 76543 210 0 0 0 0 0 0 P51 P50 IOC5 [2~ 7] Undef ined re gisters. The d efault va lue is 0. IOC6 (Port 6 [...]

  • Page 21

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 19 (This specification is subje ct to ch ang e w ithout further notice) 1 0 PS/2 M ode 1 1 USB Test Mode IOCA [ 2~5] Undefined registers. The def ault value is 0. IOCA [ 6,7] Select the op eration frequency in D ual Clock Mode. Four f requencies a[...]

  • Page 22

    EM78612 Universal Se rial Bus Microcontroller 20 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) IOCD (Port 7 Pull-High Control Registe r) Defau lt V al ue: (0B_0000 _0000) 7 6 5 4 3 2 1 0 - - - - PH7 3 PH72 PH71 PH70 IOCD [0 ~3] Select whether the 132K O hm pull-high resisto[...]

  • Page 23

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 21 (This specification is subje ct to ch ang e w ithout further notice) IOCF (Interrupt Mask Reg ister) Def ault V alue: (0B _0 0 00_0 000) 7 6 5 4 3 2 1 0 - - Port 5 State Change_IE USB Host Resume_1E USB Reset_IE USB Suspend_IE EP0_IE TCC_IE IOC[...]

  • Page 24

    EM78612 Universal Se rial Bus Microcontroller 22 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 7.3 I/O Port s The EM7 8612 has u p to t welve Gen eral P urposes I /O p ins, w hich ar e classifies into two port group s; Port 6 and Port 7. Each pin has an interna l resistor t[...]

  • Page 25

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 23 (This specification is subje ct to ch ang e w ithout further notice) Any of the Indiv idual pins of Port 6 and Port 7 can be defined to wakeup the MCU by setting th eir respectiv e b its, R8 and R9. 7.4 USB A p plication EM78612 is specia lly d[...]

  • Page 26

    EM78612 Universal Se rial Bus Microcontroller 24 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 7.4.2 USB Device Con troller The USB De vice Co ntroll er (UDC) built-in in the E M78612 can interpret the USB S tandard Com mand and response autom atically without invol ving fi[...]

  • Page 27

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 25 (This specification is subje ct to ch ang e w ithout further notice) C. S pecia l registers and S pecial Contro l reg isters are all set to initi al value. The MCU also has a lo w voltage detector that detects low output power condition. W hene[...]

  • Page 28

    EM78612 Universal Se rial Bus Microcontroller 26 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) : : 7.6.2 Dual Clock Mode The EM 78612 has on e internal oscill ator for power sav ing applicatio n. Clear ing t he Bit IOCE [7] will enable the l ow f requenc y oscillator . At t[...]

  • Page 29

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 27 (This specification is subje ct to ch ang e w ithout further notice) status f lags must be cleared by firm ware before leav ing the interrupt service routine and ena bling in terrupt. The glo bal interrupt is enabled b y the ENI (RETI) instruc [...]

  • Page 30

    EM78612 Universal Se rial Bus Microcontroller 28 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 9 DC Electrica l Characteristic (T = 25 , VDD = 5 V , VSS = 0V) S y mble Parameter Condition Min Type Max Unit 3.3V Regulator V Rag Outp ut voltage of 3.3v Regulator V DD = 5V 3.0[...]

  • Page 31

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 29 (This specification is subje ct to ch ang e w ithout further notice) C IN Transceiver Capacita nce - - 20 pF V RG Output Voltage of Internal Regulator 3.0 - 3.6 V R PH Pull-high resi ster (D-) 1.5 K Programmable Large Current I Sink1 P70, P71 O[...]

  • Page 32

    EM78612 Universal Se rial Bus Microcontroller 30 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) 10 A p plication Cricuit P51 J1 USB c onnect or 1 2 3 4 C5 30pF USB Ap plication Note3. IF IOCA = PS/2 mode, MCU CLK and DATA pin internal pull-high to VDD with 4.7k resistor. Not[...]

  • Page 33

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 31 (This specification is subje ct to ch ang e w ithout further notice) A ppe ndix A . S pecial Regi ster Map Operation Registers address n ame Bit7 Bit6 Bit5 Bit4 Bit3 B it2 Bit1 Bit0 Default value 0x00 R0 Indirect Add res sing Reg ister 0B_0000_[...]

  • Page 34

    EM78612 Universal Se rial Bus Microcontroller 32 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) B. Instru ction Set Each instruct ion in the instr uction set is a 1 1-bi t word divide d int o an OP code and one or more operands. Al l instructions are executed within one sing[...]

  • Page 35

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 33 (This specification is subje ct to ch ang e w ithout further notice) INSTRUCT ION BIN A RY HEX M NEMONIC OPERAT ION STA TUS AFFECT ED 0 0001 11rr rrrr 01rr DEC R R-1 → R Z 0 0010 00rr rrrr 02rr OR A,R A ∨ VR → A Z 0 0010 01rr rrrr 02rr OR[...]

  • Page 36

    EM78612 Universal Se rial Bus Microcontroller 34 • • • • Product Specification(V1. 0) 03.22.2006 (This specification i s subject to change without further notice) INSTRUCT ION BIN A RY HEX M NEMONIC OPERAT ION STA TUS AFFECT ED 1 1010 kkkk kkkk 1Akk AND A,k A & k → A Z 1 1011 kkkk kkkk 1Bkk XOR A,k A ⊕ k → A Z 1 1100 kkkk kkkk 1Ck[...]

  • Page 37

    EM78612 Universal Se rial Bus Microcontroller Product Specification (V1. 0) 03.22.2006 • • • • 35 (This specification is subje ct to ch ang e w ithout further notice) EM78612 h as one COD E option reg isters, which are n ot part of the norm al program memor y. The optio n bits cannot be accessed durin g normal pro gram execution. 8 7 6 5 4 [...]