PIC18F2450/4450
2006 Microchip Technology Inc.
Advance Information
DS39760A-page 151
The USB specification limits the power taken from the
bus. Each device is ensured 100 mA at approximately 5V
(one-unit load). Additional power may be requested, up
to a maximum of 500 mA. Note that power above a one-
unit load is a request and the host or hub is not obligated
to provide the extra current. Thus, a device capable of
consuming more than a one-unit load must be able to
maintain a low-power configuration of a one-unit load or
less, if necessary.
The USB specification also defines a Suspend mode.
In this situation, current must be limited to 500
μA,
averaged over 1 second. A device must enter a
Suspend state after 3 ms of inactivity (i.e., no SOF
tokens for 3 ms). A device entering Suspend mode
must drop current consumption within 10 ms after
Suspend. Likewise, when signaling a wake-up, the
device must signal a wake-up within 10 ms of drawing
current above the Suspend limit.
14.9.5
ENUMERATION
When the device is initially attached to the bus, the host
enters an enumeration process in an attempt to identify
the device. Essentially, the host interrogates the device,
gathering information such as power consumption, data
rates
and
sizes,
protocol
and
other
descriptive
information; descriptors contain this information. A
typical enumeration process would be as follows:
1.
USB Reset: Reset the device. Thus, the device
is not configured and does not have an address
(address 0).
2.
Get Device Descriptor: The host requests a
small portion of the device descriptor.
3.
USB Reset: Reset the device again.
4.
Set Address: The host assigns an address to the
device.
5.
Get Device Descriptor: The host retrieves the
device descriptor, gathering info such as
manufacturer, type of device, maximum control
packet size.
6.
Get configuration descriptors.
7.
Get any other descriptors.
8.
Set a configuration.
The exact enumeration process depends on the host.
14.9.6
DESCRIPTORS
There are eight different standard descriptor types of
which five are most important for this device.
14.9.6.1
Device Descriptor
The device descriptor provides general information,
such as manufacturer, product number, serial number,
the class of the device and the number of configurations.
There is only one device descriptor.
14.9.6.2
Configuration Descriptor
The configuration descriptor provides information on
the power requirements of the device and how many
different interfaces are supported when in this
configuration. There may be more than one configura-
tion for a device (i.e., low-power and high-power
configurations).
14.9.6.3
Interface Descriptor
The
interface
descriptor
details
the
number of
endpoints used in this interface, as well as the class of
the interface. There may be more than one interface for
a configuration.
14.9.6.4
Endpoint Descriptor
The endpoint descriptor identifies the transfer type
(Section 14.9.3 “Transfers”) and direction, as well as
some other specifics for the endpoint. There may be
many endpoints in a device and endpoints may be
shared in different configurations.
14.9.6.5
String Descriptor
Many of the previous descriptors reference one or
more string descriptors. String descriptors provide
human
readable
information
about
the
layer
they
describe. Often these strings show up in the host to
help the user identify the device. String descriptors are
generally optional to save memory and are encoded in
a unicode format.
14.9.7
BUS SPEED
Each USB device must indicate its bus presence and
speed to the host. This is accomplished through a
1.5 k
Ω resistor which is connected to the bus at the
time of the attachment event.
Depending on the speed of the device, the resistor
either pulls up the D+ or D- line to 3.3V. For a low-
speed device, the pull-up resistor is connected to the
D- line. For a full-speed device, the pull-up resistor is
connected to the D+ line.
14.9.8
CLASS SPECIFICATIONS AND
DRIVERS
USB specifications include class specifications which
operating
system
vendors
optionally
support.
Examples of classes include Audio, Mass Storage,
Communications and Human Interface (HID). In most
cases, a driver is required at the host side to ‘talk’ to the
USB device. In custom applications, a driver may need
to be developed. Fortunately, drivers are available for
most common host systems for the most common
classes of devices. Thus, these drivers can be reused.
相关PDF资料
PIC16LF628A-I/SO IC MCU FLASH 2KX14 EEPROM 18SOIC
PIC16C55A-20/SO IC MCU OTP 512X12 28SOIC
PIC24F16KA101-I/MQ IC PIC MCU FLASH 16KB 20-QFN
PIC16F627-04/SO IC MCU FLASH 1KX14 COMP 18SOIC
PIC16C58B-20I/P IC MCU OTP 2KX12 18DIP
PIC24FJ16GA002-I/SS IC PIC MCU FLASH 16K 28-SSOP
PIC16C55A-04I/SO IC MCU OTP 512X12 28SOIC
PIC16CR77-I/ML IC PIC MCU 8KX14 44QFN
相关代理商/技术参数
PIC16C57C-04/SP 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C57 SDIL28
PIC16C57C-04/SP 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:20
PIC16C57C-04/SS 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C57C-04E/P 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C57C-04E/SO 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C57C-04E/SP 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C57C-04E/SS 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C57C-04I/P 功能描述:8位微控制器 -MCU 3KB 72 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT