PIC18F45K22-I/P Microchip Technology Inc., PIC18F45K22-I/P Datasheet - Page 484
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC18F45K22-I/P
Manufacturer Part Number
PIC18F45K22-I/P
Description
40 PDIP .600in TUBE, 32KB, Flash, 1536bytes-RAM, 8-bit Family, nanoWatt XLP
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC18F45K22-IP.pdf
(496 pages)
Specifications of PIC18F45K22-I/P
A/d Inputs
28-Channel, 10-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
256 Bytes
Input Output
35
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
32K Bytes
Ram Size
1.5K Bytes
Speed
64 MHz
Temperature Range
–40 to 125 °C
Timers
3-8-bit, 4-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18F45K22-I/P
Manufacturer:
MICROCHIP
Quantity:
3 400
Part Number:
PIC18F45K22-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18F45K22-I/PT
Manufacturer:
SST
Quantity:
3 400
Company:
Part Number:
PIC18F45K22-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F45K22-I/PT
Manufacturer:
MIC
Quantity:
20 000
- Current page: 484 of 496
- Download datasheet (5Mb)
PIC18(L)F2X/4XK22
CALL ................................................................................ 382
CALLW ............................................................................. 411
Capture Module. See Enhanced Capture/Compare/PWM(EC-
Capture/Compare/PWM ................................................... 177
Capture/Compare/PWM (CCP)
CCPTMRS0 Register ....................................................... 204
CCPTMRS1 Register ....................................................... 204
CCPxCON (ECCPx) Register .......................................... 201
Clock Accuracy with Asynchronous Operation ................ 272
Clock Sources
Clock Switching .................................................................. 41
CLRF ................................................................................ 383
CLRWDT .......................................................................... 383
CM1CON0 Register ......................................................... 310
CM2CON0 Register ......................................................... 311
CM2CON1 Register ......................................................... 314
Code Examples
DS41412D-page 484
MPLAB C18 ............................................................. 418
CP)
Associated Registers w/ Capture .... 179, 180, 183, 187,
Associated Registers w/ Compare ........................... 182
Associated Registers w/ PWM ......................... 187, 200
Capture Mode .......................................................... 178
CCPx Pin Configuration ........................................... 178
Compare Mode ........................................................ 181
Prescaler .................................................................. 179
PWM Mode
PWM Operation ....................................................... 184
PWM Overview ........................................................ 184
PWM Period ............................................................. 185
PWM Setup .............................................................. 184
External Modes .......................................................... 34
Internal Modes ........................................................... 36
Selecting the 31 kHz Source ...................................... 29
Selection Using OSCCON Register ........................... 29
16 x 16 Signed Multiply Routine .............................. 112
16 x 16 Unsigned Multiply Routine .......................... 112
8 x 8 Signed Multiply Routine .................................. 111
8 x 8 Unsigned Multiply Routine .............................. 111
201
CCPx Pin Configuration ................................... 181
Software Interrupt Mode .......................... 178, 181
Special Event Trigger ....................................... 182
Timer1 Mode Resource ........................... 178, 181
Duty Cycle ........................................................ 185
Effects of Reset ................................................ 186
Example PWM Frequencies and Resolutions, 20
Example PWM Frequencies and Resolutions, 32
Example PWM Frequencies and Resolutions, 8
Operation in Sleep Mode ................................. 186
Resolution ........................................................ 186
System Clock Frequency Changes .................. 186
EC ...................................................................... 34
HS ...................................................................... 35
LP ....................................................................... 35
OST .................................................................... 34
RC ...................................................................... 36
XT ...................................................................... 35
Frequency Selection .......................................... 38
INTOSC ............................................................. 36
INTOSCIO .......................................................... 36
LFINTOSC ......................................................... 38
MHZ ......................................................... 186
MHZ ......................................................... 186
MHz ......................................................... 186
Preliminary
Code Protection ............................................................... 349
COMF .............................................................................. 384
Comparator
Comparator Module
Comparator Specifications ............................................... 439
Comparator Voltage Reference (CV
Comparator Voltage Reference (CV
Comparators
Compare Module. See Enhanced Capture/Compare/PWM
Computed GOTO ............................................................... 73
CONFIG1H Register ........................................................ 351
CONFIG2H Register ........................................................ 353
CONFIG2L Register ........................................................ 352
CONFIG3H Register ........................................................ 354
CONFIG4L Register ........................................................ 355
CONFIG5H Register ........................................................ 356
CONFIG5L Register ........................................................ 355
CONFIG6H Register ........................................................ 357
CONFIG6L Register ........................................................ 356
CONFIG7H Register ........................................................ 358
CONFIG7L Register ........................................................ 357
Configuration Bits ............................................................ 349
Configuration Register Protection .................................... 365
Context Saving During Interrupts ..................................... 131
CPFSEQ .......................................................................... 384
CPFSGT .......................................................................... 385
CPFSLT ........................................................................... 385
CTMU
A/D Conversion ........................................................ 297
Capacitance Calibration Routine ............................. 324
Capacitive Touch Switch Routine ............................ 326
Changing Between Capture Prescalers ................... 179
Clearing RAM Using Indirect Addressing .................. 90
Computed GOTO Using an Offset Value ................... 73
Current Calibration Routine ..................................... 322
Data EEPROM Read ............................................... 107
Data EEPROM Refresh Routine .............................. 108
Data EEPROM Write ............................................... 107
Erasing a Flash Program Memory Row ................... 100
Fast Register Stack ................................................... 73
Initializing PORTA .................................................... 133
Initializing PORTB .................................................... 138
Initializing PORTC ................................................... 142
Initializing PORTD ................................................... 146
Initializing PORTE .................................................... 149
Reading a Flash Program Memory Word .................. 99
Saving Status, WREG and BSR Registers in RAM . 131
Setup for CTMU Calibration Routines ..................... 321
Writing to Flash Program Memory ................... 102–103
Associated Registers ............................................... 315
Operation ................................................................. 305
Operation During Sleep ........................................... 309
Response Time ........................................................ 307
C1 Output State Versus Input Conditions ................ 307
Effects of a Reset .................................................... 309
Response Time ........................................................ 307
C2OUT as T1 Gate .................................................. 164
Effects of a Reset .................................................... 309
(ECCP)
Associated Registers ............................................... 331
Calibrating ............................................................... 320
Creating a Delay with ............................................... 328
Effects of a Reset .................................................... 329
Initialization .............................................................. 319
Measuring Capacitance with .................................... 325
2010 Microchip Technology Inc.
REF
REF
)
)
Related parts for PIC18F45K22-I/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F-LF1XK50](/images/no-image3.png)
Part Number:
Description:
20-Pin USB Flash Microcontrollers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F6393T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6493T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8393T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8493T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6585-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6680-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 64KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F87K90T-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm T/
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm TRAY
Manufacturer:
Microchip Technology
![PIC18F87K90-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm TR
Manufacturer:
Microchip Technology