Manuale d’uso / di manutenzione del prodotto EM78P809N del fabbricante IBM
Vai alla pagina of 75
E M78 P809N 8-B IT Microcont roller Product Specification D OC . V ERSION 1.0 ELAN MCCROELECTRONICS CORP. July 2005.
T radem ark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM. W indows is a tra demark of Microsoft Corpora tion. ELAN and ELAN logo are trademarks of EL AN Micr oelectronics Corporat ion.
Contents Product Specif icatio n (V1. 0) 07.26.20 05 • iii Contents 1 General Descripti on ······· ····· ··· ·· ··· ··· ··· ····· ··· ··· ·· ··· ··· ··.
Contents iv • Produ ct Specification (V1.0) 07.26.2005 5 Absolute Maximum Rating s ···· ··· ··· ··· ·· ··· ········ ······ ·· ··· ··· ··· ·· ······ ··· ·· ··· ··· ·· ········· ··· 63 5.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 1 (This specification is subject to change without further notice) 1 Gene ral Description The EM 78P80 9N is an 8 -bit mi crop roces sor with l ow-p ower, high-s peed CMOS techno log y and hi gh noise immunity .
EM78P809N 8-Bit Microcontroller 2 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) 16 bits Counte r/Timer z TC2: Timer /Count er /W ind.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 3 (This specification is subject to change without further notice) 3 Pi n A s signme nt 1 2 3 4 5 6 7 8 9 10 1.
EM78P809N 8-Bit Microcontroller 4 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Symbol Pin No.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 5 (This specification is subject to change without further notice) 4 Func tio n Descr ipt ion 4.
EM78P809N 8-Bit Microcontroller 6 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) 4.2 Oper ating Registers 05 06 07 08 09 0A 0B 0C 0D 0E 0.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 7 (This specification is subject to change without further notice) R0/IAR − Indir ect Addressing R egister ( Address: 00 h ) R0 is not a phys ically i mplemen ted re gister.
EM78P809N 8-Bit Microcontroller 8 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) A1 1 A1 0 A9 A8 A7 ~ A0 R5 CALL RET RETL RETI 000 : PA G.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 9 (This specification is subject to change without further notice) Bit 3 (P) : Pow er down b it. Set to “1” d urin g pow er on or by a "W DTC" co mmand and r eset to “0” by a "SLEP" co mmand.
EM78P809N 8-Bit Microcontroller 10 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) PS2 PS1 PS0 Program M em ory Page [Add ress] 0 0 0 Pa.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 11 (This specification is subject to change without further notice) POR T9 − Port 9 I/O Data Registe r ( Add.
EM78P809N 8-Bit Microcontroller 12 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) TC4D − Timer 4 D at a Buff er ( Addr ess: 0 Ch ) Bi.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 13 (This specification is subject to change without further notice) ISFR2 − Inte rrupt Status Flag Register .
EM78P809N 8-Bit Microcontroller 14 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 5 ~ B it 4 ( TC3CK1 ~ TC3CK 0 ) : Timer/C ounter3 Clock Source Sel ect TC3CK1 TC3CK0 Clock source ( Norma l, Idl e ) Resolution ( Fc=8 M ) Max .
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 15 (This specification is subject to change without further notice) Bit 2 ~ B it 0 ( TC2CK2 ~ TC2CK 0 ) : Timer/Cou nter 2 Clock Sour ce Select TC2CK2 TC2CK 1 TC2CK 0 Clock Sour ce ( Norma l, Idl e ) Resolution ( Fc=8 M ) Max.
EM78P809N 8-Bit Microcontroller 16 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 5~ Bit 4 ( ADCK1 ~ AD CK0 ) : AD C onvers ion Time Select ADCK 1 ADCK0 Clock Source ( Normal , Idle ) M ax.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 17 (This specification is subject to change without further notice) TBKTC − TBT/Keytone Control ( A ddress: .
EM78P809N 8-Bit Microcontroller 18 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 6 ~ Bit 5 ( UMODE1 ~ UMO DE0 ) : UART T ransmissi.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 19 (This specification is subject to change without further notice) URS − UART Stat u s Regi ster ( Addre ss.
EM78P809N 8-Bit Microcontroller 20 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) URTD − UART T r ansmi t Dat a Buf f er ( Add r ess:.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 21 (This specification is subject to change without further notice) Bit 0 ( WBE ) : Write buffer empty fl ag. Read only. WBE = “0” : W rite buffe r empt y WBE = “1” : Not empty , set to “1” au tomatically when writi ng data to t he data buffe r.
EM78P809N 8-Bit Microcontroller 22 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 3 ~ 0 ( / PHE63 ~ / PHE6 0 ) : bit 3 ~ 0 of Port .
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 23 (This specification is subject to change without further notice) 4.3 S peci al Pur pose Register s A (A ccumulator ) Inte rnal d ata tra nsfer , or in struct ion oper and holdin g.
EM78P809N 8-Bit Microcontroller 24 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) IOC6 ~ IOC9 − I/O Po rt Cont rol R eg ister "1" puts the re lative I/O pi n int o high impe dance, while "0" d efines th e rela tive I/O pin as output.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 25 (This specification is subject to change without further notice) Exte rna l Inte rru pt INT Pin S ec ond ar.
EM78P809N 8-Bit Microcontroller 26 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 3 ( EXIE3 ) : External INT3 pin I nterrupt ena ble bit.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 27 (This specification is subject to change without further notice) Bit 3 ( TBIE ) : Time base timer inte rrupt enable bit.
EM78P809N 8-Bit Microcontroller 28 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Tabl e 2.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 29 (This specification is subject to change without further notice) Wake-up Signal SLEEP Mode R5 (SIS) = 1+SLEP Instruc tion IDLE Mode R5 (SIS)= 0 + SLEP Instr uction NORMAL Mode R5 ( SIS)=(*) 1.
EM78P809N 8-Bit Microcontroller 30 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 8 to 1 Ana lo g swit c h ADC (Successiv e A ppro xima.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 31 (This specification is subject to change without further notice) Tabl e 5 ADCK 1: 0 Op er at io n M o de Max. Frequenc y (Fc) Max. Conv ersion Rate per Bi t Ma x.
EM78P809N 8-Bit Microcontroller 32 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) P63 TEN TONE Pin Fig.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 33 (This specification is subject to change without further notice) 4.
EM78P809N 8-Bit Microcontroller 34 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) In U nivers al Asy nchron ous Rece iver Tr ansmi tter (UART ), e ach transmi tted or re ceived cha racter is indiv idually sy nchronize d by framing it with a start bit and s top bit.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 35 (This specification is subject to change without further notice) 4.7.2 Tran smitting : In transmittin g serial data, the UART operates as follows: 1. Set the TXE bit of t he UR C1 regi ster to enable the UART tra nsmis sion fu ncti on.
EM78P809N 8-Bit Microcontroller 36 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.7.4 Baud Rate Generator: The bau d rate gen erator is compri sed of a cir cuit that generat es a clock pu lse to dete rmine the transfer speed for transmission/rece ption in the UART.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 37 (This specification is subject to change without further notice) The ser ial int erface are c onnected to external d evices vi a P70 (/SCK), P7 1 (SI), P7 2 (SO) .
EM78P809N 8-Bit Microcontroller 38 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) (b) 8-bit Rece ive Mod e: Settin g SPIM0 ~ SPIM1 to receive m ode and setting SPIS to “1” to start receivi ng.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 39 (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.
EM78P809N 8-Bit Microcontroller 40 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.9 T ime r/C ou n ter 2 Regi sters f or Tim er/ Coun.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 41 (This specification is subject to change without further notice) 4.
EM78P809N 8-Bit Microcontroller 42 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 01 2 n - 3 n- 1 n 1 23 In t e rn a l c lo c k U p- cou nt er n- 2 T C2 pi n TC 2 i nte r r u pt 0 n ma t ch count e r c l ear TC R 2 Fig.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 43 (This specification is subject to change without further notice) 8-bit Up-coun ter Comparator TCR3 B TC3 CR.
EM78P809N 8-Bit Microcontroller 44 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) cleare d and in terru pt is ge nerate d agai n. If an ove rflow before th e edge is dete cted, the FF H is l oaded into TCR3 DA and an ov erflow int errup t is ge nera ted.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 45 (This specification is subject to change without further notice) 8-bit Up-counter Comparator TCR4 TC4CR MUX TC4 pin TC4 CK TC4S 3 TC4 Interrupt fc/2 11 fc/2 7 fc/2 3 Clear TC4M (1,1) TC4M(1,*) TC4FF Toggle Set Clear /PWM, /PDO Pin Over flow Match F/F Q Fig.
EM78P809N 8-Bit Microcontroller 46 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.11.4 P WM Mode In Pulse W idth Modulatio n (PW M) Out put mode, cou nting up is perfor med us ing the intern al clock .
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 47 (This specification is subject to change without further notice) 4.13 I/O Port s The I/O regist ers, Port 6 , Port 7 , Port 8, and Por t 9 are b i-dire ctional tri-sta te I/O port s.
EM78P809N 8-Bit Microcontroller 48 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) The W atchdog t imer an d pres caler are cle ared. Upon powe r on, the uppe r 2 bits of R3 ar e clear ed.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 49 (This specification is subject to change without further notice) Tabl e 6.
EM78P809N 8-Bit Microcontroller 50 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Regis ter Bank 0 Address Name Re set T ype Bit 7 Bit .
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 51 (This specification is subject to change without further notice) Regis ter Bank 1 Address Name Reset Ty pe .
EM78P809N 8-Bit Microcontroller 52 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Regis ter Bank 2 Address Name Reset Ty pe Bit 7 Bi t .
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 53 (This specification is subject to change without further notice) Gene ral Purp ose Regi sters Address Name .
EM78P809N 8-Bit Microcontroller 54 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Voltage Detector Power-on Reset WDTE Setup Time VDD DQ CLK CLR CLK RESET WDT Time out WDT /RESET Oscillator Fig.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 55 (This specification is subject to change without further notice) W hen one of the i nterr upts (enab led) oc curs, the n ext instruct ion w ill be fetc hed f rom indi vidual address .
EM78P809N 8-Bit Microcontroller 56 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) OSCI OSCO EM 78P809N Ex t. Clock Fig. 30. C rystal /Resonat or Cir cuit C1 C2 XTAL RS OSCI OSCO EM 78P809N Fig.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 57 (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 EM78P809N Fig. 3 3. Cr ystal/Re sonat or-Paralle l Mo de Cir cuit 4.
EM78P809N 8-Bit Microcontroller 58 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) T able13. RC Oscill ator Frequ encies Cext Re xt Aver age Fosc 5V, 25 ° C Av erage Fosc 3 V, 25 ° C 3.
EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 59 (This specification is subject to change without further notice) Bit 6 ( CYES) : Cycle selecti on for J MP, CALL instruc tion C YES = “0 ” : One cycl e CYES = “1” : Two cycl es Bit 4 (OSC ) : O scillat or t ype s elect ion.
EM78P809N 8-Bit Microcontroller 60 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) curr ent lea kage fr om th e /RES ET pin i s about ± 5 μ A, it is reco mmend ed that R should not be gr eater tha n 40K.
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 61 (This specification is subject to change without further notice) Q1 R2 R1 40K /RESET EM 78P809N Vdd Vdd Fig 37. Resi du e Voltage Pr otecti on Ci r c uit 2 4.
EM78P809N 8-Bit Microcontroller 62 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bina ry Instructio n Hex Mnemonic Operation Statu s A.
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 63 (This specification is subject to change without further notice) Bina ry Instructio n Hex Mnemonic Operatio.
EM78P809N 8-Bit Microcontroller 64 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 6 Electrica l Char acteristics 6.1 DC Electri cal Characterist ics (Ta= 25 ° C, V D D= 5 .0 V ± 5%, VSS= 0V) Sy mbol Pa rameter Condition Min.
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 65 (This specification is subject to change without further notice) (Ta= 25 ° C, V D D= 3 .0 V ± 5%, VSS= 0V) Symbol Parameter Condition Min. Typ. Max. Unit Fc XTA L: 2 .
EM78P809N 8-Bit Microcontroller 66 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) A/D Con verte r Char acter ist ic (V DD =2.5V to 5.5V , Vss=0V, Ta = -40 to 85 ℃ ) Sy mbo l Parameter Condit ion Min.
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 67 (This specification is subject to change without further notice) 6.
EM78P809N 8-Bit Microcontroller 68 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 6.3 Timing Diagram RE SET Timing ( CLK="0") CLK / RESET NOP Instruct ion 1 Executed Tdr h TCC Input Ti m ing ( C LKS ="0" ) CLK TCC Tt cc Ti ns AC Test ing : I nput is dri v en at 2.
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 69 (This specification is subject to change without further notice) A PPEND IX Package T ypes: OTP MCU Pac kag.
EM78P809N 8-Bit Microcontroller 70 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) CONTENTS ..... ......... ........ ..... ........ ......... ........ ........ ........ ........ .........
EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 71 (This specification is subject to change without further notice) APPENDIX ······ ········ ·.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il IBM EM78P809N è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del IBM EM78P809N - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso IBM EM78P809N imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul IBM EM78P809N ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il IBM EM78P809N, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del IBM EM78P809N.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il IBM EM78P809N. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo IBM EM78P809N insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.