Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Discussion Groups

Discussion Groups | TMS320C6x | Load long dayta type

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

Load long dayta type - Moranjkic Adnan - May 26 6:18:41 2008



Hi All,

I am working on C6446 Davinci EVM. I need to write one of my C FOR loops in linear assemble for
better performance. Evrithing I do gives me wright result except loading data type long.  Whwn
I call my linear assembly function that sends me pointer to array with long data types, inside
assembly function I am not getting write results.

I am using LDH comand, I used LDDW and LDH and result was same. 
When I am using LDH, the first value I read from array is correct, every other value is not
correct.
Does anyone know which command I need to use?

Any advice is welcome.
Thank you all,
Madnan



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Load long dayta type - Andrew Nesterov - May 27 14:59:29 2008

> Subject: Load long dayta type
> Posted by: "Moranjkic Adnan" m...@yahoo.com moranjkicadnan
> Date: Mon May 26, 2008 3:18 am ((PDT))
>
> Hi All,
>
> I am working on C6446 Davinci EVM. I need to write one of my C FOR loops in 
> linear assemble for better performance. Evrithing I do gives me wright result 
> except loading data type long.  Whwn I call my linear assembly function that 
> sends me pointer to array with long data types, inside assembly function I am 
> not getting write results.
>
> I am using LDH comand, I used LDDW and LDH and result was same.
> When I am using LDH, the first value I read from array is correct, every 
> other value is not correct.
> Does anyone know which command I need to use?

Hi Adnan,

No doubt, the right instruction to load a long (which is 40 bit size) is the
LDDW. Refer to SPRU732, SPRU187, SPRU186 and finally SPRU198 for the C6000
data type specification, instruction set and programmer's reference.

Rgds,

Andrew

> Any advice is welcome.
> Thank you all,
> Madnan
>

------------------------------------

OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )