Hello,
I'm newbie on DSP field. I'm using EVM with C6678. I would like to configure PLL using SYS/BIOS. Before loading my application to Core0 I'm calling function "Global Default Setup" from scripts menu (GEL file). It works good.
I would like to get periodic interrupt for example blinking LED. In this case period is estimated 500 clocks ticks.
/* Create a periodic Clock Instance with period = 500 system time units */ Clock_Params_init(&clkParams); clkParams.period = 500; clkParams.startFlag = TRUE; Clock_create(clk0Fxn, 500, &clkParams, NULL);
My function "clk0Fxn":
Void clk0Fxn(UArg arg0) { if (flag) { platform_led(0, PLATFORM_LED_ON, PLATFORM_USER_LED_CLASS); flag = FALSE; } else { platform_led(0, PLATFORM_LED_OFF, PLATFORM_USER_LED_CLASS); flag = TRUE; } }
This function works good and period is 500 clock ticks. I chacked it by "Clock_getTicks". My GEL file (provided with EVM) should setting up my core frequency to 1000MHz but my LED flashing with estimated 1Hz. It means core frequency is 1kHz instead of 1GHz. In my case it should be 500ns periodic interrupt. How can I fix it ? How can I configure PLL using SYS/BIOS in cfg file or code ?