This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6748: LCDKC6748 using Aic31 code

Part Number: TMS320C6748
Other Parts Discussed in Thread: OMAP-L138

Hi Expert,

I am posting this on behalf of the customer. Here is the inquiry below.

I am unable to get the expected result. I am actually trying to get a sinewave output at the Lineout port of LCDKC6748 using the Aic31 codec and represent the data in the oscilloscope. I am attaching my code here. Could you please help me with the code and whether I need to change anything or not to get the output?

AIC31 Codec Issue.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include "lcdkC6748.h"
#include "aic31.h"
#include "Aic31_.h"
#define SAMPLE_RATE 48000
#define PI 3.14159265358979323846
#define Aic31_AC_IOCTL_REG_WRITE
uint32_t i;
void generateSineWave(float *buffer, uint32_t length, float frequency, float amplitude) {
float deltaPhase = 2.0 * PI * frequency / SAMPLE_RATE;
float phase = 0.0;
for (i = 0; i < length; i++) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thank you in advance!

Best regards,

Jonathan