n/mcu
Registrarse Iniciar sesión

n/mcu

11 Miembros · 0 En línea

Debate sobre desarrollo embebido con microcontroladores y diseño electrónico

Fijado u/binarydev
Welcome to 单片机

Welcome to our community! This is a space for discussions about 单片机. Feel free to introduce yourself and start conversations.

0 votos a favor3 comentarios
1 / 2
u/binarydev Hace 4 mes.
MSPM0G3507知识库

【ima知识库】MSPM0G3507(地猛星)开发 https://ima.qq.com/wiki/?shareId=45157ce5c8ba7419e5b9a335ca8c60dc9a38f62da03779cdcb64fdee24a80101 把g3507包括引脚分布、原理图、api、数据手册在内的各种资料都收进去了 打电赛的应该会用上🧐

2 respuestas156 vistasu/BearPaw respondió Hace 4 mes.
2
2 comentarios
2 156
Hace 4 mes.u/BearPaw
u/binarydev Hace 6 mes.
中断回调用HAL_Delay延迟卡死原因

写按键驱动的时候封装了一层函数,接收按键枚举和监听事件函数指针,传递给外部中断回调统一处理,习惯性地在监听函数写了HAL_Delay(200),然后就坏菜了 编译下载,按下Confirm,程序卡死 重新回顾了一下NVIC与HAL_Delay的机制,才注意到 HAL_Delay依赖HAL_GetTick获取SysTick计数值来实现延时的时间判断,而HAL_GetTick的值又需要SysTick中断来更新。在优先级更高的中断的回调中调用H…

2 respuestas141 vistasu/Arvin_Leung respondió Hace 6 mes.
1 / 2
中断回调用HAL_Delay延迟卡死原因, imagen 1 de 2
1 / 2
0
2 comentarios
2 141
Hace 6 mes.u/Arvin_Leung

Llegaste al final · 2 temas