Section 18 Universal Serial Bus Interface (USB)
Rev. 3.00 Jan 25, 2006 page 583 of 872
REJ09B0286-0300
Bit
Bit Name Initial Value R/W
Description
1
EP0OTC
0
R/W
Endpoint 0O Transfer Control
Controls the USB function core endpoint 0 control
transfer. Clearing this bit to 0 disables the write to the
EP0 OUT-FIFO. This generates a transfer abnormal
completion interrupt. A change in the direction of data
transfer in the control transfer can be detected by this
interrupt. In control transfer, a command is first received
in a SETUP transaction (setup stage), data is then
transferred in an OUT transaction or IN transaction (data
stage), and a handshake is finally transferred in an IN
transaction or OUT transaction (status stage).
This bit is set to 1 when a SETUP token is received and
command data reception is then enabled after FVSR
initialization. This bit is cleared to 0 after a command
data has been received to protect the EP0 OUT-FIFO
contents. If the received command cannot be processed
in the USB function core, the EP0OTS flag in TSFR0 is
set to 1 and the slave CPU must analyze the command.
After command analysis, if an OUT transaction is
performed at the data stage, the slave CPU must set this
bit to 1 to prepare the OUT transaction; if an IN
transaction is performed at the data stage, the slave
CPU leaves this bit cleared to 0. If the host CPU initiates
an OUT transaction at the status stage, the EP0OTF flag
in TFFR0 is set to 1 to generate a transfer abnormal
completion interrupt. Therefore, the slave CPU can
acknowledge the completion of the data stage. By the
interrupt, the slave CPU sets this bit to 1 to receive
status stage data that is retransferred.
0: Indicates that EP0 OUT-FIFO is in a write stop state.
(The following write to the EP0 OUT-FIFO is
disabled.)
[Clearing conditions]
•
System
reset
•
Function
software
reset
•
Command data reception in SETUP transaction
(EP0OTS flag is set)
1: Indicates that EP0 OUT-FIFO is in an operating state
[Setting conditions]
•
A SETUP token has been received.
•
0 is written to EP0OTC after EP0OTC = 1 has been
read.
Summary of Contents for H8S/2158
Page 10: ...Rev 3 00 Jan 25 2006 page viii of lii...
Page 36: ...Rev 3 00 Jan 25 2006 page xxxiv of lii B Product Lineup 863 C Package Dimensions 864 Index 865...
Page 47: ...Rev 3 00 Jan 25 2006 page xlv of lii Appendix Figure C 1 Package Dimensions TBP 112A 864...
Page 54: ...Rev 3 00 Jan 25 2006 page lii of lii...
Page 70: ...Section 1 Overview Rev 3 00 Jan 25 2006 page 16 of 872 REJ09B0286 0300...
Page 118: ...Section 3 MCU Operating Modes Rev 3 00 Jan 25 2006 page 64 of 872 REJ09B0286 0300...
Page 126: ...Section 4 Exception Handling Rev 3 00 Jan 25 2006 page 72 of 872 REJ09B0286 0300...
Page 198: ...Section 6 Bus Controller Rev 3 00 Jan 25 2006 page 144 of 872 REJ09B0286 0300...
Page 326: ...Section 10 8 Bit PWM Timer PWM Rev 3 00 Jan 25 2006 page 272 of 872 REJ09B0286 0300...
Page 440: ...Section 15 Watchdog Timer WDT Rev 3 00 Jan 25 2006 page 386 of 872 REJ09B0286 0300...
Page 606: ...Section 17 I 2 C Bus Interface IIC Rev 3 00 Jan 25 2006 page 552 of 872 REJ09B0286 0300...
Page 742: ...Section 19 Multimedia Card Interface MCIF Rev 3 00 Jan 25 2006 page 688 of 872 REJ09B0286 0300...
Page 750: ...Section 21 D A Converter Rev 3 00 Jan 25 2006 page 696 of 872 REJ09B0286 0300...
Page 768: ...Section 22 A D Converter Rev 3 00 Jan 25 2006 page 714 of 872 REJ09B0286 0300...
Page 770: ...Section 23 RAM Rev 3 00 Jan 25 2006 page 716 of 872 REJ09B0286 0300...
Page 824: ...Section 26 Clock Pulse Generator Rev 3 00 Jan 25 2006 page 770 of 872 REJ09B0286 0300...
Page 844: ...Section 27 Power Down Modes Rev 3 00 Jan 25 2006 page 790 of 872 REJ09B0286 0300...
Page 878: ...Section 28 List of Registers Rev 3 00 Jan 25 2006 page 824 of 872 REJ09B0286 0300...
Page 926: ...Index Rev 3 00 Jan 25 2006 page 872 of 872 REJ09B0286 0300...