Control motor with help USB SUPERSPEED?

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

cross mob
NaMe_2085021
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

I have is motor driver with interface I2C. I want comunication with motor driver by USB controller, which have interface USB3.1 or USB3.0

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

You can communicate with a motor driver having I2C interface with an FX3 (CYUSB301x) which has USB 3.0 interface. The datasheet and collateral guide for FX3 can be obtained by going to the following links

Datasheet : https://www.cypress.com/file/140296/download

Collateral Guide : https://www.cypress.com/applications/ez-usb-fx3-superspeed-usb-30-peripheral-controller-collateral-g...

The Software Development Kit for FX3 can be downloaded from the following link:

https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit

The FX3 SDK contains some example projects. An example project is provided for configuring FX3 as an I2C master. This example project can be used for communicating with the motor driver.

The above mentioned example project can be found in the following location once the installation of SDK is complete.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbi2cregmode

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post

0 Likes
18 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

You can communicate with a motor driver having I2C interface with an FX3 (CYUSB301x) which has USB 3.0 interface. The datasheet and collateral guide for FX3 can be obtained by going to the following links

Datasheet : https://www.cypress.com/file/140296/download

Collateral Guide : https://www.cypress.com/applications/ez-usb-fx3-superspeed-usb-30-peripheral-controller-collateral-g...

The Software Development Kit for FX3 can be downloaded from the following link:

https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit

The FX3 SDK contains some example projects. An example project is provided for configuring FX3 as an I2C master. This example project can be used for communicating with the motor driver.

The above mentioned example project can be found in the following location once the installation of SDK is complete.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbi2cregmode

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

Hi! Great! Thank you

пн, 30 вер. 2019 о 10:46 JayakrishnaT_76 <community-manager@cypress.com>

пише:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

Control motor with help USB SUPERSPEED?

reply from JayakrishnaT_76

<https://community.cypress.com/people/JayakrishnaT_76?et=watches.email.thread>

in USB Superspeed Peripherals - View the full discussion

<https://community.cypress.com/message/210606?et=watches.email.thread#210606>

0 Likes

Hi!

How do you think? Do I need ADC and PWM for this project?

0 Likes

Hi,

Can you please let me know which motor driver and which motor you are using for the project. Please send some documents relating  the components you are using. Can you please send a block diagram of your project with the signals that the controller issue to the motor driver.

Also do you have I2C commands to vary the PWM? If yes, have you tried varying the PWM output using those I2C commands using a different I2C master? If yes, then the same I2C commands can be issued by using FX3 by using the example project which was mentioned in the previous reply. 

Best Regards,

Jayakrishna T N

Best Regards,
Jayakrishna
0 Likes

Hi,

I found the block diagram in the attachment. I have a question. Where do you want to place the  FX3 device ?

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

I want use this processor  CYUSB301X/CYUSB201X : https://www.cypress.com/file/140296/download
instead CCG3  : https://www.cypress.com/file/222281/download

0 Likes

Hi,

I have some more questions.

1. Why do you need to have USB 3.0 or 3.1 interface for this project?

2. What is the purpose of ADC and PWM in this project?

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

1. Such is the task

2. ADC to measure current, and PWM, then I do not know, so I ask you. Do you have any recommendations?

0 Likes

Hi,

Please see my comments below:

1. FX3 does not have Power Delivery (PD) capability. So if you want to replace CCG3 with FX3 then you need to provide an external power supply for your motor as the maximum power that can be delivered to FX3 is 4.5W.

2. If you do not want to use an external power supply and would like to draw the power from Vbus directly after the power negotiation, then you can use a combination of CCG2 and FX3. Please refer to the below knowledge base article for this:

Designing FX3™/CX3-Based USB Type-C Products - KBA218460

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

HI!
Thank you very much for your help.

0 Likes

Hi!

This schematic USB Type-C motor control. https://drive.google.com/open?id=124IBYOBvddDJRP6LK4p2dxeAu6YNlxEo

Please, can you check this project?Is it correct schematic?

How example, I use this project: Designing FX3™/CX3-Based USB Type-C Products - KBA218460

