Post Go back to editing

Indirect Parameter Access Table

Category: Software
Product Number: ADAU1467
Software Version: 4.7

Hi, Having issues with the IPAT.  I have enabled the proper options, built a table, did the update, recompiled and then stored to EEPROM.  For some reason, I cannot access the IPAT addresses, just the original register values in the schematic.  I have read through the other discussions on this and the IPAT documentation, but Squelch PL Decode 020726 IPAT A.dspprojdon't seem to see where I am missing the mark.  Can you take a look and see if something obvious with my table config?  Thanks!  Elsa.

  • Hello ElsaDog,

    It looks like you did a great job setting up this table. I just took a screenshot of the first page:

    It would be good to see the details of your SPI writes and reads. Let's just take one simple example. 

    Reading the RX1 PLCOR DET value.

    I can see in this schematic that it is a logic output. So you will get a zero or a 1. If you could setup your test to have it be a zero then another with it being a one that would be good confirmation that you are reading it. Verify this with the redback button in SigmaStudio since what you are doing is reading a Readback cell. 

    Let me see if this is just something simple and I think you also are thinking it has to be. 

    Do you know that the values listed in the table for the Indirect Address and the Parameter Address are decimal numbers not hex? 

    Using SigmaStudio and the Capture window I can test this. If I click on the actual Readback cell I get zero. I did not study how difficult it would be to change it to a 1 but for now this is good enough. 

    So I open the IPAT window and clicked on the "READ" button and this is what comes up in the capture window:

    You can see the address is 0x6012 in the read request then the read result. Then I get a zero which is what I expected. 

    0x6012 = 24594 in decimal.

    Could this be where you are going wrong?

    Are you able to write to parameters?

    For a read you have to "write" to the address twice, once to set it to read the value in the next sampling frame and then the second to read the value that the IPAT table program copied from the 0d1639 address over to the 0d24594 memory location. This copy is done at the end of the frame.

     

    Thanks,

    Dave T

  • AH, that might be the issue, if I am understanding you, correctly.   I have a program in my PI that allows me to write and read any register over my SPI connection.  I know I have the correct syntax as I can easily read and write to the schematic register values, so it looks like I need to change the syntax to do the dual read requests.  I did not think of using the register capture in SS to try the indirect parameter value, so I will study the syntax, there and make correction to the syntax.  I will do some further testing and let you know.  Thanks, Dave!