PIC16F84A
DS35007C-page 82 2001-2013 Microchip Technology Inc.
SUBWF.......................................................................41
SWAPF .......................................................................41
XORLW.......................................................................42
XORWF.......................................................................42
Summary Ta b l e...... ................................ .....................36
INT Interrupt (RB0/INT) .......................................................29
INTCON Register.................................7, 10, 18, 20, 25, 29
EEIE Bi t.............................................. .........................29
GIE Bi t...... ............................... ............................. 10, 29
INTE Bit............................... ................................. 10, 29
INTF Bit............................... ............................... ..10, 29
PEIE Bi t.............................................. .........................10
RBIE Bit ...............................................................10, 29
RBIF Bit..................................... .....................10, 17, 29
T0IE Bit...... ....................... ............................... .... 10, 29
T0IF Bit ......................... .................................10, 20, 29
Inter net Addr e ss...................... ........................................ ....85
Inter rupt Sou r ces........................... ...............................21, 29
Block Diag ram............... ........................... ...................29
Data EEPROM Write Co mplete......... .............. .... 29, 32
Interrupt-on-Change (RB7:RB4) ...............4, 17, 29, 32
RB0/INT Pin, External...............................4, 18, 29, 32
TMR0 Overflow....................................................20, 29
Inter rupts, Co n te xt Savin g Duri n g......... ............................ ..30
Interrupts, Enable Bits
Data EEPROM Write Complete Enable (EEIE Bit) .....29
Global Interrupt Enable (GIE Bit) ................................10
Interrupt-on-Change (RB7: RB4) Enable (RB IE Bit)....10
Peripheral Interrupt Enable (PEIE Bit) ........................10
RB0/INT Enable (INTE Bit) .........................................10
TMR0 Overflow Enable (T0IE Bit)...............................10
Inter rupts, Fla g Bits..................... ........................... .............29
Data EEPROM Write Co mplete Flag (EEIF Bit)..........29
Interrupt-on-Change (RB7: RB4) F lag (RBIF Bit) ........10
RB0/INT Flag (INTF Bit)..............................................10
TMR0 Overflow Flag (T0IF Bit)....... ........................ ....10
IRP bit..... ........................................ .................................... ..8
M
Master Clear (MCLR)
MCLR Pin............................ ........................................ ..4
MCLR Reset, Normal Operation........ .......... ...............24
MCLR Reset, SLEEP...... ............................... ......24, 32
Memory Organization............................................................5
Data EEPROM Mem o ry.................. ............................13
Data Memor y .......................... ........................... ...........6
Program Memory ..........................................................5
Microc h i p In ternet Web Site............................. ...................85
Migration from Baseline to Mid-Range Devices..................80
MPLAB ASM30 Assembler, Linker, Librarian .....................44
MPLAB Integrated Development Environment Software ....43
MPLAB PM3 Device Programmer.......................................46
MPLAB REA L IC E In -Circuit Emula tor Syst e m...................45
MPLINK Object Linker/MPLIB Object Librar ia n ....... ...........44
O
OPCODE Fiel d Descri p tions... .......... ............... ...................35
OPTION Register..................................................................9
INTEDG Bi t...... ................... ............................... ...........9
PS2:PS0 Bits ................................................................9
PSA Bit..........................................................................9
RBPU Bit........ ............................... ................................9
T0CS Bit........................................................................9
T0SE Bit........................................................................9
OPTION_R EG Re g i ster.... ....................... .........7, 18, 20, 25
INTEDG Bit........ ..................................................... .... 29
PS2:PS0 Bits.............................................................. 19
PSA Bit ... .. ...... ..... ...... .. ...... ...... ..... ...... ...... ..... ...... ...... . 19
OSC1 Pin.............................................................................. 4
OSC2 Pin.............................................................................. 4
Oscillato r Configurat ion ....................... .........................21, 22
Block Diag ram ................ ....................... ...............22, 23
Capacitor Selection for Ceramic Resonators.............. 22
Capacitor Selection for Crystal Oscillator................... 23
Crystal Oscillator/Ceramic R esonators....................... 22
HS.........................................................................22, 28
LP .........................................................................22, 28
Oscillat or Ty pes................ ........... .......... ...... ............... 22
RC .................................................................22, 23, 28
XT.........................................................................22, 28
P
Packagi n g Informa tio n............................... ......................... 69
Marking....................................................................... 69
PD bit.................................................................................... 8
Pinout Descriptions................. .. .... ......... .... .... .. .... ......... .... ....4
Pointer, FSR....................................................................... 11
POR. See Power-on Reset
PORTA ...........................................................................4, 15
Associated Registers.................................................. 16
Functions.................................................................... 16
Initializing.................................................................... 15
PORTA Register.......................................7, 15, 16, 25
RA3:RA0 Block Diagra m........ ........................ ............ 15
RA4 Block Diagram....................................................15
RA4/T0CKI Pin......... .............. ............... ..........4, 15, 19
TRISA Register ...................................7, 15, 16, 20, 25
PORTB ...........................................................................4, 17
Associated Registers.................................................. 18
Functions.................................................................... 18
Initializing.................................................................... 17
PORTB Register.......................................7, 17, 18, 25
Pull-up Enable Bit (RBPU Bit)....................................... 9
RB0/INT Edge Select (INTEDG Bit) ............................. 9
RB0/INT Pin, External......................................4, 18, 29
RB3:RB0 Block Diagra m........ ........................ ............ 17
RB7:RB4 Block Diagra m........ ........................ ............ 17
RB7:RB4 Interrupt-on-Change ........................4, 17, 29
RB7:RB4 Interrupt-on-Change Enable (RBIE Bit )...... 10
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit).....10, 17
TRISB Register .........................................7, 17, 18, 25
Postscaler, WDT
Assignment (PSA Bit)................................................... 9
Rate Select (PS2:PS0 Bits).......................................... 9
Postscaler. See Prescaler
Power-down (PD ) Bit. See Power-on Reset (POR)
Power-down Mode. See SLEEP
Power-on Reset (POR)..........................................21, 24, 26
Oscillator Start-up Timer (OST)............. ...... .........21, 26
PD Bit ... ...... ......... ...... ...... ...... ..... ........8, 24, 28, 32, 33
Power-up Ti mer (P WRT )......... ..... ...... .......... ..... ...21, 26
Time-out Sequence ................................... ............. .... 28
Time-out Sequence on Power-up.............. ...........27, 28
TO Bit ..........................................8, 24, 28, 30, 32, 33
Prescaler............................................................................. 19
Assignment (PSA Bit) ................................................. 19
Block Diag ram ........................ ................... ................. 20
Rate Select (PS2:PS0 Bits)........................................19
Swit ch i n g Pre scal e r A ss i g nmen t .. .. .. ...... ......... .. ...... ... 20