Silicon Laboratories Stepper Machine Dokumentacja

Przeglądaj online lub pobierz Dokumentacja dla Steppery Silicon Laboratories Stepper Machine. Silicon Laboratories Stepper Machine Specifications Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 68
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
1
USB Overview
This course serves as an introduction to USB.
Przeglądanie stron 0
1 2 3 4 5 6 ... 67 68

Podsumowanie treści

Strona 1 - USB Overview

1USB OverviewThis course serves as an introduction to USB.

Strona 2

1010Transactions A transaction allows a set of operations to be grouped in such a way that they either all succeed or all fail; further, the operatio

Strona 3 - Advantages of USB

1111What is a Transfer? The transfer is the process of making a communications request with an endpoint. Transfers determine aspects of the communic

Strona 4 - Some USB Terms

1212Transfer FormatDataTokenHandshakeDataTokenHandshakeDataTokenHandshakeDataTokenHandshakeDataTokenHandshakeDataTokenPhases (Packets)Guaranteed deli

Strona 5 - What is USB?

1313USB Transfers—A Closer Look Control Write Transfers (OUT)—contains Setup, Data (optional), and handshake transactionsSETUPPID=1101DATA0PID=0011AC

Strona 6 - USB Lower Layer

1414USB Transfers—Closer Look at a Control Transfer Control Read Transfers (IN)—contains Setup, Data (optional), and handshake transactionsSETUPPID=1

Strona 7 - Attach Event

1515USB Transfers—Actual Control Transfer Control Transfer Read Example — GET_STATUS command from HostTransferTransactionPacketHierarchySETUP PhaseDA

Strona 8 - Packet Identifiers (PID)

1616USB Transfers—Closer Look at Bulk/Interrupt Transfers Bulk and interrupt transfers Contains IN/OUT, Data, and handshake transactions Bulk sched

Strona 9 - CRCEndpointAddressPIDField

1717USB Transfers—Actual Interrupt Transfer Bulk/interrupt transfer read example:IN TransactionInterrupt TransferToken PacketData PacketHandshake Pac

Strona 10 - Transactions

1818USB Transfers—Closer Look at an Isochronous Transfer Isochronous transfer Contains IN/OUT and DATA transactions Fixed transfer rate with a defi

Strona 11 - What is a Transfer?

1919USB Transfers—Actual Isochronous Transfer Isochronous transfer OUT example:TransferTransactionPacketHierarchyOUT TransactionToken PacketData Pack

Strona 12 - Transfer Format

22Agenda USB overview USB low level data transfer USB protocol structure USB chapter 9 structure Enumeration Standard classes Firmware example

Strona 13 - USB Transfers—A Closer Look

2020I Have to Know All of This?What part of the low level USB information do I need to be concerned with?The USB transceiver and the Serial Interface

Strona 14 - Data error

2121Silicon Labs Serial Interface Engine (SIE) Serial Interface Engine (SIE) is part of the USB hardware and handles data communications to the host

Strona 15

2222Different Devices and the Transfers They Use What happens when all of these devices are plugged into the USB? Host manages the bus bandwidth upo

Strona 16

23USB Middle Layer

Strona 17

2424USB—Chapter 9 The enumeration process begins The host initiates a set of communication requests to the device to determine the who, what, and ho

Strona 18 -  Isochronous transfer

2525Enumeration—Loading Descriptors Enumeration The activity that identifies and assigns unique addresses to devices attached to a bus Makes USB de

Strona 19

2626Enumeration: Finding a Driver Once all descriptors are communicated, the Windows host searches for a driver based on the vendor ID and product ID

Strona 20 - I Have to Know All of This?

2727USB Descriptors Descriptors Data structures, or formatted blocks of information, that enable the host to learn about the device Each Descriptor

Strona 21

2828USB Descriptors Types Device descriptor General info about a USB device (vendor ID, etc) Contains info that applies globally to the device Onl

Strona 22 -  What happens when all of

