PIC18F86K22-I/PTRSL Microchip Technology, PIC18F86K22-I/PTRSL Datasheet - Page 390

no-image

PIC18F86K22-I/PTRSL

Manufacturer Part Number
PIC18F86K22-I/PTRSL
Description
MCU PIC 64K FLASH XLP 80TQFP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F86K22-I/PTRSL

Core Size
8-Bit
Program Memory Size
64KB (32K x 16)
Core Processor
PIC
Speed
64MHz
Connectivity
EBI/EMI, I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
69
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 24x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TFQFP
Controller Family/series
PIC18
Eeprom Memory Size
1024Byte
Ram Memory Size
3862Byte
Cpu Speed
16MIPS
No. Of Timers
11
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F86K22-I/PTRSL
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18F87K22 FAMILY
EXAMPLE 27-1:
DS39960B-page 390
#include "p18cxxx.h"
/**************************************************************************/
/*Setup CTMU *****************************************************************/
/**************************************************************************/
void setup(void)
{ //CTMUCON - CTMU Control register
/**************************************************************************/
//Setup AD converter;
/**************************************************************************/
}
ADCON2bits.ADCS=2;
// ADCON0
ADCON1bits.VCFG0 =0;
ADCON0bits.VCFG1 =0;
ADCON0bits.VCFG = 0;
ADCON0bits.CHS=2;
ADCON0bits.ADON=1;
CTMUCONH = 0x00;
CTMUCONL = 0X90;
//CTMU continues to run when emulator is stopped,CTMU continues
//to run in idle mode,Time Generation mode disabled, Edges are blocked
//No edge sequence order, Analog current source not grounded, trigger
//output disabled, Edge2 polarity = positive level, Edge2 source =
//source 0, Edge1 polarity = positive level, Edge1 source = source 0,
// Set Edge status bits to zero
//CTMUICON - CTMU Current Control Register
CTMUICON = 0x01;
TRISA=0x04;
// Configured AN2 as an analog channel
// ANCON0
ANCON0 = 0X04;
// ANCON1
ANCON1 = 0XE0;
// ADCON2
ADCON2bits.ADFM=1;
ADCON2bits.ACQT=1;
SETUP FOR CTMU CALIBRATION ROUTINES
//make sure CTMU is disabled
//0.55uA, Nominal - No Adjustment
//set channel 2 as an input
// Resulst format 1= Right justified
// Acquition time 7 = 20TAD 2 = 4TAD 1=2TAD
// Clock conversion bits 6= FOSC/64 2=FOSC/32
// Vref+ = AVdd
// Vref+ = AVdd
// Vref- = AVss
// Select ADC channel
// Turn on ADC
Preliminary
 2010 Microchip Technology Inc.

Related parts for PIC18F86K22-I/PTRSL