Search the Community
Showing results for tags 'uart'.
-
To simplify debugging, I'm contemplating connecting two serial devices (gps - MT3339 and sat-comm - Iridium 9602 ) to the same RX/TX pins on the msp430f5529lp (port pins P3.3 and P3.4). They are never powered at the same time. This uses Serail1 for GPS fixes and Sat-Comm messages, and leaves Serial free for debug. Are there problems with doing this?
- 3 replies
-
- UART
- Two Serial Devices same pins
-
(and 1 more)
Tagged with:
-
I was reading the Family guide, as well as the F5529 guide and could not really determine how power consumption is affected by the UART in Asynch mode. I expect that baud will certainly play a role, as the core voltage must be increased to run at higher frequencies. The thought behind all of this is driven by wanting to keep battery life at a maximum, of course... My GPS/Iridium Satellite comm device is following this basic flow: loop() switch(currentState) case ENABLE_GPS: { Serial1.begin(9600); digitalWrite(GPS_SleepPin, HIGH); //enable the GPS currentState = WAIT_FOR_GPS_FIX
- 1 reply
-
- UART
- Serial.begin()
-
(and 2 more)
Tagged with:
-
I tried to change the settings used by UART for Serial or Serial1 on an MSP432 (stopbits, parity etc.). After hours of detective work I now guess the settings are applied by some code of the wiring framework in the emt432 framework. There is much code, but almost nothing of it is used, as most of wiring and the TI runtime seems to be precompiled to binary libraries like the wiring_msp432.m4fg.lib file. There are no Makefiles, nor any references how those binaries are built as far as I can see. So how to fiddle with anything below the Energia provided API? Do I now need external
-
Hi experts!! I'm a beginner and working on CC3200 LP along with Energia IDE. I'm working on a simple project where I've an external device which has RS485 o/p and I need to fetch the values in specified addr location in that device to CC3200 LP. My doubts are #1) we have external module that has device ID+parameter Address and we need to transmit the value in LP through UART, here I'm not sure how to use the UART function to specifically target device+address and return/get the same.... #2) what I'm looking/exploring is that in above example (UART code which Andy shared here
-
I am using TM4C129 Launchpad launchpad and trying to connect XBee Series 2 (S2C) through UART. Looking into the pinout of TM4C129, I am connecting like below XBee TX <---> RX (UART0) XBee RX <---> TX (UART0) XBee 3.3V <---> pin#41 XBee GND <---> pin#62 I use below code on the LaunchPad at Energia void setup() { Serial.begin(9600); //pinMode(13, OUTPUT); } void loop() { Serial.println('H'); delay(1000); Serial.println('L'); delay(1000); } And the below python code runs on my Mac as a coordinator
-
This is in continuation with this post where I was working with two cc3200 one for transmit second for receive so my Energia code as described in other posted was /* Serial Transmit:*/ and for receive Please note: TX pin (P01) in transmit CC3200 is connected to RX pin (P02) of receiver CC3200 PS: P01 == P1-10 P02 == P1-9 The above is working fine and could see character "c" printed in console Now... when I change the Transmitter code as below where I have replaced "serial1" with "Serial" as shown below ... I'm NOT see any results - what is th
-
I want to resend each character from one UART port to another. Hardware: Lauchpad TivaC EK-TM4C123GXL. First port is the default port that is connected to microUSB on the board. The second port is UART2 (Rx = PD6; Tx = PD7) connected to DB9 through MAX3232:. Power is VBUS - GND. DB9 is now connected to computer through RS232-USB adapter. I communicate with 1st serial port through serial monitor in Energia (ttyACM0). I communicate with 2nd serial port through serial terminal in Linux (ttyUSB0). Code is very simple: void setup() { // initialize ports: Serial.begin(9600); //connecte
-
Hy, I worked on a source half a year ago with an older Energia (I do not know exactly which one.). I was able to acces UartIntHandler and UartIntHandler2() functions directly. As I remember I do not change the content of Energia under OSX. Now I try to modify 1-2 things for example in the startup_gcc.c or hardwareserial.c, but the are not working. Can you help me how could I reach the UART interrupt handlers from Energia? (The setup of UART module worked on CCS or IAR before.) Can I use something like attachinterrupt()?
-
I'm trying to understand the two possible configurations of the headers on the MSP430G2, rev 1.5, at the top near the border between the emulator and the uart. The silk screen seems to indicate that one configuration is appropriate for hardware uart, and the other configuration is appropriate for software uart. I'm wondering, why does it matter? Whether using a software uart or chip with a hardware uart on board, either way doesn't the TX pin of the MSP still need to go to the RX pin of the emulator (likewise for RX-TX) in order to get data back and forth from a PC? And when the d
-
Hi, I am trying to send data through UART from MSP430G2553 to sensorTag CC2650 and then through Bluetooth we are seeong value on BLESCANNER app we are using SPPBLE server program but we are not getting any data on the app .Can any one help me out as i am still stuck on it..
-
hi my friends; i work on the msp430fg439 for my project and it has only one spi/uart channel and i used this channel for sd card operation. Now i want to apply uart operation to my code. how can i make a bit banging uart application? In my code, tx and rx pins are useable but timing pins were used. Thanks for your helping...
-
Hi, I wonder if it is possible to cause a interrupt when receiving serial data. This would have the big advantage to be able to wake up from sleep mode if new serial data is available. By now, serial data is written in the rx buffer even in sleep mode, but afaik it's not possible to notice that in Energia. I found lots of code for CCS for exactly this application, but i'm not able to port it for Energia. Does anybody already has some example code or may help me to make the CCS code working in Energia? Thanks!
- 5 replies
-
- sleep mode
- interrupt
- (and 4 more)
-
I've got an F5229LP app that sets SMCLK to XT2 with a divider of 4. (XT2 = 25Mhz crystal, which is also the source for MCLK) When I initialize the clocks, HardwareSerial no longer produces an accurate Baud Rate, and it breaks terminal communication. I see that HardwareSerial.cpp contains: #define SMCLK F_CPU //SMCLK = F_CPU for now I've tried changing it to F_CPU / 4 but the situation did not improve. Here is my recreation code: (Uncomment initClocks(25000000l); and change HardwareSerial.cpp to see it fail) #include <WString.h> void initClocks(uint32_t mclkFreq); void SerialT
-
Hi there! I am not very much experienced in MSP430 platform. I am kind of stuck in a problem. Let me describe my project goal first. What I want to do is: 1) I will input a letter (suppose "K") via serial monitor to my MSP430G2553, 2) Upon receiving the letter, the launchpad will vary the voltage level a GPIO PIN (let's assume P1.4) based on the input, which is connected to an LED, 3) As the LED blinks based on the input bit pattern (K, ASCII value = 75, Binary equivalent = 01001011), one light dependent resistor will read this variation, which is connected to another Launchpad, and stores
-
Hello! I am a fresh beginner in the domain of embedded systems and this MSP430F5529 is my very first development board. I am now trying to make an ADC conversion and send it through the UART to try a signal treatment algorithm with real-world values. I used an example code in Energia that i modified a little bit: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); // Comment: I see many people preferring the 115200 BR for this board. // Is there a particular reason for this choice? } // the loop routine runs over and over again
-
- MSP430F5529
- ADC
-
(and 1 more)
Tagged with:
-
Hi all, I am trying to control the PWM through UART usb serial at high speed, but the micro seems to pick up the input inconsistently(I am trying to create a 100 micro sec pulse using the PWM, but the micro sometimes does not pick up the input). So i am guessing the best way to do it is via interrupt(when the RX picks up any kind of input ), but I have no idea how to implement one. Can someone provide an example code for such application please? Thanks in advance. My Code: #include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/adc.h" #in
-
Dear Sir/Madam, I am trying to use MSP430 to talk with a wifi module using UART, technically, the msp430G2553 does not need to know the ip address for the wifi module, so the wifi module can be considered as another mcu. I have done the hardware and the calculation of voltage received and also converted to a string value. I can also read the values using hardware UART on serial monitor, but I now wants to send the results to the wifi module and check if the wifi module receives it on socket tools. My code are as below: #include <SoftwareSerial.h> // to the pins used:
-
- MSP430G2553
- UART
-
(and 1 more)
Tagged with:
-
Hi! I've got a launchpad MSP-EXP430G2 rev. 1.5 (with msp430g2553) and I need to use two pair of UART (2xRx and 2xTx). To be more specific, here's what I have to do: PC transmits 'data' to MSP --> MSP process that 'data' --> MSP transmits 'processed data' to another MCU... PC receives 'processed data' from MSP <-- MSP process that 'data' <-- MSP receives 'data' from another MCU... In short: PC -> MSP -> another MCU -> MSP -> PC Is it possible to do this with that launchpad? If it is, could you hint me some examples? I'm completely new with MSP.
-
Hello, I'm currently working on a project involving G2553 MCU and Sparkfun Bluesmirf Silver BT module. I'm programming my MCU using the MSP430 Launchpad as a programmer and Energia IDE. I'm trying to configure the Bluetooth module using the firmware that I upload to the MCU. I connected the MCU's hardware UART pins to the Bluesmirf pins. Pin 1.1 (HW RX) to the module's RX and vice versa. I supply the same voltage to the MCU and the module (supply voltage connected to the breadboard from the Launchpad itself, multimeter shows values at around 3.5V). Bluesmirf's datasheet says the Vcc shoul
-
On the 'Serial Communication' wiki entry, I see that the 'Software UART' case has not been elaborated or explained, unlike the Hardware UART feature available on v1.5 Launchpads. Can it be used to communicate with a Processing sketch running on PC (running Linux) ? Can someone please confirm that they have got the serial communication working (bidrectional) between MSP launchpad ?
- 12 replies
-
- uart
- processing
-
(and 1 more)
Tagged with:
-
I've just started to toy around with Digi's XBee S2 ZigBee modules and my Tiva C-Series Launchpad. The XBees receive all their commands from any attached microcontroller via UART. I'm reading through the TivaWare UART API documentation, and it looks like the only function available to send data takes an ASCII character as an input rather than a hex value. Am I overlooking some other function that would take a hex value as an input, or do I have to convert my string of hex "characters" into ASCII first, then use the UARTCharPut() function?
-
Hi all, I was playing around with the MSP430G2553 and the UART at the weekend, then remembered I had a cheap HC06 bluetooth module. The result being a basic Android app that you can control your launchpad using voice control, it's far from polished but a bit of fun all the same Project tutorial. C code and Android App http://coder-tronics.com/msp430-voice-control-over-bluetooth/ Video demonstration https://www.youtube.com/watch?v=8Z5ixK30Ddc Cheers, Ant
- 5 replies
-
- bluetooth
- msp430g2553
-
(and 2 more)
Tagged with:
-
Hi I am using tm4c123gh6pz UART. I am getting Interrupt but while I enable FIFO and try to get interrupt using following command, UARTFIFOLevelSet(UART0_BASE, UART_FIFO_TX1_8, UART_FIFO_RX1_8); for the Receive, I get interrupt after 2 byte. I think Receive FIFO is 12 bit x 16 FIFO. To get interrupt after each byte I have to disable the FIFO. Is there any other way to keep the FIFO and get interrrupt after each Byte. Please let me know Thanks