01.08.2013 Views

Chapter 22 Multichannel Audio Serial Port (McASP).pdf

Chapter 22 Multichannel Audio Serial Port (McASP).pdf

Chapter 22 Multichannel Audio Serial Port (McASP).pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functional Description www.ti.com<br />

<strong>22</strong>.3.10.1.1.2 Receive Data Ready<br />

Similarly, the receive data ready flag RDATA bit in the RSTAT reflects the status of the RBUF register.<br />

The RDATA flag is set when data is transferred from the XRSR[n] shift registers to the XRBUF[n] buffers,<br />

indicating that the RBUF contains received data and is ready to have the processor read the data. This<br />

flag is cleared when the RDATA bit is written with a 1, or when all the serializers configured as receivers<br />

are read.<br />

Whenever RDATA is set, an DMA event AREVT is automatically generated to notify the DMA of the RBUF<br />

ready status. An interrupt ARINT is also generated if RDATA interrupt is enabled in the RINTCTL register<br />

(See Section <strong>22</strong>.3.13.3 for details).<br />

For DMA requests, the <strong>McASP</strong> does not require RSTAT to be read between DMA events. This means that<br />

even if RSTAT already has the RDATA flag set to 1 from a previous request, the next transfer triggers<br />

another DMA request.<br />

Since all serializers act in lockstep, only one DMA event is generated to indicate that all active receive<br />

serializers are ready to receive new data.<br />

Figure <strong>22</strong>-27 shows the timing details of when AREVT is generated at the <strong>McASP</strong> boundary. In this<br />

example, as soon as the last bit (bit A0) of Word A is received, the <strong>McASP</strong> sets the RDATA flag and<br />

generates an AREVT event. However, it takes up to 5 <strong>McASP</strong> system clocks (AREVT Latency) before<br />

AREVT is active at the <strong>McASP</strong> boundary. Upon AREVT, the processor can begin servicing the <strong>McASP</strong> by<br />

reading Word A from the RBUF (Processor Service Time). The processor must read Word A from the<br />

XBUF no later than the setup time required by the <strong>McASP</strong> (Setup Time).<br />

The maximum Processor Service Time (Figure <strong>22</strong>-27) can be calculated as:<br />

Processor Service Time = Time Slot - AREVT Latency - Setup Time<br />

The Processor Service Time calculation for receive is similar to the calculation for transmit. See<br />

Example <strong>22</strong>-1 for Processor Service Time calculation using transmit as an example.<br />

ACLKR<br />

AXR<br />

AREVT<br />

AREVT<br />

Latency<br />

(for Word A)<br />

5 <strong>McASP</strong><br />

system clocks (A)<br />

Figure <strong>22</strong>-27. Processor Service Time Upon Receive DMA Event (AREVT)<br />

<strong>McASP</strong> latches<br />

last bit of Word A<br />

Time slot<br />

N ACLKR cycles (N=number of bits in slot)<br />

A1 A0 B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 C15<br />

Service time<br />

(to read Word A)<br />

A The device uses SYSCLK2 as the <strong>McASP</strong> system clock source.<br />

<strong>McASP</strong> latches<br />

last bit of Word B<br />

Setup time<br />

(Must read Word A<br />

before this period)<br />

3 <strong>McASP</strong> system<br />

clocks + 4 ACLKR<br />

cycles<br />

3958 <strong>Multichannel</strong> <strong>Audio</strong> <strong>Serial</strong> <strong>Port</strong> (<strong>McASP</strong>) SPRUH73E–October 2011–Revised May 2012<br />

Submit Documentation Feedback<br />

Copyright © 2011–2012, Texas Instruments Incorporated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!