Hello,
I have asked the questions about the detail of McASP Unexpected Frame Sync Error from my customer.
I'm sorry to have troubled you so much, but this is very critical issue, so I hope you could answer very soon.
First of all, please let me explain some backgrounds.
My customer is using some McASPs in their system. And they has a trouble with McASP2 (Rx) Frame Sync Error. As for other receive McASP ports, there is no unexpected frame sync error. The audio samples captured from McASP2 finally go to McASP0 Tx. So this error can result in pop noise in their system.
In order to fix the problem, my customer need to know the details of unexpected frame sync error.
McASP2 has been configured to be clock slave (both bitclock and frame sync are input to DA810). These clock transition time is around 25-30ns. Datasheet says, upto 10ns is recommended for any clock transition time. I know this is not good, but unfortunately, It is difficult for them to have faster transition. Also, the direction of clocks can't be changed to have faster clock transition, i.e, McASP2 can not be a clock master in their system. Please note, the device revision is Rev.D. (In the previous revision, McASP is very sensitive in noise, but this issue has been revised on Rev.C or later. So, this errata should not be applicable)
As for McASP unexpected frame sync error mechanism, I've understood as below.
- McASP Rx starts to capture audio sample with bit clocks when detecting active frame sync.
- McASP Rx is working on the current frame. McASP Rx expects the next frame sync just after McASP receives the number of pre-configured bit clocks. At the completion of receiving bit clocks, If McASP could not find the next frame sync, the unexpected frame sync error can happen.
- The unexpected frame sync error is also expected if something noise (or glitch) is in the active clock transition on either bit clock or frame sync. The transition between VIL and VIH should be always monotonic.
Is my understanding correct, right ? Under the above understanding, I (My customer) have some questions:
- Q1: I seem Datasheet (see, McASP Electrical Data/Timing) says that the active edge of frame sync is detected around Vref and it will be latched with the next active bit clock. So, the detection logic is not actually edge detection, i.e., McASP is detecting an active frame sync edge and after that validating the its level. Is my understanding correct ?
- Q2: My customer is trying to find glitches on bit/frame clock, but they have not been able to capture that with oscilloscope yet. Do you have any idea to capture the glitch ? For example, using oscilloscope with a trigger of AMUTE output (error signal of unexpected frame sync error), using embelope mode, etc.. Any idea would be helpful. Also, which part of waveform should be focused on ? The transitions of bitclock and frame sync ?
- Q3: Unexpected frame sync error is happening on McASP2 only. Do you think McASP2 is especially noise sensitive ?
- Q4: How much level of glitch is allowable to get McASP2 worked without unexpected frame sync error ?
- Q5: Is there any noise filter in McASP to make incoming McASP clock clean ?
If you have any questions, please let me know.
Best Regards,
Kawada