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 />

• RTDM/XTDM: Program RTDMS0/XTDMS0 to 1 to indicate one active slot only. Leave other fields at<br />

default.<br />

• RINTCTL/XINTCTL: Program all fields according to interrupts desired.<br />

• RCLKCHK/XCLKCHK: Not applicable. Leave at default.<br />

• SRCTLn: Program SRMOD to inactive/transmitter/receiver as desired. DISMOD is not applicable and<br />

should be left at default.<br />

• DITCSRA[n], DITCSRB[n], DITUDRA[n], DITUDRB[n]: Not applicable. Leave at default.<br />

<strong>22</strong>.3.8.2 Time-Division Multiplexed (TDM) Transfer Mode<br />

The <strong>McASP</strong> time-division multiplexed (TDM) transfer mode supports the TDM format discussed in<br />

Section <strong>22</strong>.3.3.1.<br />

Transmitting data in the TDM transfer mode requires a minimum set of pins:<br />

• ACLKX - transmit bit clock.<br />

• AFSX - transmit frame sync (or commonly called left/right clock).<br />

• One or more serial data pins, AXRn, whose serializers have been configured to transmit.<br />

The transmitter has the option to receive the ACLKX bit clock as an input, or to generate the ACLKX bit<br />

clock by dividing down the AHCLKX high-frequency master clock. The transmitter can either generate<br />

AHCLKX internally or receive AHCLKX as an input. See Section <strong>22</strong>.3.5.1.<br />

Similarly, to receive data in the TDM transfer mode requires a minimum set of pins:<br />

• ACLKR - receive bit clock.<br />

• AFSR - receive frame sync (or commonly called left/right clock).<br />

• One or more serial data pins, AXRn, whose serializers have been configured to receive.<br />

The receiver has the option to receive the ACLKR bit clock as an input or to generate the ACLKR bit clock<br />

by dividing down the AHCLKR high-frequency master clock. The receiver can either generate AHCLKR<br />

internally or receive AHCLKR as an input. See Section <strong>22</strong>.3.5.2 and Section <strong>22</strong>.3.5.3.<br />

The control registers must be configured as follows for the TDM mode. The TDM mode specific bit fields<br />

are in bold face:<br />

• PFUNC: The clock, frame, data pins must be configured for <strong>McASP</strong> function.<br />

• PDIR: The clock, frame, data pins must be configured to the direction desired.<br />

• PDOUT, PDIN, PDSET, PDCLR: Not applicable. Leave at default.<br />

• GBLCTL: Follow the initialization sequence in Section <strong>22</strong>.3.12.2 to configure this register.<br />

• AMUTE: Program all fields according to mute control desired.<br />

• DLBCTL: If loopback mode is desired, configure this register according to Section <strong>22</strong>.3.10.5, otherwise<br />

leave this register at default.<br />

• DITCTL: DITEN must be left at default 0 to select TDM mode. Leave the register at default.<br />

• RMASK/XMASK: Mask desired bits according to Section <strong>22</strong>.3.9.2 and Section <strong>22</strong>.3.10.3.<br />

• RFMT/XFMT: Program all fields according to data format desired. See Section <strong>22</strong>.3.10.3.<br />

• AFSRCTL/AFSXCTL: Set RMOD/XMOD bits to 2-32 for TDM mode. Configure other fields as desired.<br />

• ACLKRCTL/ACLKXCTL: Program all fields according to bit clock desired. See Section <strong>22</strong>.3.5.<br />

• AHCLKRCTL/AHCLKXCTL: Program all fields according to high-frequency clock desired. See<br />

Section <strong>22</strong>.3.5.<br />

• RTDM/XTDM: Program all fields according to the time slot characteristics desired.<br />

• RINTCTL/XINTCTL: Program all fields according to interrupts desired.<br />

• RCLKCHK/XCLKCHK: Program all fields according to clock checking desired.<br />

• SRCTLn: Program all fields according to serializer operation desired.<br />

• DITCSRA[n], DITCSRB[n], DITUDRA[n], DITUDRB[n]: Not applicable. Leave at default.<br />

3946 <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!