PIC18LF24J11-I/SS Microchip Technology, PIC18LF24J11-I/SS Datasheet - Page 377

IC PIC MCU FLASH 16K 2V 28-SSOP

PIC18LF24J11-I/SS

Manufacturer Part Number
PIC18LF24J11-I/SS
Description
IC PIC MCU FLASH 16K 2V 28-SSOP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheets

Specifications of PIC18LF24J11-I/SS

Program Memory Type
FLASH
Program Memory Size
16KB (8K x 16)
Package / Case
28-SSOP
Core Processor
PIC
Core Size
8-Bit
Speed
48MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Ram Size
3.8K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 3.6 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18LF
Core
PIC
Data Bus Width
8 bit
Data Ram Size
4 KB
Interface Type
EUSART, I2C, SPI
Maximum Clock Frequency
31 KHz
Number Of Programmable I/os
16
Number Of Timers
5
Operating Supply Voltage
2 V to 3.6 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DM183032, DM183022, DM183033, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
EXAMPLE 24-1:
© 2009 Microchip Technology Inc.
#include "p18cxxx.h"
/**************************************************************************/
/*Setup CTMU *****************************************************************/
/**************************************************************************/
void setup(void)
{ //CTMUCON - CTMU Control register
/**************************************************************************/
//Setup AD converter;
/**************************************************************************/
}
// ADCON1
ADCON1bits.ADFM=1;
ADCON1bits.ADCAL=0;
ADCON1bits.ACQT=1;
ADCON1bits.ADCS=2;
ANCON1bits.VBGEN=1;
// ADCON0
ADCON0bits.VCFG0 =0;
ADCON0bits.VCFG1 =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,
//CTMUICON - CTMU Current Control Register
CTMUICON = 0x01;
TRISA=0x04;
// Configured AN2 as an analog channel
// ANCON0
ANCON0 = 0XFB;
// ANCON1
ANCON1 = 0X1F;
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
// Normal A/D conversion operation
// Acquition time 7 = 20TAD 2 = 4TAD 1=2TAD
// Clock conversion bits 6= FOSC/64 2=FOSC/32
// Turn on the Bandgap needed for Rev A0 parts
// Vref+ = AVdd
// Vref- = AVss
// Select ADC channel
// Turn on ADC
PIC18F46J11 FAMILY
DS39932C-page 377

Related parts for PIC18LF24J11-I/SS