完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在CY8CITK-01开发包中编译了UARTHARXRX.CYWRK示例,并且在使用RS232通过“超级终端”发送字符时无法使其工作。我已经确认UART在接收到一个字符(通过将信号输出到I/O引脚)时产生RX中断,但是ISR例程永远不会被调用。这是一个已知的问题吗?有什么想法可能引起这个问题?谢谢。
以上来自于百度翻译 以下为原文 I've compiled the UART_Rx.cywrk example in the CY8CKIT-001 development kit and have been unable to get it working while sending characters over RS232 using 'HyperTerminal'. I've confirmed the UART generates a RX interrupt upon receiving a character (by bringing the signal out to a I/O pin) but the ISR routine never gets called. Is this a known problem? Any ideas what might be causing the problem?? Thanks. |
|
相关推荐
2个回答
|
|
嗨,Johnk,
请确保在使用RS232进行通信时采取以下措施: 1)当使用超终端时,选择正确的COM端口。 2)开发工具包上的跳线J10关闭,以便为RS232供电。 3)由于能够在中断上观察脉冲,中断应该使用“CyGalAcActuable”来启用。 4)在UART组件的配置框中,应该检查接收到的中断“RX on字节”。 5)在ISR中,UART状态寄存器必须被读取以清除中断,以便下一个接收字节也可以触发中断。 让我们知道这是否有帮助。 当做, DASG 以上来自于百度翻译 以下为原文 Hi Johnk, Please ensure that the following measures are taken while communicating using RS232: 1) When Hyperterminal is used, the correct Com Port is chosen. 2) Jumper J10 on the Developement Kit is closed in order to power the RS232. 3) Since you are able to observe the pulse on interrupt, the interrupts should be enabled using 'CYGlobalIntEnable'. 4) In the configuration box of UART Component, the Interrupt 'RX- On Byte Received' should be checked. 5) In the ISR, the UART status register must be read to clear the interrupt so that the next received bytes can also trigger the interrupt. Let us know if this helps. Regards, dasg |
|
|
|
叫“CyGalalActuable”为我做了这件事。在任何地方都没有看到。
下面是我的init函数的一个例子: 无效InitIsrRoutine(空) { iSruUARTHARXXSTART(); 细胞可染的;/ /宏的 } 以上来自于百度翻译 以下为原文 Calling "CYGlobalIntEnable" did it for me. Didn't see that in the docs anywhere. Here is an example of my init function: void InitIsrRoutine(void) { isr_UART_RX_Start(); CYGlobalIntEnable; //macro } |
|
|
|
只有小组成员才能发言,加入小组>>
738个成员聚集在这个小组
加入小组1970 浏览 1 评论
1727 浏览 1 评论
3494 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1660 浏览 6 评论
1439 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
205浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
109浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
311浏览 2评论
262浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
447浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-13 11:15 , Processed in 0.556666 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191