PIC18F45K20-I/ML Microchip Technology, PIC18F45K20-I/ML Datasheet - Page 64

IC PIC MCU FLASH 16KX16 44QFN

PIC18F45K20-I/ML

Manufacturer Part Number
PIC18F45K20-I/ML
Description
IC PIC MCU FLASH 16KX16 44QFN
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F45K20-I/ML

Program Memory Type
FLASH
Program Memory Size
32KB (16K x 16)
Package / Case
44-QFN
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
44QFN EP
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 PIC18F4XK20AC164322 - MODULE SOCKET MPLAB PM3 28/44QFN
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PICkit™ 3 Debug Express
DS41370C-page 60
For more information on the data EEPROM memory see Section 7.0 of the
PIC18F45K20 Data Sheet (DS41303).
FIGURE 3-51:
3.10.3
The Lesson 10 program writes all 256 bytes of the data EEPROM memory, writing each
location with value = 255 – address. For example, the EEPROM byte at address 0x09
is written with value 0xF6 = 246.
Once all locations have been written, the program ends in an infinite while(1) loop.
3.10.4
Build and program the Lesson 10 project, then Run the application in the debugger.
The EEPROM memory may be viewed in the MPLAB IDE by selecting view >
EEPROM.
As the EEPROM memory window does not update with changed EEPROM byte values
during debugging, it is necessary to select Debugger > Read to see the current
contents of the data EEPROM memory. However, doing so will cause a program Reset.
void
{
Note:
//
//
EECON1bits.EEPGD
EECON1bits.CFGS
EEDATA
EEADR
EECON1bits.WREN
INTCONbits.GIE
EECON2
EECON2
EECON1bits.WR
INTCONbits.GIE
while
{
};
EECON1bits.WREN
}
EEPROM_Write(unsigned
location
writes
Exploring the Lesson 10 Source Code
Build and Run the Lesson 10 Code with PICkit 3 Debug Express
The EEPROM window in the MPLAB IDE does not update with new
EEPROM values during debugging.
//
=
(EECON1bits.WR
=
=
=
wait
the
address;
databyte;
0x55;
0xAA;
in
DATA EEPROM WRITE
for
"databyte"
=
"address".
=
=
=
=
=
=
1;
0;
1;
write
0;
1;
0;
0;
==
char
//
//
//
//
//
//
//
//
//
//
to
value
1)
Set
Do
Load
Load
Enable
Disable
Begin
Set
re-enable
Disable
address,
complete.
not
to
to
WR
EEDATA
EEADR
Write
writing
EEPROM
access
access
interrupts
bit
writing
unsigned
interrupts
with
with
sequence
to
at
EEPROM
Config
begin
as
address
byte
char
the
a
© 2009 Microchip Technology Inc.
memory
registers
EEPROM
precaution.
address
to
databyte)
of
be
location
write
written
given
to
write.

Related parts for PIC18F45K20-I/ML