PIC18F65K22-E/PT Microchip Technology, PIC18F65K22-E/PT Datasheet - Page 400

no-image

PIC18F65K22-E/PT

Manufacturer Part Number
PIC18F65K22-E/PT
Description
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, GP 64 TQFP 10x10x1mm TRAY
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheet

Specifications of PIC18F65K22-E/PT

Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 16x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
64-TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F65K22-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18F87K22 FAMILY
27.8
The CTMU, along with an internal diode, can be used
to measure the temperature. The ADC can be con-
nected to the internal diode and the CTMU module can
EXAMPLE 27-5:
DS39960D-page 400
// Initialize CTMU
CTMUICON = 0x03;
CTMUCONHbits.CTMUEN = 1;
CTMUCONLbits.EDG1STAT = 1;
// Initialize ADC
ADCON0 = 0xE5;
ADCON1 = 0x00;
ADCON2 = 0xBE;
ADCON0bits.GO = 1;
while(ADCON0bits.G0);
Temp = ADRES;
Note: The temperature diode is not calibrated or standardized; the user must calibrate the diode to their application.
Measuring Temperature
CTMU Module
ROUTINE FOR TEMPERATURE MEASUREMENT USING INTERNAL DIODE
with
// Enable ADC and connect to Internal diode
// Right Justified
// Start conversion
// Read ADC results (inversely proportional to temperature)
the
source the current to the diode. The ADC reading will
reflect the temperature. With the increase, the ADC
readings will go low. This can be used for low-cost
temperature measurement applications.
 2009-2011 Microchip Technology Inc.

Related parts for PIC18F65K22-E/PT