PIC18LF8520-I/PTG Microchip Technology, PIC18LF8520-I/PTG Datasheet - Page 257

no-image

PIC18LF8520-I/PTG

Manufacturer Part Number
PIC18LF8520-I/PTG
Description
IC MCU FLASH 16KX16 80TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets

Specifications of PIC18LF8520-I/PTG

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
68
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 16x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
23.4.1
The user memory may be read to, or written from, any
location using the table read and table write instruc-
tions. The device ID may be read with table reads. The
configuration registers may be read and written with the
table read and table write instructions.
In user mode, the CPn bits have no direct effect. CPn
bits inhibit external reads and writes. A block of user
memory may be protected from table writes if the
WRTn configuration bit is ‘0’. The EBTRn bits control
table reads. For a block of user memory with the
EBTRn bit set to ‘0’, a table read instruction that
executes from within that block is allowed to read. A
table read instruction that executes from a location out-
FIGURE 23-5:
 2004 Microchip Technology Inc.
TBLPTR = 000FFFh
Results: All table writes disabled to Block n whenever WRTn = 0
Register Values
PC = 003FFEh
PC = 008FFEh
PROGRAM MEMORY
CODE PROTECTION
PIC18F6520/8520/6620/8620/6720/8720
TABLE WRITE (WRTn) DISALLOWED
Program Memory
TBLWT *
TBLWT *
side of that block is not allowed to read and will result
in reading ‘0’s. Figures 23-5 through 23-7 illustrate
table write and table read protection using devices with
a 16-Kbyte block size as the models. The principles
illustrated are identical for devices with an 8-Kbyte
block size.
Note:
000000h
0001FFh
007FFFh
008000h
00BFFFh
00C000h
00FFFFh
000200h
003FFFh
004000h
.
Code protection bits may only be written to
a ‘0’ from a ‘1’ state. It is not possible to
write a ‘1’ to a bit in the ‘0’ state. Code pro-
tection bits are only set to ‘1’ by a full chip
erase or block erase function. The full chip
erase and block erase functions can only
be initiated via ICSP or an external
programmer.
Configuration Bit Settings
WRTB, EBTRB = 11
WRT0, EBTR0 = 01
WRT1, EBTR1 = 11
WRT2, EBTR2 = 11
WRT3, EBTR3 = 11
DS39609B-page 255

Related parts for PIC18LF8520-I/PTG