PIC18F23K22-I/ML Microchip Technology Inc., PIC18F23K22-I/ML Datasheet - Page 405

no-image

PIC18F23K22-I/ML

Manufacturer Part Number
PIC18F23K22-I/ML
Description
8KB, FLASH, 768BYTES-RAM, 8-BIT FAMILY, NANOWATT XLP, 28 QFN 6X6MM TUBE
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F23K22-I/ML

A/d Inputs
17-Channel, 10-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
1K Bytes
Input Output
24
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin QFN
Programmable Memory
8K Bytes
Ram Size
512 Bytes
Speed
48 MHz
Temperature Range
–40 to 125 °C
Timers
1-8-bit, 3-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
TBLRD
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
 2010 Microchip Technology Inc.
Q Cycle Activity:
operation
Decode
Q1
No
Table Read
TBLRD ( *; *+; *-; +*)
None
if TBLRD *,
(Prog Mem (TBLPTR))  TABLAT;
TBLPTR – No Change;
if TBLRD *+,
(Prog Mem (TBLPTR))  TABLAT;
(TBLPTR) + 1  TBLPTR;
if TBLRD *-,
(Prog Mem (TBLPTR))  TABLAT;
(TBLPTR) – 1  TBLPTR;
if TBLRD +*,
(TBLPTR) + 1  TBLPTR;
(Prog Mem (TBLPTR))  TABLAT;
This instruction is used to read the contents
of Program Memory (P.M.). To address the
program memory, a pointer called Table
Pointer (TBLPTR) is used.
The TBLPTR (a 21-bit pointer) points to
each byte in the program memory. TBLPTR
has a 2-Mbyte address range.
The TBLRD instruction can modify the value
of TBLPTR as follows:
• no change
• post-increment
• post-decrement
• pre-increment
1
2
(Read Program
No operation
0000
operation
Memory)
TBLPTR[0] = 0:
TBLPTR[0] = 1:
Q2
No
0000
operation
operation
Q3
No
No
of Program Memory
Word
of Program Memory
Word
Least Significant Byte
Most Significant Byte
0000
No operation
(Write TAB-
operation
nn=0 *
10nn
LAT)
Q4
No
=1 *+
=2 *-
=3 +*
Preliminary
TBLRD
Example1:
Example2:
PIC18(L)F2X/4XK22
Before Instruction
After Instruction
Before Instruction
After Instruction
TABLAT
TBLPTR
MEMORY (00A356h)
TABLAT
TBLPTR
TABLAT
TBLPTR
MEMORY (01A357h)
MEMORY (01A358h)
TABLAT
TBLPTR
Table Read (Continued)
TBLRD
TBLRD
*+ ;
+* ;
=
=
=
=
=
=
=
=
=
=
=
DS41412D-page 405
55h
00A356h
34h
34h
00A357h
AAh
01A357h
12h
34h
34h
01A358h

Related parts for PIC18F23K22-I/ML