This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing timer 0 period in CCS5

Hello,

I have some questions that I would appreciate help with.

I am using CCS5 and target C6746. If I try to change the period of timer0 by writing to GRP( TIMER64P0DSP ).REG( PRD12 )
register, as needed in my develpement, I notice that for the new value to be written to that register and the timer to change
its period I need to do a system reset (ctrl+shift +S). If i don't do that the target timer won't change (remain to its original value)
even if I build-reload and run it would always show the very first period.
 1- Is this normal ? Why can I change it in the code build load and run and it executes?

Another thing I noticed if I do a system reset as described above (not CPU reset) the target won't work if I reload, unless I go to
scripts/ Experimenter/ PSC_All_On_Full_EVM, I think this calls some functions from the .gel file.
 2- Can anybody explain to me why, what exactly is it doing and why is it essential for the target to work again after the system reset?

I appreciate all the help.

thx,
Adil

  • Hi Adil,

    System Reset would reset all peripherals like timer0 while a CPU reset may not. That may explain why you need to do the system reset in #1 (maybe a reset is needed before you can make changes) and in #2 why you need to run in the rerun the GEL initialization script in step #2 (all the previous initialization for reset). But I'm not that familiar on C6746 so this is just a guess. I'll move this post to the C67x device forums where there is more expertise.

    Thanks

    ki

  • Hi Adil,

    Depending on the timer mode you are using (64-bit general-purpose timer mode, Dual 32-bit unchained general-purpose timer mode or Dual 32-bit chained timer mode), there is a sequence that you need to follow to change the registers, including the period. Please see:

    TMS320C674x/OMAP-L1x Processor 64-Bit Timer Plus User's Guide  pages 11, 14, and 18.