AT83C51SND1C_03 ATMEL [ATMEL Corporation], AT83C51SND1C_03 Datasheet - Page 86

no-image

AT83C51SND1C_03

Manufacturer Part Number
AT83C51SND1C_03
Description
Single-Chip Flash Microcontroller with MP3 Decoder and Human Interface
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Read/Write Data FIFO
Read Data FIFO
Write Data FIFO
FIFO Mapping
Figure 61. Endpoint FIFO Configuration
86
Endpoint 0
Endpoint 2
AT8xC51SND1C
UEPSTA0
UEPSTA2
The read access for each OUT endpoint is performed using the UEPDATX register.
After a new valid packet has been received on an Endpoint, the data are stored into the
FIFO and the Byte counter of the endpoint is updated (UBYCTX registers). The firmware
has to store the endpoint Byte counter before any access to the endpoint FIFO. The
Byte counter is not updated when reading the FIFO.
To read data from an endpoint, select the correct endpoint number in UEPNUM and
read the UEPDATX register. This action automatically decreases the corresponding
address vector, and the next data is then available in the UEPDATX register.
The write access for each IN endpoint is performed using the UEPDATX register.
To write a Byte into an IN endpoint FIFO, select the correct endpoint number in UEP-
NUM and write into the UEPDATX register. The corresponding address vector is
automatically increased, and another write can be carried out.
Warning 1: The Byte counter is not updated.
Warning 2: Do not write more Bytes than supported by the corresponding endpoint.
UBYCT2
UEPCON0
UEPCON2
UBYCT0
Endpoint FIFO reset
Before using an endpoint, its FIFO should be reset. This action resets the FIFO
pointer to its original value, resets the Byte counter of the endpoint (UBYCTX regis-
ter), and resets the data toggle bit (DTGL bit in UEPCONX).
The reset of an endpoint FIFO is performed by setting to 1 and resetting to 0 the
corresponding bit in the UEPRST register.
For example, in order to reset the Endpoint number 2 FIFO, write 0000 0100b then
0000 0000b in the UEPRST register.
Note that the endpoint reset doesn’t reset the bank number for ping-pong endpoints.
UEPDAT0
UEPDAT2
UEPNUM
0
1
2
X
UEPSTAX
SFR Registers
UEPCONX
UBYCTX
UEPDATX
4109E–8051–06/03

Related parts for AT83C51SND1C_03