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

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
FIGURE 3-27:
DS41370C-page 38
3.6.2
The PICkit 3 cannot be used as a programmer and debugger at the same time, so if
PICkit 3 is currently selected as a programmer, selecting it as a debugger will cause it
to be disabled as a programmer.
To enable the PICkit 3 as a debugger in the MPLAB IDE select Debugger > Select Tool
> 2 PICkit 3. The Output window will display the connection to the target microcontroller
as in Figure 3-10A.
To Begin Debugging
• In the MPLAD IDE toolbar, change the project configuration from “Rlease” to
• Build the project: Project > Build All
• Program the target microcontroller: Debugger > Program
• Select Debugger > Run to begin program execution.
The Lesson 5 code is now running in Debug mode. The LEDs will rotate and the button
may be pressed to reverse them, as the target microcontroller will operate in Debug
mode just as it normally would.
3.6.3
3.6.3.1
The PIC18F45K20 on the demo board is now running the lesson program code. Code
execution can be halted (stopped) at any time by selecting Debugger > Halt <F5>. A
green arrow on the left margin of the MPLAB IDE editor window will show the next
statement to be executed. Your code will probably have stopped in a different place
than that shown in Figure 3-27.
GREEN ARROW POINTS TO NEXT STATEMENT TO EXECUTE
“Debug”.
Note:
Selecting PICkit 3 as a Debugger in the MPLAB IDE
Basic Debug Operations
HALT
An ICD ‘i’ Linker Script must be used when debugging, as discussed in
Section 3.1.1 of this document. The lesson projects already use the correct
Linker Script, 18f45k20 i.lkr.
© 2009 Microchip Technology Inc.

Related parts for PIC18F45K20-E/P