S
sandeep_mc81
Hi,
I have the following question.
How to convert an 8-bit data to 10-bit data ?
The following C program uses 8-bit data. (Basically FIR filter)
/*********************************************************/
#define MAX 6
typedef unsigned char uint_8
uint_8 fir()
{
uint_8 buffer[MAX], out;
out =( (buffer[0] + buffer[5]) +
((buffer[1] + buffer[4]) * 2) +
((buffer[2] + buffer[3]) * 3 )
) / 16
return out;
}
/*********************************************************/
The whole program needs to be converted to 10-bit data.
Pls let me know how to do it....
Thanks
Sandeep
I have the following question.
How to convert an 8-bit data to 10-bit data ?
The following C program uses 8-bit data. (Basically FIR filter)
/*********************************************************/
#define MAX 6
typedef unsigned char uint_8
uint_8 fir()
{
uint_8 buffer[MAX], out;
out =( (buffer[0] + buffer[5]) +
((buffer[1] + buffer[4]) * 2) +
((buffer[2] + buffer[3]) * 3 )
) / 16
return out;
}
/*********************************************************/
The whole program needs to be converted to 10-bit data.
Pls let me know how to do it....
Thanks
Sandeep