Cypress技术论坛
直播中

宣苗

8年用户 184经验值
私信 关注
[问答]

怎么检查UART是否正常运行

我使用CyACIT-00 PSoC开发工具包…为了检查UARtis是否运行,我尝试将ARDUINO RX TX直接连接到TX RX的工具包,甚至地面保持共同仍然没有沟通两者。什么是可能的错误…尽快答复

以上来自于百度翻译


     以下为原文
  I am using CYACKIT-00 PSOC development kit... and to check whether UART is functioning or not i tried connecting arduino Rx-Tx directly to Tx-Rx of kit and even the ground are kept common still there is no communication between the two.. what could be the possible error... reply ASAP..thnks

回帖(13)

宣苗

2019-4-3 12:25:58
也用DSO我检查了WHTR TX正在传输任何…..但是我的CNT C NY波形显示在DSO上,这意味着PIN IM编程作为发射机没有被配置为TX正确..所以WHR我应该做的变化…?

以上来自于百度翻译


     以下为原文
  also with DSO i checked whthr TX is trannsmitting anythning..but i cnt c ny waveform displayed on DSO that mean the pin i m programmin as transmitter is not configured as TX properly..so whr all should i make the changes..?
举报

马昱

2019-4-3 12:40:30
嗨,普里扬卡,
在全双工或半双工模式下使用UART吗?
1)您需要将PSoC的TX连接到ARDUNO的RX和PSOC的RX到ARDUNO的TX。
2)接地引脚(Db9连接器的引脚5)应连接到ARDUINO板的接地。
3)确保两个收发信机的波特率是相同的(如9600, 19200等)。
4)您可以通过与PSoC Creator一起出货的UART示例项目的实验来开始。在组件目录中右击UART组件并选择“查找示例项目”。您可以根据您与ARDUNO接口的要求修改示例项目。

以上来自于百度翻译


     以下为原文
  Hi PRIYANKA,
     
    Are you using UART in Full Duplex or Half Duplex mode?
    1) You need to connect the Tx of PSoC to Rx of Arduino and Rx of PSoC to Tx of Arduino.
    2) The ground pin (Pin 5 of DB9 connector) should be connected to the ground of Arduino board.
    3) Make sure that the baud rate of both the transceivers are the same (eg 9600, 19200, etc).
    4) You can get started by experimenting with the UART example project shipped along with PSoC Creator. In the Component Catalog right-click on the UART Component and select "Find Example Project". You can modify the example project according to your requirement for interfacing with Arduino.
举报

马昱

2019-4-3 12:56:05
普里扬卡
以下是一些可以帮助你缩小错误的问题:
1)假设你使用的是cy8ckit-001工具包,你直接使用的端口引脚(TTL)或使用RS232电平(利用车载MAX232和DB9)通信?如果您使用的是RS232,然后跳线J10(rs232_pwr)目前接近DB9连接器应关闭。
2)引脚是否设置为正确的驱动模式?TX应该是一个数字输出引脚与“强驱动”模式。Rx Pin应与“高阻抗数字”模式的数字输入引脚。

以上来自于百度翻译


     以下为原文
  PRIYANKA,
     
    Here are some of the questions which will help you narrow down on the error:
    1) Assuming that you are using CY8CKIT-001 kit, are you using the port pins directly (TTL Logic) or using the RS232 voltage level (utilizing the on-board MAX232 and DB9) for communication? If you are using RS232, then the jumper J10 (RS232_PWR) present close to the DB9 connector should be closed.
    2) Are the pins set to the right drive modes? The Tx Pin should be a Digital Output pin with a "Strong Drive" mode. Rx Pin should be a Digital Input pin with "High Impedance Digital" mode.
举报

宣苗

2019-4-3 13:03:20
你好。。我们不使用任何电压转换器(Max 23)。我们直接连接RS232 PSoC到GSMmodule的RS232。

以上来自于百度翻译


     以下为原文
  hi.. we r not using any voltage converter(MAX232). We r directly connecting RS232 PSOC to RS232 of GSM module..
举报

更多回帖

发帖
×
20
完善资料,
赚取积分