DSPRelated.com
Forums

Suspended State of DSP

Started by ritu_eshar November 27, 2002
Hi Everyone,

I am presently working on 56F807EVM board and have CW ver4.1. I work
without using the motorola SDK.

I am experiencing some problems, I have tuned the timers, e.g.
Tmr_A_0 to produce a 30 Hz pulse waveform. I output the waveform onto
the scope (+ve edge of the BNC cable from the scope connected to the
Tmr_A_0 pin on J18 and the -ve edge connected to the Gnd pin). There
is no break in the signal been produced as long as I let the program
run.

But when I read, say e.g. the timer's counter onto the console, using
the printf statement, sometimes the DSP seems to push itself into a
suspended state. In such conditions, though the signal is visible on
the scope, what appears on the console halts after printing a few
readings.

Could someone please clarify, whats going on. Below I have inserted
the model code as a seperate routine, the one that I use to tune the
timers. Thanks in advance.

void clk
{
TmrA3_CTRL = 0X5184;
TmrA3_SCR = 0X00C1;
TmrA3_CMP1 = 0X1FFF;
TmrA3_CMP2 = 0X1FFF; //generate < 500KHz pulse

printf("%d\n", TmrA3_CNTR);
return;
}

thanks again.
Ritu.