EasyManuals Logo

Cypress EZ-USB FX3 User Manual

Cypress EZ-USB FX3
660 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #97 background imageLoading...
Page #97 background image
EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 97
Universal Serial Bus (USB)
}
if ((UIB->otg_ctrl & CY_U3P_UIB_SSDEV_ENABLE) == 0)
{
return;
}
CyU3PDisconUsbPins ();
UIB->otg_ctrl &= ~CY_U3P_UIB_DEV_ENABLE; /* Disable USB 2.0 PHY. */
UIB->dev_ctl_intr = UIB->dev_ctl_intr;
}
/* Switch EPM clock to USB 3.0 mode. */
CyU3PSetUsbCoreClock (1, 1);
USB3LNK->lnk_phy_conf = 0xE0000001;
glUibDeviceInfo.usbSpeed = CY_U3P_SUPER_SPEED; /* Remember connection speed. */
UIB->otg_ctrl |= CY_U3P_UIB_SSEPM_ENABLE; /* Switch EPMs for USB-SS. */
/* Reset the EPM mux. */
UIB->iepm_cs |= (CY_U3P_UIB_EPM_FLUSH | CY_U3P_UIB_EPM_MUX_RESET);
CyU3PBusyWait (1);
UIB->iepm_cs &= ~(CY_U3P_UIB_EPM_FLUSH | CY_U3P_UIB_EPM_MUX_RESET);
CyU3PBusyWait (1);
/* Update the PHY to not send spurious LFPS. */
CyFx3UsbWritePhyReg (0x0030, 0x00C0);
CyFx3UsbWritePhyReg (0x1010, 0x0080);
CyU3PUsbFlushEp (0x00);
CyU3PUsbFlushEp (0x80);
/* Enable USB 3.0 control eps. */
USB3PROT->prot_epi_cs1[0] |= CY_U3P_UIB_SSEPI_VALID;
UIB->eepm_endpoint[0] = 0x200; /* Control EP transfer size is 512
bytes. */
USB3PROT->prot_epo_cs1[0] |= CY_U3P_UIB_SSEPO_VALID;
UIB->iepm_endpoint[0] = 0x200; /* Control EP transfer size is 512
bytes. */
CyU3PUsbResetEp (0x00);
CyU3PUsbFlushEp (0x00);
CyU3PUsbResetEp (0x80);
CyU3PUsbFlushEp (0x80);
UIB->eepm_endpoint[0] = 0x200; /* Control EP transfer size is 512
bytes. */
UIB->iepm_endpoint[0] = 0x200; /* Control EP transfer size is 512
bytes. */
/* Propagate the event to the application. */
if (glUsbEvtCb != NULL)
{
glUsbEvtCb (CY_U3P_USB_EVENT_CONNECT, 0x01);
}
/* Configure the EPs for super-speed operation. */

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cypress EZ-USB FX3 and is the answer not in the manual?

Cypress EZ-USB FX3 Specifications

General IconGeneral
BrandCypress
ModelEZ-USB FX3
CategoryController
LanguageEnglish

Related product manuals