PCM18XK1 Microchip Technology, PCM18XK1 Datasheet - Page 405

MODULE PROC PIC18F8680,6680,8565

PCM18XK1

Manufacturer Part Number
PCM18XK1
Description
MODULE PROC PIC18F8680,6680,8565
Manufacturer
Microchip Technology
Datasheet

Specifications of PCM18XK1

Accessory Type
Processor Module
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
ICE2000
For Use With
ICE2000 - EMULATOR MPLAB-ICE 2000 POD
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
TBLRD
Syntax:
Operands:
Operation:
Status Affected:None
Encoding:
Description:
Words:
Cycles:
 2004 Microchip Technology Inc.
Q Cycle Activity:
operation
Decode
Q1
No
Program Memory)
[ label ]
None
if TBLRD *,
(Prog Mem (TBLPTR))
TBLPTR – No Change;
if TBLRD *+,
(Prog Mem (TBLPTR))
(TBLPTR) + 1
if TBLRD *-,
(Prog Mem (TBLPTR))
(TBLPTR) – 1
if TBLRD +*,
(TBLPTR) + 1
(Prog Mem (TBLPTR))
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
Table Read
No operation
operation
0000
(Read
TBLPTR[0] = 0: Least Significant
TBLPTR[0] = 1: Most Significant
Q2
No
TBLRD ( *; *+; *-; +*)
0000
operation
operation
TBLPTR;
TBLPTR;
TBLPTR;
Q3
No
No
Byte of Program
Memory Word
Byte of Program
Memory Word
0000
No operation
TABLAT;
TABLAT;
TABLAT;
TABLAT;
operation
TABLAT)
PIC18F6585/8585/6680/8680
(Write
Q4
No
nn=0 *
10nn
=1 *+
=2 *-
=3 +*
TBLRD
Example1:
Example2:
Before Instruction
After Instruction
Before Instruction
After Instruction
TABLAT
TBLPTR
MEMORY(0x00A356)
TABLAT
TBLPTR
TABLAT
TBLPTR
MEMORY(0x01A357)
MEMORY(0x01A358)
TABLAT
TBLPTR
Table Read (Continued)
TBLRD
TBLRD
*+ ;
+* ;
=
=
=
=
=
=
=
=
=
=
=
DS30491C-page 403
0x55
0x00A356
0x34
0x34
0x00A357
0xAA
0x01A357
0x12
0x34
0x34
0x01A358

Related parts for PCM18XK1