| Electronic Components Datasheet Search |
|
TAS1020 Datasheet(PDF) 30 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TAS1020 Datasheet(HTML) 30 Page - Texas Instruments |
|
30 / 93 page ![]() 2–16 – If UBM write pointer overtakes the DMA read pointer, UBM sets the buffer overflow (OVF) bit in the ISO endpoint configuration register. – UBM write pointer is reset to the buffer starting address once DMA is disabled. DMA Operation • DMA must be enabled before getting any ISO packets from the Host. Typically, MCU enables the DMA before playing audio to the device. – After DMA is enabled, it reads the DMA channel control register to get the endpoint number and direction. – Based on the endpoint number, it reads the endpoint configuration register. If it is ISO endpoint, it works as follows. – DMA reads the OEPBBAXn, OEPBSIZn registers to determine the buffer starting address and buffer size. – DMA reads the C-port registers to understand the C-port mode. – DMA reads the DMA time slot assignment registers. – DMA, for the first time, keeps monitoring the OEPDCNTXn or OEPDCNTYn register to see if an ISO OUT packet is received. Once a new ISO OUT packet is received, DMA waits for next SOF/PSOF signaling and goes to the next step. – DMA starts with the read pointer equal to the buffer starting address. Once an ISO OUT packet is received, the UBM pointer is incremented very fast as the ISO OUT is packet is received at 12 Mb/sec. – DMA starts reading the samples out of the buffer and sends to the C-port till it catches up with the UBM pointer. – Each time DMA receives SOF/PSOF signaling, it completes streaming the current sample, and calculates the buffer content based on UBM write pointer and DMA read pointer. Buffer content is in number of bytes. This buffer size is written into DmaBCnt0/DMABCnt1 registers. NOTE: In AC97 mode, if buffer under-run happens, DMA should send this information to the C-port to clear the tag bits for the corresponding slots to indicate that the data in those codec frames is invalid. For I2S, AIC, GP modes, it must send zeros. C-port logic sends zeros if DMA does not stream anything to the C-port for a codec frame. 2.2.7.4.2 ISO IN The serial data coming from the codec/DSP is received by the C-Port. DMA moves the bytes from C-Port holding registers into the buffer and updates the endpoint data count registers. UBM packetizes the data and sends the packets to host when it receives an ISO IN request. MCU has to program the endpoint configuration registers, DMA and C-Port. The following section explains how DMA and UBM works. UBM Operation • After ISO IN token is received, UBM reads the endpoint configuration register if the endpoint is enabled. If not enabled, it ignores the IN request. • UBM reads the IEPBBAXn, IEPBSIZXn registers to get the circular buffer starting address and buffer size and calculates the buffer maximum address. • UBM reads IEPDCNTXn or IEPDCNTYn depending on the LSB of the frame counter register to determine how many samples (bytes) need to be transferred to the host. • UBM initializes the read pointer to one of the 11-bit pointers from DMA(depending on the LSB of frame counter) to start reading the samples out of the buffer. If the address reaches buffer maximum address UBM rewinds the read pointer to the buffer starting address. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |