IBM EM78P221/2N Bedienungsanleitung

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung IBM EM78P221/2N an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von IBM EM78P221/2N, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung IBM EM78P221/2N die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung IBM EM78P221/2N. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung IBM EM78P221/2N sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts IBM EM78P221/2N
- Den Namen des Produzenten und das Produktionsjahr des Geräts IBM EM78P221/2N
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts IBM EM78P221/2N
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von IBM EM78P221/2N zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von IBM EM78P221/2N und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service IBM finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von IBM EM78P221/2N zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts IBM EM78P221/2N, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von IBM EM78P221/2N widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification D OC . V ERSION 1.0 ELAN MICROELECTRONICS CORP. October 2007[...]

  • Seite 2

    T rademark Acknow ledgments: IBM is a registered trademark a nd PS/2 is a trademark of IBM. W indows is a trademark of Microsoft Corporation. ELAN and ELAN logo are trademarks of ELAN Mi croelectronics Corporation. Copyright © 2007 by ELAN Micr oelectronics Corporation All Rights Reserved Printed in T aiwan The contents of this specification are s[...]

  • Seite 3

    Contents Product Specification (V1.0) 10.19.2007 • iii (This specification is subject to change without further notice) Contents EM78P221/2N-V Package version .................................................................................... 1 EM78P221/2N-U Package version ........................................................................[...]

  • Seite 4

    Contents iv • Produc t Specification (V1.0) 1 0.19.2007 (This specification is subject to change without further notice) 6.2.27 Bank 2-R8 (Operatin g Mode Contro l Register) ................................................. 19 6.2.28 Bank 2-R9 ~RF (Reserve) .................................................................................. 19 6.2.[...]

  • Seite 5

    Contents Product Specification (V1.0) 10.19.2007 • v (This specification is subject to change without further notice) 7 Absolute Maximum Ratings ................................................................................... 53 8 DC Electrical Characteristics ................................................................................. 53[...]

  • Seite 6

    Contents vi • Product Specification (V1.0) 10.1 9.2007 (This specification is subject to change without further notice) Specification Revision History Doc. Version Revision Description Date 0.9 Preliminary version 2007/03/20 1.0 Initial released version 2007/10/19[...]

  • Seite 7

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 1 (This specification is subject to change without further notice) Read Me First ! Comparison between V-Package and U-Package version This series of microcont rollers comprise of the older V-package version an d the newer U-package version. In the newer U-pa[...]

  • Seite 8

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 2 • Product Specification (V1.0) 10.19.2007 (This specification is subject to change without further notice) 1 General Description EM78P221N and EM78P222N are 8-bit microproce ssors des igned and developed with low-power and high-speed CMOS technology . Each device in t he series has as an on-chip 4[...]

  • Seite 9

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 3 (This specification is subject to change without further notice) 3 Pin Assignment (1) 28-Pin DIP/SOP/SSOP P70 VSS P67 P57 P56/TCC P53/OSCI P52/OSCO VDD P81//RES ET P72/CIN+ P73/CIN- P71/CO/I NT1 P64 P65 P66 P55 P54 P50 P77/INT0 EM78P222N 1 2 3 4 5 6 7 8 9 [...]

  • Seite 10

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 4 • Product Specification (V1.0) 10.19.2007 (This specification is subject to change without further notice) 4 Pin Description 4.1 EM78P222N Symbol Pin No. Type Function P50~P57 1~2 11~12 17~18 26~27 I/O 8-bit General p urpose input/output pins Default value at power-on reset P60~P67 6 ~ 10 19 ~21 I[...]

  • Seite 11

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 5 (This specification is subject to change without further notice) 4.2 EM78P221N Symbol Pin No. Type Function P50~P57 1~2 11~14 22~23 I/O 8-bit General p urpose input/output pins Default value at power-on reset. P60~P67 6 ~ 10 15~17 I/O 8-bit General p urpos[...]

  • Seite 12

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 6 • Product Specificati on (V1.0) 10.19.2007 (This specification is subj ect to change without further notice) 5 Block Diagram ROM R3 (Status Reg.) ACC Instru ction Decoder Instru ction Register ALU PC Interrupt Circuit 8-level stack (13 bit) Interrupt Control Register Oscill ation Generation RAM Mux[...]

  • Seite 13

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 7 (This specification is subject to change without further notice) 6 Function Description 6.1 Register Configuration Address Bank 0 Regist ers Bank 1 Registers Bank 2 Registers Bank 3 Registers 00 R0 (Indirect Addressing Register) 01 R1 (Memory switch regist[...]

  • Seite 14

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 8 • Product Specification (V1.0) 10.19.2007 (This specification is subject to change without further notice) 6.2 Registers Description 6.2.1 A (Accumulator) Internal data transfer operation, or inst ruction op erand holding usually involves the temporary storage function of the Accumulator. The Accu[...]

  • Seite 15

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 9 (This specification is subject to change without further notice) 6.2.3 R0 (Indirect Addressing Register) R0 is not a physically implemented register. Its major function is to perform as an indirect addre ss pointer. Any instru ction us ing R0 as a pointer,[...]

  • Seite 16

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 10 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) "JMP" instruction allows direct loading of the lower 10 program cou nter bits. Thus, "JMP" allows PC to jump to any location within a Page (1K). "CALL" instruc[...]

  • Seite 17

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 11 (This specification is subject to change without further notice) 6.2.7 R4 (Select Indirect Address) Bit s 7~6: not used, fixed to 0 all the time. Bit 5 ~ Bit 0: used to select registers (A ddress : 00 ~ 3F) in indire ct addressing mode. 6.2.8 Bank 0-R5 (P[...]

  • Seite 18

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 12 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.2.13 Bank 0-RE (WUCR: Wake-up Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 EX1IF 0 0 ICWE 0 CMPWE 0 CMPIF Bit 7 (EX1IF): External interrupt flag. Set by INT1 pin, res[...]

  • Seite 19

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 13 (This specification is subject to change without further notice) Bit 1 (ICIF): Port 6 input st atus change interrupt fl ag. Set when Port 6 input changes. Reset by software. 0 = no interrupt occurs 1 = with interrupt request Bit 0 (TCIF): TCC overflow int[...]

  • Seite 20

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 14 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.2.17 Bank 1-R9 (Reserve) Bit s 7~0: not used, fixed to 0 all the time 6.2.18 Bank 1-RA (CMPCON: Co mparator Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 EIS1 EIS0 CMP[...]

  • Seite 21

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 15 (This specification is subject to change without further notice) 6.2.19 Bank 1-RB (Pull- down Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 /PD7 /PD6 /PD5 /PD4 /PD3 /PD2 /PD1 /PD0 Bank 1-RB register is both readable a nd writable Bit 7[...]

  • Seite 22

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 16 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.2.21 Bank 1-RD (Pull- high Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 /PH7 /PH6 /PH5 /PH4 /PH3 /PH2 /PH1 /PH0 Bank 1-RD register is both read able and writable. Bit[...]

  • Seite 23

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 17 (This specification is subject to change without further notice) Bit 4 ~ Bit 2 (PSW2 ~ PSW0): WDT prescaler bits PSW2 PSW1 PSW0 WDT Rate 0 0 0 1:2 0 0 1 1:4 0 1 0 1:8 0 1 1 1:16 1 0 0 1:32 1 0 1 1:64 1 1 0 1:128 1 1 1 1:256 Bit 0 (CMPIE): CMPIF interrupt [...]

  • Seite 24

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 18 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.2.24 Bank 2-R5 (HDCR: High Drive Control Register for Port 6) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 HD67 HD66 HD65 HD64 HD63 HD62 HD61 HD60 [With Simulator]: function nonexisten[...]

  • Seite 25

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 19 (This specification is subject to change without further notice) 6.2.26 Bank 2-R7 (HSCR2: High Sink Control Register for Port 6) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 HS67 HS66 HS65 HS64 HS63 HS62 HS61 HS60 [With Simulator]: function nonexistent[...]

  • Seite 26

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 20 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.2.30 Bank 3-R6 (IRC Control)-only for ICE Bit 7 6 5 4 3 2 1 0 EM78P221/2N ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ICE220N C3 C2 C1 C0 RCM1 RCM0 ‘0’ ‘0’ Bit[...]

  • Seite 27

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 21 (This specification is subject to change without further notice) 6.2.31 Bank 3-R7 (Noise and LVR Control) - only for ICE Bit 7 6 5 4 3 2 1 0 EM78P221/2N ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ICE220N “0” “0” “0” “0?[...]

  • Seite 28

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 22 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.3 TCC/WDT and Prescaler There are two 8-bit counters available as prescale rs for the TCC and WDT. The PST0~PST2 bits of the CONT register are used to determin e the ratio of the TCC pres[...]

  • Seite 29

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 23 (This specification is subject to change without further notice) 8-bit Counte r WD T Prescaler 8 to 1 MUX WD T T im e o u t W DTE (Bank 1-RE) TCC P in MUX CLK (Fosc ) 8-bit Coun ter 8 to 1 MUX TE (CO NT) Data Bus TCC o verfl ow Interrupt TS (C ONT) TCC (R[...]

  • Seite 30

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 24 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) PCRD M U X IOD 0 1 INT PDRD P77, /INT0 P71, /INT1 EIS1,EIS0 PCW R D Q Q _ CLK P R C L PDW R D Q Q _ CLK P R C L P R C L CLK DQ Q _ PORT Note: CO2, Pull-high and Open-d rain are not shown in[...]

  • Seite 31

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 25 (This specification is subject to change without further notice) /SLE P T17 T10 T11 ICIE Interr upt ENI Instruc tion DISI Instruc tion Interr upt (Wake-up from SLEEP) Next Instructio n (Wake-up fr om SLEEP) CLK CLK CLK Q Q Q Q Q Q _ _ _ D D D P P P L L L [...]

  • Seite 32

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 26 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.5 Reset and W ake-up 6.5.1 Reset and Wake-up Operation A reset is initiated by one of the following events : 1. Power-on reset 2. /RESET pin input "low" 3. WDT time-out (if ena [...]

  • Seite 33

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 27 (This specification is subject to change without further notice) The first two cases (1 & 2) will cause the EM78P221/2N to reset. The T and P flags of R3 can be used to determine the source of the reset (wake-up). Cases 3 & 4 are considered the co[...]

  • Seite 34

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 28 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) If Port 6 Input S tatus Change Interrupt is used to wake up the EM78P221/2N (as in Case b above), the following instruct ion s must be executed before SLEP: MOV A, @000110xxb ; Select WDT p[...]

  • Seite 35

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 29 (This specification is subject to change without further notice) The controller can be awak ened from sleep mode and idle mode. The wake-up signals are listed as follows: Signal Sleep Mode Normal Mode DISI + Bank 1-RF (EXIE) Bit 2 = 1 Next Instruction+ Se[...]

  • Seite 36

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 30 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.5.1.2 Register Initial V alues after Reset The following t able summarizes the registers initialized values. Address Name Re set Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit N[...]

  • Seite 37

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 31 (This specification is subject to change without further notice) Address Name Reset Ty pe Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name P77 P76 P75 P74 P73 P72 P71 P70 Power-on U U U U U U U U /RESET & WDT U U U U U U U U 0x07 Bank 0-R7 Wak[...]

  • Seite 38

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 32 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name - - - ICE 220N 211N 212N ICE 220N 211N 212N ICE 220N 211N 212N C81 C80 Power-on 0 0 0 1 0 1 0 1 0 1 1 /RESET[...]

  • Seite 39

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 33 (This specification is subject to change without further notice) Address Name Reset Ty pe Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name - - - - - EXIE ICIE TCIE Power-on 0 0 0 0 0 0 0 0 /RESET & WDT 0 0 0 0 0 0 0 0 0xF Bank 1-RF Wake-up fro[...]

  • Seite 40

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 34 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name - - - - NRHL NRE LVR1 LVR0- Power-on U U U U 1 1 1 1 /RESET & WDT P P P P 1 1 1 1 0x07 Bank 3-R7 (only f[...]

  • Seite 41

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 35 (This specification is subject to change without further notice) 6.5.2 The T and P Status under Status Register A reset condition is initiated by one of the following events : 1. Power-on reset 2. /RESET pin input "low" 3. WDT time-out (if ena b[...]

  • Seite 42

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 36 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.6 Interrupt The EM78P221/2N has four interrupt s as listed below : 1. TCC overflow interrupt 2. Port 6 Input S tatus Change Interrupt 3. External interrupt INT0, INT1 4. When the Comparat[...]

  • Seite 43

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 37 (This specification is subject to change without further notice) BANK0-RE/RF BANK0-RE/RF RD BANK0-RE/RF WR BANK1-RE/RF RD BANK1-RE/RF WR BANK1-RE/RF Fig. 6-8 Interrupt Input Circuit Interrupt Sources Interrupt occurs ENI/DISI Stack ACC Stack R3 RETI ACC R[...]

  • Seite 44

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 38 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.7 Comparator The EM78P221/2N has one comparator comp rising of two analog inputs and on e output. The comparator can be utilized to wake up th e EM78P221/2N from sleep mode. The comparato[...]

  • Seite 45

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 39 (This specification is subject to change without further notice) NOTE ■ The highest priority of P71/INT1/CO is INT1. When EIS1=0, the working type of P71/INT1/CO is determined by CMPCOS1 and CMPCOS2. ■ The CO and P71of the P71/CO pins cannot be used a[...]

  • Seite 46

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 40 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.7.3.2 Bank 1-RA (CMPCON: Comp arator Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 EIS1 EIS0 CMPOUT C MP CO S1 C MP CO S0 0 0 0 Bit 5 (CMPOUT): The result of the Comp [...]

  • Seite 47

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 41 (This specification is subject to change without further notice) 6.8 Oscillator 6.8.1 Oscillator M odes The EM78P221/2N can be operated in six different oscillator modes, such as High Crystal oscillator mode (HXT 1, 2), Low Cr ystal oscillator mode (LXT 1[...]

  • Seite 48

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 42 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) In most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ceramic resonator to gen erate oscillation. Fig. 6-13 below depict s such a circuit. The same applies to the H[...]

  • Seite 49

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 43 (This specification is subject to change without further notice) Fig. 6-13-1 Parallel Mode Crystal/Resonator Circuit Diagram[...]

  • Seite 50

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 44 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.8.3 External RC Oscillator Mode For some applications that do not requi re precise timing calculation, the RC oscillator (Fig. 6-14) could of fer a cost-ef fective oscillator configuratio[...]

  • Seite 51

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM Product Specification (V1.0) 10.19.2007 • 45 (This specification is subject to change without further notice) 6.8.4 Internal RC Oscillator M ode The EM78P221/2N of fers a versatile internal RC mo de with default frequency value of 4MHz. Internal RC oscillator mode has other frequencie s (1MHz, 16MHz[...]

  • Seite 52

    EM78P221/2N 8-Bit Microcontroller w ith OTP ROM 46 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 6.9.2 Residual Voltage Protection When the battery is replaced, device po wer Vdd is removed but residual voltage remains. The residual voltage may trip below Vdd minimum, but not to zero. [...]

  • Seite 53

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 47 (This specification is subject to change without further notice) L VR characteristics are set at Code Option Word 0, Bit s 10 and 9. Detailed operation mode is as follows: Word 0 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bi[...]

  • Seite 54

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 48 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Bits 12 ~ 11 (Ty pe 1, Ty pe 0): Type selection for EM78P221N or EM78P222N Type 1, Type 0 MCU Type 00 Not for use 01 Not for use 10 EM78P221N (24 pins) 11 EM78P222N (28 pins) Note: L VR1 and[...]

  • Seite 55

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 49 (This specification is subject to change without further notice) 6.11.2 Code Option Register (Word 1) Word 1 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bi t 1 Bit 0 - - RESET ENB RCOU T NRHL NRE - C3 C2 C1 C0 RCM1 RCM0 Bit 12: Not[...]

  • Seite 56

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 50 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Bit 1 & Bit 0 (RCM1 & RC M 0): RC mode selection bit s RCM 1 RCM 0 Frequency (MHz) 1 1 4 (Defau lt) 1 0 16 0 1 1 0 0 455kHz 6.11.3 Customer ID Register (Word 2) Word 2 Bit 12 Bit 11 [...]

  • Seite 57

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 51 (This specification is subject to change without further notice) Binary Instruction HEX Mnem onic Operation Status Affected 0 0000 0000 0000 0000 NOP No Operation None 0 0000 0000 0001 0001 DAA Decimal Adjust A C 0 0000 0000 0010 0002 CONTW A → CONT None[...]

  • Seite 58

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 52 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Binary Instruction HEX Mnem onic Operation Status Affected 0 0101 01rr rrrr 05rr INC R R+1 → R Z 0 0101 10rr rrrr 05rr DJZA R R-1 → A, skip if zero None 0 0101 11rr rrrr 05rr DJZ R R-1 ?[...]

  • Seite 59

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 53 (This specification is subject to change without further notice) 7 Absolute Maximum Ratings Items Rating Temperature under bias -40 ° C to 85 ° C Storage temperature -65 ° C to 150 ° C Input voltage Vss-0. 3V to Vdd+0.5V Output voltage Vss-0.3V to Vdd+[...]

  • Seite 60

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 54 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) Symbol Parameter Condition Min. Typ. Max. Unit IPH Pull-high curren t (Ports 50~53, 64~67) Pull-high active, input pin at VSS 50 − 90 μ A IPL Pull-lo w current (Ports 60~67) Pull-low acti[...]

  • Seite 61

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 55 (This specification is subject to change without further notice) 8.1 Comp arator (OP) Characteristic Vdd = 5.0V, Vss=0V, Ta=25 ° C Symbol Parameter Condition Min. Typ. Max. Unit VOS Input Offset Voltage RL = 5.1K Note 1 − − 10 mV Vcm Input Commo n-Mod[...]

  • Seite 62

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 56 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) 10 Timing Diagrams RESE T Timing (CLK="0") CLK /RESET NOP Instr uction 1 Executed Tdr h TCC Input Timing ( CLKS="0") CLK TCC Ttc c Ti ns A C Testi ng : Input is dr iven a[...]

  • Seite 63

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 57 (This specification is subject to change without further notice) APPENDIX A Package Type OTP MCU Package Type Pin Count Package Size EM78P221NKS/NKJ Skinny DIP 24 pins 300mil EM78P221NMS/NMJ SOP 24 pins 300mil EM78P221NAMS/NAMJ SSOP 24 pins 209m il EM78P22[...]

  • Seite 64

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 58 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) B Packaging Configuration B.1 24-Lead Plastic Skinny Dual in line (SDIP) — 300 mil TITL E: PDIP-24L SKI NNY 300MIL PACKAGE OUTLINE DIMENSION Un i t : m m Sc al e: F r ee F ile : K 2 4 Ma t[...]

  • Seite 65

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 59 (This specification is subject to change without further notice) B.2 24-Lead Plastic Small Outline (SOP) — 300 mil TI TL E : S OP - 24L ( 300M I L ) P A CK A G E O UTL I NE DI MENS I ON Unit : mm Scal e: Free File : SO24 Mater ial: Edtio n: A Sheet:1 of [...]

  • Seite 66

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 60 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) B.3 24-Lead Plastic Shrink Small Outline (SSOP) — 209 mil TI TL E : S S OP - 24L ( 209M I L ) P A CK A GE O UTL I NE DI ME NS I O N Unit : mm Scale: Free File : SSO24 Material: Edtion: A S[...]

  • Seite 67

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 61 (This specification is subject to change without further notice) B.4 28- Lead Plastic Skinny Dual in line (SDIP) — 300 mil TITL E: PDIP-28L SKI NNY 300MIL PACKAGE OUTLI NE DIMENSI ON Unit : mm Scal e: Free File : K28 Mater ial: Edtio n: A Sheet:1 of 1 Sy[...]

  • Seite 68

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 62 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) B.5 28-Lead Plastic Small Outline (SOP) — 300 mil TITL E: SOP-28L (300MI L) PACKAGE OUTLI NE DIMENSI ON Unit : mm Scal e: Free File : SO28 Mater ial: Edtio n: A Sheet:1 of 1 Sy m bal A A1 [...]

  • Seite 69

    EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification (V1.0) 10.19.2007 • 63 (This specification is subject to change without further notice) B.6 28- Lead Plastic Shrink Small Outline (SSOP) — 209 mil TITLE: SSOP-28L (209MIL ) OUTLI NE PACKAGE PACKA OUTLI NE DIMENSI ON Unit : mm Scale: Free File : SSO28 Material: Edtion: A Sheet:[...]

  • Seite 70

    EM78P221/2N 8-Bit Microcontroller with OTP ROM 64 • Product Specification (V1.0) 10 .19.2007 (This specification is subject to change without further notice) C Quality Assurance and Reliability Test Category Test Conditions Remarks Solderability Solder temperature=245 ± 5 ° C, for 5 seconds up to the stopper using a rosin-type flux − Step 1: [...]