I have some questions about GPIF-II State Machine in document numbered AN75779.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HamburgSteak
Level 2
Level 2
10 replies posted 25 sign-ins 10 sign-ins

Hi.

I'm learning about GPIF-II State Machine.

But I have some questions about state machine.

First is start order of state machine.

As you can see in document numbered AN75779, there are two start point of state  named "START_SCK0" and "START"SCK1".

Which one is performed first?

Second is about dma callback and thread context.

When state was in "PUSH_DATA_SCK0" and line was !LV, state would be changed to "LINE_END_SCK0", isn't it?

And then state would be change from "LINE_END_SCK0" to "WAIT_FULL_SCK0" when DATA_CNT_HIT was true, it's correct?

So when state was changed to "WAIT_FULL_SCK0", is dma callback function called for "WAIT_FULL_SCK0"? And then when LV was true, state would be changed to "PUSH_DATA_SCK1", right?

Am I right?

0 Likes
1 Solution
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

In the AN75779, there are two start states, START_SCK0 and START_SCK1. The state which will be performed first will depend on the parameters in the firmware GPIF APIs.

Yes, you are right. DMA callback function is called for "WAIT_FULL_SCK0".

Best Regards,
AliAsgar

View solution in original post

0 Likes
4 Replies
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

In the AN75779, there are two start states, START_SCK0 and START_SCK1. The state which will be performed first will depend on the parameters in the firmware GPIF APIs.

Yes, you are right. DMA callback function is called for "WAIT_FULL_SCK0".

Best Regards,
AliAsgar

0 Likes

Is the GPIF APIs that you said like CyU3PGpifSMStart and CyU3PGpifSMSwtich?

0 Likes

Hi,

Yes,  by GPIF APIs I meant, CyU3PGpifSMStart and CyU3PGpifSMSwitch.

Best Regards,
AliAsgar

0 Likes

Your answers have been helped a lot for me understanding that.

I appreciate that your helping.

0 Likes