SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
The procedure in Table 24-348 configures the receive clock generator of the McASP module.
The settings in below table Table 24-348 have no effect, if MCASP_ACLKXCTL[6] ASYNC = 0 (i.e. receive clock is sourced from the inverted version of the transmit clock). For example, such is the case when McASP loopback mode is used.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
To use the McASP receive clock generator, select an asynchronous receiver clock schema (ASYNC=1). Otherwise an inverted version of transmit clock XCLK is used (receiver synchronized with transmitter). | MCASP_ACLKXCTL[6] ASYNC | 0b1 |
IF receive clock - RCLK is internally generated | Software test condition | |
The high-speed receive clock - AHCLKR is internally generated based on AUXCLK | ||
Select an internally-generated high-frequency clock. | MCASP_AHCLKRCTL[15] HCLKRM | 0b1 |
Select the internal high-speed clock source polarity: non-inverted or inverted. | MCASP_AHCLKRCTL[14] HCLKRP | 0x- |
Set the divisor for the internally generated high-frequency clock – AHCLKR in range (1 - 4096). | MCASP_AHCLKRCTL[11:0] HCLKRDIV | 0x- |
Select an internally-generated receive clock. | MCASP_ACLKRCTL[5] CLKRM | 0b1 |
Receiver samples on rising/falling edge. Select Rx sampling on the rising edge if transmitter shifts out on falling edge, and vice versa. | MCASP_ACLKRCTL[7] CLKRP | 0x- |
Set the divisor for the internally generated receive clock– ACLKR in range (1 - 32). | MCASP_ACLKRCTL[4:0] CLKRDIV | 0x- |
Optional: If McASP receiver is required to output internally generated clock, ACLKR 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 clock control register - MCASP_ACLKRCTL must be appropriately configured prior to ACLKR pin outputting a receive clock to an external device. | MCASP_PDIR[29] ACLKR | 0b1 |
ELSE | ||
Select an externally-generated receive clock. Note that in this case the AHCLKR signal path and the CLKRDIV divider are NOT used. | MCASP_ACLKRCTL[5] CLKRM | 0b0 |
Receiver samples on rising/falling edge. Select Rx sampling on the rising edge if transmitter shifts out on falling edge, and vice versa. | MCASP_ACLKRCTL[7] CLKRP | 0x- |
Setup an input directon for the ACLKR pin | MCASP_PDIR[29] ACLKR | 0b0 |
ENDIF | ||
Configure the transmit clock failure detect logic. | See Section 24.6.4.15.6.1, Clock Failure Check Startup. |