Datasheet
© 2007 Microchip Technology Inc. DS41202F-page 183
PIC16F684
MOVF........................................................................ 120
MOVLW .................................................................... 120
MOVWF .................................................................... 120
NOP ..........................................................................120
RETFIE ..................................................................... 121
RETLW .....................................................................121
RETURN................................................................... 121
RLF ...........................................................................122
RRF...........................................................................122
SLEEP ...................................................................... 122
SUBLW ..................................................................... 122
SUBWF..................................................................... 123
SWAPF ..................................................................... 123
XORLW.....................................................................123
XORWF..................................................................... 123
Summary Table.........................................................116
INTCON Register................................................................ 15
Internal Oscillator Block
INTOSC
Specifications............................................ 140, 141
Internal Sampling Switch (R
SS) Impedance........................ 72
Internet Address................................................................ 187
Interrupts...........................................................................106
ADC ............................................................................68
Associated Registers ................................................ 108
Comparator................................................................. 59
Context Saving..........................................................109
Data EEPROM Memory Write ....................................76
Interrupt-on-Change.................................................... 32
PORTA Interrupt-on-Change ....................................107
RA2/INT .................................................................... 106
Timer0.......................................................................107
TMR1 ..........................................................................49
INTOSC Specifications ............................................. 140, 141
IOCA Register..................................................................... 33
L
Load Conditions ................................................................ 138
M
MCLR................................................................................100
Internal...................................................................... 100
Memory Organization............................................................7
Data .............................................................................. 7
Data EEPROM Memory.............................................. 75
Program ........................................................................ 7
Microchip Internet Web Site.............................................. 187
Migrating from other PICmicro Devices ............................ 179
MPLAB ASM30 Assembler, Linker, Librarian ................... 126
MPLAB ICD 2 In-Circuit Debugger ................................... 127
MPLAB ICE 2000 High-Performance Universal
In-Circuit Emulator .................................................... 127
MPLAB Integrated Development Environment Software .. 125
MPLAB PM3 Device Programmer ....................................127
MPLAB REAL ICE In-Circuit Emulator System................. 127
MPLINK Object Linker/MPLIB Object Librarian ................ 126
O
OPCODE Field Descriptions............................................. 115
OPTION Register.......................................................... 14, 45
OSCCON Register.............................................................. 20
Oscillator
Associated registers..............................................30, 51
Oscillator Module ................................................................19
EC............................................................................... 19
HFINTOSC.................................................................. 19
HS............................................................................... 19
INTOSC...................................................................... 19
INTOSCIO .................................................................. 19
LFINTOSC.................................................................. 19
LP ............................................................................... 19
RC .............................................................................. 19
RCIO........................................................................... 19
XT............................................................................... 19
Oscillator Parameters ....................................................... 140
Oscillator Specifications.................................................... 139
Oscillator Start-up Timer (OST)
Specifications ........................................................... 143
Oscillator Switching
Fail-Safe Clock Monitor .............................................. 29
Two-Speed Clock Start-up ......................................... 27
OSCTUNE Register............................................................ 24
P
P1A/P1B/P1C/P1D.See Enhanced Capture/
Compare/PWM (ECCP).............................................. 85
Packaging......................................................................... 173
Marking..................................................................... 173
PDIP Details ............................................................. 174
PCL and PCLATH............................................................... 19
Stack........................................................................... 19
PCON Register........................................................... 18, 102
PICSTART Plus Development Programmer..................... 128
PIE1 Register ..................................................................... 16
Pin Diagram
PDIP, SOIC, TSSOP .................................................... 2
QFN.............................................................................. 3
Pinout Descriptions
PIC16F684 ................................................................... 6
PIR1 Register ..................................................................... 17
PORTA ............................................................................... 31
Additional Pin Functions............................................. 32
ANSEL Register ................................................. 32
Interrupt-on-Change ........................................... 32
Ultra Low-Power Wake-Up........................... 32, 34
Weak Pull-up ...................................................... 32
Associated registers ................................................... 39
Pin Descriptions and Diagrams .................................. 35
RA0............................................................................. 35
RA1............................................................................. 35
RA2............................................................................. 36
RA3............................................................................. 37
RA4............................................................................. 37
RA5............................................................................. 38
Specifications ........................................................... 141
PORTA Register................................................................. 31
PORTC............................................................................... 40
Associated registers ................................................... 42
P1A/P1B/P1C/P1D.See Enhanced Capture/
Compare/PWM (ECCP)...................................... 40
Specifications ........................................................... 141
PORTC Register................................................................. 40
Power-Down Mode (Sleep)............................................... 112
Power-on Reset (POR)..................................................... 100
Power-up Timer (PWRT) .................................................. 100
Specifications ........................................................... 143
Precision Internal Oscillator Parameters .......................... 141
Prescaler
Shared WDT/Timer0................................................... 44
Switching Prescaler Assignment ................................ 44
Program Memory.................................................................. 7
Map and Stack.............................................................. 7