16F84A Microchip Technology, 16F84A Datasheet - Page 64
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
16F84A
Manufacturer Part Number
16F84A
Description
18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
Manufacturer
Microchip Technology
Datasheet
1.16F84A.pdf
(68 pages)
PIC16F84A
P
Packaging .......................................................................... 55
PICDEM-1 Low-Cost PICmicro Demo Board ..................... 36
PICDEM-2 Low-Cost PIC16CXX Demo Board .................. 36
PICDEM-3 Low-Cost PIC16CXXX Demo Board ................ 36
PICSTART
Pinout Descriptions .............................................................. 4
Pointer, FSR ....................................................................... 11
PORTA ........................................................................... 4, 13
PORTB ........................................................................... 4, 15
Power-on Reset (POR) .......................................... 21, 23, 25
Prescaler ............................................................................ 17
PRO MATE
Product Identification System ............................................. 67
Program Counter ................................................................ 11
Program Memory ................................................................. 5
Programming, Device Instructions ..................................... 33
R
RAM. See Data Memory
Reader Response .............................................................. 66
Register File ......................................................................... 6
Reset ............................................................................ 21, 23
Revision History ................................................................. 59
DS35007A-page 64
Initializing ................................................................... 13
PORTA Register ........................................ 7, 13, 14, 24
RA3:RA0 Block Diagram ............................................ 13
RA4 Block Diagram .................................................... 14
RA4/T0CKI Pin ................................................. 4, 13, 17
TRISA Register .................................... 7, 13, 14, 18, 24
Initializing ................................................................... 15
PORTB Register ........................................ 7, 15, 16, 24
Pull-up Enable (RBPU Bit) ........................................... 9
RB0/INT Edge Select (INTEDG Bit) ............................. 9
RB0/INT Pin, External ...................................... 4, 16, 29
RB3:RB0 Block Diagram ............................................ 15
RB7:RB4 Block Diagram ............................................ 15
RB7:RB4 Interrupt on Change ......................... 4, 15, 29
RB7:RB4 Interrupt on Change Enable (RBIE Bit) ...... 10
RB7:RB4 Interrupt on Change Flag (RBIF Bit) .... 10, 15
TRISB Register .......................................... 7, 15, 16, 24
Oscillator Start-up Timer (OST) ........................... 21, 25
PD Bit ............................................. 8, 23, 28, 31, 32, 34
Power-up Timer (PWRT) ..................................... 21, 25
PWRT Enable (PWRTE Bit) ....................................... 21
Time-out Sequence .................................................... 28
Time-out Sequence on Power-up ........................ 26, 27
TO Bit ....................................... 8, 23, 28, 30, 31, 32, 34
Assignment (PSA Bit) ............................................ 9, 17
Block Diagram ............................................................ 18
Rate Select (PS2:PS0 Bits) ................................... 9, 17
Switching Prescaler Assignment ................................ 18
PCL Register .................................................... 7, 11, 24
PCLATH Register ............................................ 7, 11, 24
Reset Conditions ........................................................ 24
General Purpose Registers .......................................... 6
Interrupt Vector ...................................................... 5, 29
Reset Vector ................................................................ 5
Special Function Registers ...................................... 6, 7
Block Diagram ............................................................ 23
Reset Conditions for All Registers ............................. 24
Reset Conditions for Program Counter ...................... 24
Reset Conditions for STATUS Register ..................... 24
WDT Reset. See Watchdog Timer (WDT)
Plus Entry Level Development System ........ 35
II Universal Programmer .............................. 35
Preliminary
S
Saving W Register and STATUS in RAM .......................... 29
SEEVAL
SLEEP ............................................................. 21, 23, 29, 31
Software Simulator (MPLAB-SIM) ..................................... 37
Special Features of the CPU ............................................. 21
Special Function Registers .............................................. 6, 7
Speed, Operating ..................................................... 1, 22, 49
Stack .................................................................................. 11
STATUS Register ................................................ 7, 8, 24, 29
T
Time-out (TO) Bit. See Power-on Reset (POR)
Timer0 ................................................................................ 17
Timing Diagrams
W
W Register ................................................................... 24, 29
Wake-up from SLEEP ................................ 21, 25, 28, 29, 31
Watchdog Timer (WDT) ............................................... 21, 30
WWW, On-Line Support ................................................ 2, 65
C Bit ....................................................................... 8, 34
DC Bit .................................................................... 8, 34
PD Bit ............................................ 8, 23, 28, 31, 32, 34
Reset Conditions ....................................................... 24
RP0 Bit .................................................................... 6, 8
TO Bit ...................................... 8, 23, 28, 30, 31, 32, 34
Z Bit ....................................................................... 8, 34
Block Diagram ........................................................... 17
Clock Source Edge Select (T0SE Bit) ......................... 9
Clock Source Select (T0CS Bit) .................................. 9
Overflow Enable (T0IE Bit) .................................. 10, 29
Overflow Flag (T0IF Bit) ................................ 10, 18, 29
Overflow Interrupt ................................................ 18, 29
RA4/T0CKI Pin, External Clock ................................. 17
TMR0 Register ................................................ 7, 18, 24
Diagrams and Specifications ..................................... 49
Time-out Sequence on Power-up ........................ 26, 27
Interrupts ............................................................. 31, 32
MCLR Reset .............................................................. 31
WDT Reset ................................................................ 31
Block Diagram ........................................................... 30
Enable (WDTE Bit) .................................................... 21
Programming Considerations .................................... 30
RC Oscillator ............................................................. 30
Time-out Period ......................................................... 30
WDT Reset, Normal Operation .................................. 23
WDT Reset, SLEEP ............................................ 23, 31
Evaluation and Programming System .............. 37
1998 Microchip Technology Inc.