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.

TLV320ADC3101: TLV320ADC3101 device driver with raspberry pi

Part Number: TLV320ADC3101
Other Parts Discussed in Thread: TLV320ADC3100, PUREPATHSTUDIO

Hi Team,

We would like to ask your help regarding the customer's inquiry below.

The TLV320ADC3101 was programmed with a raspberry pi using python. Now, I would like to use PurePath Studio to design a filter for ADC3101. I have generated the header source files (.c and .h files from Pure Path Studio). Please let me know the steps to compile the files and also how to add them to the device driver. I would like to execute it in the Raspberry Pi.
Also, is it possible to do the same using python?

Regards,

Danilo

  • Danilo,

    The easiest way would be to get the coefficients from PurePath Studio and write them to the device with a set of I2C commands. At the command line, you will use:

    i2cset -y -f 2 0x18 0x0 0x04 => set to page 4

    i2cset -y -f 2 0x18 0x14 0xFF 0xFF => set register 14 and 15 in page 4 to 0xFFFF

    ...

    You can take the *.c and *.h and compile into a program that sends i2c commands. This document describes the typical i2c method. The web has many example code for Raspberry Pi to write data through I2C.

    Best regards,
    Pedro

  • Hi Pedro,

    Thank you for your response. According to the customer,

    I have designed a simple high pass FIR filter for the miniDSP using MATLAB and manually added the coefficients. I have generated the .cfg files and the .c files and have attached them for reference. However, the coefficients for the same register in the .cfg files and the .c files differ. So, to enter the coefficients directly with the i2c command, how do I know the value of the coefficients. Do I take them from the .cfg file or the .c file? Also, is there some mistake I am making that is resulting in different coefficients? I am looking in specific for C7 (page 4 / register 14, page 4 / register 15) to C31 (page 4 / register 62, page 4 / register 63) as the rest of the required registers are already programmed in the raspberry pi and I would just like to add the filter coefficients. I have also attached an image of the process flow.
    Thank you in advance. 

      

    1665.base_main_Rate44.cfg 

    // ************************************************************
    /*
         PPS GENERATED DRIVER CODE FILE FOR [ProcessFlow1]
         Generated 06 June 2021 22:42:17 
    */
    // ************************************************************
    
    
    // Include files
    #include <stdio.h>
    #include "TI_support.h"
    #include "pps_driver.h"
    #include "TI_driver.h"
    
    // ---- TYPE 4 Transitions ---
    static reg_value T4_base_main_Rate44_data[] = {
    // minDSP_A Coeffs
        {  0,0x04},
        {  2,0x00},
        {  3,0xB8},
        {  4,0x7E},
        {  5,0x91},
        {  6,0x7F},
        {  7,0xFF},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0xFF},
        { 13,0xBE},
        { 14,0xFF},
        { 15,0xAB},
        { 16,0xFF},
        { 17,0x7A},
        { 18,0xFF},
        { 19,0x21},
        { 20,0xFE},
        { 21,0x9B},
        { 22,0xFF},
        { 23,0xC9},
        { 24,0xFC},
        { 25,0xD0},
        { 26,0xFB},
        { 27,0x61},
        { 28,0xF9},
        { 29,0x5B},
        { 30,0xFB},
        { 31,0x61},
        { 32,0xF1},
        { 33,0x2A},
        { 34,0xE5},
        { 35,0xC6},
        { 36,0xAE},
        { 37,0xF7},
        { 38,0x51},
        { 39,0x09},
        { 40,0x1A},
        { 41,0x3A},
        { 42,0x0E},
        { 43,0xD6},
        { 44,0xFF},
        { 45,0x9E},
        { 46,0xF7},
        { 47,0x10},
        { 48,0x26},
        { 49,0xF0},
        { 50,0x02},
        { 51,0x61},
        { 52,0x40},
        { 53,0x02},
        { 54,0xFF},
        { 55,0xFC},
        { 56,0x40},
        { 57,0x00},
        { 58,0x09},
        { 59,0xAD},
        { 60,0x06},
        { 61,0xA5},
        { 62,0x04},
        { 63,0x9F},
        { 64,0x03},
        { 65,0x30},
        { 66,0x02},
        { 67,0x27},
        { 68,0x01},
        { 69,0x65},
        { 70,0x00},
        { 71,0xDF},
        { 72,0x00},
        { 73,0x86},
        { 74,0x00},
        { 75,0x55},
        { 76,0x00},
        { 77,0x42},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0xFF},
        { 91,0xFD},
        { 92,0xFF},
        { 93,0xE5},
        { 94,0xFF},
        { 95,0xA7},
        { 96,0xFF},
        { 97,0xC7},
        { 98,0xFF},
        { 99,0xCE},
        {100,0xFF},
        {101,0xFE},
        {102,0xFE},
        {103,0xF7},
        {104,0xFF},
        {105,0x46},
        {106,0xFF},
        {107,0x22},
        {108,0xFF},
        {109,0x0F},
        {110,0xFA},
        {111,0x8C},
        {112,0xF5},
        {113,0x08},
        {114,0xFD},
        {115,0x92},
        {116,0xF3},
        {117,0xA3},
        {118,0x03},
        {119,0xB3},
        {120,0x00},
        {121,0x33},
        {122,0x00},
        {123,0x71},
        {124,0x40},
        {125,0x60},
        {126,0x00},
        {127,0xE2},
        {  0,0x05},
        {  2,0x00},
        {  3,0xC6},
        {  4,0x00},
        {  5,0x87},
        {  6,0x00},
        {  7,0x0F},
        {  8,0x00},
        {  9,0x0A},
        { 10,0x00},
        { 11,0x02},
        { 12,0x01},
        { 13,0x81},
        { 14,0x18},
        { 15,0x89},
        { 16,0x07},
        { 17,0xFB},
        { 18,0x03},
        { 19,0xBE},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x40},
        { 27,0x00},
        { 28,0xC0},
        { 29,0x00},
        { 30,0xFF},
        { 31,0xFF},
        { 32,0x80},
        { 33,0x00},
        { 34,0x7F},
        { 35,0xFF},
        { 36,0x00},
        { 37,0x1C},
        { 38,0x00},
        { 39,0x65},
    // minDSP_A instructions
        {  0,0x20},
        {  2,0x03},
        {  3,0x4D},
        {  4,0xFF},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x02},
        { 12,0x00},
        { 13,0x78},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x03},
        { 21,0x1A},
        { 22,0x0C},
        { 23,0x03},
        { 24,0x99},
        { 25,0x07},
        { 26,0x03},
        { 27,0x99},
        { 28,0x03},
        { 29,0x03},
        { 30,0x98},
        { 31,0x08},
        { 32,0x03},
        { 33,0x98},
        { 34,0x02},
        { 35,0x03},
        { 36,0x96},
        { 37,0x0A},
        { 38,0x0F},
        { 39,0x16},
        { 40,0x00},
        { 41,0x03},
        { 42,0x97},
        { 43,0x01},
        { 44,0x03},
        { 45,0x97},
        { 46,0x09},
        { 47,0x03},
        { 48,0x1B},
        { 49,0x29},
        { 50,0x03},
        { 51,0xAD},
        { 52,0x0E},
        { 53,0x09},
        { 54,0x9B},
        { 55,0x2A},
        { 56,0x03},
        { 57,0xAD},
        { 58,0x45},
        { 59,0x03},
        { 60,0xAE},
        { 61,0x2C},
        { 62,0x03},
        { 63,0xAE},
        { 64,0x27},
        { 65,0x03},
        { 66,0xAF},
        { 67,0x2E},
        { 68,0x03},
        { 69,0xAF},
        { 70,0x25},
        { 71,0x03},
        { 72,0xB0},
        { 73,0x34},
        { 74,0x03},
        { 75,0xB0},
        { 76,0x1F},
        { 77,0x03},
        { 78,0xB1},
        { 79,0x11},
        { 80,0x03},
        { 81,0xB1},
        { 82,0x42},
        { 83,0x03},
        { 84,0xB2},
        { 85,0x0F},
        { 86,0x03},
        { 87,0xB2},
        { 88,0x44},
        { 89,0x03},
        { 90,0xB3},
        { 91,0x35},
        { 92,0x03},
        { 93,0xB3},
        { 94,0x1E},
        { 95,0x03},
        { 96,0xB4},
        { 97,0x30},
        {  0,0x21},
        {  2,0x03},
        {  3,0xB4},
        {  4,0x23},
        {  5,0x03},
        {  6,0xB5},
        {  7,0x13},
        {  8,0x03},
        {  9,0xB5},
        { 10,0x40},
        { 11,0x03},
        { 12,0xB6},
        { 13,0x32},
        { 14,0x03},
        { 15,0xB6},
        { 16,0x21},
        { 17,0x03},
        { 18,0xB7},
        { 19,0x17},
        { 20,0x03},
        { 21,0xB7},
        { 22,0x3C},
        { 23,0x03},
        { 24,0xB8},
        { 25,0x37},
        { 26,0x03},
        { 27,0xB8},
        { 28,0x1C},
        { 29,0x03},
        { 30,0xB9},
        { 31,0x15},
        { 32,0x03},
        { 33,0xB9},
        { 34,0x3E},
        { 35,0x03},
        { 36,0xBA},
        { 37,0x19},
        { 38,0x03},
        { 39,0xBA},
        { 40,0x3A},
        { 41,0x03},
        { 42,0xBB},
        { 43,0x16},
        { 44,0x03},
        { 45,0xBB},
        { 46,0x3D},
        { 47,0x03},
        { 48,0xBC},
        { 49,0x2D},
        { 50,0x03},
        { 51,0xBC},
        { 52,0x26},
        { 53,0x03},
        { 54,0xBD},
        { 55,0x12},
        { 56,0x03},
        { 57,0xBD},
        { 58,0x41},
        { 59,0x03},
        { 60,0xBE},
        { 61,0x38},
        { 62,0x03},
        { 63,0xBE},
        { 64,0x1B},
        { 65,0x03},
        { 66,0xBF},
        { 67,0x31},
        { 68,0x03},
        { 69,0xBF},
        { 70,0x22},
        { 71,0x03},
        { 72,0xC1},
        { 73,0x33},
        { 74,0x03},
        { 75,0xC1},
        { 76,0x20},
        { 77,0x03},
        { 78,0xC2},
        { 79,0x2F},
        { 80,0x03},
        { 81,0xC2},
        { 82,0x24},
        { 83,0x03},
        { 84,0xC3},
        { 85,0x10},
        { 86,0x03},
        { 87,0xC3},
        { 88,0x43},
        { 89,0x03},
        { 90,0xC4},
        { 91,0x2B},
        { 92,0x03},
        { 93,0xC4},
        { 94,0x28},
        { 95,0x03},
        { 96,0xC5},
        { 97,0x0D},
        {  0,0x22},
        {  2,0x03},
        {  3,0xC5},
        {  4,0x46},
        {  5,0x03},
        {  6,0xC6},
        {  7,0x14},
        {  8,0x03},
        {  9,0xC6},
        { 10,0x3F},
        { 11,0x03},
        { 12,0xC7},
        { 13,0x1A},
        { 14,0x03},
        { 15,0xC7},
        { 16,0x39},
        { 17,0x03},
        { 18,0xC8},
        { 19,0x18},
        { 20,0x03},
        { 21,0xC8},
        { 22,0x3B},
        { 23,0x03},
        { 24,0xC9},
        { 25,0x36},
        { 26,0x03},
        { 27,0xC9},
        { 28,0x1D},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x05},
        { 33,0x01},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x05},
        { 39,0x00},
        { 40,0x00},
        { 41,0x03},
        { 42,0x04},
        { 43,0x47},
        { 44,0x03},
        { 45,0x85},
        { 46,0x49},
        { 47,0x09},
        { 48,0x83},
        { 49,0x46},
        { 50,0x06},
        { 51,0x01},
        { 52,0x49},
        { 53,0x03},
        { 54,0x82},
        { 55,0x4B},
        { 56,0x02},
        { 57,0x80},
        { 58,0x48},
        { 59,0x06},
        { 60,0x81},
        { 61,0x48},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x01},
        { 66,0x82},
        { 67,0x00},
        { 68,0x02},
        { 69,0x80},
        { 70,0x4A},
        { 71,0x03},
        { 72,0x4D},
        { 73,0x4E},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x02},
        { 81,0x01},
        { 82,0x50},
        { 83,0x03},
        { 84,0x06},
        { 85,0x50},
        { 86,0x03},
        { 87,0x87},
        { 88,0x51},
        { 89,0x03},
        { 90,0x88},
        { 91,0x52},
        { 92,0x03},
        { 93,0x89},
        { 94,0x53},
        { 95,0x03},
        { 96,0x8A},
        { 97,0x54},
        {  0,0x23},
        {  2,0x03},
        {  3,0x8B},
        {  4,0x55},
        {  5,0x03},
        {  6,0x8C},
        {  7,0x56},
        {  8,0x03},
        {  9,0x8D},
        { 10,0x57},
        { 11,0x03},
        { 12,0x8E},
        { 13,0x58},
        { 14,0x03},
        { 15,0x8F},
        { 16,0x59},
        { 17,0x03},
        { 18,0x90},
        { 19,0x5A},
        { 20,0x03},
        { 21,0x91},
        { 22,0x5B},
        { 23,0x03},
        { 24,0x92},
        { 25,0x5C},
        { 26,0x03},
        { 27,0x93},
        { 28,0x5D},
        { 29,0x03},
        { 30,0x94},
        { 31,0x5E},
        { 32,0x03},
        { 33,0x95},
        { 34,0x5F},
        { 35,0x03},
        { 36,0x9D},
        { 37,0x60},
        { 38,0x03},
        { 39,0x9E},
        { 40,0x61},
        { 41,0x03},
        { 42,0x9F},
        { 43,0x62},
        { 44,0x03},
        { 45,0xA0},
        { 46,0x63},
        { 47,0x03},
        { 48,0xA1},
        { 49,0x64},
        { 50,0x03},
        { 51,0xA2},
        { 52,0x65},
        { 53,0x03},
        { 54,0xA3},
        { 55,0x66},
        { 56,0x03},
        { 57,0xA4},
        { 58,0x67},
        { 59,0x03},
        { 60,0xA5},
        { 61,0x68},
        { 62,0x03},
        { 63,0xA6},
        { 64,0x69},
        { 65,0x03},
        { 66,0xA7},
        { 67,0x6A},
        { 68,0x03},
        { 69,0xA8},
        { 70,0x6B},
        { 71,0x03},
        { 72,0xA9},
        { 73,0x6C},
        { 74,0x03},
        { 75,0xAA},
        { 76,0x6D},
        { 77,0x03},
        { 78,0xAB},
        { 79,0x6E},
        { 80,0x03},
        { 81,0xAC},
        { 82,0x6F},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x02},
        { 90,0x00},
        { 91,0x4F},
        { 92,0x03},
        { 93,0x51},
        { 94,0x4F},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x24},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x02},
        {  6,0x00},
        {  7,0x4F},
        {  8,0x03},
        {  9,0x51},
        { 10,0x4F},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x02},
        { 18,0x00},
        { 19,0x70},
        { 20,0x03},
        { 21,0x1C},
        { 22,0x78},
        { 23,0x08},
        { 24,0x4E},
        { 25,0x77},
        { 26,0x03},
        { 27,0xCE},
        { 28,0x75},
        { 29,0x02},
        { 30,0x01},
        { 31,0x76},
        { 32,0x08},
        { 33,0x84},
        { 34,0x06},
        { 35,0x02},
        { 36,0x37},
        { 37,0x73},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x03},
        { 45,0x4D},
        { 46,0x75},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x08},
        { 51,0x80},
        { 52,0x17},
        { 53,0x03},
        { 54,0x4D},
        { 55,0x73},
        { 56,0x08},
        { 57,0x4C},
        { 58,0x78},
        { 59,0x03},
        { 60,0xCD},
        { 61,0x75},
        { 62,0x08},
        { 63,0x4E},
        { 64,0x76},
        { 65,0x08},
        { 66,0x8C},
        { 67,0x09},
        { 68,0x08},
        { 69,0x84},
        { 70,0x11},
        { 71,0x02},
        { 72,0x01},
        { 73,0x74},
        { 74,0x08},
        { 75,0x88},
        { 76,0x11},
        { 77,0x03},
        { 78,0x4D},
        { 79,0x76},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x03},
        { 84,0x4C},
        { 85,0x78},
        { 86,0x02},
        { 87,0x01},
        { 88,0x74},
        { 89,0x04},
        { 90,0x4A},
        { 91,0x02},
        { 92,0x08},
        { 93,0x80},
        { 94,0x11},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x25},
        {  2,0x02},
        {  3,0x01},
        {  4,0x74},
        {  5,0x08},
        {  6,0x86},
        {  7,0x08},
        {  8,0x03},
        {  9,0x4D},
        { 10,0x76},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x03},
        { 15,0x4C},
        { 16,0x78},
        { 17,0x02},
        { 18,0x01},
        { 19,0x74},
        { 20,0x04},
        { 21,0x4A},
        { 22,0x02},
        { 23,0x08},
        { 24,0x80},
        { 25,0x08},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x02},
        { 30,0x01},
        { 31,0x74},
        { 32,0x04},
        { 33,0x4A},
        { 34,0x02},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x03},
        { 42,0x4D},
        { 43,0x73},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x02},
        { 51,0x01},
        { 52,0x72},
        { 53,0x03},
        { 54,0x4A},
        { 55,0x70},
        { 56,0x03},
        { 57,0x4A},
        { 58,0x78},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x02},
        { 63,0x01},
        { 64,0x71},
        { 65,0x04},
        { 66,0x4B},
        { 67,0x3F},
        { 68,0x03},
        { 69,0x4D},
        { 70,0x71},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x01},
        { 75,0x80},
        { 76,0x03},
        { 77,0x03},
        { 78,0x52},
        { 79,0x78},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x03},
        { 84,0xCF},
        { 85,0x78},
        { 86,0x08},
        { 87,0x8B},
        { 88,0xFE},
        { 89,0x00},
        { 90,0x80},
        { 91,0x0A},
        { 92,0x03},
        { 93,0x16},
        { 94,0x03},
        { 95,0x0F},
        { 96,0x16},
        { 97,0x06},
        {  0,0x26},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x03},
        {  6,0x97},
        {  7,0x07},
        {  8,0x03},
        {  9,0x97},
        { 10,0x02},
        { 11,0x03},
        { 12,0x98},
        { 13,0x01},
        { 14,0x03},
        { 15,0x98},
        { 16,0x08},
        { 17,0x03},
        { 18,0x99},
        { 19,0x00},
        { 20,0x03},
        { 21,0x99},
        { 22,0x09},
        { 23,0x03},
        { 24,0x9A},
        { 25,0x05},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x05},
        { 30,0x84},
        { 31,0x48},
        { 32,0x02},
        { 33,0x00},
        { 34,0x0C},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x02},
        { 39,0x3F},
        { 40,0x4D},
        { 41,0x03},
        { 42,0x53},
        { 43,0x78},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x03},
        { 48,0xCF},
        { 49,0x78},
        { 50,0x08},
        { 51,0x8B},
        { 52,0xFE},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x80},
        { 58,0x03},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x08},
        { 63,0x81},
        { 64,0xFF},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x27},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x28},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x29},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2A},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2B},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2C},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2D},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2E},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
        {  0,0x2F},
        {  2,0x00},
        {  3,0x00},
        {  4,0x00},
        {  5,0x00},
        {  6,0x00},
        {  7,0x00},
        {  8,0x00},
        {  9,0x00},
        { 10,0x00},
        { 11,0x00},
        { 12,0x00},
        { 13,0x00},
        { 14,0x00},
        { 15,0x00},
        { 16,0x00},
        { 17,0x00},
        { 18,0x00},
        { 19,0x00},
        { 20,0x00},
        { 21,0x00},
        { 22,0x00},
        { 23,0x00},
        { 24,0x00},
        { 25,0x00},
        { 26,0x00},
        { 27,0x00},
        { 28,0x00},
        { 29,0x00},
        { 30,0x00},
        { 31,0x00},
        { 32,0x00},
        { 33,0x00},
        { 34,0x00},
        { 35,0x00},
        { 36,0x00},
        { 37,0x00},
        { 38,0x00},
        { 39,0x00},
        { 40,0x00},
        { 41,0x00},
        { 42,0x00},
        { 43,0x00},
        { 44,0x00},
        { 45,0x00},
        { 46,0x00},
        { 47,0x00},
        { 48,0x00},
        { 49,0x00},
        { 50,0x00},
        { 51,0x00},
        { 52,0x00},
        { 53,0x00},
        { 54,0x00},
        { 55,0x00},
        { 56,0x00},
        { 57,0x00},
        { 58,0x00},
        { 59,0x00},
        { 60,0x00},
        { 61,0x00},
        { 62,0x00},
        { 63,0x00},
        { 64,0x00},
        { 65,0x00},
        { 66,0x00},
        { 67,0x00},
        { 68,0x00},
        { 69,0x00},
        { 70,0x00},
        { 71,0x00},
        { 72,0x00},
        { 73,0x00},
        { 74,0x00},
        { 75,0x00},
        { 76,0x00},
        { 77,0x00},
        { 78,0x00},
        { 79,0x00},
        { 80,0x00},
        { 81,0x00},
        { 82,0x00},
        { 83,0x00},
        { 84,0x00},
        { 85,0x00},
        { 86,0x00},
        { 87,0x00},
        { 88,0x00},
        { 89,0x00},
        { 90,0x00},
        { 91,0x00},
        { 92,0x00},
        { 93,0x00},
        { 94,0x00},
        { 95,0x00},
        { 96,0x00},
        { 97,0x00},
    // minDSP_D Coeffs
    // minDSP_D instructions
    };
    
    // ---- TYPE 7 Transitions ---
    // ---- TYPE 4 Transition Command Structures ---
    static pps_commands T4_base_main_Rate44_cmd = {
    	sizeof(T4_base_main_Rate44_data),
    	T4_base_main_Rate44_data
    };
    
    // ---- TYPE 7 Transition Command Structures ---
    // ---- User Controls ---
    // ---- Overlay [base] ----
    // Transitions for [base_main_Rate44]
    static pps_transitions T_base_main_Rate44 = {
    	PPS_FSI_44KHZ,  // Rate supported
    	0x10, // Support T4 only
    	0,    // Patched ?
    	{   // State transition code
    		NULL,
    		NULL,
    		NULL,
    		&T4_base_main_Rate44_cmd,
    		NULL,
    		NULL,
    		NULL,
    	}
    };
    
    // ---- Configuration [base_main] ----
    static pps_configuration CFG_base_main = {
    	"base_main",
    	{
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		&T_base_main_Rate44,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL
    	},
    };
    
    // -- Overlay Structure [OVLY_base] --
    static pps_overlay OVLY_base = {
    	"base",
    	1,  // # Configurations
    	0,  // # Controls
    	0,   // Set initial config to first config
    	{   // Transitions to this overlay
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		&T_base_main_Rate44,
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL
    	},
    	{   // Controls available
    		NULL,
    		NULL,
    		NULL,
    		NULL,
    		NULL
    	},
    	{   // Configurations available
    		&CFG_base_main
    	}
    };
    
    // PFW for project
    pps_pfw ProcessFlow1 = {
    	"ProcessFlow1",  // PFW name
    	1,      // # Overlays
    	0x40,     // Supported sample rates
    	0,                      // Starting overlay
    	{                       // Overlays
    		&OVLY_base
    	}
    };
    
    

    Regards,

    Danilo

  • Danilo,

    Looking at the generated c file and your picture, I would expect the coefficients to be a 16-bit two's complement representation of the FIR filter coefficients.

    If I start with the entries of register 12, it seems to match the coefficients fro b0 through b15:

    Reg 12 => FFFFFFFFBE = -66 / 2^15 = -0.00201416, this matches coefficient b0
    Reg 14 => FFFFFFFFAB = -85 / 2^15 = -0.002593994, this matches coefficient b1
    Reg 16 =>FFFFFFFF7A = -134 / 2^15 = -0.004089355, this matches coefficient b2
    Reg 18 =>FFFFFFFF21 = -223 / 2^15 = -0.00680542, this matches coefficient b3
    Reg 20 =>FFFFFFFE9B = -357 / 2^15 = -0.010894775, this matches coefficient b4
    Reg 22 =>FFFFFFFFC9 = -55 / 2^15 = -0.001678467, this matches coefficient b5
    Reg 24 =>FFFFFFFCD0 = -816 / 2^15 = -0.024902344, this matches coefficient b6
    Reg 26 =>FFFFFFFB61 = -1183 / 2^15 = -0.036102295, this matches coefficient b7
    Reg 28 =>FFFFFFF95B = -1701 / 2^15 = -0.0519104, this matches coefficient b8
    Reg 30 =>FFFFFFFB61 = -1183 / 2^15 = -0.036102295, this matches coefficient b9
    Reg 32 =>FFFFFFF12A = -3798 / 2^15 = -0.115905762, this matches coefficient b10
    Reg 34 =>FFFFFFE5C6 = -6714 / 2^15 = -0.20489502, this matches coefficient b11
    Reg 36 =>FFFFFFAEF7 = -20745 / 2^15 = -0.633087158, this matches coefficient b12
    Reg 38 =>5109 = 20745 / 2^15 = 0.633087158, this matches coefficient b13
    Reg 40 =>1A3A = 6714 / 2^15 = 0.20489502, this matches coefficient b14
    Reg 42 =>0ED6 = 3798 / 2^15 = 0.115905762, this matches coefficient b15
    Reg 44 =>FFFFFFFF9E = -98 / 2^15 = -0.002990723 ??
    Reg 48 =>FFFFFFF710 = -2288 / 2^15 = -0.069824219
    Reg 50 =>26F0 = 9968 / 2^15 = 0.304199219
    Reg 52 =>261 = 609 / 2^15 = 0.018585205
    Reg 54 =>4002 = 16386 / 2^15 = 0.500061035
    Reg 56 =>FFFFFFFFFC -4 / 2^15 = -0.00012207
    Reg 58 =>4000 = 16384 / 2^15 = 0.5
    Reg 60 =>09AD = 2477 / 2^15 = 0.075592041
    Reg 62 =>06A5 = 1701 / 2^15 = 0.0519104
    Reg 64 =>049F = 1183 / 2^15 = 0.036102295

    But not sure what coefficients are being generated from register 44 through 64. I would have expected the rest of the coefficients b16 through b25. Thus, something does not seem right here.

    Due to this issue, I would recommend to use those from the *.cfg file. You can change the floating point number to 16-bit twos complement by:

    for positive numbers: hex(float_number * 2^15)

    for negative numbers not{hex(-float_number * 2^15)} + 1 nd truncate to lower 16 bits.

    Best regards,
    Pedro

  • Hi Pedro,

    We have received a feedback from the customer.

    I manually converted the remaining coefficients for the FIR filter and programmed the ADC and I got the desired output. However, the coefficients from the .cfg file were also not correct.
    I tried designing the BIquad filter with similar specifications and am facing the same problem. I'm not able to figure out the reason for the problem. I have attached the biquad GUI, the resulting coefficients, and the generated .cfg file. It does not attenuate the signals below 800 Hz. I would like to know the probable cause for this and what can be done in this case.
    Thank you in advance, 

    7266.base_main_Rate44.cfg

    base_main_Rate44_f10b1c.cfg

    Regards,

    Danilo

  • Danilo,

    I do not think I follow the design of the Biquad here:

    b = [0.94598388671875 -0.472991943359375 0]
    a = [1 0.44598388671875 0]
    iir1b = dsp.IIRFilter('Numerator',b, 'Denominator',a)
    h = fvtool(iir1b, 'FrequencyScale', 'log');

    Designing for a 800Hz Butterworth Highpass filter:

    biquad = fdesign.highpass('N,F3dB',2, 800, 44100);
    butter = design(dcblock, 'IIR', 'butter');
    h = fvtool( dcButter );

    Has the expected 800Hz cut:

    With the following coefficients:

    b = [1,-2,1]

    a =[1,-1.839116797325203,0.851128341245972]

    Given the biquad response defined as:

    H(z) = [b0 + b1z^-1 + b2z^-2] / [1 + a1z^-1 + a2z^-2]

    But the biquad equations used by TLV320ADC3100 (equation 4 on page 35 of the data sheet):

    H(z) = [N0 + 2*N1z^-1 + N2z^-2] / [2^15 - 2*D1z^-1 + - D2z^-2]

    since the a and b are greater than 1. I am scaling all the coefficients down by 2 and equating to N and D, as follows:

    N0 = b0 * 2^15 / 2 = 0x4000

    N1 = b1 * 2^15 / 4 = 0x8000

    N2 = b2 * 2^15 / 2 = 0x4000

    D1 = -a1 * 2^15 / 4 = 0x3ADA

    D2 = -a2 * 2^15 / 2 = 0xC987

    Best regards,
    Pedro

  • Hi,

    I had entered the specifications of the filter in the biquad GUI, and the coefficients that I had obtained were automatically generated by PurePath Studio. Those were not the coefficients I had entered. It was mentioned in the help folder that I could enter my requirements in the filter design tool dialog box, and the coefficients would be generated. I would like to know why the coefficients are not getting generated correctly for the biquad filter and for the FIR filter (in the *.cfg file i.e coefficients b16 to b25). Is there something that I am making a mistake in?

    Thank you,

    Sharanya

  • Sharanya,

    Thanks for the update. I will have to defer your question to our team that develops PurePath Studio to figure out why the filter coefficients are not generated properly. Sometimes to prevent overflow, PurePathStudio scales down the coefficients, but this should not affect the response of the filter, just the gain.

    Best regards,
    Pedro

  • Hi Sharanya,

    Could you please attach the process flow file (*.pfw) that has this problem?

    Best Regards.

  • Hi Diljith,

    For some reason our customer can't post the process flow file. I have attached it below.

    Processflow.zip

    Regards,

    Danilo

  • Hi Sharanya and Danilo,

    The filter coefficients generated by the tool for a first order high-pass filter is proper in the ProcessFlow_Biquad process flow file.

    Please refer below for coefficient calculation equations.

    The two key things to note are:

    (1) middle coefficients of the numerator and denominator have to multiplied by 0.5 (as the biquad engine multiplies the middle coefficient by 2)

    (2) the denominators have to be negated (we implement biquads using a difference equation)

    I noticed that the remaining filter coefficients (set to custom) had some non default values. I would set the filter configuration to allpass if I am not using them. That might have been causing the problem.

    Please let me know if the issue is something else and not related to the explanation above. 

    Best Regards.