PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 108

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
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 PIC16F785-I/P