You are on page 1of 8
PIC16F87XA Enhanced Flash Microcontrollers MICROCHIP ‘Analog Features: + 200i upto Bchamel Anan oD Converter (xD) + Brown-out Reset (GOR) * Analog Comparator mos with Two anaiog compart: Propranmebie ven votage lerence (Rule Propransmabie nul mulplesing tom device ‘pute ad nema votagerelrence High-Performance RISC CPU: + Oaly 35 single word insrctons earn + Ashley instuctons except or progtam tranche, wir wore + Operatiog speed: DC ~20 ate cc input Be = 200m naucton ea + Upto ae x-4 words of Fah Program Marry, Up o 3682 byes of Data Memary (RAN, Upto 256 ra byes of EEPROM Data Memory al Microcontroller Features: + 1.000000 easelwrte ge Dat EEPROM senor types + Dat EEPROM Retention» 40 years + Setepropranmabie under soteare contol + In-creut Seal Programming™ (CSP™) + Shgle-upay SY Ciel Sera Progaming + Wei Timer (WOT) win town aneip RC ‘scion orale operaon + Power svng Stop made + ImCreut Debug (CO) vi two pins Peripheral Features: + Syeda atl a6 wh SP + Sea! yreneus Avene Recer (eMos Technology: ‘Taare’ (USARTSCh win ade + Longo ihpned PashEEPROM Put ive Pot (PSE) - te wi ee. "SORTER teny | tangerine 00 55) Browoutdtctan cet + Conrad asl ep anges ss ger 284 [ete |" [aD on] om 5] ae res Pin Diagrams (Continued) PICABFETAAGTTA PIC16F87XA PIC16F87XA PIC16F87XA 4.0 DEVICE OVERVIEW snd Figue 12, reapacvely The pout or ese Mis Range Reference Marsal (0835023), wrch my FIGURE 12: __PICIGFB74N/B77A BLOCK DIAGRAM > Ramee} Ot Tae asm : it ‘Radnor eens TABLE 1-1: _ PIC16F87XA DEVICE FEATURES ftrare Key Features PIciersT3A | PIOIFaT4A | PIOIOFATGA | PIOTOFATTA fSerare pina rea DES aE—[ BC aOR] “DC 20 “BOAT fener ‘ emmosn | eweosy | wriosn | ewr.osn EDX woes 1 sears an reasaneray ak ak ok ok {5 esc aay RT a a 3a Ea Becae [EEPROMDat Menor Tes 8 128 56 258 ene : 3 3 z 3 j i” iL iL i csoureConpaerM Raa z z z z I +t {f oa PIC16F87XA PIC16F87XA FIGURE23: _PICIEFBTEAA77A REGISTER FILE MAP 222 SPECIAL FUNCTIONREGISTERS The Speci Furson Rags can bo cna io ee re Cie ee TABLE 24: _ SPECIAL FUNCTION REGISTER SUMMARY ae i Se ee ed [ioe [or ——[Raearg oa oto scone a FOR aes a nay Ta [apa] BEAT] ann [TpcuaT] ex [PCO] oan [FECT] sean ae «[=[=]® TET! Tes femlaw SE | och Te oe toon [Seen] fon o [= [PORTA ba a ar wn PORTA pe a So AGI ico] son oon ion SE ae a a el Sh] geez fim | gana | in a a a oe Bea | 50 Sogn, | tien tebe | 1990 farce roars [OOPS TOORPT [FOOTPRS TREN [RCE [ROD] ae BS ve so eyes med far scene | caper [Sora | ear [Sor [a ea me [Pam] [am | 1 fe I an I Uninpamene amano ton rd 22 : ce PIC16F87XA PIC16F87XA TABLE 2.41 SPECIAL FUNCTION REGISTER SUNMARY CONTINUED) TABLE 2.4 SPECIAL FUNCTION REGISTER SUNMARY (CONTINUED) a Zs fae [res — roar oo sepa or Pee mee De ee pep epee fee ee ef = = a Zs fe oe ee a fa ee esate page 20 2003 eran Tetralogy 203 eoahp Teton esos age 21 PIC16F87XA PIC16F87XA 222.1 Status Register See gic Furerave the TO ard PD sae ot bow ules (where w= unchanged). Wis recomended teeo, th ony BCE 8. Wale: The Cand DO Bs opera oe = BOTT] snd 3g Boren be respecbey, 9 sub inetucions for eampls, REGISTER 2-1: STATUS REGISTER (ADDRESS 03h, 83h, 103h,183h) Lone Teer Two Te Tm Tz Te Te | DLT IR Regiter Sank Stet be (useor nee adtessng) = Sank 2,3100H-IFFm) = Bank0, On) 65 RPLRPO: Roper Sank Selec is usd oda adtessing) 1 = Bank 3 (1800-1FF) = Bank 2 (100-17FH) 02 Bank # aoe) = Bank 0(00%-7Fm) ac bank 28 Oy, = The ult an ethat ogi operation 20 (8 The sultan thet o ge operations nl 200 1c: big cary SoneW bt (ALONE, ADSL, SUBL, SUBHPhabuctons) tor Doro ie polarity severed) ©: CaryiBonow bt unr, ADDL, UBL, SUBKP isbuetone) ote: For BST, the poay a revered. A subracon ia extued by adding th o's amplement of he secané operand: For rte ee aucion, ts Bs [resent R= Reade ot We Witabe Bt Us Unimplamented it a8 380 15.0 INSTRUCTION SET SUMMARY ‘The PICT instruction set i ight oahogonal and it -ientad operations ispecerad in Fre Tor, whe vastus opoade MPASAI™ Assent. comple desroton of each Inefucton ao sralbinn fe PIOMG® Ma Range INCU FamiyReterence Maral (0535029, te operaon at be laced Ha et, he oss cond eye exacted ab aoe Tea a eae SNS wi 451. READ-MODIFY.WRITE OPERATIONS. telneeucionpedorms a Feadfodiy tite (RAL) TABLE 154: OPCODE FIELD DESCRIPTIONS 7 [ Regie arose OTS DTT Wong ait (acoumulstn Bont caetoraton 963) FIGURE 154: GENERAL FORMAT FOR INSTRUCTIONS 23 eoanpTetray he PIC16F87XA PIC16F87XA TABLE 152: PICIGFE7XA INSTRUCTION SET a Description yin SSR Onno a | ces 2: Rm aust) modes ra condones. lnc qs cy. Tha sand a Tote! Adisonalriomaion on Be mivange iadion sal aalabe he PICMG? MiGRange NEU FamayRetrence Mansa (8023). 18.2 Instruction Deser a Toner scr Te Operands: Ozh 255, Operands ttt Operation (m+ k-51) osbe? ‘Sie Ate 6, 00,2 Operation: O-> feb») Sa Tee oon aE Tore est Te Operands Opeande ost ena osbe? persion: 4) (9-4 (stan) Operaten: 1-59) Sa Tete NIN SCE Taser ars 1 Operands: zk255, Operands 0s Cperaton: I) AND. (8) -900) 5 beer =a Ea Tosa errs Te Operands ostzt27 pean eto Cperton: ——() AND. ()-s (destin) Operation: spit (ets) =0 saan page 160 2003 eran Tetralogy PIC16F87XA PIC16F87XA Sar Taser) CREE irae Tate CORNET Sree Taba] DECTSE Ta irae Taner] ROTSE Te Operands: Osks2007 Operanss: None Operands: osts127 Opens: Osta127 Operation: (PCY 4-970, Operation: ooh DT sen sen WSbestan Oo DT preset Operation: (9-1 (destaton, Operation: (+4 (stan, (eetariet2s) spciaa> 138 Soowreun=o Shiowreaut= 0 Sere PCs) putes ota Deseipon: —cLRNDTinseton resets the decomented 6-0 eroaut “ incremented a theres nee Tene RET one TeestT Cor TS coro Uaconstons Branch ror Incusve OR Literal with W Ovennds §—ostst27 Operands: astst27 Cen taht Geni Syne Tobe GoTo © Snare Taba TORE © v2 Operation: hs (Gestation) Operands: 207 Opens: ask Suis Aedes: 2 Sous Atectes: Operation: kp Po Operation: (H).OR K-90) the essed beck ‘The devenot immedate values ‘Trereulis paced inthe WE Snr Tory CORT irae Taba DEC Operands: None Operate: etc ta7 nor Increment roRwe nctusive ORW wit erator: 008-00) sero om omy operon that a isstnaen) Snr Tae Nor Te Sra Tata) TORAF Te sis Afectes: Sus Afectes: 2 Operands astet27 Operanes: —actatar Descipion: Ww Jee, 2a (2) Deseton: —Decementregiter 7. sis sepa) a Sesion: Wve cle Ze i) aa Docrerertegt Operation: (+ ¥en) Operation: (N).OR.()-s4desnaon) PIC16F87XA PIC16F87XA Operands Operation Operands Operation Operands Operation Tosa) RF te sea) Car ere Toser] RETR Tabet] ARF Ta osterr sero) Tater) STEEP Toro ‘Tories Watenog Tees and Taser] SUB K-50) complement method) hom the Tosary SUBNF Ta ostetar seta (0-009 = (ettnaton) Operands Operation Operands Operation Taser] SWAT ae Toear] KORN a osterr Operands: ote t2r Geren eetoa (30>) -5 (destination), Operation: ().XOR.()->(esnaon) (terse) estnatone30>) Srneaews 2 Taser) NOR (1) KOR K+ 09)

You might also like