IBM EM78P221/2N manuel d'utilisation

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

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation IBM EM78P221/2N. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel IBM EM78P221/2N ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation IBM EM78P221/2N décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation IBM EM78P221/2N devrait contenir:
- informations sur les caractéristiques techniques du dispositif IBM EM78P221/2N
- nom du fabricant et année de fabrication IBM EM78P221/2N
- instructions d'utilisation, de réglage et d’entretien de l'équipement IBM EM78P221/2N
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage IBM EM78P221/2N ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles IBM EM78P221/2N et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service IBM en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées IBM EM78P221/2N, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif IBM EM78P221/2N, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation IBM EM78P221/2N. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

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

  • Page 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[...]

  • Page 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 ........................................................................[...]

  • Page 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.[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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,[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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?[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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. [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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 ?[...]

  • Page 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+[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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[...]

  • Page 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[...]

  • Page 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 [...]

  • Page 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:[...]

  • Page 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: [...]