參數資料
型號: EZ-USB
廠商: Cypress Semiconductor Corp.
英文描述: The EZ-USB USB Integrated Circuit
中文描述: 的EZ - USB的USB集成電路
文件頁數: 111/334頁
文件大?。?/td> 1521K
代理商: EZ-USB
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁當前第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁第232頁第233頁第234頁第235頁第236頁第237頁第238頁第239頁第240頁第241頁第242頁第243頁第244頁第245頁第246頁第247頁第248頁第249頁第250頁第251頁第252頁第253頁第254頁第255頁第256頁第257頁第258頁第259頁第260頁第261頁第262頁第263頁第264頁第265頁第266頁第267頁第268頁第269頁第270頁第271頁第272頁第273頁第274頁第275頁第276頁第277頁第278頁第279頁第280頁第281頁第282頁第283頁第284頁第285頁第286頁第287頁第288頁第289頁第290頁第291頁第292頁第293頁第294頁第295頁第296頁第297頁第298頁第299頁第300頁第301頁第302頁第303頁第304頁第305頁第306頁第307頁第308頁第309頁第310頁第311頁第312頁第313頁第314頁第315頁第316頁第317頁第318頁第319頁第320頁第321頁第322頁第323頁第324頁第325頁第326頁第327頁第328頁第329頁第330頁第331頁第332頁第333頁第334頁
Page 6-14
Chapter 6. EZ-USB CPU
EZ-USB TRM v1.9
The code at lines 2-7 fills the endpoint 2-IN buffer with 64 bytes of a decrementing count.
Two 8-bit counts are initialized to zero at lines 9 and 10. An endpoint 2-IN transfer is
armed
at lines 11-13, which load the endpoint 2-IN byte count register IN2BC with 64.
Then the program enters a polling loop at lines 15-20, where it checks two flags for end-
point 2 servicing. Lines 15-17 check the endpoint 2-IN busy bit in IN2CS bit 1. Lines 18-
20 check the endpoint 2-OUT busy bit in OUT2CS bit 1. When busy=1, the EZ-USB core
is currently using the endpoint buffers and the 8051 should not access them. When
busy=0, new data is ready for service by the 8051.
For both IN and OUT endpoints, the busy bit is set when the EZ-USB core is using the
buffers, and cleared by loading the endpoint’s byte count register. The byte count value is
meaningful for IN transfers because it tells the EZ-USB core how many bytes to transfer
in response to the next IN token. The 8051 can load any byte count OUT transfers,
because only the act of loading the register is significant—loading OUTnBC arms the
OUT transfer and sets the endpoint’s busy bit.
When an OUT packet arrives in OUT2BUF, the service routine at lines 22-26 increments
R2, loads the byte count (any value) into OUT2BC to re-arm the endpoint (lines 24-25),
and jumps back to the polling routine. This program does not use OUT2BUF data; it sim-
ply counts the number of endpoint 2-OUT transfers.
When endpoint 2-IN is ready for the 8051 to load another packet into IN2BUF, the polling
loop jumps to the endpoint 2-IN service routine at lines 28-39. First, R1 is incremented
(line 29). The data pointer is set to IN2BUF at line 30, and register R1 is loaded into the
first byte of the buffer (lines 31-32). The data pointer is advanced to the second byte of
IN2BUF at line 33, and register R2 is loaded into the buffer (lines 34-35). Finally, the
byte count 40H (64 decimal bytes) is loaded into the byte count register IN2BC to arm the
next IN transfer at lines 36-38, and the routine returns the polling loop.
The code in this example is complete, and runs on the EZ-USB chip. You may be wonder-
ing about the
missing step
, which reports the endpoint characteristics to the host during the
enumeration process. The reason this code runs without any enumeration code is that the
EZ-USB chip comes on as a fully-functional USB device with certain endpoints already
configured and reported to the host. Endpoint 2 is included in this default configuration.
The full default configuration is described in Chapter 5, "EZ-USB Enumeration and
ReNumeration
"
6.12
Enumeration Note
相關PDF資料
PDF描述
EZ1082CT-3.3 5.0 AMP POSITIVE VOLTAGE REGULATOR
EZ1082 5.0 AMP POSITIVE VOLTAGE REGULATOR
EZ1082CT 5.0 AMP POSITIVE VOLTAGE REGULATOR
EZ1083 7.5 AMP POSITIVE VOLTAGE REGULATOR
EZ1083B 7.5 AMP POSITIVE VOLTAGE REGULATOR
相關代理商/技術參數
參數描述
EZ-VDA2B 制造商:Radio Design Labs 功能描述:EZ Series Two Way BNC Video Distribution Amplifier
EZ-VDA2R 制造商:Radio Design Labs 功能描述:EZ Series Two Way Composite Video Distribution Amplifier 制造商:RADIO DESIGN LABS 功能描述:VIDEO DISTRIBUTION AMPLIFIER 1X2 RCA NTSC/PAL
EZ-VDA3B 制造商:Radio Design Labs 功能描述:EZ Series Three-Way BNC Video Distribution Amplifier 制造商:RADIO DESIGN LABS 功能描述:VIDEO DISTRIBUTION AMPLIFIER 1X3 BNC NTSC/PAL
EZ-VM22E 制造商:Radio Design Labs 功能描述:EZ Series VGA/XGA Distribution Amplifiers 2 x 2 Equalized
EZ-VMD2 制造商:Radio Design Labs 功能描述:EZ Series VGA/XGA Distribution Amplifiers 1 x 2