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.

[参考译文] AFE4300:如何将 SPI 时钟与器件时钟同步?

Guru**** 2530950 points
Other Parts Discussed in Thread: AFE4300

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

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/886217/afe4300-how-do-i-synchronize-spi-clock-with-device-clock

器件型号:AFE4300

你好。 我有疑问。

现在、我要尝试执行 AFE4300数据表的8.1.3。

我在这里有疑问。

我不太理解第2段中"将 SPI 时钟与器件时钟配合使用"的含义。

以下是我的代码。

SPI 通信时钟当前使用1MHz。

如何同步它? 请告诉我更多详细信息。

void IQ_mode_measure (void)
{
AFE4300_write (address_IQ_mode_enable、0x08、0x00);//开启 IQ 模式、关闭 FWR 模式

signed long measure_i=0;
signed long measure_Q=0;
signed int Magnitude = 0;

if (UART_flag=1)
{
send_data (0xFF);
send_data (0xFF


);send_I = 0x5;int (int);if}<int (int);if (int (int) i++)//频率更改
{
for (int j=0;j<3;j++)//校准更改
{


ACT (j);// 0 =测量、1 =参考1、2 =参考2

frequency_set_up (i);// 1 = 8k、2 = 16k、3 = 32k、4 = 64k

//测量2、000///I = 0xETER_CONTRA用于
0xEART_READC_REAGEMENT/ 0xE4300*


1
、0xEART/ RETER0_CONTRACT_RESETY_RESETY_REAGEMENT/ 0xE4300/ 0xEART/ 0xEART/ 0xEART/ 0xE43001、0_RESET_RESET_RESETY_REAGEN //单次触发
while (rdychk=0)//如果 rdy 更改
{
}
rdychk=0;
read_register (address_adc_data_result);

measure_i =(long) highter256 +(long) lowvalue;
if (uart_flag=1)
{
send_data (highvalue);
send_data (




long)= 0x65_reset_rq_r000=/rq_resume000=0+(low-enq_resume_rendority=0x65_resumage=/r000=0+)









;while (rq_reset_resum_rend_r&rendority/rq_r&ning_resumage= 0x65_resumage=/r&ning_det&rq=/rq=1);while (1)/rq_reset&now_reset&r&r&now_reset&ning_det&r&r&rq=0=/rq=/rq=/rq=/r








if (j=0)
{
if (measure_i>=32768)
{
measure_i =(measure_I-65536)*-1;
}
否则(measure_Q>=32768)
{
measure_Q =(measure_Q-65536)*-1;
}
Magnitude = sqrt ((measure_i_measure_i)+(measure_Q =(measure_65536)*-1);

}测量值})}