Instruction/ maintenance manual of the product EM78P312N IBM
Go to page of 68
EM78P312N 8- B IT Microc ont roller Green Product Specification D OC . V ERSION 1.0 ELAN MICROELECTRONICS CORP. October 2006.
T radem ark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM. W indows is a trademark of Microsoft Corpora tion. ELAN and ELAN logo are trademarks of EL AN Micr oelectronics Corporation.
Contents Product Specif icatio n (V1.0) 10.0 3.2 006 • iii Contents 1 General Description ..... ...... .... ..... ...... ..... .... ....... .... .... ....... .... ....... .... .... ....... .... ..... ...... ... 1 2 Features ...... .... ..... ...... .
Contents iv • Produ ct Specification ( V1.0) 10.03.20 06 5.14 Reset and Wake-up ........... .... ...... ..... .... ....... .... ....... .... .... ....... .... ....... .... ..... ...... ... 42 5.14.1 Reset .......... ...... ...... ......... ..... ...
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 1 (This specification is subject to change without further notice) 1 Gene ral Description The EM78P312N i s an 8- bit micropr ocessor with low -power, high-speed C MOS technolog y and high noise immunit y .
EM78P312N 8-Bit Microcontroller 2 • Produ ct Specific ation (V1.0) 10.03. 2006 (This specification is subject to change without further notice) 4 Pin D escription Table 1 Sy mbol Pin No.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 3 (This specification is subject to change without further notice) 5 Func t ion De scri pt ion 5.
EM78P312N 8-Bit Microcontroller 4 • Produ ct Specific ation (V1.0) 10.03. 2006 (This specification is subject to change without further notice) 5.2 Oper ating Registers 05 06 07 08 09 0A 0B 0C 0D 0E.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 5 (This specification is subject to change without further notice) R0 (Indir ect Addressi ng Register) R0 is n ot a p hysical ly im plemen ted re giste r. Its major f unct ion is to ac t as an i ndirec t addre ssing po inte r.
EM78P312N 8-Bit Microcontroller 6 • Produ ct Specific ation (V1.0) 10.03. 2006 (This specification is subject to change without further notice) A1 1 A1 0 A9 A 8 A7 ~ A0 R5 CALL RET RETL RETI 000 : P.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 7 (This specification is subject to change without further notice) Bit 3 (P): Po wer dow n bi t. Set to “1” du ring po wer on or by a "W DTC" command and rese t to “0” by a "SLEP " comm and.
EM78P312N 8-Bit Microcontroller 8 • Produ ct Specific ation (V1.0) 10.03. 2006 (This specification is subject to change without further notice) R6 (Port 6 I/O Data Register) Bit 7 Bi t 6 Bit 5 Bit 4.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 9 (This specification is subject to change without further notice) Bit 4 ~ Bit 2 ( TC4CK2 ~ TC4CK 0 ) : Time r/Coun ter 4 Cl ock Source Selec t TC4CK2 TC4CK1 TC4CK0 Clock Source ( Norma l, Idle ) Resolution ( Fosc =8 M ) Ma x .
EM78P312N 8-Bit Microcontroller 10 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) RE (Interr upt Status Flag Register 1 ) Bit 7 Bit 6 .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 11 (This specification is subject to change without further notice) z IS FR2 c an be cl eared by inst ructio n,.
EM78P312N 8-Bit Microcontroller 12 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bank 1 R8 TC2CR/ ADDL (Tim er/Counter 2 C ontrol Reg.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 13 (This specification is subject to change without further notice) Bi t 6 ( AD RUN ) : AD Conv ersio n start ADRUN = “0” : Reset on comp letio n of t he conv ersion by har dw are, th is bit canno t be r ese t by soft war e.
EM78P312N 8-Bit Microcontroller 14 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bank 1 RE TBKTC (TBT/Keytone Control) Bit 7 Bit 6 Bi.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 15 (This specification is subject to change without further notice) Bit 4 ~ B it 2 ( BRATE2 ~ BRA TE1 ) : T ransmi t Bau d Ra te S ele ct BRATE2 BRATE1 BRATE 0 Baud Rate e.
EM78P312N 8-Bit Microcontroller 16 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bit 6 ( EVEN ) : S ele ct par it y c he ck EVEN = .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 17 (This specification is subject to change without further notice) In usi ng the ext ernal clock, da ta input sample is fixed at the m iddle of data ou tput time.
EM78P312N 8-Bit Microcontroller 18 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bit 2 ~ Bit 1 ( SPIM1 ~ SPIM0) : SPI Transfer Mod e .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 19 (This specification is subject to change without further notice) Bank 3 RC PHC2 (Pull Hi gh Control Register.
EM78P312N 8-Bit Microcontroller 20 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bit 2 ( PSR2 ) ~ Bit 0 ( PSR0 ) : TCC pr escaler bit.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 21 (This specification is subject to change without further notice) Exte rna l In terr upt INT Pin S econ d ar .
EM78P312N 8-Bit Microcontroller 22 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Bit 1 ( SPIE ) : SPI In terrupt e nable bi t. SP I E = “0 ” : dis able SPIF int errup t SP I E = “1 ” : en able SPIF i nterr upt Bit 0 ( TCIE3 ) : Timer/C ounter 3 Interru pt enable bi t.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 23 (This specification is subject to change without further notice) 5.
EM78P312N 8-Bit Microcontroller 24 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) In Sleep m ode, the inte rnal oscillator is turned off and all system operation is halted.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 25 (This specification is subject to change without further notice) 8 to 1 Ana lo g swi t c h ADC (Successiv e .
EM78P312N 8-Bit Microcontroller 26 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 5.6 Time Base T imer and Keyton e Generat or Regi st.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 27 (This specification is subject to change without further notice) MUX Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 23 21 16 14 13 12 11 9 TBKTC TBTCK2:0 3 Falling Edge Dete cto r TBT Inte rrup t TBTE N Fi g.
EM78P312N 8-Bit Microcontroller 28 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 5.7 U ART (Universal As ynchronous Receiver/T ransmi.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 29 (This specification is subject to change without further notice) The figure below shows the gener al for mat of on e charac ter sen t or rec eived. Th e comm unica tion cha nnel is normal ly held in the ma rked s tate ( high).
EM78P312N 8-Bit Microcontroller 30 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 3. Start tra nsmi tti ng. 4. Ser ial ly tran smit ted da ta ar e tra nsmitt ed i n the fo llo wing order from the T X pin.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 31 (This specification is subject to change without further notice) 5.
EM78P312N 8-Bit Microcontroller 32 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 5.8.1 Seri al Clock Six inte rnal cl ocks ca n be se lect ed by s etting BRS 0 ~ BR S2 and the cl ock o utput to the outsi de from /SCK (P70) pin .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 33 (This specification is subject to change without further notice) (b) 8-bit Rece ive Mo d e Setting SPIM0 ~ SPIM1 to r eceive mode a nd setti ng SPIS to “1” to start recei ving.
EM78P312N 8-Bit Microcontroller 34 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) SPI S RB F WBE SPI F re a d d a ta s h i f t s ta rt.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 35 (This specification is subject to change without further notice) 5.
EM78P312N 8-Bit Microcontroller 36 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 5.9.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 37 (This specification is subject to change without further notice) 01 2 n - 3 n- 1 n 1 23 In t e r n a l c lo c k U p- c ount er n-2 T C2 pi n TC 2 i nte rr u p t 0 n ma t ch count e r c l ear TC R 2 Fig.
EM78P312N 8-Bit Microcontroller 38 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 8-bit Up-cou nter Comparator TCR3 B TC3 CR MUX INT 3.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 39 (This specification is subject to change without further notice) of the TC 3 pin input, th e cont ents of the cou nter are loa ded into TCR3 A, count er is cleare d and inter rupt is ge ner ated ag ain .
EM78P312N 8-Bit Microcontroller 40 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 8-bit Up-counter Comparator TCR4 TC4CR MUX TC4 pin TC4CK TC4S 3 TC4 Interrupt fc/2 11 fc/2 7 fc/2 3 Clea r TC4M (1, 1) TC4M (1,*) TC4FF Toggle Set Clear /PWM, /PDO Pin Overflow Match F/F Q Fig.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 41 (This specification is subject to change without further notice) 5.11.4 P WM Mod e In Pulse W idth Modulat ion ( PWM) Output mod e, coun ting up is perfor med u sing the intern al clock .
EM78P312N 8-Bit Microcontroller 42 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 5.13 I/O Ports The I/O regis ters, Por t 6, Po rt 7, P ort 8, and P ort 9 ar e bi- direction al tri -stat e I/O port s.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 43 (This specification is subject to change without further notice) The W atchdog t imer an d pr esca ler are cleare d. Upon pow er on, the up per t w o bits of R 3 are c leare d.
EM78P312N 8-Bit Microcontroller 44 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Tabl e 6.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 45 (This specification is subject to change without further notice) Regis ter Bank 0 Address Name Reset T ype B.
EM78P312N 8-Bit Microcontroller 46 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Regis ter Bank 1 Addr es s Nam e Reset Typ e Bit 7 B.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 47 (This specification is subject to change without further notice) Regis ter Bank 2 Address Name R ese t Type .
EM78P312N 8-Bit Microcontroller 48 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) Gene ral Purp os e Reg ist ers Address Nam e Reset T.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 49 (This specification is subject to change without further notice) Voltage Detector Power-on Reset WDTE Setup Time VDD DQ CLK CLR CLK RESET WDT Timeou t WDT /RESET Oscillator F i g.
EM78P312N 8-Bit Microcontroller 50 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) The flag (e xcept ICIF bit) in the Interrup t Status Register ( ISFR 2) is se t regar dless of the sta tus of it s mask bit o r the ex ec ution of E NI.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif icatio n (V1 . 0) 10. 0 3 .2 0 06 • 51 (This specification is subject to change without further notice) OSCI OSCO EM78P809N Ext. Cl ock Fig. 5-2 9 Crys tal/Res onator C irc uit C1 C2 XTAL RS OSCI OSCO EM78 P809N Fig.
EM78P312N 8-Bit Microcontroller 52 • Pr oduct S pecification ( V1.0) 10. 03.2006 (This specification is subject to change without further notice) 740 4 4.7 K 10 K XTA L 740 4 C1 Vdd 10 K C2 OSCI EM78P8 09N F i g. 5 -3 2 Cr y s t al/ R es o nat or -P a r al le l M od e Ci r c ui t 5.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 53 (This specification is subject to change without further notice) Table 13. RC Osc illato r Frequen cies Cext Rext Average Fosc 5V, 25 ° C Aver age Fosc 3 V, 25 ° C 3.
EM78P312N 8-Bit Microcontroller 54 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) Bit 4 (OSC) : Oscillator type sele ction OSC = “0 .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 55 (This specification is subject to change without further notice) EM 78P809N /RESET Vd d D R Rin C Fig.
EM78P312N 8-Bit Microcontroller 56 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) 5.19 Instructi on Set Each in stru ction in the instr uction set i s a 13- bit wor d d ivided i nto an O P co de and one or more op era nds.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 57 (This specification is subject to change without further notice) Binary Instruc t ion Hex Mnemonic Oper a.
EM78P312N 8-Bit Microcontroller 58 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) 6 A b solute Max imu m Rating s 6.1 Absolute Maximum Ratings Items Rat ing Temperatur e under bias -40 ° C to 8 5 ° C Storage tem perature -65 ° C to 15 0 ° C Input v oltage -0.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 59 (This specification is subject to change without further notice) 7 Electrica l Characteristics 7.1 DC El ectrical Charac te ristics Ta = 25 ° C, V DD= 5.0V ± 5%, VSS= 0 V Sy mbol Parameter Condition Min.
EM78P312N 8-Bit Microcontroller 60 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) Ta = 25 ° C, V DD= 3.0V ± 5%, VSS= 0 V Symbol Paramete r Cond ition Min. Ty p. Max. Unit Fc Cryst al: 2 .
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 61 (This specification is subject to change without further notice) A/D Con verte r Char acter ist ic (Vdd =2 .5V t o 5.5V, Vss=0V, Ta = -4 0 to 85° C) Sy mbo l Parameter Condition Mi n.
EM78P312N 8-Bit Microcontroller 62 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) 7.2 AC Ele ct rical Characte ristic Ta=- 40 ° C ~ 8.
EM7 8 P3 12 N 8-Bit Microcontroller Product Specif i cati on (V 1 . 0) 10 . 0 3 .2 0 06 • 63 (This specification is subject to change without further notice) 7.
EM78P312N 8-Bit Microcontroller 64 • Pr oduct S pecification ( V1.0) 10.03. 2006 (This specification is subject to change without further notice) A PPENDIX A Pack age Types : OTP MCU Pac kage T ype .
An important point after buying a device IBM EM78P312N (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought IBM EM78P312N yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data IBM EM78P312N - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, IBM EM78P312N you will learn all the available features of the product, as well as information on its operation. The information that you get IBM EM78P312N will certainly help you make a decision on the purchase.
If you already are a holder of IBM EM78P312N, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime IBM EM78P312N.
However, one of the most important roles played by the user manual is to help in solving problems with IBM EM78P312N. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device IBM EM78P312N along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center