Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | (Q) .set directives

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

(Q) .set directives - Ki-Young Park - Jan 27 13:31:00 2001




I like to control AIC in EVM5409 from Spectrum Digital (AD50).
I found some example code in asm file to do that and now
I like to call those functions from 'C' file.

In example source code, many initializations are done
using .set command at the beginning of code like

IMR .set 000h
I_SPCR1 . set 00020h
p0_serialflag .set 060h

I tried substituting those code with STM asm command like 'STM #000h, IMR'

but c compiler(CC1.2) don't know some of those registers' name
and gives compile time error.(But it produces object file which I can't
understand as well)
and of course the resulting object code doesn't work correctly.

I think those initialization must be done before
the use of AIC.

welcome any comments and advice.

Thank you





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

Re: (Q) .set directives - Brian C. Lane - Jan 30 0:19:00 2001

On Sat, 27 Jan 2001 22:31:26 +0900, you wrote: >IMR .set 000h
>I_SPCR1 . set 00020h
>p0_serialflag .set 060h
>
>I tried substituting those code with STM asm command like 'STM #000h, IMR'

The .set assembly directive is the equivelant of the 'c' #define
directive. It is setting up the memory locations for those registers.

Brian

-----------------------------------------------------
Brian C. Lane Programmer
www.shinemicro.com RF & Microcontroller Design




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