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.

How to set configuration registers in AIC3254

Other Parts Discussed in Thread: TLV320AIC3254EVM-K

Hi,

I am trying to generate with Pure Path application a .h file that configures not only the DSP registers as I need, but also the configuration registers.  It seems that Pure Path has default values for the configuration registers, but I want to set my own values for these registers.  How can I do that?  Is there another tool to do this easily?

Thanks in advance

  • Hi Miguel,

    What PPS version are you using?

    If you are using the recent versions, Please try Framework->Properties tab->SystemSettingsCode feature.

    Best Regards,

    Mohan

     

  • Hi Mohan,

    Thanks for your answer.

    The PPS version I am using is 4.80 build 1 rev 10076

    With respect to the SystemSettingsCode feature:

    - I have opened an example process flow ('NR Process Flows') and modified some lines in the SystemSettingsCode Editor.  After that, I have generated the .h file and my changes were not there.  Besides, I have saved the property settings (File -> Save Property Settings) as a .set file, and then loaded it (File -> Load Property Settings).  In this case, PPS shows that a number of 'Line X has invalid command: reg' messages.  So, I am confused regarding the edition of the configuration registers and the use of .set files.

    - On the other hand, is there another way than the 'SystemSettingsCode Editor' to edit the configuration registers?  For example, some graphical tool.

    Thanks in advance,

      Miguel

     

  • Hi Miguel,

    File -> Save/Load Property Settings seems to be not working on SystemSettingsCode Property.

    Changes to SystemSettingsCode are stored in the process flow itslef. So,  File -> Save/Load Property Settings is not necessary for saving the changes.

    Can you see your changes in SystemSettingsCode, after re-opening the PPS?

    SystemSettingsCode has "if/else" statements, Can you also make sure that the changes are not under any inactive portion?

    Are you using the format  reg[ ][ ]   = 0xXX?

    There is no gui tool to edit the SystemSettingsCode currently.

    You can use the graphical tool "AIC3254 CS" http://www.ti.com/litv/zip/slac214c available here http://focus.ti.com/docs/toolsw/folders/print/tlv320aic3254evm-k.html#Support%20SoftwareThis tool can be used to verify the settings like AIC3254 Analog Input/Output routing etc.. This tool can also be used to configure the AIC3254. Keep the "Command-Line Interface->Record" switched ON, then configure the registers, for example, Analog Input/Outputs. Transferring Commands from ThisTool->"Command-Line Interface->CommandBuffer" to PPS->Framework->"SystemSettingsCode" is done manually.

    Best Regards,

    Mohan


  • Hi Mohan,

    Thanks for your answers.

    Regarding the gui tool to edit the SystemSettingsCode, is it foreseen to develop such  tool and integrate it to PPS?  I think it would be very useful for developers.

    Best Regards,

      Miguel

  • Hi Miguel,

    Thanks for the suggestion. I agree with you that it would be very useful.

    Best Regards,

    Mohan

  • Hi Mohan,

    I have been using AIC3254 CS tool, as you suggested.  I am not sure if this tool can help me to develop the configuration of AIC3254 in an 'easy' way.  I mean, I would like to have some kind of file (script, binary, spreadsheet...) with a complete configuration of AIC3254, then open it and make changes, and finally save a complete configuration with these changes.

    Can this be done with AIC3254 CS?  I am not sure.  First of all, I need to have an EVM connected to the PC so that changes made are reflected in the register tables and in the command line, isn't it?    Secondly, the register tables can only be dumped, not loaded.

    Can you please give me some guidance about an 'easy' (i.e. using a graphical tool) way to 'load --> modify --> save' configurations?

    Thanks,

      Miguel

  • Hi Miguel,

    Can you please try these steps?

    a) PurePathStudio->Load xxxx.pfw -> Build->GenerateCode. This generates xxxx.cfg

    b) Open AIC3254 CS-> 

     

    c) Open the PPS generated script file xxxx.cfg

    d) Click on "Record" Button

    e) Click on "Execute Command Buffer" Button. Now the program is running

    f) Check/Modify the Digital/Analog setting registers using "AIC3254 CS"->

    g) The changes are appended to the script in the "Command Buffer" window

    f) Save script file

     

    To avoid repeating this when something gets changed in the PPS, I suggest saving the changes as separate yyyy.cfg file. (Use "Clear" after step e)

    Then, PPS->Tools->I2C Command File->yyyy.cfg-> Select the "Execute on reset" Check Box.

    Hope this helps.

    Best Regards,

    Mohan

     

  • Hi Mohan,

    Is there  a way to record the command line without using the EVM

    Thanks,

      Miguel

  • Hi Miguel,

    No.

    AIC3254 Control Software actually sends and reads back from the EVM when settings are changed.

    Can you consider using AIC3254 EVMU? AIC3254 EVMU has small form-factor and lower cost compared to AIC3254 EVM-K.

    Best Regards,

    Mohan

     

  • Hi Mohan,

    Thanks again for your answer.  I will make use of your suggestions to change the registers configuration, with PPS, AIC3254 CS and the EVM-K

    Best Regards,

      Miguel