Gebruiksaanwijzing /service van het product EM78P221/2N van de fabrikant IBM
Ga naar pagina of 70
EM78P221/2N 8-Bit Microcontroller with OTP ROM Product Specification D OC . V ERSION 1.0 ELAN MICROELECTRONICS CORP. October 2007.
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.
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 .
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) .
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 .
Contents vi • Product Specification (V1.0) 10.1 9.2007 (This specification is subject to change without further notice) Specification Revision History Doc.
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.
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 .
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 .
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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 prescal.
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.
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.
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.
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.
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.
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.
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 .
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 I.
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.
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).
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 Interrup.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 se.
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.
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.
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 Operatio.
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 Operati.
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.
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.
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.
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=&q.
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 T.
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.
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.
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.
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.
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.
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.
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.
Een belangrijk punt na aankoop van elk apparaat IBM EM78P221/2N (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen IBM EM78P221/2N heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens IBM EM78P221/2N vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding IBM EM78P221/2N leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over IBM EM78P221/2N krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van IBM EM78P221/2N bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de IBM EM78P221/2N kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met IBM EM78P221/2N . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.