English
Language : 

TDA8031 Datasheet, PDF (38/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 32 Device commands
COMMAND
Set address
Set end-points
enable
Set Mode
Read interrupt
register
Read Current
Frame Number
Read chip ID
Get Device
Status
Set Device
Status
Debug
command: Get
Error Code
DESCRIPTION
The set address command is used to set the USB assigned address and to enable the function. In
the event that the status phase of the set address transaction is not successful, the device address
will not be updated. The power-on value is given in Table 33.
A value of 1 written to the register indicates that the non-control end-points are enabled. The
power-on value is given in Table 34.
The default value is logic 0; if logic 1 is written in this register, then NAKing is reported and will
generate an interrupt. When set to logic 0, only successful transactions are reported.
This command indicates the origin of an interrupt. The end-point interrupt bits are cleared by the
Select end-point/Clear Interrupt command. The power-on value is given in Table 35.
The Read Current Frame Number returns the frame number of the last received Start Of Frame
(SOF). The frame number is eleven bits wide. The frame number is returned LSB first, so, if the
user is only interested in the lower 8 bits of the frame number, only the first byte needs to be read;
see Table 36.
The frame number returned by this commend can be invalid in the event of one of the following
conditions:
• If no SOF was received by the device at the beginning of a frame, the frame number returned is
that of the last successfully received SOF
• If the SOF frame number contained a CRC error, the frame number received will be the corrupted
frame number as received by the device.
The chip Identification is 16 bits wide. The command divides the ID into bytes and returns the least
significant byte first: For the TDA8030; TDA8031, the ID is fixed at 2B00H.
The Get Device Status command returns the Device Status Register; refer to the Set Device Status
command
The Set Device Status command sets bits in the Device Status Register.
In Table 37, the Type column indicates if the bit can be written and if the bit is cleared after reading
the register. The Interrupt column indicates if the bit generates an interrupt when it is set.
The Get Error Code command returns the error code of the last generated error; this command is
for debugging purpose. The 4 least significant bits form the error code. Bit 4 (Error Occurred) can
be cleared by each new transfer. The power-on value is given in Table 39.
This command is only useful during debugging.
Table 40 gives an overview of the Error Codes.
Table 33 Power-on value for Set address
FUNCTION
7
6
5
4
3
2
1
0
Device
address(1)
Enable(2)
−
0
0
0
0
0
0
0
0
−
−
−
−
−
−
−
Notes
1. The value written becomes the address.
2. A logic 1 enables the function.
After a bus reset, the address is reset to 000 0000. The enable bit is set. The device will respond on packets for function
address 000 0000, end-point 0 (default end-point).
2003 Jul 04
38