数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STR720 数据表(PDF) 270 Page - STMicroelectronics

部件名 STR720
功能描述  ARM720T 16/32-BIT MCU WITH 16K RAM, USB, CAN, 3 TIMERS, ADC, 6 COMMUNICATIONS INTERFACES
PDF  401 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

STR720 数据表(HTML) 270 Page - STMicroelectronics

Back Button STR720 Datasheet HTML 266Page - STMicroelectronics STR720 Datasheet HTML 267Page - STMicroelectronics STR720 Datasheet HTML 268Page - STMicroelectronics STR720 Datasheet HTML 269Page - STMicroelectronics STR720 Datasheet HTML 270Page - STMicroelectronics STR720 Datasheet HTML 271Page - STMicroelectronics STR720 Datasheet HTML 272Page - STMicroelectronics STR720 Datasheet HTML 273Page - STMicroelectronics STR720 Datasheet HTML 274Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 270 / 401 page
background image
STR720 - USB SLAVE INTERFACE (USB)
270/401
Each packet buffer is used either during reception or transmission starting from the bottom.
The USB Peripheral will never change the contents of memory locations adjacent to the
allocated memory buffers; if a packet bigger than the allocated buffer length is received (buffer
overrun condition) the data will be copied to the memory only up to the last available location.
19.5.2.3 Endpoint Initialization
The first step to initialize an endpoint is to write appropriate values to the ADDRn_TX/
ADDRn_RX registers so that the USB Peripheral finds the data to be transmitted already
available and the data to be received can be buffered. The EP_TYPE bits in the USB_EPnR
register must be set according to the endpoint type, eventually using the EP_KIND bit to
enable any special required feature. On the transmit side, the endpoint must be enabled using
the STAT_TX bits in the USB_EPnR register and COUNTn_TX must be initialized. For
reception, STAT_RX bits must be set to enable reception and COUNTn_RX must be written
with the allocated buffer size using the BL_SIZE and NUM_BLOCK fields. Unidirectional
endpoints, except Isochronous and double-buffered bulk endpoints, need to initialize only bits
and registers related to the supported direction. Once the transmission and/or reception are
enabled,
register
USB_EPnR
and
locations
ADDRn_TX/ADDRn_RX,
COUNTn_TX/
COUNTn_RX (respectively), should not be modified by the application software, as the
hardware can change their value on the fly. When the data transfer operation is completed,
notified by a CTR interrupt event, they can be accessed again to re-enable a new operation.
19.5.2.4 IN Packets (Data Transmission)
When receiving an IN token packet, if the received address matches a configured and valid
endpoint one, the USB Peripheral accesses the contents of ADDRn_TX and COUNTn_TX
locations inside buffer descriptor table entry related to the addressed endpoint. The content of
these locations is stored in its internal 16 bit registers ADDR and COUNT (not accessible by
software). The packet memory is accessed again to read the first word to be transmitted
(Refer to Section “Structure and Usage of Packet Buffers”) and starts sending a DATA0 or
DATA1 PID according to USB_EPnR bit DTOG_TX. When the PID is completed, the first byte
from the word, read from buffer memory, is loaded into the output shift register to be
transmitted on the USB bus. After the last data byte is transmitted, the computed CRC is sent.
If the addressed endpoint is not valid, a NAK or STALL handshake packet is sent instead of
the data packet, according to STAT_TX bits in the USB_EPnR register.
The ADDR internal register is used as a pointer to the current buffer memory location while
COUNT is used to count the number of remaining bytes to be transmitted. Each word read
from the packet buffer memory is transmitted over the USB bus starting from the least
significant byte. Transmission buffer memory is read starting from the address pointed by
ADDRn_TX for COUNTn_TX/2 words. If a transmitted packet is composed of an odd number
of bytes, only the lower half of the last word accessed will be used.
On receiving the ACK receipt by the host, the USB_EPnR register is updated in the following
way: DTOG_TX bit is toggled, the endpoint is made invalid by setting STAT_TX=10 (NAK) and
bit CTR_TX is set. The application software must first identify the endpoint, which is
1



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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



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