PIC18F45K20-E/P Microchip Technology, PIC18F45K20-E/P Datasheet - Page 51

32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 PDIP .600in TUBE

PIC18F45K20-E/P

Manufacturer Part Number
PIC18F45K20-E/P
Description
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 PDIP .600in TUBE
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F45K20-E/P

Core Processor
PIC
Core Size
8-Bit
Speed
48MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
35
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DM240313 - BOARD DEMO 8BIT XLPAC164112 - VOLTAGE LIMITER MPLAB ICD2 VPPDM164124 - KIT STARTER FOR PIC18F4XK20
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F45K20-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PICkit™ 3 Debug Express Lessons
The ACTQx bits determine the acquisition time, and should take into account the
internal acquisition time Tacq of the ADC, data sheet parameter 132, and the settling
time of the application circuit connected to the ADC pin. From the data sheet, the
internal acquisition time Tacq = 1.4us over temperature. The application circuit is an RC
network formed by the potentiometer and capacitor C3, which has a very long settling
time. For this demo lesson, we’ll simply set ACQTx to the largest value, 20TAD or ‘111’.
20 TAD is 20 times the ADC Clock period, or 20 * 2us = 40us.
For result justification, we choose bit ADFM = 0 to the result is left-justified. This makes
it easy to get the 8 Most Significant bits of the result from ADRESH. Thus the ADCON2
configuration value is:
ADCON2 = 0b00111000
#4: The demo board potentiometer is connected to AN0, so Channel 0 is selected in
ADCON0. Bit ADON is set to ‘1’ to turn on the ADC peripheral. The GO/DONE bit is left
clear as we don’t wish to start a conversion yet.
ADCON0 = 0b00000001
FIGURE 3-38:
ADCON0: A/D CONTROL REGISTER 0
© 2009 Microchip Technology Inc.
DS41370C-page 47

Related parts for PIC18F45K20-E/P