Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UM0290 Datasheet(PDF) 10 Page - STMicroelectronics

Part # UM0290
Description  This document presents a description
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0290 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button UM0290 Datasheet HTML 6Page - STMicroelectronics UM0290 Datasheet HTML 7Page - STMicroelectronics UM0290 Datasheet HTML 8Page - STMicroelectronics UM0290 Datasheet HTML 9Page - STMicroelectronics UM0290 Datasheet HTML 10Page - STMicroelectronics UM0290 Datasheet HTML 11Page - STMicroelectronics UM0290 Datasheet HTML 12Page - STMicroelectronics UM0290 Datasheet HTML 13Page - STMicroelectronics UM0290 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 76 page
background image
STR7/STR9 USB firmware library
UM0290
10/76
4.
Double-buffered endpoint functions: To obtain high data transfer throughput in bulk
or isochronous modes, double-buffered mode has to be programmed.
In this operating mode some fields of the endpoint registers and buffer description table
cells have different meanings.
To ease the use of this feature, several functions have been developed.
SetEPDoubleBuff: An endpoint programmed to work in bulk mode can be set as
double-buffered by setting the EP-KIND bit. The function SetEPDoubleBuff()
accomplishes this task.
SetEPDoubleBuff :
void SetEPDoubleBuff(u8 bEpNum);
bEpNum = endpoint number
FreeUserBuffer: In double-buffered mode the endpoints become mono-directional and
buffer description table cells of the unused direction are applied to handle a second
buffer.
Addresses and counters must be handled in a different way. Rx and Tx Addresses and
counter cells become Buffer0 and Buffer1 cells. Functions dedicated to this operating
mode are provided for in the library.
During a bulk transfer the line fills one buffer while the other buffer is reserved to the
application. A user application has to process data before the arrival of bulk needing a
buffer. The buffer reserved to the application has to be freed in time.
To free the buffer in use from the application the FreeUserBuffer function is
provided:
FreeUserBuffer:
void FreeUserBuffer(u8 bEpNum, u8 bDir);
bEpNum = endpoint number
a)
Double buffer addresses
These functions set or get the buffer address value in the buffer description table
for double buffered mode.
SetEPDblBuffAddr :
void SetEPDblBuffAddr(u8 bEpNum,u16
wBuf0Addr,u16 wBuf1Addr);
SetEPDblbuf0Addr :
void SetEPDblBuf0Addr(u8 bEpNum,u16 wBuf0Addr);
SetEPDblbuf1Addr :
void SetEPDblBuf1Addr(u8 bEpNum,u16 wBuf1Addr);
bEpNum = endpoint number
wBuf0Addr, wBuf1Addr = buffer addresses (expressed as PMA buffer
addresses)
GetEPDblBuf0Addr :
u16 GetEPDblBuf0Addr(u8 bEpNum);
GetEPDblbuf1Addr :
u16 GetEPDblBuf1Addr(u8 bEpNum);
bEpNum = endpoint number
return value :
buffer addresses
b)
Double buffer counters
These functions set or get the buffer counter value in the buffer description table
for double buffered mode.
SetEPDblBuffCount
: void SetEPDblBuffCount(u8 bEpNum, u8 bDir, u16
wCount);
SetEPDblBuf0Count
: void SetEPDblBuf0Count(u8 bEpNum, u8 bDir, u16
wCount);
SetEPDblBuf1Count
: void SetEPDblBuf1Count(u8 bEpNum, u8 bDir, u16



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com