完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
现在我用PSoC6通过UART连接其他的板。董事会只有四条线,即VCC,GND,RX(GPIO)和Tx(GPIO)。该板使用TX作为GPIO唤醒PSoC6。同时,董事会使用RX作为GPIO唤醒。董事会来自其他公司,我无法修改。 是的psoc6低功耗为深睡眠。UART中断不能唤醒PSOC6从深度睡眠。因此,我希望多psoc6。 我使用P9〔0〕和P9〔1〕的PIN。 总的来说,P9 [ 0 ]配置GPIO输入。然后,董事会可以唤醒psoc6通过GPIO中断从深度睡眠。后醒来,P9 [ 0 ]需要配置UART RX从而获得董事会。 当需要发送给董事会,P9 [ 1 ]配置GPIO输出叫醒板。然后,P9 [ 1 ]需要配置UART发送,发送到板。 我想知道这种情况下是可行的吗?如何实现这一目标? 你及时的帮助将不胜感激! 谢谢, 剑轩 以上来自于百度翻译 以下为原文 Hi, Now I use PSoC6 to connect other board by UART. The board only has four lines, namely, Vcc, GND, Rx(GPIO) and Tx(GPIO). The board uses Tx as GPIO to wake up PSoC6. Meanwhile, the board use Rx as GPIO to be waken up. The board is from other company, I cannot modify. The PSoC6 is in deep sleep in order for low power consumption. UART interrupt cannot wake up PSoC6 from deep sleep. Thus, I wish to multiplex PSoC6. I use pins of P9[0] and P9[1]. In general, P9[0] is configed as GPIO input. Then, the board can wake up PSoC6 by GPIO interrupt from deep sleep. After waked up, P9[0] need to configed as UART Rx so as to receive from the board. When need to transmit to the board, P9[1] is configed as GPIO outpout to wake up the board. Then, P9[1] need to be configed as UART Tx so as to transmit to the board. I want to know whether this case is feasible? How to achieve the goal? Your timely support would be highly appreciated! Thanks, Jianxuan |
|
相关推荐
2个回答
|
|
嗨,简轩,
是的,这是可行的。请参阅所附的演示代码,演示如何修改UART收发引脚GPIO为一般从DSM回来后,然后配置UART的功能。 UARTAI Prtff1CyrjJavaSeV01.Zip 1.4 MB 以上来自于百度翻译 以下为原文 Hi Jianxuan, Yes, it is feasible. Please refer to attached demo code, which demonstrates how to modify UART rx/tx pins to general GPIO for wake up from DSM, and then configure it back for UART functionality. |
|
|
|
shide87812 发表于 2018-8-19 00:42 嗨,佛恩, 谢谢你的回复! 我想把你的代码演示了我的申请,但失败了。 P9〔0〕被配置为GPIO。psoc6可以唤醒从沉睡中。 然后我改变了P9 [ 0] UART接收,但psoc6无法获得董事会。 P9〔1〕被配置为GPIO。它可以唤醒董事会。 然后我改变了P9 [ 1 ] uart TX,但psoc6不能正确传达,即董事会有乱码。 我仍然在努力去实现目标。 谢谢, 剑轩 以上来自于百度翻译 以下为原文 Hi fwan, Thanks for your reply! I am trying to porting your demo code to my application, but failed. P9[0] is configured as GPIO. PSoC6 can be woken up from deep sleep. Then I changed P9[0] to UART Rx, but PSoC6 cannot receive from the board. P9[1] is configured as GPIO. It can wake up the board. Then I changed P9[1] to UART Tx, but PSoC6 cannot transmit correctly, namely, the board got messy code. I am still trying to achieve the goal. Thanks, Jianxuan |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2102 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
564浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
418浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
911浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 09:12 , Processed in 0.943541 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号