Word api

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Word api

430 次查看
Ujwala_kontham
Contributor I

Iam using Flash LDD component for MC56f82746 DSC controller,
in that we have set Word and Get Word Apis in which Address variable is left shifting by 1, because of that left shift we are not able to at desired address location. May I know the reason behind it. And provide me the solution to write at desired address location using Word APis.

0 项奖励
回复
1 回复

410 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

if you define the word as:

uint32_t type is word, which is 32 bits.

uint16_t type is half-word, which is 16 bits.

uint8_t type is byte, which is 8 bits.

The DSC is half-word address, in other words, each address cell occupies half-word or 16 bits data.

But the DSP56800E/EX core supports byte pointer address, in the case, the byte point address must be left-shift one bit based on the half-word address..

Pls refer to section 6.6.1 Byte Pointers vs. Word Pointers in DSP56800ERM.pdf

xiangjun_rong_0-1716357246507.png

Secondly, for the example, the DMA source/destination address requires byte-pointer address, left-shift is required for the half-word address.

Hope it can help you

BR

Xiangjun rong

 

 

 

0 项奖励
回复