A plurality of pipe regions PIPE0 to PIPEe in which data transferred to
and from endpoints is stored are allocated in a packet buffer (FIFO). Transfer
condition information on data transfer between the pipe regions and the endpoints
is set in transfer condition registers TREG0 to TREGe in a register section.
A host (transfer) controller automatically generates a transaction for each of
the endpoints based on the transfer condition information (total size, maximum
packet size, transfer direction, number of continuous execution times, token issue
interval, and the like) set in the transfer condition registers, and automatically
transfers data between each pipe region and the endpoint. An OTG (state) controller
which controls a state of USB On-The-Go is provided. The pipe regions are allocated
in the packet buffer during a host operation.