PIC18F6585-I/L Microchip Technology, PIC18F6585-I/L Datasheet - Page 405

Microcontrollers (MCU) 48KB 3328 RAM 52 I/O

PIC18F6585-I/L

Manufacturer Part Number
PIC18F6585-I/L
Description
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC18F6585-I/L

Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
I2C/SPI/AUSART/CAN
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
53
Number Of Timers
5
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM183032
Minimum Operating Temperature
- 40 C
On-chip Adc
12-ch x 10-bit
Program Memory Type
Flash
Program Memory Size
48 KB
Package / Case
PLCC-68
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 PIC18F6585-I/L