Cypress技术论坛
直播中

李倩

7年用户 242经验值
私信 关注
[问答]

找不到EOC状态位的细节

在ADCXARSA.C中,为什么AcdSARIsIsEndithCouthand()调用CyDelayUs(1U)?
我不理解评论/*的意思,等待一个ADC时钟让EOC状态位释放*/。
而且,我找不到EOC状态位的细节。

以上来自于百度翻译


     以下为原文
  In ADC_SAR.c, why dose ADC_SAR_IsEndConversion() call CyDelayUs(1u) ?

I don't understand the meanig of comment
/* wait one ADC clock to let the EOC status bit release */.

And, I can't find the detail of EOC status bit.

回帖(6)

胡书琴

2018-10-25 16:57:57
你好,薰衣草,
EOC状态位将由SAR定序器块更新。因此,当我们试图使用API访问寄存器时,CPU应该等待序列器块释放寄存器。
最佳问候

以上来自于百度翻译


     以下为原文
  Hello Fumio san,
 
The EOC status bit will be updated by the SAR sequencer block. So when we try to access the register using the API, the CPU should wait for the register to be released by the sequencer block.
 
Best Regards,
VSRS
举报

李倩

2018-10-25 17:04:05
引用: EnjoyL 发表于 2018-10-25 15:38
你好,薰衣草,
EOC状态位将由SAR定序器块更新。因此,当我们试图使用API访问寄存器时,CPU应该等待序列器块释放寄存器。
最佳问候

谢谢您的及时回复。
我已经阅读了组件数据表ADCXSARYA SEQ 2.10,因此,我了解EOC/EOF状态位的行为。
我还有一个问题。
我能用API或固件检查EOC信号条件目录而不中断吗?
最好的问候,Fumio Kubo

以上来自于百度翻译


     以下为原文
  Thank you for your prompt reply.
 
I've read the component datasheet ADC_SAR_Seq 2.10.
So, I understood the behavior of EOC/EOF status bit.
 
And, I have one more question.
Can I check the eoc signal condition directory by API or my firmware without an interrupt?
 
Best Regards,
Fumio Kubo
举报

胡书琴

2018-10-25 17:19:08
引用: cmh13 发表于 2018-10-25 15:44
谢谢您的及时回复。
我已经阅读了组件数据表ADCXSARYA SEQ 2.10,因此,我了解EOC/EOF状态位的行为。
我还有一个问题。

你好,薰衣草,
是的,您在AcdSARIsIsEndiffTrices()API中使用了相同的寄存器地址。记住寄存器在读时被清除。对结果进行轮询可能会延迟CPU的其他活动。
最佳问候

以上来自于百度翻译


     以下为原文
  Hello Fumio san,
 
Yes you an do the same register address as used in the ADC_SAR_IsEndConversion() API. Remember the register is cleared on read. Polling for the result might delay other activities of the CPU.
 
Best Regards,
VSRS
举报

李倩

2018-10-25 17:35:25
引用: EnjoyL 发表于 2018-10-25 15:59
你好,薰衣草,
是的,您在AcdSARIsIsEndiffTrices()API中使用了相同的寄存器地址。记住寄存器在读时被清除。对结果进行轮询可能会延迟CPU的其他活动。
最佳问候

谢谢你的回复。我知道如何使用ADC SAR(SEQ)。
因此,我将用“1×AdcSARYA-Seq”和“4×PGA”进行系统设计。“4×PGA”输入用于4个外部传感器。
但是,只有GPIOs可以连接到ADCI SARYSSEQ输入。PGAS输出不能被注入这些。
你能教我这个理由吗?
最好的问候,Fumio Kubo

以上来自于百度翻译


     以下为原文
  Thank you for your reply. I understood how to use ADC SAR (Seq).
 
So, I will make my system design using "1 x ADC_SAR_Seq" and "4 x PGA".
"4 x PGA" inputs are for 4 external sensors.
 
But, Only GPIOs can be connected to ADC_SAR_Seq inputs. PGAs outputs can not be cennected to these.
Could you teach me this reason?
 
Best Regards,
Fumio Kubo
举报

更多回帖

发帖
×
20
完善资料,
赚取积分