
2004 Microchip Technology Inc.
Preliminary
DS41249A-page 169
PIC16F785
L
Load Conditions................................................................148
M
MCLR................................................................................106
Internal......................................................................106
Memory Organization............................................................9
Data ..............................................................................9
Data EEPROM Memory..............................................99
Program........................................................................9
Migrating from other PICmicro Devices ............................165
MPLAB ASM30 Assembler, Linker, Librarian ...................134
MPLAB ICD 2 In-Circuit Debugger ...................................135
MPLAB ICE 2000 High-Performance Universal In-Circuit Em-
ulator.........................................................................135
MPLAB ICE 4000 High-Performance Universal In-Circuit Em-
ulator.........................................................................135
MPLAB Integrated Development Environment Software..133
MPLAB PM3 Device Programmer ....................................135
MPLINK Object Linker/MPLIB Object Librarian ................134
O
OPA Module
Associated Registers..................................................75
OPA1CON ..........................................................................74
OPA2CON ..........................................................................74
OPCODE Field Descriptions.............................................123
Operational Amplifier (OPA) Module...................................73
Operational Amplifier (Opa) Module ...................................73
OPTION_REG Register......................................................16
OSCCON Register..............................................................32
Oscillator
Associated registers....................................................32
Oscillator Specifications....................................................149
Oscillator Start-up Timer (OST)
Specifications............................................................152
Oscillator Switching
Fail-Safe Clock Monitor...............................................30
Two-Speed Clock Start-up..........................................29
P
Packaging .........................................................................161
Marking.....................................................................161
Packaging Details.....................................................162
PCL and PCLATH...............................................................21
Stack...........................................................................21
PCON Register .................................................................108
PICkit 1 Flash Starter Kit...................................................137
PICSTART Plus Development Programmer.....................136
PIE1 Register......................................................................18
Pin Diagram ..........................................................................2
Pinout Descriptions
PIC16F684....................................................................6
PIR1 Register......................................................................19
PORC
RC2.............................................................................45
PORTA................................................................................33
Additional Pin Functions .............................................34
Interrupt-on-change ............................................35
Weak Pull-up ......................................................34
Associated registers....................................................39
Pin Descriptions and Diagrams...................................36
RA0.............................................................................36
RA1.............................................................................36
RA2.............................................................................37
RA3.............................................................................37
RA4............................................................................. 38
RA5............................................................................. 38
Specifications ........................................................... 150
PORTB ............................................................................... 40
Associated registers ................................................... 42
Pin Descriptions and Diagrams .................................. 41
RB4............................................................................. 41
RB5............................................................................. 41
RB6............................................................................. 41
RB7............................................................................. 41
PORTC............................................................................... 43
Associated registers ............................................. 32, 46
Pin Descriptions and Diagrams .................................. 44
RC0 ............................................................................ 44
RC1 ............................................................................ 44
RC3 ............................................................................ 45
RC4 ............................................................................ 45
RC5 ............................................................................ 46
RC6 ............................................................................ 44
RC7 ............................................................................ 44
Specifications ........................................................... 150
Power-Down Mode (Sleep)............................................... 119
Power-up Timer (PWRT).................................................. 106
Specifications ........................................................... 152
Power-up Timing Delays................................................... 108
Precision Internal Oscillator Parameters .......................... 150
Prescaler
Shared WDT/Timer0................................................... 48
Switching Prescaler Assignment ................................ 48
PRO MATE II Universal Device Programmer................... 135
Product Identification........................................................ 176
Program Memory.................................................................. 9
Map and Stack.............................................................. 9
Programming, Device Instructions.................................... 123
PWM. See Two Phase PWM
PWMCLK Register.............................................................. 90
PWMCON0 Register........................................................... 89
PWMCON1 Register........................................................... 95
PWMPH1 Register.............................................................. 91
PWMPH2 Register.............................................................. 92
R
Read-Modify-Write Operations......................................... 123
REFCON (VR control) ........................................................ 71
Register
IOCA (interrupt-on-change)........................................ 35
WPUA (Weak pullup).................................................. 34
Registers
ADCON0 (A/D Control 0)............................................ 81
ADCON1 (A/D Control 1)............................................ 81
ANSEL (Analog Select) .............................................. 80
CCP1CON (CCP Operation) ...................................... 55
CCPR1H..................................................................... 55
CCPR1L ..................................................................... 55
CM1CON0 (C1 Control) ............................................. 63
CM1CON0 (C2 Control)
CM2CON0.......................................................... 65
CM2CON1 (C2 control) .............................................. 66
CONFIG (Configuration Word)................................. 104
Data Memory Map...................................................... 10
EEADR (EEPROM Address)...................................... 99
EECON1 (EEPROM Control 1) ................................ 100
EECON2 (EEPROM Control 2) ................................ 100
EEDAT (EEPROM Data)............................................ 99
INTCON (Interrupt Control) ........................................ 17
IOCA (Interrupt-on-change PORTA) .......................... 35