Sharp LH79524 User Manual page 512

Table of Contents

Advertisement

Universal Serial Bus Device
BITS
3
2
1
0
17-22
Table 17-29. CSR0 Fields (Cont'd)
NAME
Data End Software programs this bit to 1:
• After loading the last packet of data into the FIFO, at the same
time IN_PKT_RDY is set
• While it clears OUT_PKT_RDY after unloading the last packet of
DATA_END
data. For a zero-length data phase, when it clears
OUT_PKT_RDY and sets IN_PKT_RDY.
1 = Last packet loaded to FIFO
0 = Last packet unloaded from FIFO
Sent Stall Handshake The USB device programs this bit to 1 if the
USB Host ends a control transaction due to a protocol violation. An
interrupt is generated when this bit is set. Software must clear this bit
SENT_STALL
by writing a 0.
1 = Protocol violation
0 = Normal operation
IN Packet Ready Software programs this bit to 1 after writing a
packet of data into ENDPOINT 0 FIFO. The USB block programs
this bit to 0 when the USB Host signals that the packet has been suc-
cessfully received at the Host. An interrupt is generated when the
USB Host clears this bit, so software can load the next packet. For a
IN_PKT_RDY
zero-length data phase, software programs IN_PKT_RDY and
DATA_END (bit 3) to 1 at the same time.
1 = Data packet written to ENDPOINT 0 FIFO
0 = Data packet successfully sent to USB host
OUT Packet Ready This is a Read Only bit. The USB programs
this bit to 1 once valid data from the packet is written to the FIFO. An
interrupt is generated when the USB sets this bit. Software programs
OUT_PKT_RDY
this bit to 0 writing a 1 to the CLR_OUT bit (bit 6).
1 = Valid data from packet has been written to the OUT FIFO
0 = No pending data from packet
FUNCTION
Version 1.0
LH79524/LH79525 User's Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents