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.

AFE7950EVM: Extracting register values from Latte

Part Number: AFE7950EVM


How to extract the register values for AFE from latte?

  • Hi AK,

    Are you asking how to read registers from the AFE or how to get the register values to configure the AFE? 

    You can get a log file with the SPI transactions done to the AFE when you add the following to your bringup script before the "AFE.deviceBringup()" line.

    This will make a log file called "Afe79xxPg1.txt" with the SPI transactions so that you can configure the AFE in your desired mode in the directory "C:\Users\<USER>\Documents\Texas Instruments\AFE79xxLatte\lib".

    ##############		Logging		##############
    logDumpInst.setFileName(ASTERIX_DIR+DEVICES_DIR+r"\Afe79xxPg1.txt")
    logDumpInst.logFormat=0x1 #Modify to 0x1 to save register scequence to log file. Script takes more time to execute.
    logDumpInst.rewriteFile=1
    logDumpInst.rewriteFileFormat4=1
    device.optimizeWrites=0
    device.rawWriteLogEn=1

    Best,

    Camilo