2929Example Device Descriptor Spec (1 of 2) A look at a descriptor and its fieldsSubclass code (assigned by the USB-IF)These codes are qualified by

Strona 23 - USB Middle Layer

33Advantages of USBType A/B MiniMicro Ease of Use One interface for many devices Hot pluggable Automatic configuration No power supply required

Strona 24 - USB—Chapter 9

3030Number of possible configurationsNumber1bNumConfigurations17Index of string descriptor describing the device’s serial numberIndex1iSerialNumber16I

Strona 25 -  Enumeration

3131Device Descriptor Example A look at a device descriptor declared in code://---------------------------// Descriptor Declarations//---------------

Strona 26 - Enumeration: Finding a Driver

3232Getting the DescriptorsHow does the host get all of these descriptors from the MCU?The Standard Request. The data passed as part of the Setup pha

Strona 27 - USB Descriptors

3333Standard Device Request Format The host initializes a device through a series of device requests via control transfers to Endpoint 0  These are

Strona 28 - USB Descriptors Types

3434Standard Requests Values These tables indicate the bRequest values and the wValue values defined by the USB spec From the previous slide it can

Strona 29 - Number1bLength0

3535Standard Request Exercise We are a host and we want to generate a request to a device in order to receive it’s device descriptor What values wou

Strona 30

3636Standard Requests Example Get_Descriptor(DEVICE): Standard request to get the device descriptorbmRequestType = 80h, bRequest = 06h (Get_Descripto

Strona 31 - Device Descriptor Example

3737USB—Device States (1 of 3) Idle state All drivers are off. Device speed determines Idle state based on the pull-up resistor attached. For full

Strona 32 - Getting the Descriptors

3838USB—Device States (2 of 3) Resume Any bus activity brings device out of suspend Host places bus in Data K state for 20 mS then low speed EOP R

Strona 33 - Data format of

3939USB—Device States (3 of 3)State diagramThere are different device states defined in the USB specification. Here is a graphical view of the devic

Strona 34

44Some USB TermsHost — computer that controls the interfaceFunction — device that provides a capability to the hostHub — device with one or more conne

Strona 35 - Standard Request Exercise

4040Device Classes Device classes group common interfaces together Class definitions specify the number and types of endpoints May define data form

Strona 36 - Standard Requests Example

4141 HID Class originally developed to for human interface objects such as mice and keyboards Interrupt transfers used for data transport Any devic

Strona 37 - USB—Device States (1 of 3)

4242Mass Storage (MSD) Used for file transfer for memory sticks, etc. Bulk transfers used for data transport What do I need? Firmware side Firmwa

Strona 38 - USB—Device States (2 of 3)

4343Communications Device Class (CDC) Bulk transfers used for data transport Any device can use the CDC drivers. It does not need to be a modem dev

Strona 39 - USB—Device States (3 of 3)

4444Example Class Specific Descriptor Structure*Device Descriptor*Device DescriptorConfiguration DescriptorConfiguration DescriptorCommunications Clas

Strona 41 - Human Interface Device (HID)

4646USB Firmware Descriptor Variable DefinedDevice Descriptor StructuresHere is a snapshot of some sample code that implements USB. On the left are t

Strona 42 - Mass Storage (MSD)

4747Code Flow—One ExampleISR generated whenever USB event occursParse the ISR to determine USB eventHandle_Setup RoutineUSB ISR RoutineData that gets

Strona 43

4848What is Required and Where to Get Help Requirements Vendor ID—obtained from the USB Forum See following slide about how Silicon Labs can help

Strona 44

49USB Solutions Offered by Silicon Labs

Strona 45 - USB Firmware

55What is USB? Serial protocol—strictly defined frame and packet based protocol with error checking and handshaking. LSB in first, MSB last. Half D

Strona 46 - Device Descriptor Structures

5050Certification and Compliance Testing Silicon Labs allotment system Silicon Labs has a unique VID (0x10C4) If a customer uses the Silicon Labora

Strona 47 - Code Flow—One Example

5151Silicon Labs USB MCU Products Mixed-Signal USB 2.0 MCU solutions 48 MIPS core, 10-bit 200 ksps ADC, timers, comparators, UART, EMIF On-chip osc

Strona 48 -  Get help here

5252Highly Integrated USB MCUs High-speed 8051 core up to 48 MIPS Up to 64Kb Flash and 4K RAM for application code Complete 2.0 USB feature set  I

Strona 49

5353Most Powerful Mixed-Signal USB MCUHigh-speed 8051 core operating up to 48 MIPSUp to 64 kB Flash and 5376B of RAM17 ch. 10-bit, 200 ksps ADCIn-syst

Strona 50

5454Single-Chip USB to UART Bridge CP210x family of devices Fixed function USB to UART bridges provide the easiest method for upgrading legacy RS-23

Strona 51 - Silicon Labs USB MCU Products

5555Single-Chip CP2103 USB to UART BridgeUART I/F(Modem)VBUSD–D+CP2103Voltage RegulatorUSB Function Controller1024 BEEPROMUART48 MHzOscillator640 BTX

Strona 52 - Highly Integrated USB MCUs

5656USB Software Support Fixed-function Support Software Full royalty-free driver support for Windows, MAC OS, and Linux WHQL certified MCU Suppor

Strona 53 -  No external crystal

5757USBXpress—Features General USBXpress information Implements a bulk pipe between host and peripheral Operates at full speed using bulk transfers

Strona 54 -  CP210x family of devices

5858USB Development Solutions Evaluation kits for USB/UART bridge  CP2102EK, CP2103EK VCP Driver CD included Full development kits for Flash-based

Strona 55

5959Learn More at the Education Resource Center Visit the Silicon Labs website to get more information on Silicon Labs products, technologies and too

Strona 56 - USB Software Support

6USB Lower LayerIn this course serves as an introduction to USB.

Strona 57 - —Features

60AppendixAn Actual CDC Class Enumeration & Data Transfer Example

Strona 58 - USB Development Solutions

6161EnumerationTabular form of what we listed in our device descriptor structure. Note the bDeviceClass is recognized as CommunicationHost sends Get_

Strona 59 -  http://www.silabs.com/usb

6262Get_Descriptor (Device)Remember our exercise slide 35?We parsed the data and returned the device descriptorStatus phase terminating the transfer

Strona 60 - Appendix

6363Passing the Config Descriptor (1 of 2)Data toggle in action — our max packet size is 64 bytes. Our config descriptor is 67 bytes so we need multi

Strona 61 - Enumeration

6464Passing the Config Descriptor (2 of 2)The data shown corresponds to the data set-up in the USB_DESCRIPTORS.cfile. It is transferred in response t

Strona 62 - Get_Descriptor (Device)

6565More EnumerationWhy the red X? We broadcast USB 2.0 compliant so this request is to find out if the device supports an other speed. We don’t so

Strona 63

6666USB Setting the Baud RateWhen we set HyperTerminal to the baud rate and selected “Connect”, the driver sends the device a command to set its UART

Strona 64

6767We Use Our Bulk EndpointsBulk OUT transfers to send the keys we hit. This example shows “hello” being typed.Now that the communications link is e

Strona 65 - More Enumeration

68www.silabs.com/MCU

Strona 66 - USB Setting the Baud Rate

77Attach Event Plugging in a USB device to the host root hub or external hub is considered an attach event. The device has a 1.5 KΩ pull-up resistor

Strona 67 - We Use Our Bulk Endpoints

88Packet Identifiers (PID) The PID signals to the receiver that what the packet structure and content will be and how the receiver has to respond0010

Strona 68

99Packets Packets—block of information with a defined data structure. The packet is the lowest level of the USB transfer hierarchy describing the phy

Komentarze do niniejszej Instrukcji

Brak uwag