完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,在工厂测试(板级-我们有几个未连接的端口),我们想检测GPIOS上的焊接问题。这样做的一个好方法是遍历所有未连接的GPIOs,设置其中一个输出(数字高),并在其余部分中读取(它们都应该是0)。然而,为了做到这一点,我们需要能够动态地重新配置端口方向和驱动强度。运行时是否可行?我们需要能够把一个输入引脚到一个输出引脚,反之亦然。谢谢,雅各伯
以上来自于百度翻译 以下为原文 Hello, During factory testing (on board level - where we have several unconnected ports) we'd like to detect soldering issues on GPIOs. One neat way to do this is to iterate over all the unconnected GPIOs, set one of them to output (digital high), and read in the rest (they should all be 0). However, in order to do this we need to be able to dynamically reconfigure the port direction and drive strength. Is this possible during runtime? We need to be able to turn an input pin to an output pin, and vice versa. Thanks, Jacob |
|
相关推荐
3个回答
|
|
您可以随时更改引脚驱动模式。请参阅PIN数据表、PixStDeDrimeDead()API和驱动模式常量。
鲍勃 以上来自于百度翻译 以下为原文 You may change the pins drive mode at any time. See pin datasheet, Pin_SetDriveMode() API and the drive mode constants. Bob |
|
|
|
是的,但这不会改变方向,是吗? -雅各伯 以上来自于百度翻译 以下为原文 Yes, but that won't change the direction, will it? - Jacob |
|
|
|
只要您不禁用PIN配置中的输入缓冲器,引脚将被输入和输出。所以你可以随时读取引脚。输出应配置为“高阻抗数字”阅读时。 鲍勃 以上来自于百度翻译 以下为原文 As long as you don't disable the input buffer in pin's configuration the pins will be input and output. So you can read the pins at any time. Output should be configured as "high impedance digital" when reading. Bob |
|
|
|
只有小组成员才能发言,加入小组>>
713个成员聚集在这个小组
加入小组1888 浏览 1 评论
1637 浏览 1 评论
3392 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1556 浏览 6 评论
1371 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
170浏览 2评论
170浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
304浏览 2评论
323浏览 1评论
45浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-3-28 20:49 , Processed in 0.610713 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 深圳华秋电子有限公司
电子发烧友 (电路图) 粤公网安备 44030402000349 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号