isp1161bm NXP Semiconductors, isp1161bm Datasheet - Page 82

no-image

isp1161bm

Manufacturer Part Number
isp1161bm
Description
Isp1161 Full-speed Universal Serial Bus Single-chip Host And Device Controller
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ISP1161BM
Manufacturer:
NXP
Quantity:
10 000
Philips Semiconductors
9397 750 09567
Product data
11.3.4 Endpoint initialization
11.3.5 Endpoint I/O mode access
11.3.6 Special actions on control endpoints
In response to the standard USB request Set Interface, the firmware must program all
16 DcEndpointConfiguration registers of the ISP1161’s DC in sequence (see
Table
automatically allocate FIFO storage space.
If all endpoints have been configured successfully, the firmware must return an empty
packet to the control IN endpoint to acknowledge success to the host. If there are
errors in the endpoint configuration, the firmware must stall the control IN endpoint.
When reset by hardware or via the USB bus, the ISP1161’s DC disables all endpoints
and clears all DcEndpointConfiguration registers, except for the control endpoint
which is fixed and always enabled.
Endpoint initialization can be done at any time; however, it is valid only after
enumeration.
When an endpoint event occurs (a packet is transmitted or received), the associated
endpoint interrupt bits (EPn) of the DcInterrupt register will be set by the SIE. The
firmware then responds to the interrupt and selects the endpoint for processing.
The endpoint interrupt bit will be cleared by reading the DcEndpointStatus register.
The DcEndpointStatus register also contains information on the status of the
endpoint buffer.
For an OUT (receive) endpoint, the packet length and packet data can be read from
ISP1161’s DC using the Read Buffer command. When the whole packet has been
read, the firmware sends a Clear Buffer command to enable the reception of new
packets.
For an IN (transmit) endpoint, the packet length and data to be sent can be written to
ISP1161’s DC using the Write Buffer command. When the whole packet has been
written to the buffer, the firmware sends a Validate Buffer command to enable data
transmission to the host.
Control endpoints require special firmware actions. The arrival of a SETUP packet
flushes the IN buffer and disables the Validate Buffer and Clear Buffer commands for
the control IN and OUT endpoints. The microprocessor needs to re-enable these
commands by sending an Acknowledge SETUP command.
This ensures that the last SETUP packet stays in the buffer and that no packets can
be sent back to the host until the microprocessor has explicitly acknowledged that it
has seen the SETUP packet.
66), whether the endpoints are enabled or not. The hardware will then
Rev. 02 — 13 December 2002
Full-speed USB single-chip host and device controller
© Koninklijke Philips Electronics N.V. 2002. All rights reserved.
ISP1161
82 of 137

Related parts for isp1161bm