Page 1 of 1

How to change periode of periode of time of periodic task

Posted: Sun May 10, 2015 11:38 pm
by Faouzi
I didn't know to change periodic time
I have tow chose and i can know how is responsible from periodic time
SetRelAlarm(AlarmTask1, 10,10000);
or
COUNTER Counter1 {
CPU_ID = "cpu0";
MINCYCLE = 2;
MAXALLOWEDVALUE = 0x10000000 ;
TICKSPERBASE = 1;
};
i need help
thank's
Faouzi

Re: How to change time periode of periodic task

Posted: Mon May 11, 2015 5:18 pm
by Faouzi
I didn't know to change time period
I have tow chose and i can know how is responsible from periodic time
SetRelAlarm(AlarmTask1, 10,10000);
or
COUNTER Counter1 {
CPU_ID = "cpu0";
MINCYCLE = 2;
MAXALLOWEDVALUE = 0x10000000 ;
TICKSPERBASE = 1;
};
i need help
thank's

Re: How to change periode of periode of time of periodic ta

Posted: Mon May 11, 2015 5:42 pm
by paolo.gai
the period is specified in the SetRelAlarm. please read the ERIKA manual, the OSEK/VDX Standard, and check the "event" demo on how the SetRelAlarm is used. Also play with the parameters sent to the function. If I'm not wrong, MINCYCLE, MAXALLOWEDVALUE, and TICKSPERBASE are ignored in the Nios II version since it came before the OSEK/VDX certification.

pj

Re: How to change periode of periode of time of periodic ta

Posted: Mon May 11, 2015 5:42 pm
by paolo.gai
the period is specified in the SetRelAlarm. please read the ERIKA manual, the OSEK/VDX Standard, and check the "event" demo on how the SetRelAlarm is used. Also play with the parameters sent to the function. If I'm not wrong, MINCYCLE, MAXALLOWEDVALUE, and TICKSPERBASE are ignored in the Nios II version since it came before the OSEK/VDX certification.

pj