![](http://datasheet.mmic.net.cn/260000/PIC16F818_datasheet_15942846/PIC16F818_155.png)
2002 Microchip Technology Inc.
Preliminary
DS39598C-page 153
PIC16F818/819
INDEX
A
A/D
Acquisition Requirements
..........................................84
ADIF Bit
......................................................................83
Analog-to-Digital Converter
........................................81
Associated Registers
.................................................87
Calculating Acquisition Time
......................................84
Configuring Analog Port Pins
.....................................85
Configuring the Interrupt
............................................83
Configuring the Module
..............................................83
Conversion Clock
.......................................................85
Conversions
...............................................................86
Converter Characteristics
........................................140
Delays
........................................................................84
Effects of a RESET
....................................................87
GO/DONE Bit
.............................................................83
Internal Sampling Switch (Rss) Impedance
...............84
Operation During SLEEP
...........................................87
Result Registers
.........................................................86
Source Impedance
.....................................................84
Time Delays
...............................................................84
Using the CCP Trigger
...............................................87
Absolute Maximum Ratings
.............................................117
ACK
....................................................................................77
ADCON0 Register
..............................................................81
ADCON1 Register
..............................................................81
ADRESH Register
........................................................ 13
,
81
ADRESH, ADRESL Register Pair
......................................83
ADRESL Register
........................................................ 14
,
81
Application Notes
AN556 (Implementing a Table Read)
........................23
AN578 (Use of the SSP Module in the
I
2
C Multi-Master Environment)
...........................71
AN607 (Power-up Trouble Shooting)
.........................92
Assembler
MPASM Assembler
..................................................111
B
BF Bit
.................................................................................76
Block Diagrams
A/D
.............................................................................83
Analog Input Model
....................................................84
Capture Mode Operation
...........................................66
Compare Mode Operation
.........................................67
In-Circuit Serial Programming Connections
.............101
Interrupt Logic
............................................................96
On-Chip Reset Circuit
................................................91
PIC16F818/819
............................................................6
PWM
..........................................................................68
RA0/AN0:RA1/AN1 Pins
............................................40
RA2/AN2/V
REF
- Pin
....................................................40
RA3/AN3/V
REF
+ Pin
...................................................40
RA4/AN4/T0CKI Pin
...................................................40
RA5/MCLR/V
PP
..........................................................41
RA6/OSC2/CLKO Pin
................................................41
RA7/OSC1/CLKI Pin
..................................................42
RB0 Pin
......................................................................45
RB1 Pin
......................................................................46
RB2 Pin
......................................................................47
RB3 Pin
......................................................................48
RB4 Pin
......................................................................49
RB5 Pin
......................................................................50
RB6 Pin
......................................................................51
RB7 Pin
..................................................................... 52
Recommended MCLR Circuit
.................................... 92
SSP in I
2
C Mode
........................................................ 76
SSP in SPI Mode
....................................................... 74
System Clock
............................................................. 38
Timer0/WDT Prescaler
.............................................. 53
Timer1
....................................................................... 58
Timer2
....................................................................... 63
Watchdog Timer (WDT)
............................................. 98
BOR.
See
Brown-out Reset
Brown-out Reset (BOR)
.............................. 89
,
91
,
92
,
93
,
94
C
Capture/Compare/PWM (CCP)
......................................... 65
Capture Mode
............................................................ 66
CCP Prescaler
................................................... 66
Software Interrupt
.............................................. 66
Timer1 Mode Selection
...................................... 66
Capture, Compare and Timer1
Associated Registers
......................................... 67
CCP Timer Resources
............................................... 65
CCP1IF
...................................................................... 66
CCPR1
...................................................................... 66
CCPR1H:CCPR1L
..................................................... 66
Compare Mode
.......................................................... 67
CCP Pin Configuration
...................................... 67
Software Interrupt Mode
.................................... 67
Special Event Trigger
........................................ 67
Special Trigger Output of CCP1
........................ 67
Timer1 Mode Selection
...................................... 67
PWM and Timer2
Associated Registers
......................................... 69
PWM Mode
................................................................ 68
PWM, Example Frequencies/Resolutions
................. 69
CCP1M0 Bit
....................................................................... 65
CCP1M1 Bit
....................................................................... 65
CCP1M2 Bit
....................................................................... 65
CCP1M3 Bit
....................................................................... 65
CCP1X Bit
.......................................................................... 65
CCP1Y Bit
.......................................................................... 65
CCPR1H Register
.............................................................. 65
CCPR1L Register
.............................................................. 65
Code Examples
Changing Between Capture Prescalers
..................... 66
Changing Prescaler Assignment from
Timer0 to WDT
.................................................. 55
Changing Prescaler Assignment from
WDT to Timer0
.................................................. 55
Clearing RAM Using Indirect Addressing
.................. 23
Erasing a FLASH Program Memory Row
.................. 29
Implementing a Real-Time Clock Using
a Timer1 Interrupt Service
................................. 62
Initializing PORTA
...................................................... 39
Reading a 16-bit Free-Running Timer
....................... 59
Reading Data EEPROM
............................................ 27
Reading FLASH Program Memory
............................ 28
Saving STATUS and W Registers in RAM
................ 97
Writing a 16-bit Free-Running Timer
......................... 59
Writing to Data EEPROM
.......................................... 27
Writing to FLASH Program Memory
.......................... 31
Code Protection
..........................................................89
,
100
Computed GOTO
............................................................... 23
Configuration Bits
.............................................................. 89
Crystal Oscillator and Ceramic Resonators
....................... 33