0 Likes

Hello,

I was going through the schematic which you gave us. From the schematic we have some doubts. Please help us with the doubts so that we can help you better.

1. In your schematic, you have used G2 and G1 as VBUS_P_CTRL1 and VBUS_P_CTRL0 respectively. Such a connection is used for CCG3 supplying power to the Vbus. But from your application, we understand that power is to be delivered from Vbus to the CCG3. If that is the application, then you need to connect G2 and G1 to VBUS_C_CTRL1 and VBUS_C_CTRL0 respectively.

Please Refer to page number 18 of the CCG3 datasheet attached and modify your schematic

https://www.cypress.com/file/222281/download

2. Another thing which we noticed in the first look through the schematic is that P3.3 of CCG3 is used as the select signal of the Mux(PI3USB302-AZBE). But P3.3 of CCG3 is left unconnected in the schematic.

Can you please go through these suggestions. In the meanwhile we will have a detailed check on the schematic.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

You right. Thank you!

вт, 15 жовт. 2019 о 12:19 JayakrishnaT_76 <community-manager@cypress.com>

пише:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

Control motor with help USB SUPERSPEED?

reply from JayakrishnaT_76

<https://community.cypress.com/people/JayakrishnaT_76?et=watches.email.thread>

in USB Superspeed Peripherals - View the full discussion

<https://community.cypress.com/message/211995?et=watches.email.thread#211995>

0 Likes

Hello,

I found another issue in your schematic. In the FX3 section, we have VDD and AVDD. VDD is the core supply voltage and AVDD is the analog supply voltage. You can directly connect VDD to 1.2V, but this cannot be done for AVDD.

Please Refer to the following Application Note:

https://www.cypress.com/file/139936/download

This Application Note gives the Hardware design guidelines for FX3. Please refer to Schematics and Layout Review Checklist(Page 29) of the Application Note. In order to make the device work properly, you need to fulfill all the conditions mentioned in Schematics and Layout Review Checklist. Please go through the same and make appropriate changes in your schematic so that the device functions properly.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

Thank you very much.

вт, 15 жовт. 2019 о 16:51 JayakrishnaT_76 <community-manager@cypress.com>

пише:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

Control motor with help USB SUPERSPEED?

reply from JayakrishnaT_76

<https://community.cypress.com/people/JayakrishnaT_76?et=watches.email.thread>

in USB Superspeed Peripherals - View the full discussion

<https://community.cypress.com/message/212008?et=watches.email.thread#212008>

0 Likes

Hello,

I have found some errors in your schematic. Please go through the following suggestions:

1. The connection of decoupling capacitors in the schematic needs correction. For this you can refer to Table 3 and Figure 1 in the AN70707 document.

2. Ferrite beads need to be connected for AVDD. Please check Figure 1 of AN70707 to find out how it is to be connected.

3. The Reset circuitry needs a modification. As of the present design, you have connected the reset pin to ground through a capacitor. Please use a pull up resistor to the CVDDQ power domain as shown in the figure. You can reset the circuit by pressing the switch.

pastedImage_1.png

4. Please ensure that the USB precision resistors (R-USB2 & R_USB3) have 1% tolerance.

5. Please pull up I2C SDA and SCL lines to VIO5 power domain.

6. It is better to connect the shield pins on the USB receptacle to ground using an LC circuit for AC isolation.

7. The PMODE[2:0] pins are left unconnected. Please refer to Table 9 of AN70707 to find how the PMODE[2:0] pins are to be connected to select the desired boot option.

Please find the link to Application Note AN70707:

https://www.cypress.com/file/139936/download

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

Hello.

Thank you very much.

You are the best.

чт, 17 жовт. 2019 о 16:24 JayakrishnaT_76 <community-manager@cypress.com>

пише:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

Control motor with help USB SUPERSPEED?

reply from JayakrishnaT_76

<https://community.cypress.com/people/JayakrishnaT_76?et=watches.email.thread>

in USB Superspeed Peripherals - View the full discussion

<https://community.cypress.com/message/212270?et=watches.email.thread#212270>

0 Likes