English
Language : 

TDA8031 Datasheet, PDF (41/57 Pages) NXP Semiconductors – USB smart card reader (OTP or ROM)
Philips Semiconductors
USB smart card reader (OTP or ROM)
Product specification
TDA8030; TDA8031
Table 41 End-point commands
COMMAND
DESCRIPTION
Select end-point
The select end-point command initializes an internal pointer to the start of the selected buffer.
Optionally, this command can be followed by a data read, which returns some additional
information on the packet in the buffer. The command code of the select end-point is equal to
the physical end-point number. The power-on value is given in Tables 42 and 43.
Select End-point/
Clear Interrupt
These commands are identical to Select End-point commands, but with the following
differences:
• They clear the associated interrupt
• In the event of a control output end-point; they clear the set-up and overwritten bits
• The read one byte is mandatory.
Set end-point status The Set end-point status command sets status bits 7 to 5 and 0 of the end-point. The command
code is equal to the sum of 40H and the physical end-point number. Not all bits can be set for all
types of end-points. The power-on value is given in Tables 44 and 45.
Read buffer
The Read buffer command is followed by a number of data reads, which return the contents of
the selected end-point data buffer. After each read, the internal buffer pointer is incremented.
The buffer pointer is not reset to the beginning of the buffer by the Read buffer command. This
means that reading a buffer can be interrupted by any other command (except for the Select
end-point).
The data buffer organization is given in Table 46.
Write buffer
The Write buffer command is followed by a number of data writes, which load the data buffer of
the selected end-point. After each write, the internal buffer pointer is incremented
The buffer pointer is not reset to the beginning of the buffer by the Write buffer command. This
means that writing to a buffer can be interrupted by any other command (except for the Select
end-point and Select end-point/Clear Interrupt).
The data buffer organization is given in Table 47.
Clear buffer
When a packet sent by the host has been received successfully, an internal end-point buffer full
flag is set. All subsequent packets will be refused by returning a NAK. When the microcontroller
has read the data, it should free the buffer by the Clear buffer command. When the buffer is
cleared, new packets will be accepted.
When bit 0 of the optional data byte is set to logic 1, the previously received packet was
overwritten by a set-up packet.
A buffer cannot be cleared when its Packet overwritten bit is set. The power-on value is given in
Table 48.
Validate buffer
When the microcontroller has written data into an input buffer, it should set the buffer full flag by
the Validate buffer command. This indicates that the data in the buffer is valid and can be sent
to the host when the next input token is received.
A control input buffer cannot be validated when the Packet overwritten bit of its corresponding
output buffer is set.
2003 Jul 04
41