| 数据搜索系统,热门电子元器件搜索 |
|
ST7265X 数据表(PDF) 71 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7265X 数据表(HTML) 71 Page - STMicroelectronics |
|
71 / 166 page ![]() ST7265x 71/166 USB INTERFACE (Cont’d) 11.3.7 Register Description BUFFER CONTROL/STATUS REGISTER (BUFCSR) Read Only (except bit 0, read/write) Reset Value: 0000 0000 (00h) Bits 7:4 = Reserved, forced by hardware to 0. Bit 3 = BUFNUM Current USB Buffer Number This bit is set and cleared by hardware. When data are received by Endpoint 2 in normal mode (refer to the description of the MOD[1:0] bits in the EP2RXR register) it indicates which buffer con- tains the data. 0: Current buffer is Buffer 0 1: Current buffer is Buffer 1 Bits 2:1 = STATB[1:0] Buffer Status Bits These bits are set and cleared by hardware. When data are transmitted or received by Endpoint 2 in upload or download mode (refer to the description of the MOD[1:0] bits in the EP2RXR register) the STATB[1:0] bits indicate the status as follows: Bit 0 = CLR Clear Buffer Status This bit is written by software to clear the BUF- NUM and STATB[1:0] bits (it also resets the pack- et counter of the Buffer Manager state machine). It can be used to re-initialize the upload/download flow (refer to the description of the MOD[1:0] bits in the EP2RXR register). 0: No effect 1: Clear BUFNUM and STATB[1:0] bits INTERRUPT STATUS REGISTER (ISTR) Read/Write Reset Value: 0000 0000 (00h) These bits cannot be set by software. When an in- terrupt occurs these bits are set by hardware. Soft- ware must read them to determine the interrupt type and clear them after servicing. Note: The CTR bit (which is an OR of all the end- point CTR flags) cannot be cleared directly, only by clearing the CTR flags in the Endpoint regis- ters. Bit 7 = CTR Correct Transfer. This bit is set by hardware when a correct transfer operation is performed. This bit is an OR of all CTR flags (CTR0 in the EP0R register and CTR_RX and CTR_TX in the EPnR registers). By looking in the USBSR register, the type of transfer can be determined from the PID[1:0] bits for End- point 0. For the other Endpoints, the Endpoint number on which the transfer was made is identi- fied by the EP[1:0] bits and the type of transfer by the IN/OUT bit. 0: No Correct Transfer detected 1: Correct Transfer detected Note: A transfer where the device sent a NAK or STALL handshake is considered not correct (the host only sends ACK handshakes). A transfer is considered correct if there are no errors in the PID and CRC fields, if the DATA0/DATA1 PID is sent as expected, if there were no data overruns, bit stuffing or framing errors. Bit 6 = Reserved, forced by hardware to 0. Bit 5 = SOVR Setup Overrun. This bit is set by hardware when a correct Setup transfer operation is performed while the software is servicing an interrupt which occurred on the same Endpoint (CTR0 bit in the EP0R register is still set when SETUP correct transfer occurs). 0: No SETUP overrun detected 1: SETUP overrun detected When this event occurs, the USBSR register is not updated because the only source of the SOVR event is the SETUP token reception on the Control Endpoint (EP0). 70 00 0 0 BUF- NUM STAT B1 STAT B0 CLR Meaning STATBn Value Upload Mode Buffer n not full (USB waiting to read Buffer n) 0 Buffer n full (USB can upload this buffer) 1 Download Mode Buffer n empty (Can be written to by USB) 0 Buffer n not empty (USB waiting to write to this buffer) 1 70 CTR 0 SOVR ERROR SUSP ESUSP RESET SOF 1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |