TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?Configuration Descriptor//-------------------------
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?Interface Descriptor//-----------------------------
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?//-------------------------------------------------
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?Device DescriptorConfiguration DescriptorConfigurat
TMSoftware – General ConceptsThe General USB Process1. Enumeration -Upon powering up, the host: queries all connected devices to determine the require
TMSoftware – General ConceptsThe General USB ProcessHostWhat device class are you?Do you supply the power or do I?How many and of what type of endpoin
TMSoftware – General ConceptsThe General USB ProcessHostWhat device class are you?Do you supply the power or do I?How many and of what type of endpoin
TMSoftware – General ConceptsThe General USB ProcessInterrupt Transfer - Devices that send very little data such as mice or keyboards would choose thi
TMSoftware – General ConceptsThe General USB Process3. As the host enumerates each device it sets aside bandwidth for the devices that use the inte
TMSoftware – General ConceptsThe General USB Process5. The available bandwidth is then divided into frames, and the host controls those frames which
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMSoftware – General ConceptsThe General USB ProcessFrames in More DetailEach frame begins with a Start of Frame packet followed by the hosts transact
TMSoftware – General ConceptsThe General USB ProcessPackets in More DetailPackets are a block of information with a defined data structure. The packet
TMSoftware – General ConceptsThe General USB ProcessPackets Associated with Each Type of TransferDataTokenData (IN or OUT)IsochronousHandshakeDataToke
TMSoftware – General ConceptsUSB Signaling• USB uses Non-Return to Zero, Inverted signaling– Separate clock signal not required to be delivered with d
TMSoftware – General ConceptsAPI Calls:What happens after enumeration?After enumeration the device is ready to perform the function it was designed fo
TMSoftware – General ConceptsAPI Calls:What happens after enumeration?Commonly used API calls for host devices:•host_init()•host_stop()•host_reset_bus
TMSoftware – General ConceptsAPI Calls:What happens after enumeration?Commonly used API calls for devices:
TMSoftware – General ConceptsAPI Calls:What happens after enumeration?Note to reviewers…. what happens behind the scenes (after enumeration) between t
TMSoftware – General ConceptsNote to reviewers….A short introduction to the demos should go here.
TMSoftware – General ConceptsNote to reviewers….Here should be a short discussion of what the programmer would have to do to modify the code in the De
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMIntroduction to USBComplimentary SW for the MCF522xx Family of Microcontrollers:•USB Basic Device Controller•HID device layer for the USB driver– Ge
TMUSB TopologyIntroduction to USBTMUSB Device •Reliable Bootloader •Embedded Pipe •Mass Storage (for attached SD card or similar) •FAT file System (f
TMUSB TopologyIntroduction to USBIntroduction to USBAppendix AUSB On-the-Go
TMUSB TopologyIntroduction to USBAppendix A USB On-the-GoUSB On-the-Go: What is it?Remember that previously we said that USB:1. can be implemented as
TMUSB TopologyIntroduction to USBUSB On-the-Go: What is it?By 2001, there was a proliferation of peripheral devices that could be interconnected and p
TMUSB TopologyIntroduction to USBUSB On-the-Go: What Applications would use it?OTG Device inPeripheral modeSame OTG Devicein host modeAbove is a typic
TMUSB TopologyIntroduction to USBUSB On-the-Go: How does it work?To implement OTG, two new protocols were added in the USB 2.0 addendum. These new pro
TMUSB TopologyIntroduction to USBUSB On-the-Go: Initial declarationAppendix A USB On-the-GoD+D-VBUSGNDIDMini-A plugMini-B plugDual-role DeviceDual-rol
TMUSB TopologyIntroduction to USBUSB On-the-Go: Negotiation processAppendix A USB On-the-GoSRP (Session Request Protocol) NegotiationsOTG-B (device) a
TMUSB TopologyIntroduction to USBUSB On-the-Go: Negotiation processAppendix A USB On-the-Go1. OTG-A (host) enables OTG-B (device) to become host by se
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMUSB TopologyIntroduction to USBUSB On-the-Go: Negotiation processAppendix A USB On-the-Go6. To return control back to OTG-A (host) , OTG-B (devic
TMFreescale USB Solutions
TMThe USB Controller Continuum. Only from Freescale.• USB is becoming the standard in Consumer and Industrial applications• Designers want a “one stop
TM• EDN China 2008 Innovation Award • winner of the Consumer Electronics IC category• MCF51JM128 •“A panel of distinguished judges, representing a cro
TMUSB Solutions (Low/Full Speed, Device, Host, OTG)MC9S08JS16/8
TMMCF52259 USB features• Dual Mode USB Controller• USB 1.1 and 2.0 complient full speed device controller• 16 bi-directional end points• DMA or FIFO d
TMUSB
TMLABs
TMLABs• LAB1 – HID ( Device operation)• LAB2 – CDC ( Device Operation)• LAB3 – MSD( Host Operation)• LAB4 – HID (Host Operation)
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMLAB1 – HID ( Human interface device)• In this Lab the MCF52259 board (USB) will control the PC curser.• Install the “Coldfire_USB_Lite.exe” file, •
TMProject file - HID Drag the *.mcp file to code warrior
TMProject file detailsProject files details
TMCompiling and flash programmingMake-Step1Flash programmer-Step2
TMFlash selectionSelect load settings- Step1Load the MCF52259 flash xml file- Step2
TMFlash selectionProper configuration chosen
TMFlash ErasingFlash erase
TMFlash ErasingFlash Erase
TMFlash programming.Program the code
TMOutput of the Lab• Insert the USB Cable to MiniA connector on the peripheral board and other side to your system USB port.• Reset the board.• Look a
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMLAB2
TMLAB2-CDC• This LAB will demonstrate the USB to serial and visa versa communication.• Open the project file from the installed folder.– D:\Profiles\r
TMPC side drive file installationDriver file installationChoose the second option
TMPC-side driver file installationLocation
TMUSB driverUSB detected
TMCOM Port at System sideUSB commport numberStep1 – device manager
TMHyper terminal for USB• Open the Hyper terminal • Select the USB port.• Set the baud rate -19200• Data bit -8 • Parity -None• Stop bit- NO
TMHyper terminal for UART• Open one more Hyper Terminal • Set the Baud rate 19200• Type the character in one terminal, This shold be displayed in othe
TMWorking
TMLAB3
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMLAB3 – MSD(HOST)• In this LAB will achieve reading and writing to thumb drive. This will demonstrate the Host functionality.• Open the Lab from the
TMReset the boardMessage from the board after reset
TMType Help Command details
TMUSB thumb driver detectedAfter thumb driver inserting the detection message
TMThumb drive contents.
TM• AN3560.pdf page 21– for the USB operation
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMTWR-MCF52259-USBApril 7, 2010Hareesh SSr.FAE
TM• Introduction to USB• Basic Operation of USB hardware and software• USB Data Structures for K2/3u• USB API Calls for K2/3uThis module contains:Modu
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMIntroduction To USB
TMMotivation for the USB StandardHistory and Evolution of USBUSB TopologyUSB ConnectorsIntroduction to USBIn This Section:
TM• an alternative to Apple’s 1394 digital link standard (FireWire )• a fast, bi-directional, low-cost, dynamically attachable serial interface• that
TM• and adds true plug-and-play attributes for a wide range of devices simultaneously• with minimal or no user intervention required for configuration
TMHistory and EvolutionUSB 1.0 SpecificationIntroduction to USB19951996199820002001USB group formed USB 1.1 SpecificationUSB 2.0 SpecificationUSB On-t
TMIntroduction to USBUSB 2.0 High-speedUSB 1.1 Full-speedUSB 2.0 Full-speedUSB 1.1 Low-speedUSB 2.0 Low-speedSpecVast bandwidth improvementsVideo, sto
TMUSB TopologyIntroduction to USB• Single Host – The host controls communication with each device• Up to 127 devices can be attached• Devices are one
TMHubUSB TopologyHubHostRoot HubIntroduction To USBTopologyHub- Tiered StarHub
TMIntroduction to USBA-connector (upstream)B-connector (downstream)USB Standard ConnectorsHubHubBBBAAHubBBAAARoot HubBAABBAABBAConnector typesIntroduc
TMUSB TopologyIntroduction to USBSoftwareGeneral Concepts
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarksof Freescale Semiconductor, Inc. A
TMSoftware – General Concepts How Data is Transferred in USB How Does the Host Know the Device’s Requirements? The Enumeration Process: What happen
TMThe General USB ProcessHow Data is Transferred in USBFrameTransfer 1TransactionStart of FrameTransfer 2Transaction 1Packet 1Packet 2Packet 3Transact
TMSoftware – General ConceptsThe General USB ProcessHow Data is Transferred in USBFrames are made up of transfers, which are made up of transactions,
TMSoftware – General ConceptsThe General USB ProcessHow Data is Transferred in USBFrameTransfer TransferThere are 4 types of data transfer:1. Interrup
TMSoftware – General ConceptsThe General USB ProcessHow Data is Transferred in USBEach transfer can contain multiple transactions and a transaction ca
TMSoftware – General ConceptsThe General USB ProcessHow Data is Transferred in USBFor each transaction there are three types of packets that communica
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?When a USB device is plugged into a USB port the ho
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?These requirements are communicated to the host thr
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?This hierarchy of the most commonly used descriptor
TMSoftware – General ConceptsThe General USB ProcessHow Does the Host Know a Device’s Requirements?Device DescriptorSince the device descriptor repres
Comentários a estes Manuais