Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]:更快的定时器 #7

Open
huayue0405 opened this issue Mar 29, 2024 · 5 comments
Open

[Feature]:更快的定时器 #7

huayue0405 opened this issue Mar 29, 2024 · 5 comments
Assignees

Comments

@huayue0405
Copy link

Feature description

目前micropython 0.5版中的Timer频率最高为1k,k230的主频都在800M以上,Timer能不能更快,以完成一些实时性较高的任务?

Want resolve what problem

No response

Anything else

No response

@wycwyhwyq
Copy link
Member

目前micropython 0.5版中的Timer为软件timer,软件timer精度与系统tick相关,rtt系统tick是1ms,所以软件timer最高频率为1k。硬件timer还未支持,后续版本将会支持。

@huayue0405
Copy link
Author

目前micropython 0.5版中的Timer为软件timer,软件timer精度与系统tick相关,rtt系统tick是1ms,所以软件timer最高频率为1k。硬件timer还未支持,后续版本将会支持。

CanMV-K230_micropython_v1.0_sdcard_v1.6_nncase_v2.8.3.img.gz
该版本镜像还未支持硬件timer

同时软件timer能支持比较精准的定时频率为多少,例如设置600Hz 实际输出为930~960Hz ,软件定时器能被哪些参数整除?

@PassXml
Copy link

PassXml commented Aug 23, 2024

几个月过去了。。。

@wycwyhwyq
Copy link
Member

wycwyhwyq commented Aug 30, 2024

目前micropython 0.5版本中的Timer为软件定时器,软件定时器精度与系统tick相关,rtt系统tick为1ms,所以软件定时器最高频率为1k。硬件定时器负载支持,后续版本将会支持。

CanMV-K230_micropython_v1.0_sdcard_v1.6_nncase_v2.8.3.img.gz 该版本镜像还未支持硬件timer

同时软件定时器能支持比较精确的定时频率为多少,例如设置600Hz实际输出为930~960Hz,软件定时器能被哪些参数整除?

jPdxunqykX

@huayue0405
Copy link
Author

目前micropython 0.5版本中的Timer为软件定时器,软件定时器精度与系统tick相关,rtt系统tick为1ms,所以软件定时器最高频率为1k。硬件定时器负载支持,后续版本将会支持。

CanMV-K230_micropython_v1.0_sdcard_v1.6_nncase_v2.8.3.img.gz 该版本镜像已支持硬件定时器
同时软件定时器能支持比较精确的定时频率为多少,例如设置600Hz实际输出为930~960Hz,软件定时器能被哪些参数整除?

jPdxunqykX

硬件定时器的使用参考官网好像并没有更新,将定时器设置为0~5好像会报错的样子,有没有具体硬件定时器的使用说明呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants