DSPIC30F6011AT-20E/PF Datasheet

  • DSPIC30F6011AT-20E/PF

  • High Performance Digital Signal Controllers

  • 3527.50KB

  • 222页

  • MICROCHIP   MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

dsPIC30F6011/6012/6013/6014
3.1.1
DATA ACCESS FROM PROGRAM
MEMORY USING TABLE
INSTRUCTIONS
A set of table instructions are provided to move byte or
word sized data to and from program space.
1.
TBLRDL:
Table Read Low
Word:
Read the LS Word of the program address;
P<15:0> maps to D<15:0>.
Byte:
Read one of the LS Bytes of the program
address;
P<7:0> maps to the destination byte when byte
select =
0;
P<15:8> maps to the destination byte when byte
select =
1.
TBLWTL:
Table Write Low (refer to Section 6.0
for details on Flash Programming)
TBLRDH:
Table Read High
Word:
Read the MS Word of the program address;
P<23:16> maps to D<7:0>; D<15:8> will always
be =
0.
Byte:
Read one of the MS Bytes of the program
address;
P<23:16> maps to the destination byte when
byte select =
0;
The destination byte will always be =
0
when
byte select =
1.
TBLWTH:
Table Write High (refer to Section 6.0
for details on Flash Programming)
This architecture fetches 24-bit wide program memory.
Consequently, instructions are always aligned.
However, as the architecture is modified Harvard, data
can also be present in program space.
There are two methods by which program space can
be accessed: via special table instructions, or through
the remapping of a 16K word program space page into
the upper half of data space (see Section 3.1.2). The
TBLRDL
and
TBLWTL
instructions offer a direct method
of reading or writing the LS Word of any address within
program space, without going through data space. The
TBLRDH
and
TBLWTH
instructions are the only method
whereby the upper 8 bits of a program space word can
be accessed as data.
The PC is incremented by two for each successive
24-bit program word. This allows program memory
addresses to directly map to data space addresses.
Program memory can thus be regarded as two 16-bit
word wide address spaces, residing side by side, each
with the same address range.
TBLRDL
and
TBLWTL
access the space which contains the LS Data Word,
and
TBLRDH
and
TBLWTH
access the space which
contains the MS Data Byte.
Figure 3-3 shows how the EA is created for table oper-
ations and data space accesses (PSV =
1).
Here,
P<23:0> refers to a program space word, whereas
D<15:0> refers to a data space word.
2.
3.
4.
FIGURE 3-4:
PROGRAM DATA TABLE ACCESS (LS WORD)
PC Address
0x000000
0x000002
0x000004
0x000006
00000000
00000000
00000000
00000000
23
16
8
0
Program Memory
鈥楶hantom鈥?Byte
(read as 鈥?鈥?
TBLRDL.W
TBLRDL.B (Wn<0> = 0)
TBLRDL.B (Wn<0> = 1)
DS70117C-page 26
Preliminary
铮?/div>
2004 Microchip Technology Inc.

DSPIC30F6011AT-20E/PF相关型号PDF文件下载

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!