Tool/software:
Hi,
At almost every digital power based example projects, there is timer based task structure like Alpha states, A branches, B branches. However, I couldn't find any documents explaining this state machine. I actually need a visualized version of this state machine with explanations.
1) For PMP23126, can you please briefly draw state machine and show how this scheduled tasks take place as below? Visual explaination is crucial for me.
2) At PMP23126, we increaseTimer0[0] in every A0 task, but we never use this array. What does vTimer0[0]++ or vTimer1[0]++ do? What is purpose of this lines? It is never used.
3) At PMP23126, can you please briefly define the periods of Tasks?
4) At PMP23126, there is "the next time CpuTimer1 'counter' reaches Period value go to B2" comment at every task. However, B1 task is like below and there is no counter or etc. inside that function. How can it be jump to B1 when counter reaches period?
void B1(void)
{
PSFB_UpdateOCPThreshold();
PSFB_UpdateRampSlope();
//
//the next time CpuTimer1 'counter' reaches Period value go to B2
//
B_Task_Ptr = &B2;
}
5) At PMP23126, can you please explain if there is any disadvantages of this kind of periodic task scheduler?
6) I just look for implementing three tasks that execute every 1msec, 10msec and 100msec respectively with accurate timing. Small deviation is acceptable for me. Can you briefly guide me about it?
Thanks in advance.