保证单片机与计算机之间的通信

2024-04-19 16:45:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在我的微控制器(psoc5lp)和PC(Python程序)之间实现一种通信方式。我是用USB+pingpongdma+ADC做的。你知道吗

总之,我有两个缓冲区。DMA负责一次填充两个。你知道吗

当它完成一个填充后,USB组件应该访问它并发送其中存储的数据。你知道吗

同时,DMA应该开始填充另一个缓冲区,以便在USB完成第一次传输时就可以进行传输了。你知道吗

我的问题是:

I can't figure out a way to synchronize the Python side with the PSoC side, i.e., I can't time the moment that my Python code is waiting for data with the moment the PSoC is sending it.

有人能帮我吗?!(如果我不够清楚,请说)


Tags: the程序iswith方式cansideusb