PIC16F818/819
PORTB .................................................................................8
Associated Register Summary ...................................44
Functions ....................................................................44
PORTB Register ........................................................43
Pull-up Enable (RBPU Bit) ................................... 17, 54
RB0/INT Edge Select (INTEDG Bit) ..................... 17, 54
RB0/INT Pin, External ................................................97
RB7:RB4 Interrupt-on-Change ...................................97
RB7:RB4 Interrupt-on-Change
Enable (RBIE Bit) ...............................................97
RB7:RB4 Interrupt-on-Change
Flag (RBIF Bit) ............................................. 18, 97
TRISB Register ..........................................................43
PORTB Register .......................................................... 13, 15
Postscaler, WDT
Registers
ADCON0 (A/D Control 0) ........................................... 81
ADCON1 (A/D Control 1) ........................................... 82
CCP1CON (Capture/Compare/
PWM Control 1) ................................................. 65
Configuration Word .................................................... 90
EECON1 (Data EEPROM Access
Control 1) ........................................................... 26
Initialization Conditions (table) ................................... 94
INTCON (Interrupt Control) ........................................ 18
OPTION_REG (Option) ........................................17, 54
OSCCON (Oscillator Control) .................................... 38
OSCTUNE (Oscillator Tuning) ................................... 36
PCON (Power Control) .............................................. 22
PIE1 (Peripheral Interrupt Enable 1) .......................... 19
PIE2 (Peripheral Interrupt Enable 2) .......................... 21
PIR1 (Peripheral Interrupt
Assignment (PSA Bit) .................................................17
Rate Select (PS2:PS0 Bits) ........................................17
Power-Down Mode. See Sleep.
Request (Flag) 1) ............................................... 20
PIR2 (Peripheral Interrupt
Request (Flag) 2) ............................................... 21
SSPCON (Synchronous Serial
Port Control 1) ................................................... 73
SSPSTAT (Synchronous Serial
Power-on Reset (POR) ...............................89, 91, 92, 93, 94
POR Status (POR Bit) ................................................22
Power Control (PCON) Register ................................93
Power-Down (PD Bit) .................................................91
Time-out (TO Bit) ................................................. 16, 91
Power-up Timer (PWRT) .............................................. 89, 92
PR2 Register ......................................................................63
Prescaler, Timer0
Assignment (PSA Bit) .................................................17
Rate Select (PS2:PS0 Bits) ........................................17
PRO MATE II Universal Device Programmer ...................113
Program Counter
Port Status) ........................................................ 72
Status ......................................................................... 16
T1CON (Timer1 Control) ........................................... 57
T2CON (Timer2 Control) ........................................... 64
Reset ............................................................................89, 91
Brown-out Reset (BOR). See Brown-out Reset (BOR).
MCLR Reset. See MCLR.
Reset Conditions ........................................................93
Program Memory
Power-on Reset (POR). See Power-on Reset (POR).
Reset Conditions for All Registers ............................. 94
Reset Conditions for PCON Register ........................ 93
Reset Conditions for Program Counter ...................... 93
Reset Conditions for Status Register ......................... 93
WDT Reset. See Watchdog Timer (WDT).
Interrupt Vector ............................................................9
Map and Stack
PIC16F818 ...........................................................9
PIC16F819 ...........................................................9
Reset Vector ................................................................9
Program Verification .........................................................100
PUSH .................................................................................23
Revision History ............................................................... 163
RP0 Bit ............................................................................... 10
RP1 Bit ............................................................................... 10
R
S
R/W Bit ...............................................................................77
RA0/AN0 Pin ........................................................................7
RA1/AN1 Pin ........................................................................7
RA2/AN2/VREF- Pin ..............................................................7
RA3/AN3/VREF+ Pin .............................................................7
RA4/AN4/T0CKI Pin .............................................................7
RA5/MCLR/VPP Pin ..............................................................7
RA6/OSC2/CLKO Pin ..........................................................7
RA7/OSC1/CLKI Pin ............................................................7
RB0/INT Pin .........................................................................8
RB1/SDI/SDA Pin .................................................................8
RB2/SDO/CCP1 Pin .............................................................8
RB3/CCP1/PGM Pin ............................................................8
RB4/SCK/SCL Pin ................................................................8
RB5/SS Pin ..........................................................................8
RB6/T1OSO/T1CKI/PGC Pin ...............................................8
RB7/T1OSI/PGD Pin ............................................................8
RBIF Bit ..............................................................................43
RCIO Oscillator Mode ........................................................35
Receive Overflow Indicator Bit, SSPOV .............................73
Register File Map
Sales and Support ........................................................... 172
SCL Clock .......................................................................... 77
Sleep .......................................................................89, 91, 99
Software Simulator (MPLAB SIM) .................................... 112
Software Simulator (MPLAB SIM30) ................................ 112
Special Event Trigger ......................................................... 87
Special Features of the CPU ............................................. 89
Special Function Register Summary .................................. 13
Special Function Registers ................................................ 13
SPI Mode
Associated Registers ................................................. 74
Serial Clock ................................................................ 71
Serial Data In ............................................................. 71
Serial Data Out .......................................................... 71
Slave Select ............................................................... 71
SSP
ACK ........................................................................... 77
2
I C
2
I C Operation ..................................................... 76
SSPADD Register .............................................................. 14
SSPIF ................................................................................ 20
SSPOV .............................................................................. 73
SSPOV Bit ......................................................................... 77
PIC16F818 .................................................................11
PIC16F819 .................................................................12
DS39598E-page 168
2004 Microchip Technology Inc.