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

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
DS41370C-page 62
FIGURE 3-52:
Once a pointer to program memory has been declared, it can be pointed to a declared
location in program memory, for example a #pragma romdata array, or an explicit
address.
The first letter ‘H’ of the hello_str[] array in program memory is now pointed to by
rom_pointer. The value of the variable letter is now ‘H’
Now, rom_pointer points to the program memory byte at address 0x320.
Reading Flash program memory then simply requires declaring a ROM pointer and
using an assignment statement to read the pointer value.
#pragma romdata mystrings = 0x100
rom char hello_str[] = "Hello!";
rom_pointer
char
rom_pointer
letter
=
=
=
PROJECT CODE MODEL SETTINGS
(near rom char *)0x320;
hello_str;
*rom_pointer
//
=
&hello_str[0]
© 2009 Microchip Technology Inc.

Related parts for PIC18F45K20-E/P