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

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

  

Post a new Thread

ldh & sth - Author Unknown - Jan 31 10:57:00 2003



Hello c6x,

For my application the C language is not usable.
I wrote all software in assembler but now I heve some instructions
that don't work correctly.
As example I've this code to receive with interrupt from mcbsp0. _c_int11: ; Save used register on stack

stw.d2 b0,*b15--
stw.d2 a1, *b15--

stw.d2 b1,*b15--
stw.d2 a5, *b15--
stw.d2 a11,*b15--

stw.d2 a13,*b15--
stw.d2 b3,*b15--
stw.d2 b7,*b15--
stw.d2 b9,*b15--

mvkl.s1 McBSP0_DRR, a11
mvkl.s1 rxCount,a5

mvkh.s1 McBSP0_DRR, a11
mvkh.s1 rxCount,a5

ldh.d1 *a11, b9

; >>>>>>>>> THIS LDH WORK CORRECTLY

nop 4

mvkl.s2 rxBuff,b3
mvkh.s2 rxBuff,b3

ldh.d1 *a5, a7
; >>>>>>>>>> THIS DON'T WORK
nop 4

add.d2 b3,b7,b11
stb.d2 b9, *b11

; >>>>>>>>>> THIS DON'T WORK

mvk.s2 100, b3
cmpeq.l2 b7, b3, b1

[b1] b.s2 $1
NOP 5

add.d1 1, a13, a5

. . . . I saw the memory attribute to see if there ìis WRITE permission ...
These LDH or STH instruction don't work !
Why an instruction can't work correctly ?

--
Best regards,
flavio mailto:

--------------------------------------
FLAVIO BERNARDOTTI
AMC Italy srl
Biometric Security Solutions
Research and Development Department
Via La Pira, 21
10028 TROFARELLO (TO)
ITALY
Tel. +39 011 6804011
Fax. +39 011 6804014
Dir. +39 380 7097051
Dir. +39 347 5610956

http://www.amcitaly.net
http://www.biotracciabilita.info

Personal sites:

http://www.crackinguniversity2000.it
http://www.bernardotti.it
http://www.bernardotti.al.it




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