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.

[参考译文] AFE7950-SP:从 Latte 生成 AFE79xxConfig.c 文件

Guru**** 2763595 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/rf-microwave-group/rf-microwave/f/rf-microwave-forum/1589600/afe7950-sp-generating-afe79xxconfig-c-file-from-latte

器件型号: AFE7950-SP

TI 团队大家好、

在我的 AFE79xx/Latte 软件应用程序文件夹中、我有一个名为“AFE79xxConfig.c"的“的生成文件、该文件将所有参数设置为以下格式:

AFE79_FUNC_EXEC(AFE79FNP(setDefaultParams)(afeInst));
AFE79_FUNC_EXEC(AFE79FNP(set_chipId)(afeInst, 121));
AFE79_FUNC_EXEC(AFE79FNP(set_chipVersion)(afeInst, 19));
AFE79_FUNC_EXEC(AFE79FNP(set_X)(afeInst, 61440));
AFE79_FUNC_EXEC(AFE79FNP(set_FRef)(afeInst, 491520));
AFE79_FUNC_EXEC(AFE79FNP(set_FadcRx)(afeInst, 2949120));
AFE79_FUNC_EXEC(AFE79FNP(set_FadcFb)(afeInst, 2949120));
AFE79_FUNC_EXEC(AFE79FNP(set_Fdac)(afeInst, 11796480));

它还会使器件以类似的格式进行 SPI 写入/读取、除非仅通过与此类似的原始 SPI 事务进行:

//STEP: rstDevice/step1 
// START: Waking up device
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x0015, 0x80, 0x00, 0x07));	/*timing_controller=0x1; 	Address(0x15[7:7])*/
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x0191, 0x00, 0x00, 0x07));	/*Property_170h_8_8=0x0; 	Address(0x191[0:0])*/
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x0231, 0x00, 0x00, 0x07));	/*Property_210h_8_8=0x0; 	Address(0x231[0:0])*/
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x02d1, 0x00, 0x00, 0x07));	/*Property_2b0h_8_8=0x0; 	Address(0x2d1[0:0])*/
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x0371, 0x00, 0x00, 0x07));	/*Property_350h_8_8=0x0; 	Address(0x371[0:0])*/
AFE79_FUNC_EXEC(AFE79FNP(afeSpiWriteWrapper)(afeInst, 0x042a, 0x00, 0x00, 0x07));	/*Property_408h_16_16=0x0; 	Address(0x42a[0:0])*/

 

我一直在尝试获取 Latte 来生成这样的文件、但到目前为止无法生成这样的文件。 Latte 也没有非常全面的文档。 有人能告诉我需要使用什么函数调用来生成此格式的 C 配置文件吗? 任何帮助都将非常感谢,谢谢!

 

此致、

Tyoma

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Tyoma、

    为了澄清一下、您是否正在寻找如何生成具有启动器件所需的所有 SPI 写入/读取/轮询的配置文件? 如果是这样、您可以按照下面链接的应用手册中的第 9 节进行操作。

    https://www.ti.com/lit/ug/sbau412a/sbau412a.pdf 

    此致、

    David Chaparro