DSPRelated.com
Forums

TMS320C5402 : a simple question about delay

Started by french_student May 26, 2004
for My F24X

I use (in assembly, as I am sure there is no optimisation and can estimate
the delay time) :

Attends .macro laps    ; attends un "laps" de temps
    LDP   #i
    SPLK #0,i
loopi? LACC i
    ADD  #1
    SACL i
    SUB #laps
    BNZ loopi?
   .endm



I write in thge code :Attends 2000 for 1.5 us for example
I output a IOPA0 +5 V before and IOPA0 to 0V after to measure on
oscilloscope
or I do a send on SPI interface... (in fact the wait routine is used for
letting a slow device eat the sended bytes before resending the following
ones)

Ciao