SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The procedure in Table 24-347 configures the transmit frame synchronization generator of the McASP module.
The same bit - MCASP_ACLKXCTL[6] ASYNC which is used to determine if McASP receivers and transmitters work synchronously on the same clock, is also used to define if receiver frame sync is derived from the transmit frame sync generator, or generated independently in the receiver (either inernally or externally sourced). Hence, the settings in below table Table 24-347 have no effect, if MCASP_ACLKXCTL[6] ASYNC = 0.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Select number of TDM slots per frame. Must be set to 0x2, in case of an I2S-reception. For more details on frame-sync generator, refer to Section 24.6.4.2.3. | MCASP_RXFMCTL[15:7] RMOD | 0x-(1) |
Choose the receive frame sync width -single bit/single word. For more details on frame-sync generator, refer to Section 24.6.4.2.3. | MCASP_RXFMCTL[4] FRWID | 0x- |
Select start of received frame sync polarity - rising /falling edge. For more details on frame-sync generator, refer to Section 24.6.4.2.3. | MCASP_RXFMCTL[0] FSRP | 0x- |
IFreceive frame sync - FS is internally generated | Software test condition | |
Select internally- generated receive frame sync. For more details on frame-sync generator, refer to Section 24.6.4.2.3. | MCASP_RXFMCTL[1] FSRM | 0b1 |
If McASP receiver is required to output internally generated frame, AFSR pin must be set as an output in step 9 of the sequence documented in the Table 24-345. This must not be done in current step because the frame control register - MCASP_TXFMCTL must be appropriately configured prior to AFSR pin outputting a frame to an external device. | MCASP_PDIR[31] AFSR | 0b1 |
ELSE | ||
Select externally- generated receive frame sync. For more details on frame-sync generator, refer to Section 24.6.4.2.3. | MCASP_RXFMCTL[1] FSRM | 0b0 |
Setup the AFSR pin as input (device level: mcaspi_fsr) | MCASP_PDIR[31] AFSR | 0b0 |
ENDIF | ||
To generate McASP receive frame sync in receiver logic, select an asynchronous frame sync. | MCASP_ACLKXCTL[6] ASYNC | 0b1 |