For some reason, I am having some problems configuring the timer 0 on the Motorola DSP56303 chipset. I have configured the TLR0, TCPR0, TCSR0 (mode 0, TRM enabled and TIO0 as an output)... when i enable the timer however (by setting the TE bit to 1), the TCR0 register does not go back to 0. On top of that, the timer doesn't even increment by 1 !!! It takes a (seemingly) random value every time a step is taken in the program. Does anybody see any reason why it would do this ? Also... my program works fine with the simulator (sim56300). It just doesn't work on the development board (DSP56303EVM). HELP !! Thanks in advance Guillaume |
|
Triple timer module on the DSP56303
Started by ●May 22, 2003
Reply by ●May 22, 20032003-05-22
If you are stepping through your program with the debugger, the seemingly random values are due to the fact that the timer keeps running in the background Real-time debugging is not possible with peripherals running but are not being serviced regularly by their polling or ISR's. Does your code run properly if you let the DSP go rather than stepping through your code? --david --- In , "GuillaumeDesj" <guillaumedesj@y...> wrote: > For some reason, I am having some problems configuring the timer 0 on > the Motorola DSP56303 chipset. > > I have configured the TLR0, TCPR0, TCSR0 (mode 0, TRM enabled and > TIO0 as an output)... when i enable the timer however (by setting the > TE bit to 1), the TCR0 register does not go back to 0. On top of > that, the timer doesn't even increment by 1 !!! It takes a > (seemingly) random value every time a step is taken in the program. > > Does anybody see any reason why it would do this ? > > Also... my program works fine with the simulator (sim56300). It just > doesn't work on the development board (DSP56303EVM). > > HELP !! > > Thanks in advance > > Guillaume |
Reply by ●May 22, 20032003-05-22
Guillaume, The timer counter does not stop when the core enters debug mode between steps, it continues counting. There is no way to step through code and watch the counter increment using hardware. The simulator works slightly different in this regard as the peripherals do not operate between steps since there is no core clock. This makes software much easier to simulate before running it on the hardware. Everything should work fine if you just let the DSP run rather than trying to step through it. The OnCE port does not allow for real time debugging... -- dB --- GuillaumeDesj <> wrote: > For some reason, I am having some problems configuring the timer 0 on > > the Motorola DSP56303 chipset. > > I have configured the TLR0, TCPR0, TCSR0 (mode 0, TRM enabled and > TIO0 as an output)... when i enable the timer however (by setting the > > TE bit to 1), the TCR0 register does not go back to 0. On top of > that, the timer doesn't even increment by 1 !!! It takes a > (seemingly) random value every time a step is taken in the program. > > Does anybody see any reason why it would do this ? > > Also... my program works fine with the simulator (sim56300). It just > doesn't work on the development board (DSP56303EVM). > > HELP !! > > Thanks in advance > > Guillaume __________________________________ |