我可以使用MSP-UART EXP430F5529LP从Energia公司为了引脚P3.3和P3.4沟通(RX分别TX)? [英] Can I use UART on MSP-EXP430F5529LP from Energia in order to communicate on pins p3.3 and p3.4 (rx and tx respectively)?

查看:1148
本文介绍了我可以使用MSP-UART EXP430F5529LP从Energia公司为了引脚P3.3和P3.4沟通(RX分别TX)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以为了引脚P3.3和P3.4沟通上使用MSP-UART EXP430F5529LP从Energia公司(Rx和Tx分别)?

Can I use UART on MSP-EXP430F5529LP from Energia in order to communicate on pins p3.3 and p3.4 (rx and tx respectively)?

我已经使用的UART为了通过USB我的PC进行通信。要做到这一点,我用Serial.println()和等。现在,一个UART取,我该如何配置和使用第二个UART去这些引脚?或者,它会更好重新布线我的蓝牙芯片(蓝兆WT32)一些其他引脚?

I already use UART in order to communicate with my PC via USB. To do so, I use Serial.println() and such. Now that one UART is taken, how do I configure and use second UART to go to these pins? Or would it be better to rewire my Bluetooth chip (BlueGiga wt32) to some other pins?

配置不谈,串行似乎并没有允许多个UART。它怎么知道要打印哪个UART?

Configuration aside, Serial does not seem to allow for multiple UARTs. How does it know which UART to print to?

由于某些原因,我无法找到任何手动与WT32交互来自能源公司,或对能源公司与多个UART进行交互。

For some reason, I could not find any manual on interacting with wt32 from Energia, or on interacting with multiple UARTs on Energia.

编辑:发现此链接: http://forum.43oh.com/topic/3942-stellaris-lm4f120-multiple-uart-problem/
只是,顺便说一句,他们说这是行不通的。尽管如此,铅..但它是我的理解,我还是要对那些两个引脚配置UART,如果在所有可能的。

found this link: http://forum.43oh.com/topic/3942-stellaris-lm4f120-multiple-uart-problem/ only, incidentally, they say it does not work. Still, a lead.. but it is my understanding that I still have to configure UART on those two pins, if at all possible.

EDIT2 Energia公司中找到MultiSerial例如:

Edit2 Found MultiSerial example in Energia:

/*
  Multple serial test

  Receives from the main serial port, sends to the others. 
  Receives from serial port 1, sends to the main serial (Serial 0).

  The circuit: 
  * Any serial device attached to Serial port 1
  * Serial monitor open on Serial port 0:

  created 30 Dec. 2008
  by Tom Igoe

  This example code is in the public domain.

*/


void setup() {
  // initialize both serial ports:
  Serial.begin(9600);
  Serial1.begin(9600);
}

void loop() {
  // read from port 1, send to port 0:
  if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte); 
  }
}

现在,这听起来像一个真正的noob问题,但其中的是我的??​​接口Serial1它是在什么地方我引脚?能源公司手册中相应的页面只是一个存根。

Now, this may sound like a really noob question, but where is my Serial1?? Is it somewhere on my pinout? The corresponding page in Energia manual is just a stub.

现在,此链接: http://energia.nu/Tutorial_SerialCallResponse.html 有一个根据引出线到P1.1为TXD,P1.2是RXSD,这是什么,我还没有看到其他地方的记载。我怀疑它是在这个特殊的例子分配,只有我没有看到在code中的分配;另外,我怀疑这是在反向信道,除非开关被接通。困惑!

Now, this link: http://energia.nu/Tutorial_SerialCallResponse.html has a pinout according to which P1.1 is TXD, P1.2 is RXSD, which is something that I have not seen documented elsewhere. I suspect that it is assigned in this particular example, only I don't see the assignment in the code; also, I suspect that this is the backchannel, unless the switch is turned. Confused!

EDIT3:发现,原来你所选择的引脚置为RX和TX SoftwareSerial例子。所以,至少我可能有一个软件解决方案。当然,我想preFER硬件。对于launchboard手册上说的硬件支持多达4个串行端口,但如何?在哪里销?

found SoftwareSerial example that turns pins of your choice into a RX and TX. So at least I probably have a software solution. Of course, I'd prefer hardware. The manual for the launchboard says the hardware supports up to 4 serial ports, but how? Where are the pins?

对不起,我不断加入到这一点。我会整理出来时,有一个解决方案。

Sorry I keep adding to this. I'll tidy it out when there is a solution.

推荐答案

如果你不需要那些UART引脚交谈的主机,你可以删除连接RXD和TXD上主板上的跳线,然后连接这些到你的蓝牙模块

If you dont need those uart pins to talk to the host you can remove the jumpers on that board that connect rxd and txd and then connect those to your bluetooth module.

这篇关于我可以使用MSP-UART EXP430F5529LP从Energia公司为了引脚P3.3和P3.4沟通(RX分别TX)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