PIC18LF13K22 Microchip Technology, PIC18LF13K22 Datasheet - Page 9

no-image

PIC18LF13K22

Manufacturer Part Number
PIC18LF13K22
Description
(PIC18F1xK22) Flash Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF13K22-I/ML
Manufacturer:
CAVIUM
Quantity:
155
Part Number:
PIC18LF13K22-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
www.DataSheet4U.com
3.4
The PGC pin is used as a clock input pin and the PGD
pin is used for entering command bits and data input/
output during serial operation. Commands and data are
transmitted on the rising edge of PGC, latched on the
falling edge of PGC and are Least Significant bit (LSb)
first.
3.4.1
All instructions are 20 bits, consisting of a leading 4-bit
command followed by a 16-bit operand, which depends
on the type of command being executed. To input a
command, PGC is cycled four times. The commands
needed for programming and verification are shown in
Table 3-2.
Depending on the 4-bit command, the 16-bit operand
represents 16 bits of input data or 8 bits of input data
and 8 bits of output data.
Throughout this specification, commands and data are
presented as illustrated in Table 3-3. The 4-bit com-
mand, Most Significant bit (MSb), is shown first. The
command operand, or “Data Payload”, is shown
<MSB><LSB>. Figure 3-10 demonstrates how to
serially present a 20-bit command/operand to the
device.
3.4.2
The core instruction passes a 16-bit instruction to the
CPU core for execution. This is needed to set up
registers as appropriate for use with other commands.
TABLE 3-2:
© 2008 Microchip Technology Inc.
Core Instruction
(Shift in16-bit instruction)
Shift out TABLAT register
Table Read
Table Read, post-increment
Table Read, post-decrement
Table Read, pre-increment
Table Write
Table Write, post-increment by 2
Table Write, start programming,
post-increment by 2
Table Write, start programming
Serial Program/Verify Operation
4-BIT COMMANDS
CORE INSTRUCTION
Description
COMMANDS FOR
PROGRAMMING
Command
Advance Information
0000
0010
1000
1001
1010
1011
1100
1101
1110
1111
4-Bit
PIC18F1XK22/LF1XK22
DS41357A-page 9

Related parts for PIC18LF13K22