PIC18F2480 MICROCHIP [Microchip Technology], PIC18F2480 Datasheet - Page 401

no-image

PIC18F2480

Manufacturer Part Number
PIC18F2480
Description
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2480-E/ML
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F2480-E/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2480-I/SO
Manufacturer:
Microchi
Quantity:
9 999
Part Number:
PIC18F2480-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F2480-I/SO
0
Part Number:
PIC18F2480-I/SP
Manufacturer:
TDK
Quantity:
64
Part Number:
PIC18F2480-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
TBLRD
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
 2004 Microchip Technology Inc.
Q Cycle Activity:
operation
Decode
No
Q1
(Read Program
None
(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
TBLRD ( *; *+; *-; +*)
if TBLRD *,
No operation
operation
TBLPTR[0] = 0: Least Significant Byte of
TBLPTR[0] = 1: Most Significant Byte of
Memory)
0000
No
Q2
0000
operation
operation
TBLPTR;
TBLPTR;
TBLPTR;
Program Memory Word
Program Memory Word
No
No
Q3
0000
TABLAT;
TABLAT;
TABLAT;
TABLAT;
(Write TABLAT)
No operation
operation
PIC18F2480/2580/4480/4580
No
Q4
nn=0 *
10nn
=1 *+
=2 *-
=3 +*
Preliminary
TBLRD
Example 1:
Example 2:
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
*+ ;
+* ;
=
=
=
=
=
=
=
=
=
=
=
DS39637A-page 399
55h
00A356h
34h
00A357h
0AAh
01A357h
34h
01A358h
34h
12h
34h

Related parts for PIC18F2480