![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
em78p258n 8-bit microprocessor with otp rom product specification d oc . v ersion 1.0 elan microelectronics corp. june 2005
t r adem ark acknowledgm ents : ibm is a registered tradem ark and ps/2 is a tradem ark of ibm. w i ndows is a tradem ark of microsoft corporation. l a n a n d e l a n l o g o are tradem a r k s o f e l a n m i c r o e l e c t r o n i c s c o r p o r a t i e o n . l a n m i c r o e l e c t r o n i c s c o r p o r a t i o n e d r i n t e d i n t a iwan i cs assum e s o n t ai ned i n p ecial i n ci de nt al , or c ons eq ue nt i a l dam a ges ari s i n g f r o m t h e u s e of s u ch i n f o r m at i o n e o r n o n d i scl o sure agreem ent , and ces, or sy st em s. use of n y means w i thout the expressed w r itten permission of elan microelectronics. el an microelectronics c o rpora t ion d 1 http : //w w w .em c .com .tw copy right ? 2 0 0 5 b y e a l l r i g h t s r e s e r v p the cont ent s of t h i s speci fi cat i on are subject t o change wi t hout furt her not i ce. elan m i croel ect r o n no responsibility concerning the accuracy , adequacy , or com p leteness of this specification. elan m i croel ect roni cs m a kes no com m i t m ent t o updat e , or t o keep current t h e i n form at i on and m a t e ri al c this specification. such inform a tion and m a terial m a y change to conform to each confirm e d order . in no event shal l elan m i croel ect roni cs be m a de responsi b l e for any cl ai m s at t r i but ed t o errors, om i ssi ons, or ot he r i n acc urac i e s i n t h e i n f o r m at i on or m a t e ri al cont ai ne d i n t h i s s p eci fi ca t i on. el a n m i croel ect r oni cs shal l n o t be lia ble for direct, indirect, s or m a terial. the soft ware (i f any ) descri bed i n t h i s speci fi cat i on i s furni s hed under a l i c e n s m a y be used or copied only in accordance with the term s of such agreem ent. elan m i croel ect roni cs product s are not i n t e nded for use i n l i f e support appl i a n c e s , d e v i elan m i croel ect roni cs product i n such appl i cat i ons i s not support e d and i s prohi bi t e d. n o p a r t o f th is speci fica ti on ma y be reprodu ced o r tra n smi t ted i n any fo rm o r by a he a dqua rte r s : n o . 1 2 , i n n o v a t i o n r o a hsinchu science park hsinchu, t a iwan 308 tel : +886 3 563-9977 fa x : +886 3 563-9966 hong kong: elan (hk) micro e l e c t r o n i cs t r e i n g elanhk@emc.com.hk corpora t ion, lt d. r m . 1 0 0 5 b , 1 0 / f e m p i r e c e n 68 mody road, t s i m s h a t s u k o w l o o n , h o n g k o tel : +852 2723-3376 fa x : +852 2 7 2 3 - 7 7 8 0 usa : ela n i n f o r m a tion t e c hnology u i t e 2 5 0 g a , c a 95070 fa x : +1 408 366-8220 group 1821 saratoga a v e . , s s a r a t o usa tel : +1 408 366-8223 europe : elan m i c r o e lectro n i cs co rp . r l a n d http : //www. elan-europe. c om (europe ) siewerdtstrasse 105 8 0 5 0 z u r i c h , s w i t z e tel : +41 43 299-4060 fa x : +41 43 299-4079 sh en zh en : elan micro e l e c t r o n i cs k i n a fa x : +86 755 2601-0500 i b o r o a sh en zh en , l t d . ssmec bldg., 3f , gaoxin s. a v e. shenzhen hi-t e c h i n d u s t r i a l p a r s h e n z h e n , g u a n d o n g , c h tel : +86 755 2601-0565 sha ngha i: elan micro e lectro n i cs sha ngha i corpora t ion, lt d. 23/bldg. #1 1 5 l a n e 5 7 2 , b d p a r k fa x : +86 021 5080-4600 zhangjiang hi-t e c h shanghai, china tel : +86 021 5080-3866 conte n ts product specification (v1.0) 06.16.2005 ? iii contents 1 general d escripti on ...................................................................................... 1 2 featur es ......................................................................................................... 1 3 pin configurat ions (p ackage) ...................................................................... 2 3.1 em78p258np/n pin assignments ..................................................................... 2 4 functional blo ck diagra m ............................................................................ 3 5 pin descr iptions ............................................................................................ 4 5.1 em78p258np/n pin description........................................................................ 4 6 function descr iption..................................................................................... 5 6.1 operational registers......................................................................................... 5 6.1.1 r0 (indirect address register) ...........................................................................5 6.1.2 r1 (time cl ock /count er)....................................................................................5 6.1.3 r2 (program co unter) and stack........................................................................5 6.1.3.1 data memory configuration .................................................................7 6.1.4 r3 (statu s register) ............................................................................................8 6.1.5 r4 (ram sele ct register) ...................................................................................8 6.1.6 r5 ~ r6 (por t 5 ~ port 6) ....................................................................................9 6.1.7 r7 (p ort 7)...........................................................................................................9 6.1.8 r8 (aisr: adc input select r egister) ..............................................................10 6.1.9 r9 (adcon: adc c ontrol register).................................................................11 6.1.10 ra (adoc: adc offset calibration r egister) ...................................................12 6.1.11 rb (addata: conv erted value of adc)...........................................................12 6.1.12 rc (addata1h: conv erted value of adc) ......................................................13 6.1.13 rd (addata1l: conv erted value of adc) ......................................................13 6.1.14 re (interrupt status 2 & wake-up contro l register) ........................................13 6.1.15 rf (interrupt st atus 2 regi ster) ........................................................................14 6.1.16 r10 ~ r3f .........................................................................................................14 6.2 special purpose registers ............................................................................... 15 6.2.1 a (accum ulator ).................................................................................................15 6.2.2 cont (contro l register)...................................................................................15 6.2.3 ioc50 ~ ioc70 (i/o po rt control re gister) ......................................................16 6.2.4 ioc80 (tcca c ontrol regi ster)........................................................................16 6.2.5 ioc90 (tccb and tccc control regi ster)......................................................17 6.2.6 ioca0 (ir and tccc sc ale control re gister) .................................................17 6.2.7 iocb0 (pull-down control register).................................................................19 6.2.8 iocc0 (open -drain control register) ..............................................................19 6.2.9 iocd0 (pull-high control regi ster)...................................................................20 6.2.10 ioce0 (wdt control & in terrupt mask registers 2) ........................................20 6.2.11 iocf0 (interrupt mask register).......................................................................21 6.2.12 ioc51 (tcca counter ) .....................................................................................22 conte n ts iv ? product specification (v1.0) 06.16.2005 6.2.13 ioc61 (tccb counter ) .....................................................................................22 6.2.14 ioc71 (tccbh / msb count er) .......................................................................22 6.2.15 ioc81 (tccc counter).....................................................................................23 6.2.16 ioc91 (low-t ime regist er) ..............................................................................23 6.2.17 ioca1 (high ti me regist er) .............................................................................24 6.2.18 iocb1 high/low time scale control register) ................................................24 6.2.19 iocc1 (tcc pres caler count er) ......................................................................25 6.3 tcc/wdt and prescaler.................................................................................. 25 6.4 i/o ports ........................................................................................................... 26 6.4.1 usage of port 5 input chan ge wake-up/interr upt function..............................29 6.5 reset and wake-up ....................................................................................... 29 6.5.1 reset and wake -up operat ion .......................................................................29 6.5.1.1 wake-up and interrupt modes operat ion summa ry..........................32 6.5.1.2 register initial values afte r reset ......................................................34 6.5.1.3 controller rese t block di agram.........................................................38 6.5.2 the t and p status under status (r3) regist er ............................................39 6.6 interrupt ............................................................................................................ 39 6.7 analog-to-digital converter (adc) .................................................................. 42 6.7.1 adc control register (a isr/r8, adcon/r9 , adoc/ra) ...............................42 6.7.1.1 r8 (aisr: adc i nput select r egister) ...............................................42 6.7.1.2 r9 (adcon: ad control regi ster) ....................................................43 6.7.1.3 ra (adoc: ad offset calibration register).......................................44 6.7.2 adc data register (addata/ rb, addata1h/rc, addata1l/rd) ...............45 6.7.3 adc samp ling time ..........................................................................................45 6.7.4 ad conv ersion time .........................................................................................45 6.7.5 adc operation during sle ep mode ...................................................................45 6.7.6 programming proces s/considerations..............................................................46 6.7.6.1 programmi ng process........................................................................46 6.7.6.2 sample de mo programs ....................................................................47 6.8 infrared remote control application/pwm waveform generation................... 49 6.8.1 over view ...........................................................................................................49 6.8.2 function description..........................................................................................50 6.8.3 programming the related registers ................................................................52 6.9 timer / counter................................................................................................. 53 6.9.1 over view ...........................................................................................................53 6.9.2 function description..........................................................................................53 6.9.3 programming the re lated regi sters .................................................................55 6.10 oscillator .......................................................................................................... 55 6.10.1 oscilla tor mo des................................................................................................55 6.10.2 crystal oscillator/cer amic resonators (xtal) .................................................56 6.10.3 external rc oscillator mode.............................................................................58 6.10.4 internal rc oscillator mode ..............................................................................59 conte n ts product specification (v1.0) 06.16.2005 ? v 6.11 power-on considerations ................................................................................. 59 6.11.1 programmable wd t time-out period ..............................................................60 6.11.2 external powe r-on reset ci rcuit .......................................................................60 6.11.3 residual vo ltage protec tion ..............................................................................60 6.12 code option ..................................................................................................... 62 6.12.1 code option r egister (w ord 0) .........................................................................62 6.12.2 code option r egister (w ord 1) .........................................................................63 6.12.3 customer id r egister (w ord 2) .........................................................................64 6.13 instruction set .................................................................................................. 64 7 absolute maxi mum rati ngs ....................................................................... 66 8 dc electrical char acteristic s ..................................................................... 67 8.1 ad converter characteristics........................................................................... 68 8.2 device characteristics...................................................................................... 69 9 ac electrical char acteristic ....................................................................... 70 10 timing diag rams ......................................................................................... 71 appendix a. package types summary ........................................................................... 72 b packaging confi gurations .......................................................................... 72 b.1 14-lead plastic dual in line (pdip) ? 300 mil ................................................. 72 b.2 14-lead plastic small outline (sop) ? 150 mil .............................................. 73 c quality assurance and reliabi lity.............................................................. 74 c.1 address trap detect......................................................................................... 74 conte n ts vi ? product specification (v1.0) 06.16.2005 specification revision history doc. version revision description date 1.0 initial official version 2005/06/16 em78p258n 8-bit microprocessor w i th otp rom product specification (v1.0) 06.16.2005 ? 1 (this specification is subject to change without further notice) 1 general description em78p258n are 8-bit microprocessors designed and developed with low-power and high-speed cmos technology. it is equipped wi th a 2k*13-bit electrical one time programmable read only memory (otp-rom). with its otp-rom feature, it is able to offer a convenient way of developing and verifying your programs. moreover, it provides a protect bit to guard against code intrusion, as well as 3 code option words to accommodate your requirements. furt hermore you can take advantage of elan writer to easily write your development code into the em78p258n. 2 features operating voltage range : 2.3v~5.5v base on 0 c ~ 70 c (commercial) 2.5v~5.5v base on ?40 c ~ 85 c (industrial) operating frequency range (base on 2 clocks): ? crystal mode: dc ~ 20mhz/2clks, 5v; dc ~ 8mhz/2clks, 3v ? rc mode: dc ~ 4mhz/2clks, 5v; dc ~ 4mhz/2clks, 3v low power consumption: ? less than 1.9 ma at 5v/4mhz ? typically 15 a, at 3v/32khz ? typically 1 a, during sleep mode built-in rc oscillator 4mhz, 8mhz,1mhz, 455khz (auto calibration) programmable wdt time (4.5ms : 18ms) independent programmable prescaler of wdt one configuration register to match y our requirements, and user?s id code for customer use is provided 80 8 on chip registers (sram, general purpose register) 2k 13 on chip rom bi-directional i/o ports 8-level stacks for subroutine nesting 8-bit real time clock/counter (tcc) with se lective signal sources, trigger edges, and overflow interrupt 8-bit real time clock/counter (tcca, t ccc) and 16-bit real time clock/counter (tccb) with selective signal sources, trigger edges, and overflow interrupt 4-bit multi-channel analog-to-digital converter with 12-bit resolution easy-implemented ir (infrared remote control) application circuit em78p258n 8-bit microprocessor w i th otp rom 2 ? product specification (v1.0) 06.16.2005 (this specification is subject to change without further notice) power down (sleep) mode five interrupt sources : ? tcc, tcca, tccb, and tccc overflow interrupt ? input-port st atus change interr upt (wake-up from sleep mode) ? external interrupt ? ir/pwm interrupt ? adc completion interrupt programmable free running watchdog timer 8 programmable pull-high i/o pins 8 programmable open-drain i/o pins 8 programmable pull-down i/o pins. t w o or four clocks per inst ruct ion cy cle package types : ? 14 pin dip 300mil : em78p258np ? 14 pin sop 150mil : EM78P258NN power on volt age detector available (2.0v 0.1v) 3 pin configurations (package) 3.1 em78p258np/n pin assignment s p 52/adc2 p 53/ad c3 p 5 4/tcc/v r ef /reset vs s p 60//i nt p 61/tcca p 55/osci p7 0 / o s c o vd d p6 7 / i r o u t em78p25 8np em78p258 nn 1 2 3 4 5 6 7 14 13 12 11 10 9 8 p 66/cin- p 5 0/adc0 p 51/ad c1 f i g. 3-1 pin assignment ? em78p258np/n em78p258n 8-bit microprocessor w i th otp rom produc t spe c i fic a t ion (v1.0) 06.16.2 005 ? 3 (this specification is subject to change without further notice) 4 functional block diagram da ta & c o n t rol b u s o s c illa t o r tim i n g con t r o l wdt t i m e r pres cal e r ra m r4 r1 ( t c c ) int e r r up t co n t ro ll er rom ins t ruct i o n re g i s t e r r2 alu ac c r3 in st r u c t ion dec o der osc i osc o /r e s e t tc c /in t io c 5 r5 coun te r stack 6 io c 6 / 7 r6/ 7 po rt5 * 0 1 * / 5 1 5 $ $ " 1 1 * 3 0 6 5 1 0 4 $ 0 " % $ 1 " % $ 1 " % $ 1 " % $ 1 7 3 & |