欢迎访问ic37.com |
会员登录 免费注册
发布采购

83C51SND2C-JL 参数 Datasheet PDF下载

83C51SND2C-JL图片预览
型号: 83C51SND2C-JL
PDF下载: 下载PDF文件 查看货源
内容描述: 单芯片闪存微控制器与MP3解码器,支持完整的音频接口 [Single-Chip Flash Microcontroller with MP3 Decoder with Full Audio Interface]
分类和应用: 解码器闪存微控制器
文件页数/大小: 235 页 / 2877 K
品牌: ATMEL [ ATMEL ]
 浏览型号83C51SND2C-JL的Datasheet PDF文件第105页浏览型号83C51SND2C-JL的Datasheet PDF文件第106页浏览型号83C51SND2C-JL的Datasheet PDF文件第107页浏览型号83C51SND2C-JL的Datasheet PDF文件第108页浏览型号83C51SND2C-JL的Datasheet PDF文件第110页浏览型号83C51SND2C-JL的Datasheet PDF文件第111页浏览型号83C51SND2C-JL的Datasheet PDF文件第112页浏览型号83C51SND2C-JL的Datasheet PDF文件第113页  
AT8xC51SND2C  
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.  
Read/Write Data FIFO  
Read Data FIFO  
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.  
Write Data FIFO  
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.  
FIFO Mapping  
Figure 69. Endpoint FIFO Configuration  
SFR Registers  
UEPSTA0  
UEPSTA2  
UEPCON0  
UEPDAT0  
UEPDAT2  
0
1
2
Endpoint 0  
Endpoint 2  
UBYCT0  
UEPSTAX  
UEPCONX  
UBYCTX  
UEPDATX  
X
UEPCON2  
UBYCT2  
UEPNUM  
109  
4341D–MP3–04/05  
 复制成功!