完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好Gianluca,
1)第一个问题: 是一些调用的回调,回调应该在你的配置& icu_config_icucfg中 你应该删除你的主要 2)第二个问题: Arduino-Style中的PulseIn是一种阻塞功能 读取引脚上的脉冲(高电平或低电平)。例如,如果是,等待引脚走,开始计时,然后等待引脚停止计时。以微秒为单位返回脉冲的长度。如果在指定的超时内没有脉冲开始,则返回并返回0。 你的日志太快了: 您应该在记录之前等待一些时间,或者在中断级别记录您的脉冲 明天,我将带上我的HC-SR04并尝试插上SPC560D Discovery Board 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Gianluca , 1) First Problem :
are some callbacks called by and the callbacks should be in your configuration &icu_config_icucfg
you should remove in your main
2) 2nd Problem :
PulseIn in Arduino-Style is a blocking function Reads a pulse (either HIGH or LOW) on a pin. For example, if is , waits for the pin to go , starts timing, then waits for the pin to go and stops timing. Returns the length of the pulse in microseconds.Gives up and returns 0 if no pulse starts within a specified time out. Your log is too fast : you should wait some times before logging or log your pulse at Interruption level Tomorrow , i will bring my HC-SR04 and try to plug on SPC560D Discovery Board Best regards Erwan |
|
|
|
|
|
你好,Erwan,
谢谢你的时间。我已从我的主要删除: 然后我添加了osalThreadSleepMilliseconds(2000);在icuEnable(& ICUD4)之后; 但仍然没有工作。它肯定会很简单,但我是嵌入式编程的新手。 最好的祝福 赞布罗塔。 以上来自于谷歌翻译 以下为原文 Hello Erwan, Thanks for your time. I have removed from my main:
Then I added osalThreadSleepMilliseconds (2000); after icuEnable (& ICUD4);
but still not working. It will definitely be something simple, but I'm a newcomer to embedded programming. Best regards Gianluca. |
|
|
|
|
|
你好Gianluca,
你能否确认你使用的主板(HW)(Pictus Discovery)? 我正在检查您的SIUL配置,请不要犹豫,使用Pinmap向导来配置您的引脚 明天我会尝试使用我的传感器。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Gianluca , Could you confirm your board (HW) used (Pictus Discovery) ? i am checking your SIUL Configuration, do not hesitate to use Pinmap Wizard to configure your pins
I will try with my sensor, tomorrow. Best regards Erwan |
|
|
|
|
|
是。我的主板是SPC560P-DISP。 144针。
是的,pinmap向导要好得多。 谢谢。 最好的祝福 赞布罗塔。 以上来自于谷歌翻译 以下为原文 Yes. My board is SPC560P-DISP. 144 pin. Yes the pinmap wizard is much better. Thanks. Best regards Gianluca. |
|
|
|
|
|
你好,Erwan,
你有新消息吗? 最好的祝福 赞布罗塔。 以上来自于谷歌翻译 以下为原文 Hello Erwan, Have you new news? Best regards Gianluca. |
|
|
|
|
|
你好,
在公司里,他们给我的建议是写一个中断例程。 最好的祝福 赞布罗塔。 以上来自于谷歌翻译 以下为原文 Hello, In company the advice they gave me was to write an interrupt routine. Best Regards Gianluca. |
|
|
|
|
|
你好Gianluca,
这是个好主意。 你应该测量2个中断之间的时间间隔,以便检测“像Pulsein”这样的持续时间。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Gianluca , It is a good idea. you should measure the tick between the 2 interrupts in order to detect the duration ''like Pulsein''. Best Regards Erwan |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1465 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1518 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3664 浏览 1 评论
3856 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2475 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
745浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
675浏览 5评论
722浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
962浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
762浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-9 03:52 , Processed in 0.901102 second(s), Total 88, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4715