参数资料
型号: ST7267R8T1L/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 16-BIT, MROM, 30 MHz, RISC MICROCONTROLLER, PQFP64
封装: 10 X 10 MM, LEAD FREE, TQFP-64
文件页数: 8/189页
文件大小: 1643K
代理商: ST7267R8T1L/XXX
第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页
ST7267C8 ST7267R8
105/189
point 0. These are described in the Universal Seri-
al Bus Specification, Revision 2.0, Chapter 9. The
protocol for these device requests involves differ-
ent numbers and types of transaction per transfer.
To accommodate this, application software needs
to take a state machine approach to command de-
coding and handling.
The Standard Device Requests can be divided
into three categories: Zero Data Requests (in
which all the information is included in the com-
mand), Write Requests (in which the command will
be followed by additional data), and Read Re-
quests (in which the device is required to send
data back to the host).
This section looks at the sequence of events that
the software must perform to process the different
types of device request.
10.5.10.1 Endpoint 0 Service Routine
An Endpoint 0 interrupt is generated:
When the core sets the OPR bit (CSR0) after a
valid token has been received and data has
been written to the FIFO.
When the core clears the IPR bit (CSR0) after
the packet of data in the FIFO has been
successfully transmitted to the host.
When the core sets the STST bit (CSR0) after a
control transaction is ended due to a protocol
violation.
When the core sets the SE bit (CSR0) because
a control transfer has ended before DE (CSR0)
is set.
Whenever the Endpoint 0 service routine is en-
tered, the software must first check to see if the
current control transfer has been ended due to ei-
ther a STALL condition or a premature end of con-
trol transfer. If the control transfer ends due to a
STALL condition, the STST bit is set. If the control
transfer ends due to a premature end of control
transfer, the SE bit is set. In either case, the soft-
ware should abort processing the current control
transfer and set the state to IDLE.
10.5.10.2 Error Handling
A control transfer may be aborted due to a protocol
error on the USB, the host prematurely ending the
transfer, or if the function controller software wish-
es to abort the transfer (e.g. because it cannot
process the command).
The USB controller will automatically detect proto-
col errors and send a STALL packet to the host un-
der the following conditions:
1. Host sends more data during the OUT Data
phase of a write request than was specified in the
command. This condition is detected when the
host sends an OUT token after the DE bit (CSR0)
has been set.
2. Host requests more data during the IN Data
phase of a read request than was specified in the
command. This condition is detected when the
host sends an IN token after the DE bit in the
CSR0 register has been set.
3. Host sends more than MaxP data bytes in an
OUT data packet.
4. Host sends a non-zero length DATA1 packet
during the STATUS phase of a read request.
When the USB controller has sent the STALL
packet, it sets the STST bit (CSR0) and generates
an interrupt. When the software receives an End-
point 0 interrupt with the STST bit set, it should
abort the current transfer, clear the SentStall bit,
and return to the IDLE state.
If the host prematurely ends a transfer by entering
the STATUS phase before all the data for the re-
quest has been transferred, or by sending a new
SETUP packet before completing the current
transfer, then the SE bit (CSR0) will be set and an
Endpoint 0 interrupt generated. When the software
receives an Endpoint 0 interrupt with the SE bit
set, it should abort the current transfer, set the
SSE bit (CSR0), and return to the IDLE state. If the
OPR bit (CSR0) is set this indicates that the host
has sent another SETUP packet and the software
should then process this command.
10.5.11 Bulk IN Endpoint
A Bulk IN endpoint is used to transfer non-periodic
data from the function controller to the host.
Three optional features are available for use with a
Bulk IN endpoint:
Double packet buffering
If the value written to the INMAXPR register is less
than, or equal to, half the size of the FIFO allocat-
ed to the endpoint, double packet buffering will be
automatically enabled. When enabled, up to two
packets can be stored in the FIFO awaiting trans-
mission to the host.
DMA
If DMA is enabled for the endpoint, a DMA request
will be generated whenever the endpoint is able to
accept another packet in its FIFO. This feature is
used to allow transfer to the MSCI without ST7 in-
tervention in order to allow high speed transfer to/
from the USB controller.
AutoSet
相关PDF资料
PDF描述
ST7267C8T1/XXX 16-BIT, MROM, 30 MHz, RISC MICROCONTROLLER, PQFP48
ST72774S9T1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP44
ST72E734J6D0 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP42
ST72T774S9T1 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PQFP44
ST7294C6B6 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PDIP28
相关代理商/技术参数
参数描述
ST72681/R12 制造商:STMicroelectronics 功能描述:CONTROLLER FOR HIGH-PERFORMANCE BUS-POWERED USB 2.0 FLASH DR - Trays
ST72681/S13 制造商:STMicroelectronics 功能描述:CONTROLLER FOR HIGH-PERFORMANCE - Trays
ST7271 制造商:Panasonic Industrial Company 功能描述:IC
ST7271N5B1-CLF 制造商:STMicroelectronics 功能描述:
ST727X4-EMU2B 制造商:STMicroelectronics 功能描述:REALTIME EMULATOR BOARD - Bulk