PIC18F-LF1XK50 MICROCHIP [Microchip Technology], PIC18F-LF1XK50 Datasheet - Page 275

no-image

PIC18F-LF1XK50

Manufacturer Part Number
PIC18F-LF1XK50
Description
20-Pin USB Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
22.10 Overview of USB
This section presents some of the basic USB concepts
and useful information necessary to design a USB
device. Although much information is provided in this
section, there is a plethora of information provided
within the USB specifications and class specifications.
Thus, the reader is encouraged to refer to the USB
specifications for more information (www.usb.org). If
you are very familiar with the details of USB, then this
section serves as a basic, high-level refresher of USB.
22.10.1
USB device functionality is structured into a layered
framework graphically shown in
level is associated with a functional level within the
device. The highest layer, other than the device, is the
configuration. A device may have multiple configura-
tions. For example, a particular device may have
multiple power requirements based on Self-Power Only
or Bus Power Only modes.
For each configuration, there may be multiple
interfaces. Each interface could support a particular
mode of that configuration.
Below the interface is the endpoint(s). Data is directly
moved at this level. There can be as many as
16 bidirectional endpoints. Endpoint 0 is always a
control endpoint and by default, when the device is on
the bus, Endpoint 0 must be available to configure the
device.
22.10.2
Information communicated on the bus is grouped into
1 ms time slots, referred to as frames. Each frame can
contain many transactions to various devices and
endpoints.
transaction within a frame.
FIGURE 22-12:
 2010 Microchip Technology Inc.
LAYERED FRAMEWORK
FRAMES
Figure 22-8
Endpoint
USB LAYERS
shows an example of a
Interface
Endpoint
Figure
22-12. Each
Endpoint
Configuration
Preliminary
Device
22.10.3
There are four transfer types defined in the USB
specification.
• Isochronous: This type provides a transfer
• Bulk: This type of transfer method allows for large
• Interrupt: This type of transfer provides for
• Control: This type provides for device setup
While full-speed devices support all transfer types,
low-speed devices are limited to interrupt and control
transfers only.
22.10.4
Power is available from the Universal Serial Bus. The
USB specification defines the bus power requirements.
Devices may either be self-powered or bus powered.
Self-powered devices draw power from an external
source, while bus powered devices use power supplied
from the bus.
Endpoint
method for large amounts of data (up to
1023 bytes) with timely delivery ensured;
however, the data integrity is not ensured. This is
good for streaming applications where small data
loss is not critical, such as audio.
amounts of data to be transferred with ensured
data integrity; however, the delivery timeliness is
not ensured.
ensured timely delivery for small blocks of data,
plus data integrity is ensured.
control.
To other Configurations (if any)
Interface
PIC18F/LF1XK50
TRANSFERS
POWER
Endpoint
To other Interfaces (if any)
DS41350E-page 275

Related parts for PIC18F-LF1XK50