PIC18F45K20-E/ML Microchip Technology, PIC18F45K20-E/ML Datasheet - Page 70
![32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 44 QFN 8x8x0.9mm TU](/photos/6/81/68122/150-44-qfn_sml.jpg)
PIC18F45K20-E/ML
Manufacturer Part Number
PIC18F45K20-E/ML
Description
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 44 QFN 8x8x0.9mm TU
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)
Specifications of PIC18F45K20-E/ML
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
44-QFN
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 PIC18F4XK20AC164322 - MODULE SOCKET MPLAB PM3 28/44QFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PICkit™ 3 Debug Express
FIGURE 3-54:
FIGURE 3-55:
DS41370C-page 66
3.11.3
At compile time, when the project is built, the Lesson 11 source code places three
strings in Flash program memory at address 0x100:
After building the project, the strings can be seen in program memory by opening the
Program Memory window in the MPLAB IDE using View > Program Memory.
STRINGS IN PROGRAM MEMORY
The program code doesn’t start until address 0x280.
Build and program the Lesson 11 code and set a breakpoint on the first pointer
assignment statement as shown in Figure 3-55.
BREAKPOINT ON POINTER ASSIGNMENT
Run the program until it stops at the breakpoint. Step through the do while loop in
Figure 3-55 and observe the characters of the hello_str[] string are read into the
singlechar variable one at a time until the terminating ‘0’ value of the string is
reached.
The next statement demonstrates reading from an explicit program memory address
using a function:
#pragma romdata mystrings = 0x100
rom char hello_str[] = "Hello!";
rom char mchp_str[] = "Microchip"; rom char fill_60[] =
"012345678901234567890123456789012345678901234567890123456789";
singlechar
Exploring the Lesson 11 Source Code with PICkit 3 Debug
Express
=
ProgMemRdAddress(0x107); //
returns 'M' from "Microchip".
© 2009 Microchip Technology Inc.