PIC18F45K20-I/PT Microchip Technology, PIC18F45K20-I/PT Datasheet - Page 33
![IC PIC MCU FLASH 16KX16 44TQFP](/photos/6/82/68251/c04-076_pt_sml.jpg)
PIC18F45K20-I/PT
Manufacturer Part Number
PIC18F45K20-I/PT
Description
IC PIC MCU FLASH 16KX16 44TQFP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheets
1.PIC18F25K20T-ISS.pdf
(42 pages)
2.PIC18F25K20T-ISS.pdf
(12 pages)
3.PIC18F25K20T-ISS.pdf
(14 pages)
4.PIC18F25K20T-ISS.pdf
(456 pages)
5.PIC18F45K20-IPT.pdf
(78 pages)
6.PIC18F26K20-ISO.pdf
(430 pages)
Specifications of PIC18F45K20-I/PT
Program Memory Type
FLASH
Program Memory Size
32KB (16K x 16)
Package / Case
44-TQFP, 44-VQFP
Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
35
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 ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
1.5 KB
Interface Type
CCP/ECCP/EUSART/I2C/MSSP/SPI
Maximum Clock Frequency
64 MHz
Number Of Programmable I/os
36
Number Of Timers
4
Maximum Operating Temperature
+ 85 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, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
14-ch x 10-bit
Package
44TQFP
Device Core
PIC
Family Name
PIC18
Maximum Speed
64 MHz
Operating Supply Voltage
2.5|3.3 V
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 PIC18F4XK20AC164305 - MODULE SKT FOR PM3 44TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18F45K20-I/PT
Manufacturer:
SIEMENS
Quantity:
32
Company:
Part Number:
PIC18F45K20-I/PT
Manufacturer:
MICROCHI
Quantity:
18 600
Company:
Part Number:
PIC18F45K20-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F45K20-I/PT
Manufacturer:
MICR0CHIP
Quantity:
20 000
3.4
© 2009 Microchip Technology Inc.
LESSON 4: SWITCH INPUT
The demo board switch is used in the lesson to rotate the LEDs once on each press.
3.4.1
This lesson has added a header file to the project named 04 Switch Input.h
as shown in Figure 3-20.
FIGURE 3-20:
While it is assumed that the reader is familiar with C language header files, we’ll note
that in the 04 Switch Input.h header file the #define directive has been used to
give more meaningful names to the switch I/O pin variable and a constant value.
As with other C compilers use of #define, MPLAB C will replace all instances of the
text “Switch_Pin” with the text “PORTBbits.RB0” at compile time. Remember, for the
compiler to know about the #define definitions, the header file must be included in
the C file, as is done in 04 Switch Input.c:
Key Concepts
- The directive #define can be used to give SFR registers and bits more
- I/O pins that share an analog input channel must be configured as digital
- The PORTx SFRs are used to read the logic state on an input port pin.
- Mechanical switch debouncing can be handled in software to eliminate
meaningful names.
pins if used as digital inputs using SFR ADCON1, or they will always read
‘0’.
external components that may be otherwise required.
#define
#define
#include
Files and the #define Directive
PICkit™ 3 Debug Express Lessons
HEADER FILE
Switch_Pin
DetectsInARow
"04
Switch
Input.h"
PORTBbits.RB0
5
//
header file
DS41370C-page 29