Forums

Inserting some delay

Started by Hardeep May 9, 2005
Hi,

I am working with the Time of Day module in the DSP56858. This may be
a real newbie question, but i'll explain the problem i'm having...and
I suppose it's more of a programming problem. In my mock program I set
the current time, start the time to run and let the program spit out
the time(as it progresses). When I use the debugger to step through
the program, I receive the correct time outputted on the console
window. When I run just run the program, the console window keeps on
outputted the same time even though time has passed. I think I need to
put some delay in when the program reads the registers. Is this
correct? Currently, I have inserted MANY "nop" statements and it sort
of works because the program now outputs the time every 2 seconds. Is
there anything better than a "nop" that I can use instead? Is there
any way I can control the output such that after an X amount of time
the program outputs?

Thanks.
Hardeep


Given the symptoms, your problem is likely related to timer initialization.
 
Configuration of peripherals often requires NOPs or careful ordering of instructions. Configuring registers out of order can sometimes have similar effects. I would first add (# of pipeline stages) NOP instructions between each configuration, and see if the problem is fixed. You can then optimize if necessary, once you find the offending sequence or instruction.
 
Howard
-----Original Message-----
From: Hardeep [mailto:h...@instantel.com]
Sent: Monday, May 09, 2005 9:29 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] Inserting some delay

Hi,

I am working with the Time of Day module in the DSP56858. This may be
a real newbie question, but i'll explain the problem i'm having...and
I suppose it's more of a programming problem. In my mock program I set
the current time, start the time to run and let the program spit out
the time(as it progresses). When I use the debugger to step through
the program, I receive the correct time outputted on the console
window. When I run just run the program, the console window keeps on
outputted the same time even though time has passed. I think I need to
put some delay in when the program reads the registers. Is this
correct? Currently, I have inserted MANY "nop" statements and it sort
of works because the program now outputs the time every 2 seconds. Is
there anything better than a "nop" that I can use instead? Is there
any way I can control the output such that after an X amount of time
the program outputs?

Thanks.
Hardeep


NEW!  You can now post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/motoroladsp/1.php

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

Archives:  http://www.dsprelated.com/groups/motoroladsp/1.php

To Post:  Send an email to m...@yahoogroups.com

Other DSP Related Groups: http://www.dsprelated.com/groups.php

The information contained in this message is confidential and intended only for use of the designated recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error, and that any review, dissemination, distribution, copying, or alteration of this message is strictly prohibited. If you have received this communication in error, please notify the originator immediately and remove it from your system.