Your SlideShare is downloading. ×
0
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Adding USB Communications to Your Design
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Adding USB Communications to Your Design

550

Published on

To introduce high speed USB technology and how to add USB communication to your design using Cypress’s CY3684 development kit

To introduce high speed USB technology and how to add USB communication to your design using Cypress’s CY3684 development kit

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
550
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Welcome to the training module on Adding USB Communications to Your Design.
  • This training module introduces high speed USB technology and how to add USB communication to your design using the Cypress’s CY3684 development kit.
  • As an engineer reaching this point in the search for a USB solution he or she is likely to have some grasp of the USB concept but for completeness we’ll quickly go over a few basics . USB is a replacement for the legacy serial & parallel communications which was a point to point connection precluding multi-drop topologies. The USB cabling consists of a pair of twisted wires carrying differential signalling data bundled with two wires for powering low-powered peripherals. Device functions may be plugged / unplugged while the host remains powered, known as hot plugging. USB 2.0 specification supports three speeds suitable for different applications. There is exactly one master in a USB system. The host controls the flow of data, no device function may send data back to the host without it being requested. Because the host is always the bus master, it is easy to remember USB direction: OUT means from the host to the device, and IN means from the device to the host.
  • USB defines four transfer types: bulk transfers, interrupt transfers, isochronous transfers, and control transfers. Bulk transfers are used to move large chunks of data. They are typically used for printer, scanner, or modem data. Interrupt data is like bulk data; Interrupt endpoints have an associated polling interval that ensures they will be polled (receive an IN token) by the host on a regular basis. Isochronous transfers are used where regular data is required, for example streaming audio, each packet being up to about 1K. Control transfers configure and send commands to a device. Because they are so important, they employ the most extensive USB error checking.
  • The kit chosen to use as an example for the design of full/ High-speed USB is the Cypress CY3684, which is based on the company’s CY7C68016A chip, a member of the EZ-USB family. Most vendors including Atmel, Cypress, Freescale, and Microchip offer lower cost, lower performance parts better suited for simple functions. The FX2LP series targeted here including the CY7C6801,3,4,5,6 controllers offer the addition of USB high-speed, with code compatibility and an architecture so similar that porting is usually trivial. One great point in this development kits favour is its ease of use, much of the low-level USB handling is taken care of by the silicon and pre-developed library routines with no extra royalties to pay .
  • The EZ-USB FX2LP is a power-efficient, high-speed USB 2.0 controller.  USB peripherals using the EZ-USB FX2LP controller— including mass storage devices and personal media players— are able to operate off of the power of the USB bus. Featuring a data rate of 480 Mbps, 16 Kbytes of on-chip memory, and up to 40 programmable I/Os, EZ-USB FX2LP solution provides design flexibility. By integrating the USB 2.0 transceiver, serial interface engine (SIE), enhanced 8051 microcontroller, and a programmable peripheral interface in a single chip, this solution provides superior time-to-market advantages with low power to enable bus powered applications.
  • The CY3684 development board provides a platform to test the project during all stages of the design phase. It is also a valuable source of support collateral to help speed your design to market. While it is designed to enable prototyping a wide range of designs, the FX2LP development kit remains user friendly. The development board uses the 128 pin version, enabling the developer to work with all of the features the FX2LP has to offer. All available pins are connected to headers that facilitate debugging efforts and other component connection to the FX2LP. This board also provides a known good USB platform during development, to test firmware.
  • Following the EZ-USB “Getting Started” manual, the software should be installed without too much difficulty. For first time users, Cypress recommends accepting the default option at each stage of the Setup. You also need to connect the board to the PC to get the drivers to install. Connect the EZ-USB Development board to a USB port on your development PC using the USB cable. The driver, cyusb.sys, was automatically installed into the Windows\\System32\\Drivers directory during installation of the DVK software.
  • With software and hardware installed, it is time to verify whether the installation was successful. This can be achieved by CyConsole, which communicates with the USB devices that have matched to the CyUSB.sys device driver. The console supports hot-plugging of USB devices. When a device that matches to the driver is plugged-in to the PC it will automatically appear in the Device List near the top of the CyConsole window. After starting the USB Console, click on the “GetDev” button to retrieve the Device Descriptor from the Development Board.
  • The Tech First Kit is the best starting point for developing an EZ-USB based product. The DVK includes everything you will need to get started: A development board, example firmware, a generic device driver, documentation, and assorted tools. A useful collection of Cypress Application Notes and manuals are also included in the CD. To help with building your own hardware from starting with this PuP Kit, a list of the core parts on the design are listed in the Bill of Materials.
  • Thank you for taking the time to view this presentation on “ Adding USB Communications to Your Design” . If you would like to learn more or go on to purchase some of these devices, you may either click on the part list link, or simply call our sales hotline. For more technical information you may either visit the Cypress & Premier Farnell site, or if you would prefer to speak to someone live, please call our hotline number, or even use our ‘live chat’ online facility. You may visit Element 14 e-community to post your questions.
  • Transcript

    • 1. Adding USB Communications to Your Design <ul><li>Source: Premier Farnell &amp; Cypress </li></ul>
    • 2. Introduction <ul><li>Purpose </li></ul><ul><ul><li>To introduce high speed USB technology and how to add USB communication to your design using Cypress’s CY3684 development kit. </li></ul></ul><ul><li>Outline </li></ul><ul><ul><li>USB 2.0 basics </li></ul></ul><ul><ul><li>CY3684 PuP kit </li></ul></ul><ul><ul><li>Cypress’s EZ-USB FX2LP microcontroller </li></ul></ul><ul><ul><li>Installation of the DVK </li></ul></ul><ul><li>Content </li></ul><ul><ul><li>11 pages </li></ul></ul>
    • 3. USB Basics <ul><li>USB is a replacement for legacy serial &amp; parallel communications and is a point to point connection precluding multi-drop topologies . </li></ul><ul><li>USB devices can be hot plugged while the host remains powered . </li></ul><ul><li>USB 2.0 specification supports three speeds </li></ul><ul><ul><li>Low speed – 1.5Mbps, for mouse, keyboard, joysticks, etc. </li></ul></ul><ul><ul><li>Full speed – 12 Mbps, for modems, speakers, scanners, etc. </li></ul></ul><ul><ul><li>High speed – 480 Mbps, for hard disk drives, CD-ROMs, cameras, etc. </li></ul></ul><ul><li>The host controls the flow of data, so no device function may send data back to the host without it being requested. </li></ul><ul><li>USB direction </li></ul><ul><ul><li>OUT – from the host to USB device </li></ul></ul><ul><ul><li>IN – from USB device to the host </li></ul></ul>
    • 4. USB Transfer Type <ul><li>Bulk transfers are used to move large chunks of data, they have a low priority thus bandwidth may suffer in a system with isochronous and interrupt traffic. </li></ul><ul><li>Interrupt transfers are a bit of a misnomer to anyone familiar with microprocessor design, these just guaranteed latency (regular) packets. The function doesn’t interrupt the host, rather the host polls it at a pre-arranged rate. </li></ul><ul><li>Isochronous transfers are used where regular data is required, for example streaming audio, each packet being up to about 1K. </li></ul><ul><li>Control transfers are used for setting up the function, these are short packets. </li></ul>
    • 5. About the CY3687 / 3674 PuP Kit <ul><li>The development kits based on EZ-USB FX2LP ™ family provide complete hardware and software solutions. </li></ul><ul><li>Kit Contents: </li></ul><ul><ul><li>EZ-USB development board with CY7C68013A-128AXC </li></ul></ul><ul><ul><li>Peripheral board for prototyping </li></ul></ul><ul><ul><li>USB cable </li></ul></ul><ul><ul><li>An RS232 9-pin to 9-pin cable </li></ul></ul><ul><ul><li>Reference CD with complete product documentation </li></ul></ul>
    • 6. Cypress’ EZ-USB FX2LP Microcontroller <ul><li>The EZ-USB FX2LP device supports both full and high-speed modes. </li></ul><ul><li>Low power consumption enabling bus-powered designs </li></ul><ul><li>Single chip integrated USB 2.0 transceiver, smart SIE, and enhanced 8051 microprocessor </li></ul><ul><li>Soft operation </li></ul><ul><ul><li>Internal RAM, which is downloaded through USB </li></ul></ul><ul><ul><li>Internal RAM, which is loaded from EEPROM </li></ul></ul><ul><ul><li>External memory device </li></ul></ul><ul><li>Four Programmable BULK, INTERRUPT, and ISOCHRONOUS Endpoints </li></ul>
    • 7. CY3684 Development Board CY7C68013A Re-programmable GAL 128 KB RAM Voltage regulator Socketed E 2 PROMs Philips PCF8574 IO expanders ATA Connector USB port RS-232 port RS-232 port
    • 8. Installation the Kit <ul><li>Software installation </li></ul><ul><ul><li>Insert the installation CD into your CD ROM drive and run the program &amp;quot;setup.exe“. </li></ul></ul><ul><li>Hardware installation </li></ul><ul><ul><li>Connect the EZ-USB Development board to a USB port on your development PC using the USB cable. </li></ul></ul><ul><ul><li>When the OS finds the new USB device, it will notify you that it is installing the driver. </li></ul></ul><ul><ul><li>The driver will be automatically located and loaded. </li></ul></ul><ul><ul><li>The green light on the Development Board should illuminate, indicating that the 8051 Keil monitor code is loaded and running. </li></ul></ul>
    • 9. Confirming Successful Installation <ul><li>CyConsole is used to communicate with USB devices that have matched to the CyUSB.sys device driver. </li></ul>Device list Click to get the device descriptor
    • 10. Summary <ul><li>The development kits based on EZ-USB FX2LP ™ family provide complete hardware and software solutions. </li></ul><ul><li>Kit Contents: </li></ul><ul><ul><li>EZ-USB development board with CY7C68013A-128AXC </li></ul></ul><ul><ul><li>Peripheral board for prototyping </li></ul></ul><ul><ul><li>USB cable </li></ul></ul><ul><ul><li>An RS232 9-pin to 9-pin cable </li></ul></ul><ul><ul><li>Reference CD with complete product documentation </li></ul></ul>
    • 11. Additional Resource <ul><li>For ordering the Tech First Kit, please click the part list or </li></ul><ul><li>Call our sales hotline </li></ul><ul><li>For more product information go to </li></ul><ul><ul><li>http://www.element-14.com/community/docs/DOC-11572 </li></ul></ul><ul><li>Visit Element 14 to post your question </li></ul><ul><ul><li> www.element-14.com </li></ul></ul><ul><li>For additional inquires contact our technical service hotline or even use our “Live Technical Chat” online facility </li></ul>Newark Farnell

    ×