You are on page 1of 10

USB

Email: hedy_telecom@yahoo.com

: USB .
.
USB .
USB ) ( Data .
( Universal Serial Bus ) USB : ) ( Transaction ) ( ) ( Device
) ( Endpoint ) ( Controller Chip ) ( Driver ) ( Token ) ( Protocol ) ( Hub
)( ) ( Bus) ( Port)( Configuration

-:
USB .
USB . :
USB .
.
USB :
-- ) ( USB
-- USB .
.
-- USB : :
.
. :
. / :

. / USB .
.
-- : USB ) +5 ( Ground
) D+ ( D- . 500mA
. USB A B .

--) ( Configuration : USB


.

Setup Restart
-- USB Power- saving )
( .
-- : USB
) USB ( .
.
.
.

- :
.
. .
.
.
USB
.
--) ( Detect : USB .
) ( Enumeration

.
-- : .
. ) ( Frame ) ( Micro frame
.

.
-- ) : ( Error Checking .

.
.

. .
-- : USB +
. .
-- :
. ) ( Rate
.
.

- :
USB .
.
:
-- : .
.
.
) (.
-- : .
. .
.
-- : )
Standby ( . .

.
-- : .


.
.

.

- : USB
USB .
-- : USB .
.
.
. .
USB
. .
--- ) : ( Configuration
. .
.
: INF ) ( Driver .
.
. INF
.
--- ) : ( Program Application
.

API
USB .
--- : USB .
.
USB
) ( Frame
) ( Micro frame .
.
. ) ( Start Of Frame SOF .

) ( Transaction .
.
.
.
.
) ( Endpoint
.
-- : USB .
. .
.
--- ) ( Endpoint : .
. .
.
.
.
)) USB
(( . )
( .
.
. .
) ( .
. ) (
.

.
Setup.

Setup . Setup .
. Setup
.
. Setup
.
.

.

--- : .
.
)) ((
) ( Configuration ) ( Descriptor

.
.

--- USB : .
USB :
. : USB .

. USB ) ( Support.
. :
. .
.
. .
. : .
.
.
.
. : .
.
. .
--- :
. .
API .
API .
. ))
data.txt (( )) (( .

.
.
---) ( Transaction :
.
Setup :
.
.
.
. .
.
--- : : . .
. ) ( PID .

.
. Setup
SOF .
. ) ( PID
.

.
) ( ACK, NAK,STALL, NYET,ERR.
) ( PID PRE :
. PREPID SPLIT
PING .
.
. .
-- : USB
USB . ) ( Interfacing .
. .
:
) ACK : ( Acknowledge ) ACK ( .
ACK .
) NAK : ( Negative Acknowlege ) NAK ( ) ( Busy
) . NAK (
: STALL STALL - : -
- .
: NYET NYET .
: ERR ERR .

- :
:
-- USB
-- ) D- ( D+ 15K .
D+ D- 1.5K .

.
.
--
. Get_Port_Status )
Get_Port_Status (.
-- ) ( Reset
.
.
Get_Port_Status .
-- ) ( Reset
Set_Port_Feature . USB
. D+ D- ).
(
-- Get_Port_Status
. .
USB
.
-- Get_Descriptor
.
.
.
-- Set_Address
. .
. .
-- Get_Descriptor
.

--
.
INF
.
.
.
--
Set_Configuration .
.
. .
.

- :
USB USB
.
-- : :
USB .
. USB
)
(
USB .
.

.
.
-- : USB :
) ( Assembler ) ( Compiler ) ) ( Firmware
( . .
) ( Development Kit ) ( Device Programmer
.
.
. Visual C+ +
( Win32 Driver Model ) WDM USB .

USB

.

Axelson , Jan

[1] USB Complete : everything you need to develop custom USB


[2] www . usb . org
[3] www.beyondlogic.org

You might also like