English
Language : 

PIC16F84A_13 Datasheet, PDF (81/90 Pages) Microchip Technology – 18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
INDEX
A
Absolute Maximum Ratings ................................................ 47
AC (Timing) Characteristics ................................................ 53
Architecture, Block Diagram ................................................. 3
Assembler
MPASM Assembler..................................................... 44
B
Banking, Data Memory ......................................................... 6
Block Diagrams
Crystal/Ceramic Resonator Operation ........................ 22
External Clock Input Operation ................................... 22
External Power-on Reset Circuit................................. 26
Interrupt Logic ............................................................. 29
On-chip Reset ............................................................. 24
PIC16F84A ................................................................... 3
PORTA
RA3:RA0 Pins ..................................................... 15
RA4 Pins ............................................................. 15
PORTB
RB3:RB0 Pins ..................................................... 17
RB7:RB4 Pins ..................................................... 17
RC Oscillator Mode..................................................... 23
Timer0......................................................................... 19
Timer0/WDT Prescaler ............................................... 20
Watchdog Timer (WDT) .............................................. 31
C
C (Carry) bit .......................................................................... 8
C Compilers
MPLAB C18 ................................................................ 44
CLKIN Pin ............................................................................. 4
CLKOUT Pin ......................................................................... 4
Code Examples
Clearing RAM Using Indirect Addressing.................... 11
Data EEPOM Write Verify........................................... 14
Indirect Addressing ..................................................... 11
Initializing PORTA....................................................... 15
Initializing PORTB....................................................... 17
Reading Data EEPROM ............................................. 14
Saving STATUS and W Registers in RAM ................. 30
Writing to Data EEPROM............................................ 14
, Code Protection ........................................................... 21 33
Configuration Bits................................................................ 21
Configuration Word ............................................................. 21
Conversion Considerations ................................................. 78
Customer Change Notification Service ............................... 85
Customer Notification Service............................................. 85
Customer Support ............................................................... 85
D
Data EEPROM Memory ...................................................... 13
Associated Registers .................................................. 14
EEADR Register ..............................................7, 13, 25
EECON1 , Register............................................7 13, 25
EECON2 , Register............................................7 13, 25
EEDATA Register ............................................7, 13, 25
Write Complete Enable (EEIE Bit) .............................. 29
Write Complete Flag (EEIF Bit)................................... 29
Data EEPROM Write Complete .......................................... 29
Data Memory ........................................................................ 6
Bank Select (RP0 Bit) ................................................... 6
Banking ......................................................................... 6
DC bit .................................................................................... 8
 2001-2013 Microchip Technology Inc.
PIC16F84A
, DC Characteristics........................................................49 51
Development Support ......................................................... 43
Device Overview................................................................... 3
E
EECON1 Register
EEIF Bit ...................................................................... 29
Electrical Characteristics .................................................... 47
Load Conditions.......................................................... 54
Parameter Measurement Information......................... 54
PIC16F84A-04 Voltage-Frequency Graph ................. 48
PIC16F84A-20 Voltage-Frequency Graph ................. 48
PIC16LF84A-04 Voltage-Frequency Graph ............... 48
Temperature and Voltage Specifications - AC ........... 54
Endurance ............................................................................ 1
Errata .................................................................................... 2
External Clock Input (RA4/T0CKI). See Timer0
External Interrupt Input (RB0/INT). See Interrupt Sources
External Power-on Reset Circuit......................................... 26
F
Firmware Instructions ......................................................... 35
I
I/O Ports ............................................................................. 15
, ID Locations..................................................................21 33
, In-Circuit Serial Programming (ICSP)...........................21 33
INDF Register ....................................................................... 7
Indirect Addressing ............................................................. 11
FSR Register .............................................. 6, 7, 11, 25
INDF Register.................................................. 7, 11, 25
Instruction Format............................................................... 35
Instruction Set..................................................................... 35
ADDLW....................................................................... 37
ADDWF ...................................................................... 37
ANDLW....................................................................... 37
ANDWF ...................................................................... 37
BCF ............................................................................ 37
BSF............................................................................. 37
BTFSC........................................................................ 38
BTFSS ........................................................................ 37
CALL........................................................................... 38
CLRF .......................................................................... 38
CLRW ......................................................................... 38
CLRWDT .................................................................... 38
COMF ......................................................................... 38
DECF.......................................................................... 38
DECFSZ ..................................................................... 39
GOTO ......................................................................... 39
INCF ........................................................................... 39
INCFSZ....................................................................... 39
IORLW ........................................................................ 39
IORWF........................................................................ 39
MOVF ......................................................................... 40
MOVLW ...................................................................... 40
MOVWF...................................................................... 40
NOP............................................................................ 40
RETFIE....................................................................... 40
RETLW ....................................................................... 40
RETURN..................................................................... 40
RLF............................................................................. 41
RRF ............................................................................ 41
SLEEP ........................................................................ 41
SUBLW....................................................................... 41
DS35007C-page 81