Announcements

Register now for the most anticipated Asia Pacific Power Seminar 2022

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

USB superspeed peripherals Forum Discussions

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

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 50 likes received 500 replies posted 250 replies posted
Moderator

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 50 likes received 500 replies posted 250 replies posted
Moderator

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
HamburgSteak
Level 2
10 replies posted 25 sign-ins 10 sign-ins
Level 2

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

0 Likes
AliAsgar
Moderator
Moderator 50 likes received 500 replies posted 250 replies posted
Moderator

Hi,

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

Best Regards,
AliAsgar

0 Likes
HamburgSteak
Level 2
10 replies posted 25 sign-ins 10 sign-ins
Level 2

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

I appreciate that your helping.

0 Likes