Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

TMDXLCDK138: AIC31 Registers read access thru I2C0 doesn't work in polling mode

$
0
0

Part Number:TMDXLCDK138

Hello!

I'm trying to utilize the AIC31 codec in my DSP app, by using the example source code in PDK (pdk_OMAPL138_1_01_00_02\packages\ti\drv\mcasp\example\omapl138-lcdk\Audio\).

I found an API for accessing audiocodec at low-level (codec_if.h/.c). As far as I don't have to read the AIC31's registers values, everything works fine: the audio gets played back and recorded.

But if I try to use CodecRegRead(), it simply doesn't read anything, returning the register address.

In the McASP example from the Starterware kit (OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\mcasp\), everything works well, both reading and writing. But as far as I understand, the Starterware example uses a different approach of working with I2C, interrupt-based, while PDK's example utilizes polling.

Is it a known bug, or maybe there's some issue in my code/hardware setup?


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>