1. OUTLINE EO10-13009A
1.6 ELECTRONIC SPECIFICATIONS
1-15
-Interrupt Transfers are used when moderate amounts of data have to transfer within a
specific amount of time.
-The ML60851E requests interrupts to the local MCU, etc., by asserting the -INTR pin.
-Transfer of handshake packet in a direction opposite to that of the data packet.
When packet transfer is completed normally, an ACK packet is returned and the operation
proceeds to the next packet transfer.
The ML60851E requests the local MCU to transmit or receive a packet of data by asserting the
INTR pin. The interrupt cause will be “packet ready”. The transmit packet ready interrupt is one
that requests that The packet of data to be transmitted be written in the transmit FIFO, and the
receive packet ready
interrupt is one that requests the local MCU to read out the data that has been received and
stored in the receive FIFO. The above procedures of transferring one packet of data are
explained below for
transmission and reception separately.
1) During transmission
The local MCU writes one packet of data that has to be transmitted in the transmit FIFO of the
corresponding EP in the ML60851E, and sets the transmit packet ready bit of the corresponding
EP status register of the ML60851E. When the host transmits the IN token packet to the
ML60851E specifying the communication method, etc., the ML60851E transmits to the host the
data packet stored in the above transmit FIFO. When the host receives one data packet
normally, it returns the ACK packet to the ML60851E. Consequently, the ML60851E resets the
transmit packet ready status, thereby completing the transfer of one data packet over the USB
bus. When the transmit packet ready status is reset, the ML60851E gives a request to the local
MCU in terms of a transmit packet ready interrupt thereby prompting the local MCU to write the
next packet of data to be transmitted.
2) During reception
The host sends to the ML60851E an OUT token followed by a data packet. The ML60851E
stores the received data packet in the receive FIFO of the corresponding EP. When it is
confirmed that all the data packets have been accumulated and that there is no error, the
ML60851E returns an ACK packet to the host. At the same time, the receive packet ready bit of
the corresponding EP status register will also be set and a request is sent to the local MCU in
terms of an interrupt. Upon receiving this interrupt, the local MCU reads out the received data
from the ML60851E and resets the receive packet ready bit.
6. Buffering
When a read request is sent to USB, the USB host controller will continue to read 64 byte
packets until one of the following conditions is met:
1. It has read the requested size (default is 4 Kbytes).
2. It has received a packet shorter than 64 bytes from the chip
3. It has been cancelled
While the host controller is waiting for one of the above conditions to occur, NO data is received
by our driver and hence the user's application. The data, if there is any, is only finally transferred
after one of the above conditions has occurred.