Seek for code example in KBA218460 FX3 TYPE-C SUPERSPEED EXPLORER KIT

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
Hunt_yang
Level 2
Level 2
Distributor - Future(GC)
First like received 10 replies posted 10 questions asked

KBA218460附件中给出的参考设计FX3 TYPE-C SUPERSPEED EXPLORER KIT

请问有CCG2 CYPD2122-24QFN的固件包和参考代码么?

另外请问这个参考设计中

pastedImage_1.png

12、13引脚和14、15引脚是否接反了?我在阅读PI3USB302-A的数据手册时看到了不同的引脚功能。

下图为PI3USB-A数据手册中的引脚图。

pastedImage_2.png

0 Likes
1 Solution
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

您好,

这个参考设计没有用到CCG2,是用FX3来控制MUX。代码的逻辑如下:

FX3 needs some firmware implementation in order to switch the mux so that the correct orientation of the Type-C plug is detected. The firmware sequence for USB connect is as under:

1) After the FX3 device gets connected to a Type-C host, the FX3 device gets powered.

2) Once powered, the firmware starts running inside FX3.

3) Configure the GPIO as an output that is used as a MUXSEL line.

4) Before the USB connect, the USB2.0 PHY is disabled in the firmware.

5) Then, the firmware attempts a USB 3.0 connection.

6) If it finds the terminations, it will enumerate as a SuperSpeed device.

7) If it does not find a termination. It will enable a USB2.0 PHY.

😎 Then the MUXSEL GPIO is toggled by FX3 in order to change the Mux switch position.

9) Again, the firmware attempts a USB3.0 connection/.

10) If it is a USB 3.0 device, it will enumerate as a USB 3.0 device or else it will enumerate as a USB 2.0 device.

此外,USB3.0的信号TX+和TX-是可以互换的,同理RX+和RX-也可以互换,USB2.0的信号没有这个特性。

Regards,

Eddie

View solution in original post

0 Likes
2 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

您好,

这个参考设计没有用到CCG2,是用FX3来控制MUX。代码的逻辑如下:

FX3 needs some firmware implementation in order to switch the mux so that the correct orientation of the Type-C plug is detected. The firmware sequence for USB connect is as under:

1) After the FX3 device gets connected to a Type-C host, the FX3 device gets powered.

2) Once powered, the firmware starts running inside FX3.

3) Configure the GPIO as an output that is used as a MUXSEL line.

4) Before the USB connect, the USB2.0 PHY is disabled in the firmware.

5) Then, the firmware attempts a USB 3.0 connection.

6) If it finds the terminations, it will enumerate as a SuperSpeed device.

7) If it does not find a termination. It will enable a USB2.0 PHY.

😎 Then the MUXSEL GPIO is toggled by FX3 in order to change the Mux switch position.

9) Again, the firmware attempts a USB3.0 connection/.

10) If it is a USB 3.0 device, it will enumerate as a USB 3.0 device or else it will enumerate as a USB 2.0 device.

此外,USB3.0的信号TX+和TX-是可以互换的,同理RX+和RX-也可以互换,USB2.0的信号没有这个特性。

Regards,

Eddie

0 Likes
Hunt_yang
Level 2
Level 2
Distributor - Future(GC)
First like received 10 replies posted 10 questions asked

Hi Eddie,

谢谢你的回复,

我参考了KBA218460附件里的设计

pastedImage_1.png

该设计中采用了FX3和MUX之间挂载CCG2,改变电压电流,CC信号控制的功能。

想请问这个设计中的CCG2有相关的代码参考或者代码包么?

0 Likes