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.

RTOS/TMS320C6678: Timer and Clock Tick period Problem

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

hi,

I use evm6678, in XGCONF , i set Tick period 100us  and i use Clock module and set the period to 1000, but my ISR function interrupt  every 1000 ms !!

it must be 100ms ??

i use timer and set the period in 100000 micro second  and it interrupt every 1000 ms !! it must be 100ms ??  (have a 10 factor)

  • Hi,

    Which Processor SDK RTOS version are you using? Can you share how you set up the tick period?
    Have you checked the Timer training for tips on this one:
    www.ti.com/.../timers_clocks.mp4

    Best Regards,
    Yordan
  • hi,
    i use mcsdk_2_01_02_06 and pdk_c6678_1_1_2_6 .
    i modify image processing master demo program in pdk. in this example at the start boot EVM_init call and it initialize pll and other , is there any problem in EVM_ini?
  • Hi,

    i modify image processing master demo program in pdk.

    Can you share how you modify the demo?
    In general there shouldn't be any problem with EVM_ini.

    Best Regards,
    Yordan
  • Hi,

    Attaches is a timer example using SYSBIOS. One timer tick is 1ms.  The C6678 runs at 1GHz with GEL initialization. I used TSCL to measure the timestamp when the ISR is entered.

    When I used a period of 5 ticks, that is 5ms, the TSCL gap is 5,000,000 cycles. I don't see any problem. You can use this as the base for your timer ISR code.

    ====

    k0Fxn = 940

    System time in clk0Fxn = 945

    System time in clk0Fxn = 950

    System time in clk0Fxn = 955

    System time in clk0Fxn = 960

    System time in clk0Fxn = 965

    System time in clk0Fxn = 970

    System time in clk0Fxn = 975

    System time in clk0Fxn = 980

    System time in clk0Fxn = 985

    System time in clk0Fxn = 990

    System time in clk0Fxn = 995

    System time in clk0Fxn = 1000

    System time in clk0Fxn = 1005

    System time in clk0Fxn = 1010

    System time in clk0Fxn = 1015

    System time in clk0Fxn = 1020

    System time in clk0Fxn = 1025

    System time in clk0Fxn = 1030

    System time in clk0Fxn = 1035

    System time in clk0Fxn = 1040

    System time in clk0Fxn = 1045

    System time in clk0Fxn = 1050

    System time in clk0Fxn = 1055

    System time in clk0Fxn = 1060

    System time in clk0Fxn = 1065

    System time in clk0Fxn = 1070

    System time in clk0Fxn = 1075

    System time in clk0Fxn = 1080

    System time in clk0Fxn = 1085

    System time in clk0Fxn = 1090

    System time in clk0Fxn = 1095

    System time in clk0Fxn = 1100

    System time in clk1Fxn = 1100

    Calling BIOS_exit() from clk1Fxn

    clock_TMS320C6678.zip

    Regards., Eric

  • clock.cfgUpdate: I saw you want to change the tickPeriod from 1000 us (default) to 100 us, I did this in XGCCONF

    I had below in my .cfg file (attached):

    Clock.tickPeriod = 100;

    I now saw the TSCL interval is 500,000 cycles, this is expected.

    Regards, Eric

  • thank you for reply;

    I check my program again and call you.

  • hi,

    I find out my problem.

    when i call Global_Default_Setup script before running my program, my problem solved.

    i  forget call Global_Default_Setup !!

    thanks.