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: PPS aogorithm trasfering to sourcing code

Part Number: TLV320ADC3101

Dear Expert,

could you tell how to transferring

Application:  PurePath Studio (Portable Audio) MiniDSP Assembler
File Name:    E:\TI\ProcessFlow1\base_main_Rate44\aic_main.lst
Date:         2020/3/15 11:41:47
Version:      version 5.95 build 1 revision 35815
Arguments:    'aic_main.asm' /image='E:\TI\ProcessFlow1\base_main_Rate44\aic_main.image'/list='E:\TI\ProcessFlow1\base_main_Rate44\aic_main.lst' /configuration='base_main_Rate44' /debug /noploops /pad_minidsp_a /pad_minidsp_d /warnings=OFF /target=ADC3101
================================================================================

Listing for file: aic_main.asm

miniDSP_A Exported Coefficients
===============================
Name                                      Address            I2C       
----------------------------------------  -------    ------------------
FIR_1_Coeff0                              0x0006           [0x04][0x0C]   
FIR_1_Coeff1                              0x0007           [0x04][0x0E]   
FIR_1_Coeff10                             0x0010           [0x04][0x20]   
FIR_1_Coeff11                             0x0011           [0x04][0x22]   
FIR_1_Coeff12                             0x0012           [0x04][0x24]   
FIR_1_Coeff13                             0x0013           [0x04][0x26]   
FIR_1_Coeff14                             0x0014           [0x04][0x28]   
FIR_1_Coeff15                             0x0015           [0x04][0x2A]   
FIR_1_Coeff16                             0x0016           [0x04][0x2C]   
FIR_1_Coeff17                             0x0017           [0x04][0x2E]   
FIR_1_Coeff18                             0x0018           [0x04][0x30]   
FIR_1_Coeff19                             0x0019           [0x04][0x32]   
FIR_1_Coeff2                              0x0008           [0x04][0x10]   
FIR_1_Coeff20                             0x001A           [0x04][0x34]   
FIR_1_Coeff21                             0x001B           [0x04][0x36]   
FIR_1_Coeff22                             0x001C           [0x04][0x38]   
FIR_1_Coeff23                             0x001D           [0x04][0x3A]   
FIR_1_Coeff24                             0x001E           [0x04][0x3C]   
FIR_1_Coeff25                             0x001F           [0x04][0x3E]   
FIR_1_Coeff26                             0x0020           [0x04][0x40]   
FIR_1_Coeff27                             0x0021           [0x04][0x42]   
FIR_1_Coeff28                             0x0022           [0x04][0x44]   
FIR_1_Coeff29                             0x0023           [0x04][0x46]   
FIR_1_Coeff3                              0x0009           [0x04][0x12]   
FIR_1_Coeff30                             0x0024           [0x04][0x48]   
FIR_1_Coeff31                             0x0025           [0x04][0x4A]   
FIR_1_Coeff32                             0x0026           [0x04][0x4C]   
FIR_1_Coeff33                             0x0027           [0x04][0x4E]   
FIR_1_Coeff34                             0x0028           [0x04][0x50]   
FIR_1_Coeff35                             0x0029           [0x04][0x52]   
FIR_1_Coeff36                             0x002A           [0x04][0x54]   
FIR_1_Coeff37                             0x002B           [0x04][0x56]   
FIR_1_Coeff38                             0x002C           [0x04][0x58]   
FIR_1_Coeff39                             0x002D           [0x04][0x5A]   
FIR_1_Coeff4                              0x000A           [0x04][0x14]   
FIR_1_Coeff40                             0x002E           [0x04][0x5C]   
FIR_1_Coeff41                             0x002F           [0x04][0x5E]   
FIR_1_Coeff42                             0x0030           [0x04][0x60]   
FIR_1_Coeff43                             0x0031           [0x04][0x62]   
FIR_1_Coeff44                             0x0032           [0x04][0x64]   
FIR_1_Coeff45                             0x0033           [0x04][0x66]   
FIR_1_Coeff46                             0x0034           [0x04][0x68]   
FIR_1_Coeff47                             0x0035           [0x04][0x6A]   
FIR_1_Coeff48                             0x0041           [0x05][0x02]   
FIR_1_Coeff49                             0x0042           [0x05][0x04]   
FIR_1_Coeff5                              0x000B           [0x04][0x16]   
FIR_1_Coeff50                             0x0043           [0x05][0x06]   
FIR_1_Coeff51                             0x0044           [0x05][0x08]   
FIR_1_Coeff52                             0x0045           [0x05][0x0A]   
FIR_1_Coeff53                             0x0046           [0x05][0x0C]   
FIR_1_Coeff54                             0x0047           [0x05][0x0E]   
FIR_1_Coeff55                             0x0048           [0x05][0x10]   
FIR_1_Coeff56                             0x0049           [0x05][0x12]   
FIR_1_Coeff57                             0x004A           [0x05][0x14]   
FIR_1_Coeff58                             0x004B           [0x05][0x16]   
FIR_1_Coeff59                             0x004C           [0x05][0x18]   
FIR_1_Coeff6                              0x000C           [0x04][0x18]   
FIR_1_Coeff60                             0x004D           [0x05][0x1A]   
FIR_1_Coeff61                             0x004E           [0x05][0x1C]   
FIR_1_Coeff62                             0x004F           [0x05][0x1E]   
FIR_1_Coeff63                             0x0050           [0x05][0x20]   
FIR_1_Coeff7                              0x000D           [0x04][0x1A]   
FIR_1_Coeff8                              0x000E           [0x04][0x1C]   
FIR_1_Coeff9                              0x000F           [0x04][0x1E]   
MonoDec2xIn_1_AGCd1                       0x0002           [0x04][0x04]   
MonoDec2xIn_1_AGCn0and1                   0x0001           [0x04][0x02]   
MonoDec2xIn_1_Ld1                         0x0005           [0x04][0x0A]   
MonoDec2xIn_1_Ln0                         0x0003           [0x04][0x06]   
MonoDec2xIn_1_Ln1                         0x0004           [0x04][0x08]   
ScaleAbs_1_Coefval                        0x0036           [0x04][0x6C]   

