PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 197

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
INDEX
A
A/D ...................................................................................... 79
Absolute Maximum Ratings .............................................. 141
AC Characteristics
ADCON0 Register............................................................... 83
ADCON1 Register............................................................... 84
Analog-to-Digital Converter. See A/D
ANSEL Register .................................................... 93, 94, 101
ANSEL0 Register ................................................................ 82
ANSEL1 Register ................................................................ 82
Assembler
B
Block Diagrams
© 2008 Microchip Technology Inc.
Acquisition Requirements ........................................... 86
Analog Port Pins ......................................................... 80
Associated Registers .................................................. 89
Block Diagram............................................................. 79
Calculating Acquisition Time....................................... 86
Channel Selection....................................................... 80
Configuration and Operation....................................... 80
Configuring.................................................................. 85
Configuring Interrupt ................................................... 85
Conversion Clock........................................................ 80
Effects of Reset........................................................... 89
Internal Sampling Switch (Rss) Impedance ................ 86
Operation During Sleep .............................................. 88
Output Format............................................................. 81
Reference Voltage (V
Source Impedance...................................................... 86
Special Event Trigger.................................................. 89
Specifications............................................ 159, 160, 161
Starting a Conversion ................................................. 81
Using the ECCP Trigger ............................................. 89
Load Conditions ........................................................ 150
MPASM Assembler................................................... 138
(CCP) Capture Mode Operation ................................. 58
A/D .............................................................................. 79
Analog Input Model ..................................................... 87
CCP PWM................................................................... 60
Clock Source............................................................... 23
Comparator 1 .............................................................. 64
Comparator 2 .............................................................. 66
Compare ..................................................................... 58
CVref........................................................................... 71
Fail-Safe Clock Monitor (FSCM) ................................. 31
In-Circuit Serial Programming Connections.............. 125
Interrupt Logic ........................................................... 118
On-Chip Reset Circuit ............................................... 109
OPA Module................................................................ 75
PIC16F785/HV785........................................................ 5
RA0 Pin....................................................................... 38
RA1 Pin....................................................................... 38
RA2 Pin....................................................................... 39
RA3 Pin....................................................................... 39
RA4 Pin....................................................................... 40
RA5 Pin....................................................................... 40
RB4 and RB5 Pins ...................................................... 43
RB6 Pin....................................................................... 43
RB7 Pin....................................................................... 43
RC0 and RC1 Pins...................................................... 43
RC0, RC6 and RC7 Pins ............................................ 46
RC1 Pin....................................................................... 46
REF
)........................................... 80
Brown-out Reset (BOR).................................................... 110
C
C Compilers
Capture Module. See Capture/Compare/PWM (CCP)
Capture/Compare/PWM (CCP) .......................................... 57
CCP. See Capture/Compare/PWM (CCP)
CCP1CON Register............................................................ 57
CCPR1H Register............................................................... 57
CCPR1L Register ............................................................... 57
Clock Sources..................................................................... 23
CM1CON0 .......................................................................... 65
CM2CON1 .......................................................................... 68
Code Examples
RC2 and RC3 Pins ..................................................... 47
RC4 Pin ...................................................................... 47
RC5 Pin ...................................................................... 48
Resonator Operation .................................................. 25
Timer1 ........................................................................ 51
Timer2 ........................................................................ 56
TMR0/WDT Prescaler ................................................ 49
Two Phase PWM
VR Reference ............................................................. 74
Watchdog Timer (WDT)............................................ 121
Associated Registers................................................ 112
Calibration ................................................................ 111
Specifications ........................................................... 154
Timing and Characteristics ....................................... 154
MPLAB C18.............................................................. 138
MPLAB C30.............................................................. 138
Associated Registers.................................................. 62
Associated Registers w/ Capture/Compare/Timer1 ... 59
Capture Mode............................................................. 58
CCP1 Pin Configuration ............................................. 58
Compare Mode........................................................... 58
Prescaler .................................................................... 58
PWM Mode................................................................. 60
Specifications ........................................................... 156
Timer Resources ........................................................ 57
Assigning Prescaler to Timer0.................................... 50
Assigning Prescaler to WDT....................................... 50
Changing Between Capture Prescalers ..................... 58
Data EEPROM Read................................................ 105
Data EEPROM Write ................................................ 105
EEPROM Write Verify .............................................. 105
Indirect Addressing..................................................... 22
Initializing A/D............................................................. 85
Initializing PORTA ...................................................... 35
Initializing PORTB ...................................................... 42
Initializing PORTC ...................................................... 45
PIC16F785/HV785
Complementary Output Mode .......................... 101
Simplified Diagram ............................................. 92
Single Phase Example ....................................... 98
CCP1 Pin Configuration ..................................... 59
Software Interrupt Mode ..................................... 59
Special Event Trigger and A/D Conversions ...... 59
Timer1 Mode Selection....................................... 59
Duty Cycle .......................................................... 61
Effects of Reset .................................................. 62
Example PWM Frequencies and Resolutions .... 61
Operation in Power Managed Modes ................. 62
Operation with Fail-Safe Clock Monitor .............. 62
Setup for Operation ............................................ 62
Setup for PWM Operation .................................. 62
DS41249E-page 195

Related parts for PIC16F785-E/SS