English
Language : 

PIC16LF145X Datasheet, PDF (14/38 Pages) Microchip Technology – PIC16(L)F145X Memory Programming Specification
PIC16(L)F145X
4.3 Program/Verify Commands
The devices implement ten programming commands;
each six bits in length. The commands are summarized
in Table 4-2.
Commands that have data associated with them are
specified to have a minimum delay of TDLY between the
command and the data. After this delay 16 clocks are
required to either clock in or clock out the 14-bit data
word. The first clock is for the Start bit and the last clock
is for the Stop bit.
TABLE 4-2: COMMAND MAPPING
Command
Mapping
Binary (MSb … LSb)
Load Configuration
x00000
Load Data For Program Memory
x00010
Read Data From Program Memory
x00100
Increment Address
x00110
Reset Address
x10110
Begin Internally Timed Programming x 0 1 0 0 0
Begin Externally Timed Programming x 1 1 0 0 0
End Externally Timed Programming x 0 1 0 1 0
Bulk Erase Program Memory
x01001
Row Erase Program Memory
x10001
Data/Note
Hex
00h 0, data (14), 0
02h 0, data (14), 0
04h 0, data (14), 0
06h —
16h —
08h —
18h —
0Ah —
09h Internally Timed
11h Internally Timed
4.3.1 LOAD CONFIGURATION
The Load Configuration command is used to access
the configuration memory (user ID locations,
Configuration Words, Calibration Words). The Load
Configuration command sets the address to 8000h and
loads the data latches with one word of data (see
Figure 4-4).
After issuing the Load Configuration command, use the
Increment Address command until the proper address
to be programmed is reached. The address is then pro-
grammed by issuing either the Begin Internally Timed
Programming or Begin Externally Timed Programming
command.
Note:
Externally timed writes are not supported
for Configuration and Calibration bits. Any
externally timed write to the Configuration
or Calibration Word will have no effect on
the targeted word.
The only way to get back to the program memory
(address 0) is to exit Program/Verify mode or issue the
Reset Address command after the configuration memory
has been accessed by the Load Configuration command.
FIGURE 4-4:
LOAD CONFIGURATION
ICSPCLK
ICSPDAT
123
456
12
TDLY
000 0 0X
0 LSb
15 16
MSb 0
DS41620C-page 14
Advance Information
 2011-2012 Microchip Technology Inc.