如何在 PIC32 上以毫秒/微秒 delay()
首先,使用 MPLab Harmony Configurator 3 为你的项目启用 CORETIMER 模块。不需要特殊配置。
之后,使用
coretimer_delay_ms.cpp
CORETIMER_DelayMs(uint32_t delay_ms)延迟给定的毫秒数或使用
coretimer_delay_us.cpp
CORETIMER_DelayUs(uint32_t delay_us)延迟给定的微秒数。
Check out similar posts by category:
Electronics, Embedded
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow