PIC16F818-I/SO Microchip Technology Inc., PIC16F818-I/SO Datasheet - Page 167

no-image

PIC16F818-I/SO

Manufacturer Part Number
PIC16F818-I/SO
Description
18 PIN, 1.75 KB FLASH, 128 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F818-I/SO

A/d Inputs
5-Channel, 10-Bit
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
I2C/SPI
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin SOIC
Programmable Memory
1.75K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F818-I/SO
Manufacturer:
MICROCHIP
Quantity:
3 290
Part Number:
PIC16F818-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F818-I/SO
0
INDEX
A
A/D
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
Assembler
B
BF Bit ................................................................................. 77
Block Diagrams
 2004 Microchip Technology Inc.
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
Conversion Requirements ....................................... 142
Conversions ............................................................... 86
Converter Characteristics ........................................ 141
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
Use of the CCP Trigger .............................................. 87
AN556 (Implementing a Table Read) ........................ 23
AN578 (Use of the SSP Module in the
AN607 (Power-up Trouble Shooting) ......................... 92
MPASM Assembler .................................................. 111
A/D ............................................................................. 83
Analog Input Model .................................................... 84
Capture Mode Operation ........................................... 66
Compare Mode Operation ......................................... 67
In-Circuit Serial Programming
Interrupt Logic ............................................................ 96
On-Chip Reset Circuit ................................................ 91
PIC16F818/819 ............................................................ 6
PWM .......................................................................... 68
RA0/AN0:RA1/AN1 Pins ............................................ 40
RA2/AN2/V
RA3/AN3/V
RA4/AN4/T0CKI Pin ................................................... 40
RA5/MCLR/V
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
I
Connections ..................................................... 101
2
C Multi-Master Environment) ........................... 71
REF
REF
PP
- Pin .................................................... 40
+ Pin ................................................... 40
Pin ................................................... 41
BOR. See Brown-out Reset.
Brown-out Reset (BOR) .............................. 89, 91, 92, 93, 94
C
C Compilers
Capture/Compare/PWM (CCP) ......................................... 65
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
RB5 Pin ..................................................................... 50
RB6 Pin ..................................................................... 51
RB7 Pin ..................................................................... 52
Recommended MCLR Circuit .................................... 92
SSP in I
SSP in SPI Mode ....................................................... 74
System Clock ............................................................. 38
Timer0/WDT Prescaler .............................................. 53
Timer1 ....................................................................... 58
Timer2 ....................................................................... 63
Watchdog Timer (WDT) ............................................. 98
MPLAB C17 ............................................................. 112
MPLAB C18 ............................................................. 112
MPLAB C30 ............................................................. 112
Capture Mode ............................................................ 66
Capture, Compare and Timer1
CCP1IF ...................................................................... 66
CCPR1 ...................................................................... 66
CCPR1H:CCPR1L ..................................................... 66
Compare Mode .......................................................... 67
PWM and Timer2
PWM Mode ................................................................ 68
Timer Resources ....................................................... 65
Changing Between Capture Prescalers ..................... 66
Changing Prescaler Assignment from
Changing Prescaler Assignment from
Clearing RAM Using Indirect Addressing .................. 23
Erasing a Flash Program Memory Row ..................... 29
Implementing a Real-Time Clock Using
Initializing PORTA ...................................................... 39
Reading a 16-Bit Free Running Timer ....................... 59
CCP Prescaler ................................................... 66
Pin Configuration ............................................... 66
Software Interrupt .............................................. 66
Timer1 Mode Selection ...................................... 66
Associated Registers ......................................... 67
Pin Configuration ............................................... 67
Software Interrupt Mode .................................... 67
Special Event Trigger ........................................ 67
Special Event Trigger
Timer1 Mode Selection ...................................... 67
Associated Registers ......................................... 69
Duty Cycle ......................................................... 68
Example Frequencies/Resolutions .................... 69
Period ................................................................ 68
Setup for Operation ........................................... 69
Timer0 to WDT .................................................. 55
WDT to Timer0 .................................................. 55
a Timer1 Interrupt Service ................................. 62
2
C Mode ........................................................ 76
Output of CCP1 ......................................... 67
PIC16F818/819
DS39598E-page 165

Related parts for PIC16F818-I/SO