PIC16F88-E/P Microchip Technology, PIC16F88-E/P Datasheet - Page 389

IC MCU FLASH 4KX14 EEPROM 18DIP

PIC16F88-E/P

Manufacturer Part Number
PIC16F88-E/P
Description
IC MCU FLASH 4KX14 EEPROM 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F88-E/P

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 7x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
18-DIP (0.300", 7.62mm)
Controller Family/series
PIC16F
No. Of I/o's
16
Eeprom Memory Size
256Byte
Ram Memory Size
368Byte
Cpu Speed
20MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ACICE0202 - ADAPTER MPLABICE 18P 300 MIL
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
21.3
1997 Microchip Technology Inc.
Operation
When the A/D conversion is complete, the result is loaded into the ADRES register, the
GO/DONE bit (ADCON0<2>) is cleared, and A/D interrupt flag bit, ADIF, is set.
After the A/D module has been configured as desired, the selected channel must be acquired
before the conversion is started. The analog input channels must have their corresponding TRIS
bits selected as an input. To determine acquisition time, see Subsection
Requirements.”
following steps should be followed for doing an A/D conversion:
1.
2.
3.
4.
5.
6.
7.
Figure 21-2
time that the A/D module’s holding capacitor is connected to the external voltage level. Then
there is the conversion time of 10 T
two times is the sampling time. There is a minimum acquisition time to ensure that the holding
capacitor is charged to a level that will give the desired accuracy for the A/D conversion.
Figure 21-2: A/D Conversion Sequence
Configure the A/D module:
• Configure analog pins / voltage reference / and digital I/O (ADCON1)
• Select A/D input channel (ADCON0)
• Select A/D conversion clock (ADCON0)
• Turn on A/D module (ADCON0)
Configure A/D interrupt (if desired):
• Clear the ADIF bit
• Set the ADIE bit
• Set the GIE bit
Wait the required acquisition time.
Start conversion:
• Set the GO/DONE bit (ADCON0)
Wait for A/D conversion to complete, by either:
• Polling for the GO/DONE bit to be cleared
OR
• Waiting for the A/D interrupt
Read A/D Result register (ADRES), clear the ADIF bit, if required.
For next conversion, go to step 1 or step 2 as required. The A/D conversion time per bit is
defined as T
When A/D holding capacitor start to charge.
After A/D conversion, or new A/D channel is selected.
Acquisition Time
shows the conversion sequence, and the terms that are used. Acquisition time is the
Section 21. 8-bit A/D Converter
AD
After this acquisition time has elapsed the A/D conversion can be started. The
. A minimum wait of 2T
A/D Sample Time
When A/D conversion is started (setting the GO bit).
Holding capacitor is disconnected from the analog input before
the conversion is started.
Conversion Time
AD
, which is started when the GO bit is set. The sum of these
AD
is required before next acquisition starts.
A/D conversion complete,
result is loaded in ADRES register.
Holding capacitor begins acquiring
voltage level on selected channel.
ADIF bit is set.
21.4 “A/D Acquisition
DS31021A-page 21-5
21

Related parts for PIC16F88-E/P