完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个来自马达驱动装置的传感器。在FRIERTOS任务中,我必须使用程序控制来输入一个输入。在处理器读取之前,如何在HW中同步它?我试图避免亚稳。我有时钟CM4时钟,可以用在织物上吗?
以上来自于百度翻译 以下为原文 I have a sensor from a motor driver mechanical device. There is an input I must sample using program control in a FreeRTOS task. How do I synchronize it in HW before it is read by the processor? I am trying to avoid metastability. I there clock CM4 clock that can be used in the fabric? |
|
相关推荐
3个回答
|
|
嗨,安得烈,
我可以问更多的信息吗? 你想同步什么样的信号? 有什么时间限制吗?你需要识别多长时间的脉搏? 基本上,时钟是同步的,因为用于产生UDB中所有时钟的默认时钟源是CKKY-PII,它来自源于M4核心(CKLYFAST)的CKKYHF0。如果大于100MHz,则必须将CKLY-PURI除以2。 亲切的问候, 阿希姆 以上来自于百度翻译 以下为原文 Hi Andrew, May I ask for more information. What kind of signal do you want to synchronize? Any timing restrictions? How long is the pulse you need to identify? Basically the clocks are in synch already as the default clock source used to generate all the clocks in the UDBs is Clk_peri which is derived from Clk_HF0 that also sources the M4 core (Clk_Fast). If it is greater than 100MHz then Clk_Peri has to be divided by 2. kind regards, Achim |
|
|
|
OK UDB是通用数字块,对吗?上面的图形显示了由M4核心使用的PLL输出。然而,它显示100MHz,而我认为M4核心是150 MHz(从数据表)。第二,什么是克拉克?佩里?这在上面的图形中显示为2分频器后的M4时钟。我假设它是时钟外围设备。这意味着我与它同步吗?我抓取一个同步块,同步块的时钟是CKKY-PII? 另外,它可能是我不需要同步器,因为所有输入都已经与处理器时钟同步,亚稳态已经最小化。状态寄存器显示一个时钟。这是干什么用的? 我附上了一个示意图,显示每个输入的同步块。我希望这不是必要的。 WorkStudio01.CyWrk.CaseV01.Zip 23 K 以上来自于百度翻译 以下为原文 Ok UDB is Universal Digit Blocks, correct? The graphic above shows a PLL output used by the M4 core. However, it is showing 100MHz and I thoughtM4 core was 150MHz (from the Datasheet). Second, what is Clk_Peri? This is shown in the above graphic as the M4 clock after a /2 divider. I assume it is clock peripheral. Does this mean I synchronize to it? I grab a Sync block and the clock for the Sync block is Clk_Peri? Also, it could be that I don't need a synchronizer, because all input are already synchronized to the processor clock and metastability is already minimized. The status register shows a clock. What is it for? I have attached a schematic showing a sync block for each input. I am hoping this is not necessary. |
|
|
|
lgjmjx 发表于 2018-10-3 06:44 嗨,安得烈, 是的,UDB =通用数字块。 CKKY-PARI是在示意图中使用的默认引用的时钟。所以,是的,你的描述。 所以不需要同步。 如果寄存器中的位用“粘性”代替“透明”模式,则使用状态寄存器的时钟。在“粘性”模式下,输入在该时钟的上升沿采样,并且在读取寄存器时仅被清除。 PS:是的,150 MHz是M4内核的最大值,上面只是默认值,它们可以在“设计范围资源”“时钟”选项卡中更新。 当做, 阿希姆 以上来自于百度翻译 以下为原文 Hi Andrew, Yes, UDB = Universal Digital Block. Clk_Peri is the clock that is the default reference being used in the schematic view. So yes, to your description. So synchronisation should not be needed. The Clock of the Status registers is used if the bits in the register are used in "sticky" instead of "transparent" mode. In "sticky" mode the input is sampled on rising edge of that clock and only cleared when the register is read. PS: Yes, 150MHz is the max. of the M4 core, above are just the default values and they can be updated in the "Design Wide Resources" "Clocks" Tab. regards, Achim |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3671 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
570浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
384浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 07:48 , Processed in 1.217201 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号