PIC16F1526-I/PT Microchip Technology, PIC16F1526-I/PT Datasheet - Page 107

MCU 14KB FLASH 768B RAM 64-TQFP

PIC16F1526-I/PT

Manufacturer Part Number
PIC16F1526-I/PT
Description
MCU 14KB FLASH 768B RAM 64-TQFP
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC16F1526-I/PT

Processor Series
PIC16F
Core
PIC
Program Memory Type
Flash
Program Memory Size
14 KB
Data Ram Size
768 B
Interface Type
MI2C, SPI, EUSART
Number Of Timers
9
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Package / Case
TQFP-64
Development Tools By Supplier
MPLAB IDE Software
Minimum Operating Temperature
- 40 C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1526-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F1526-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
11.2.4
Program memory is programmed using the following
steps:
1.
2.
3.
4.
Before writing to program memory, the word(s) to be
written must be erased or previously unwritten. Pro-
gram memory can only be erased one row at a time. No
automatic erase occurs upon the initiation of the write.
Program memory can be written one or more words at
a time. The maximum number of words written at one
time is equal to the number of write latches. See
Figure 12-5
write latches) for more details.
The write latches are aligned to the Flash row address
boundary
PMADRH:PMADRL, (PMADRH<6:0>:PMADRL<7:5>)
with the lower 5-bits of PMADRL, (PMADRL<4:0>)
determining the write latch being loaded. Write opera-
tions do not cross these boundaries. At the completion
of a program memory write operation, the data in the
write latches is reset to contain 0x3FFF.
 2011 Microchip Technology Inc.
Load the address in PMADRH:PMADRL of the
row to be programmed.
Load each write latch with data.
Initiate a programming operation.
Repeat steps 1 through 3 until all data is written.
WRITING TO FLASH PROGRAM
MEMORY
defined
(row writes to program memory with 32
by
the
upper
10-bits
Preliminary
of
The following steps should be completed to load the
write latches and program a row of program memory.
These steps are divided into two parts. First, each write
latch is loaded with data from the PMDATH:PMDATL
using the unlock sequence with LWLO = 1. When the
last word to be loaded into the write latch is ready, the
LWLO bit is cleared and the unlock sequence
executed. This initiates the programming operation,
writing all the latches into Flash program memory.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Load the PMDATH:PMDATL register pair with
11.
An example of the complete write sequence is shown in
Example
PMADRH:PMADRL register pair; the data is loaded
using indirect addressing.
Note:
Note:
Set the WREN bit of the PMCON1 register.
Clear the CFGS bit of the PMCON1 register.
Set the LWLO bit of the PMCON1 register.
When the LWLO bit of the PMCON1 register is
‘1’, the write sequence will only load the write
latches and will not initiate the write to Flash
program memory.
Load the PMADRH:PMADRL register pair with
the address of the location to be written.
Load the PMDATH:PMDATL register pair with
the program memory data to be written.
Execute the unlock sequence
“Flash Memory Unlock
latch is now loaded.
Increment the PMADRH:PMADRL register pair
to point to the next location.
Repeat steps 5 through 7 until all but the last
write latch has been loaded.
Clear the LWLO bit of the PMCON1 register.
When the LWLO bit of the PMCON1 register is
‘0’, the write sequence will initiate the write to
Flash program memory.
the program memory data to be written.
“Flash Memory Unlock
entire program memory latch content is now
written to Flash program memory.
Execute the unlock sequence
PIC16(L)F1526/27
11-3. The initial address is loaded into the
The special unlock sequence is required
to load a write latch with data or initiate a
Flash programming operation. If the
unlock sequence is interrupted, writing to
the latches or program memory will not be
initiated.
The program memory write latches are
reset to the blank state (0x3FFF) at the
completion of every write or erase
operation. As a result, it is not necessary
to load all the program memory write
latches. Unloaded latches will remain in
the blank state.
Sequence”). The write
Sequence”). The
DS41458A-page 107
(Section 11.2.2
(Section 11.2.2

Related parts for PIC16F1526-I/PT