Hi,
On my OMAP-L137 DSP non-BIOS, I configured a McASP port as receiver, with burst mode, as only 1 channel of data for every frame sync signal.
I follow the initialization steps on Section 2.4.1.2 (page 35) of TMS320C674x/OMAP-L1x Processor Multichannel Audio Serial Port (McASP) User's Guide.
I am using the internal clock source (AUXCLK or SYSCLK_2) to generate the AHCLKR and ACLKR. However, there is always the receiver clock failure.
My questions are:
(1). For AHCLKRCTL register, the internal clock source to generate the AHCLKR, which clock source is used, AUXCLK or SYSCLK_2?
On the PLL reference guide, it mentions that McASP system clock is from DSP SYSCLK_2, while the McASP serial clock is from AUXCLK. It is very confusing.
(2). If we want to use the McASP burst receive mode, do we need to configure the RCLKCHK register?
On Section 2.4.2.1 (page 39) of the McASP user guide, it mentions RCLKCHK/XCLKCHK is not applicable. Leave at default. However, the receiver clock failure problem is related to RCLKCHK register.
(3). How to decide the proper values of RMAX, RMIN, and RPS of the RCLKCHK register, to eliminate the receiver clock failure problem?
(4). How to recover from the clock failure?On the steps presented in the user guide, is the measurement taken automatically by the DSP? How to achieve to wait until first measurement is taken (> 32 AHCLKR clock periods?.
For the receive clock failure check steps:
a. Configure receive clock failure detect logic (RMIN, RMAX, RPS) in the receive clock check control
register (RCLKCHK).
b. Clear receive clock failure flag (RCKFAIL) in the receive status register (RSTAT).
c. Wait until first measurement is taken (> 32 AHCLKR clock periods).
d. Verify no clock failure is detected.
e. Repeat steps b–d until clock is running and is no longer issuing clock failure errors.
f. After the receive clock is measured and falls within the acceptable range, the following may be
enabled:
i. receive clock failure interrupt enable bit (RCKFAIL) in the receiver interrupt control register
(RINTCTL)
ii. mute option (RCKFAIL) in the mute control register (AMUTE)
Thank you.