Hi,
I'm trying to do realtime autio processing environment using L138/TMS320C6748.
This is sample base processing and I need floating point calculation, that's why
I just test for int32_t to float and float to int32_t, but it doesn't work well.
int32_t dat;
double dTmp;
float fDat;
while (!CHKBIT(MCASP->SRCTL12, RRDY)) {}
dat = MCASP->XBUF12;
dTmp = (double) dat;
dTmp = dTmp / 32767.0; // if this line comment out , realtime audio work very well, but use this line no sound.
// if just use "232.0/ 32767.0" number, not variable, works fine.
// basically I will put additional code for floating point variable.
while (!CHKBIT(MCASP->SRCTL11, XRDY)) {}
MCASP->XBUF11 = dat; // just use int32_t dat but if "dTmp/32767.0" line there not work , even dTmp/1.0 also not work.
Code Composer Version : 4.2.0.10017
Thanks in advance