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.

AFE7903: Software Library CAFE Integration

Part Number: AFE7903
Other Parts Discussed in Thread: AFE7900EVM

We want to use an AFE7903 in our new system. The component that controls and configures the AFE chip is an embedded Linux device where the main control application is running on. The application is written in C++ and needs to handle configure requests via JSON file or network to change the configuration of the AFE chip.

We received the corresponding Windows tool "Latte" to experiment with the AFE7900EVM and the C library CAFE2p0 in version 2.2. I already implemented the underlying SPI communication and see it working. At least the logged out communication attempts look good.

The main question is now, how we need to use the library itself. As I understand the "afeSystemParamsStruct" should be filled with all relevant config values. But I have no clue how to trigger the library to write down all those information to the chip. I tried "overrideTdd" which works. But it looks like this is only a small part of the whole configuration.

Can you give me more hints and/or documentation how the library should be used?

BR Christian

  • Hi Christian,

    For the initial configuration of an AFE79xx device, i.e. SPI configuration needed from device RESET to configuration of ADC, DAC signal chains and JESD links, latte generated register log file has to be used. When AFE79xxEVM is configured with Latte in the mode you plan to use, a log file with all the needed register sequence is generated. This programming sequence has to be loaded on your system to configure the AFE. Log file generation from Latte is explained in section 3 of AFE79XX_Latte_UserGuide.pdf.

    The C library functions are used only for dynamic configuration after the AFE is configured from RESET to JESD link-up. These are functions needed after AFE is configured like updating NCO frequencies, updating DSA values or override TTD etc. 

    Regards,

    Vijay