전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0463 데이터시트(PDF) 22 Page - STMicroelectronics

부품명 UM0463
상세설명  ST7 full-speed USB library
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0463 데이터시트(HTML) 22 Page - STMicroelectronics

Back Button UM0463 Datasheet HTML 18Page - STMicroelectronics UM0463 Datasheet HTML 19Page - STMicroelectronics UM0463 Datasheet HTML 20Page - STMicroelectronics UM0463 Datasheet HTML 21Page - STMicroelectronics UM0463 Datasheet HTML 22Page - STMicroelectronics UM0463 Datasheet HTML 23Page - STMicroelectronics UM0463 Datasheet HTML 24Page - STMicroelectronics UM0463 Datasheet HTML 25Page - STMicroelectronics UM0463 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 30 page
background image
Data transfer on noncontrol endpoints
UM0463
22/30
For ST7SCR, there are six operations available to set status registers:
●
USB_SetTxEP1Status(Status) // Set the endpoint 1 sending status
●
USB_SetTxEP2Status(Status) // Set the endpoint 2 sending status
●
USB_SetRxEP2Status(Status) // Set the endpoint 2 receiving status
●
USB_SetTxEP3Status(Status) // Set the endpoint 3 sending status
●
USB_SetTxEP4Status(Status) // Set the endpoint 4 sending status
●
USB_SetTxEP5Status(Status) // Set the endpoint 5 sending status
In the above operations, Status is the state that will be set.
4.3.2
DMA counter registers
The sending DMA counter register for each endpoint is defined as CNTxTXR and the
receiving DMA counter register for each endpoint is defined as CNTxRXR, where x
represents the endpoint number.
4.3.3
DMA buffers
The DMA buffer for each sending endpoint is defined as EPx_IN and the DMA buffer for
each receiving endpoint is defined as EPx_OUT, where x represents the endpoint number.
4.3.4
Sending data to the host
Follow the steps below to send data to the host:
1.
Check if the endpoint status is EP_NAK to ensure that the previous data in the buffer is
sent.
2.
Copy the data to be sent to the DMA buffer of the endpoint.
3.
Set the length of data to be sent to the corresponding endpoint DMA counter register.
4.
Set the sending endpoint status to EP_VALID.
5.
Check that the endpoint status becomes EP_NAK again to ensure that the data is sent.
4.3.5
Receiving data from the host
Follow the steps below to receive data from the host
1.
Check if the endpoint status is EP_NAK to ensure that the EP is free to receive data.
2.
Ensure that the data in the endpoint DMA buffer is useless to avoid the loss of useful
data.
3.
Set the length of data expected to the corresponding endpoint DMA counter register.
4.
Set the receiving endpoint status to EP_VALID.
5.
Check that the endpoint status becomes EP_NAK from EP_VALID.
6.
Subtract the current value of the endpoint DMA counter register from the value set in
step 2 to get the actual length of the received data.
7.
Process the received data.



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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