PIC16HV785 Microchip Technology Inc., PIC16HV785 Datasheet - Page 108

no-image

PIC16HV785

Manufacturer Part Number
PIC16HV785
Description
20-pin Flash-based 8-bit Cmos Microcontroller
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV785-E/ML
Manufacturer:
LEGERITY
Quantity:
100
Part Number:
PIC16HV785-E/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-E/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-E/SS
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16HV785-I/ML
Manufacturer:
MICROCHIP
Quantity:
12 000
PIC16F785/HV785
14.6
Data memory can be code-protected by programming
the CPD bit in the Configuration Word (Register 15-1)
to ‘0’.
When the data memory is code-protected, the CPU is
able to read and write data to the data EEPROM. It is
recommended that the user code protect the program
memory when code protecting the data memory. This
prevents anyone from programming zeroes over the
existing code (which will execute as NOPs) to reach an
added routine, programmed in unused program mem-
ory, which outputs the contents of data memory.
Programming unused locations in program memory to
‘0’ will also help prevent data memory code protection
from becoming breached.
TABLE 14-1:
DS41249D-page 106
0Bh,8Bh,
10Bh,18Bh
0Ch
8Ch
9Ah
9Bh
9Ch
9Dh
Legend: x = unknown, u = unchanged, – = unimplemented read as ‘0’, q = value depends upon condition. Shaded cells are not used by
Address
Data EEPROM Operation During
Code-Protect
data EEPROM module.
INTCON
PIR1
PIE1
EEDAT
EEADR
EECON1
EECON2
Name
REGISTERS/BITS ASSOCIATED WITH DATA EEPROM
EEDAT7 EEDAT6 EEDAT5 EEDAT4 EEDAT3 EEDAT2 EEDAT1 EEDAT0
EEADR7 EEADR6 EEADR5 EEADR4 EEADR3 EEADR2 EEADR1 EEADR0
EEPROM Control register 2 (not a physical register)
Bit 7
EEIF
EEIE
GIE
PEIE
ADIF
ADIE
Bit 6
CCP1IE
CCP1IF
Bit 5
T0IE
INTE
Bit 4
C2IF
C2IE
Preliminary
WRERR
RAIE
C1IE
Bit 3
C1IF
OSFIF
OSFIE
WREN
Bit 2
T0IF
TMR2IE
TMR2IF
INTF
Bit 1
WR
TMR1IF
TMR1IE
RAIF
Bit 0
© 2006 Microchip Technology Inc.
RD
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
---- x000 ---- q000
---- ---- ---- ----
POR, BOR
Value on:
Value on all
Resets
other

Related parts for PIC16HV785