PIC16F877T-20/PT Microchip Technology, PIC16F877T-20/PT Datasheet - Page 449

IC MCU FLASH 8KX14 EE 44TQFP

PIC16F877T-20/PT

Manufacturer Part Number
PIC16F877T-20/PT
Description
IC MCU FLASH 8KX14 EE 44TQFP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F877T-20/PT

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
14KB (8K x 14)
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 8x10b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F877T-20/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
1997 Microchip Technology Inc.
Steps for Method 2 (“variable conversion time”):
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Do Conversion Calculations.
11. Go to Step 2.
The maximum Slope A/D timer count is 65,536. It can be clocked by the on-chip or external oscil-
lator. At a 4 MHz oscillation frequency, the maximum conversion time is 16.38 ms for a full count.
A typical conversion should complete before full-count is reached. The timer overflow flag is set
once the timer rolls over (FFFFh to 0000h), and an interrupt occurs, if enabled.
End-user calibration is simplified or eliminated by making use of the on-chip EPROM. Internal
component values are measured at factory final test and stored in the memory for use by the
application firmware.
Periodic conversion cycles should be performed on the bandgap and slope references
(described in Subsection
nent drift. Measurements for the reference voltage counts are equated to the voltage value stored
into EPROM during calibration. Since all measurements are relative to the reference, offset
voltages inherent in the comparator are minimized. The Slope A/D clock source does not require
a precise frequency, only a stable frequency.
See AN624, “PIC14000 Slope A/D Theory and Implementation” for further details of Slope A/D
operation.
Note:
Initialize the Slope A/D module:
Set the ADRST bit (ADCON0<1>), until the ramp capacitor reaches ground. This is capac-
itor dependent. A minimum of 200 s is recommended.
Select Input Channel.
Clear the OVFIF and ADCIF bits.
Initialize Slope A/D Timer (ADTMR). ADTMR value depends on bits of resolution required
(see
To start a conversion, clear the ADRST bit, this allows the ramp capacitor to begin charg-
ing and the ADTMR to increment.
Conversion is complete when the ramp voltage exceeds the analog input so the compar-
ator output changes from high to low. This causes the ADCIF bit to be set.
Check if the ADTMR did not increment more counts than the maximum resolution allowed.
If there were more counts, then the input voltage was out of the A/D input range.
Set the ADRST bit (ADCON0<1>) to stop ADTMR and discharge external capacitor
a)Clear the REFOFF bit (SLPCON<5>).
b)Clear the ADOFF bit (SLPCON<0>).
c)Initialize ADCON1<7:4> to select the programmable current source.
Table
The Slope A/D timer continues to run following a capture event.
24-1).
24.4 “Other Analog Modules”
Section 24. Slope A/D
) to compensate for Slope A/D compo-
DS31024A-page 24-7
24

Related parts for PIC16F877T-20/PT