miniDSP_D Exported Coefficients
===============================
Name                                      Address            I2C       
----------------------------------------  -------    ------------------



Reg Code
========
                  line: 

                                --- File: aic_main.asm ---
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
                     86:  .endencrypt 
                    112:  .sync(25) 
                    122:  .sync(9) 
                    123:   
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
                     27:  .codeblock Registers target=regs, component=ADC3x01App4x_1 
                     28:  ;IADC  = 452; 
                     29:  reg[47][95]=0x00 
                     30:  reg[47][96]=0x00 
                     31:  reg[47][97]=0x00 
                     32:   
                     33:  reg[0][1]=0x01 
                     34:  reg[0][61] = 0x00                       ; reg(0)(0x3d => 61)     ADC ADC prog mode 
                     35:  reg[0][4] = 0x03                        ; PLL_CLKIN = MCLK, CODEC_CLKIN=PLL_CLK 
                     36:  reg[0][5] = 0x91                        ; P=1, R=1 
                     37:  reg[0][6] = 0x08                        ; J=8, settings are for fs = 44.1khz 
                     38:  reg[0][18] = 0x84                       ; reg(0)(0x12 => 18)     ADC Powerup NADC = 4, mkmkmk add an additional divide by 2 vs 3254 since only 512 instructions available 
                     39:  reg[0][19] = 0x84                       ; ADC Powerup MADC = 4 
                     40:  reg[0][27] = 0x00                       ; reg(0)(0x1b => 27)     Mode = i2s & wordlength = 16 
                     41:  reg[0][20] = 128                        ; reg(0)(0x14 => 20)     ADC AOSR = 128 
                     42:  reg[0][83] = 0x0	                      ; adc vol control = 0db 
                     43:  reg[0][84] = 0x0	                      ; adc vol control = 0db 
                     44:  reg[0][22] = 4                          ; Decimation Ratio = 4 
                     45:  reg[0][21] = 226   ; IADC  
                     46:  PROGRAM_MINIDSP_A  
                     47:  reg[1][52] = 0xfc                       ; reg(1)(0x34 => 52)     ADC IN1_L is selected for left P 
                     48:  ;reg[1][54] = 0x3c                      ; reg(1)(0x36 => 54)     ADC CM1 is selected for left M 
                     49:  reg[1][55] = 0xfc                       ; reg(1)(0x37 => 55)     ADC IN1_R is selected for right P 
                     50:  ;reg[1][57] = 0x3c                      ; reg(1)(0x39 => 57)     ADC CM1 is selected for right M 
                     51:  reg[1][59] = 0x00                       ; reg(1)(0x3b => 59)     ADC unmute left mic PGA 
                     52:  reg[1][60] = 0x00                       ; reg(1)(0x3c => 60)     ADC unmute right mic PGA 
                     53:                                           
                     54:  reg[0][81] = 0xc2                       ; reg(0)(0x51 => 81)     ADC Powerup ADC left and right channels (soft-stepping disable) 
                     55:  reg[0][82] = 0x00                       ; reg(0)(0x52 => 82)     ADC Unmute ADC left and right channels 
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************

                                --- File: aic_gen.asm ---
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************
                    163:  .codeblock Registers2 target=regs, component=MonoDec2xIn_1 
                    164:  reg[0][82] = 0 
                    165:  ; Left channel AGC initialization 
                    166:  reg[0][83] = 0 
                    167:  reg[0][86] = 32 
                    168:  reg[0][87] = 254  
                    169:  reg[0][88] = 0 
                    170:  reg[0][89] = 104 
                    171:  reg[0][90] = 168 
                    172:  reg[0][91] = 6 
                    173:  reg[0][92] = 0 
XX|XXXXX  [XXXX] XXXXXX:  ****************encrypted****************************

0 errors detected
the PPS flow into soucing code, I made a PPS flow in the GNU, but how can I use it for the real application, for example, I set a filter and verified in the EVM, but how can I transfer into the c code. because my real hardware is not the EVM. 

I want to use MCU to control the ADC register to achieve a specified filter coefficient.

  • Hi,

    To generate header file to be used by an MCU, please enable the header file option.

    This is available under Tools-->Options-->Build as shown here. Enabling this option would generate a file named 'base_main_Rate<FS>_pps_driver.h

    Best Regards.