PIC16F72-I/SOG Microchip Technology, PIC16F72-I/SOG Datasheet - Page 38

IC PIC MCU FLASH 2KX14 28-SOIC

PIC16F72-I/SOG

Manufacturer Part Number
PIC16F72-I/SOG
Description
IC PIC MCU FLASH 2KX14 28-SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F72-I/SOG

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
PIC16F72
7.3
To read a program memory location, the user must
write two bytes of the address to the PMADRL and
PMADRH registers and then set control bit, RD
(PMCON1<0>). Once the read control bit is set, the
program memory FLASH controller will use the second
instruction cycle after to read the data. This causes the
second instruction immediately following the “BSF
PMCON1,RD” instruction to be ignored. The data is
available in the very next cycle in the PMDATL and
PMDATH registers; therefore, it can be read as two
bytes in the following instructions. PMDATL and
PMDATH registers will hold this value until another
read, or until it is written to by the user (during a write
operation).
EXAMPLE 7-1:
TABLE 7-1:
DS39597C-page 36
10Dh
10Fh
10Ch
10Eh
18Ch
Legend: x = unknown, u = unchanged, r = reserved, - = unimplemented, read as '0'.
Note 1: This bit always reads as a ‘1’.
Address
BANKSEL PMADRH
MOVLW
MOVWF
MOVLW
MOVWF
BANKSEL PMCON1
BSF
NOP
NOP
BANKSEL PMDATL
MOVF
MOVF
Reading the FLASH Program
Memory
Shaded cells are not used during FLASH access.
PMADRL
PMADRH
PMDATL
PMDATH
PMCON1
Name
MS_PROG_EE_ADDR ;
PMADRH
LS_PROG_EE_ADDR ;
PMADRL
PMCON1, RD
PMDATL, W
PMDATH, W
REGISTERS ASSOCIATED WITH PROGRAM FLASH
FLASH PROGRAM READ
Address Register Low Byte
Data Register Low Byte
Bit 7
(1)
Bit 6
; Select Bank for PMADRH
; MS Byte of Program Address to read
; Select Bank for PMCON1
; memory is read in second cycle after BSF PMCON1,RD
; W = MS Byte of Program PMDATL
; LS Byte of Program Address to read
; EE Read
;
; Any instructions here are ignored as program
;
; First instruction after BSF PMCON1,RD executes normally
; Select Bank for PMDATL
; W = LS Byte of Program PMDATL
Data Register High Byte
Bit 5
Address Register High Byte
Bit 4
Bit 3
7.4
The FLASH program memory control can read any-
where within the program memory, whether or not the
program memory is code protected.
This does not compromise the code, because there is
no way to rewrite a portion of the program memory, or
leave contents of a program memory read in a register
while changing modes.
Bit 2
Operation During Code Protect
Bit 1
Bit 0
RD
© 2007 Microchip Technology Inc.
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1--- ---0 1--- ---0
POR, BOR
Value on
Value on
RESETS
all other

Related parts for PIC16F72-I/SOG