EmbeddedRelated.com

Crosstalk between UART0 and UART1 - it is possible?

Started by merapcb in MSP43015 years ago 1 reply

I have a board where I was, till I discovered the issue, injecting 5v to the UARTs of the MSP (newbie oversight, I know). The electrical issue...

I have a board where I was, till I discovered the issue, injecting 5v to the UARTs of the MSP (newbie oversight, I know). The electrical issue has been corrected (with MAX3232 for one UART and resistive divider for Rx of the other, Tx not used). Code downloads and runs on the MSP and UART1 functions correctly. - BUT - It seems that data being sent from UART1 is being *received* at UART...


UART Baud rate help

Started by Andy in MSP43017 years ago 2 replies

I am using the MSP430F2274 with IAR kickstart and use FET-Pro430 to download. I am trying to use the UART to send a message accross to...

I am using the MSP430F2274 with IAR kickstart and use FET-Pro430 to download. I am trying to use the UART to send a message accross to my computer. My following program works and sends the message to the computer, but it glitches a lot on the recieving side. It overwrites and forgets characters a lot. I have taken most of the code from the sample programs from TI.com. My main question is...


UART processing string

Started by hc08jb8 in MSP43018 years ago 8 replies

Hello Guys I would like to implement a simple set of application level commands that would invoke certain functions on the MSP via the UART....

Hello Guys I would like to implement a simple set of application level commands that would invoke certain functions on the MSP via the UART. The PC will send the command codes and read back data from the MSP. I would like some help on the data transfer technique. I have got the communication going using interrupt mode, so detecting a single char on the MSP is no issue, I am confused w


9600 baud UART & 32kHz

Started by bergy50us in MSP43020 years ago 10 replies

I want to use a UART at 9600 baud with a 32kHz crystal on my system. My question is two parts: 1)has anyone done this in production? (the bits...

I want to use a UART at 9600 baud with a 32kHz crystal on my system. My question is two parts: 1)has anyone done this in production? (the bits timing errors peak at well over 10% - do connecting systems have trouble with that?) 2)Why does TI recommend $4A in the modulation register? $52 seems to produce less error. I've already sync'd the DCO to the 32kHz and I know that can work. But I d


Calculating Modulation - uart

Started by johntran951 in MSP43018 years ago 2 replies

Hi, i am wondering how do you calculate the modulation for uart in the code below? this is an example code from AQ430. In another...

Hi, i am wondering how do you calculate the modulation for uart in the code below? this is an example code from AQ430. In another example using a 3.58Mhz at 9600 there was no modulation. i am using the MSP430F149. #include void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT UCTL0 = CHAR; // 8-bit character UTCTL0 = SSE


interesting SPI and UART communication problem

Started by yvancastilloux in MSP43015 years ago 5 replies

Hi all, I need some insight to figure out the cause of the problem. I hope this might help other people as well. Here it is: I have an...

Hi all, I need some insight to figure out the cause of the problem. I hope this might help other people as well. Here it is: I have an embedded system, based on the x1612 MCU running at 8 MHz, that communicates via SPI and UART with two external modules. These two modules both initiate the communication. I would like to have my module to be able to be waken up by an interrupt in both cas...


UART and 32,768khz crystal

Started by buffne01 in MSP43020 years ago 1 reply

Hello, is it possible to reach more than 9600baud with the uart and 32,768khz crystal ? I really need 115200baud and this 32khz crystal. Is it...

Hello, is it possible to reach more than 9600baud with the uart and 32,768khz crystal ? I really need 115200baud and this 32khz crystal. Is it possible and if yes how much is the difference to 115200baud ? If not how fast is the communication with I2C bus ? Thanks a lot. Regrads, Gabi


UCARXBUF and UCBRXBUF

Started by xerafian in MSP43015 years ago 4 replies

Hi, as you know i'm working with a msp430F2272 making a datalogger for temperature... My doubt today is that if i can use the UART module and...

Hi, as you know i'm working with a msp430F2272 making a datalogger for temperature... My doubt today is that if i can use the UART module and the USCI (in I2C mode) to communicate 2 diferent things with the msp430, i will be sharing the interrupt service routine? The msp has 2 pin to the UART module (pins 3.4 and 3.5) and another 2 pin for USCI (pins 3.1 and 3.2)... so i understand that is p...


Timer & UART with Audio

Started by manu singh in MSP43013 years ago 3 replies

Dear All, I am working with MSP430F5419. I am writing program where i have to use all timers of MSP430. RTC is using for Real time clock....

Dear All, I am working with MSP430F5419. I am writing program where i have to use all timers of MSP430. RTC is using for Real time clock. Watchdog using for switch debounce. Apart from that i m using Audio playback for messages (using timer0) and UART with 115200bps. My problem start when i an enabling any other timer then program hangs after some time. Can anybody help me on how to enable all ...


MSP powers on from UART lines! - ?!?

Started by merapcb in MSP43015 years ago 7 replies

I am baffled by a problem that (to me) is very strange. The setup is a simple board with a MSP430 on it, and the only other IC is a MAX232....

I am baffled by a problem that (to me) is very strange. The setup is a simple board with a MSP430 on it, and the only other IC is a MAX232. There are separate 5v and 3.3v rails. When I power on the 5v rail (*only*) for the MAX232, and connect the Tx/Rx lines of the MSPs UART (UART1) to the MAX232, a voltage appears on the Vcc pins of the MSP! (3.8v or so!). Meaning, there is no voltage ap...


Having problems with UART P3.4 (UTXD0) on MSP430F149

Started by owaiscareer in MSP43018 years ago 4 replies

Hi I am evaluating the MSP430 for a new design. To get started, I'm trying to put up a simple link between the micro and the computer using...

Hi I am evaluating the MSP430 for a new design. To get started, I'm trying to put up a simple link between the micro and the computer using the code below. THis is a 1200 baud link using the supplied 32K crystal. Needless to say I do not see any of the 0xaa characters on the PC terminal. (i have an rs232 transceiver max2232 between the micro and the computer uart). This transceiver work


{MSP430} conflict between USART and SPI

Started by kalyani lagidi in MSP43018 years ago 6 replies

hi , i'm using msp430f149 with both the uart's connected to other outside interfaces. i want to interface a FRAM which works on spi to...

hi , i'm using msp430f149 with both the uart's connected to other outside interfaces. i want to interface a FRAM which works on spi to msp430f149. My doubt is how will i manage my system when in spi mode if i get any command on uart line. In user manual, page 290 he mentions that Data written to UxTXBUF when UTXIFGx = 0 and USPIEx = 1 may result in erroneous data transmission. ...


uart on DCO clk.

Started by Martijn Broens in MSP43021 years ago 3 replies

Hi Bruce, Steve and others, Could you guys help me out? As you know I'm trying to build a uart running on the DCO ? I've got I it running but...

Hi Bruce, Steve and others, Could you guys help me out? As you know I'm trying to build a uart running on the DCO ? I've got I it running but there's one small thing I don't get. For 9600 Bd II use the following settings: /* * 9600 BD settings */ #ifdef __9600BD__ // tested and OK #define Bitime_5 0x40 // 0.5 bit length + small a


Uart Software using Timer_A Library from TI

Started by ferdinando_terada in MSP43015 years ago

hey guys, i'm with a problem using the TI's library to create a UART by...

hey guys, i'm with a problem using the TI's library to create a UART by software (http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa307a). I'll put my code for you to see: --------------------------------------------------------------------- #include "msp430x22x4.h" #include "ta_uart.h" int callBack( unsigned char c ); void main (void) { WDTCTL = WDTP...


UART Problem

Started by SoneR in MSP43015 years ago 7 replies

Hi, I am using MSP2370 and I am experiencing a UART problem... After initializations the code runs in an infinite loop, as it...

Hi, I am using MSP2370 and I am experiencing a UART problem... After initializations the code runs in an infinite loop, as it is expected... Interestingly, while debugging, if I put a breakpoint just before the infinite loop, RX-TX communication works perfectly, however if I debug without breakpoint, the code does not come into ISR and it cannot recieve any data - if I apply power to the...


Multiplexing between SPI/UART on USART0

Started by larstoref in MSP43019 years ago 2 replies

I am using a MSP430F149 on a Olimex developing board. I have a serial dataflash and my rs232 connected to the USART0, and i want to multiplex...

I am using a MSP430F149 on a Olimex developing board. I have a serial dataflash and my rs232 connected to the USART0, and i want to multiplex between those. Im doing something like this: initUart0(); uart0_tx(); initSPI0(); spi0_rx(); initUart0(); uart0_tx(); The first transmission on the uart is ok, then i change to spi, and get some data from the serial flash. Then i switch back to th


Problem with USCIA0_TX interrupt for MSP430F2418

Started by ti2tt in MSP43015 years ago 8 replies

Hello Forum members, I am using MSP430F2418 with CrossStudio for my project. I have configured USCIA0 for UART mode. When I debug the code, I...

Hello Forum members, I am using MSP430F2418 with CrossStudio for my project. I have configured USCIA0 for UART mode. When I debug the code, I found that the ISR for UART transmit is served all the time and the code remains in treat_transmitted_frame() routine and other code from main while loop does not get executed. If I does not enable TX interrupt in InitUART0, the while loop in ma...


uart tx dropping output

Started by netnimble in MSP43018 years ago 5 replies

Hello, I'm doing uart output, and it works properly about 99% of the time. But every once in a while, I am losing half a line of output. I've...

Hello, I'm doing uart output, and it works properly about 99% of the time. But every once in a while, I am losing half a line of output. I've tried to isolate the problem by simplifiing the program to just be a loop outputting chars on uart0. I count the number of characters output via my u0putc() routine, the number of tx interrupts, and the number of characters output directly (not buffer


CP2102 and MSP430F1611

Started by Gang Xu in MSP43014 years ago 8 replies

I connected TXD and RXD of CP2102 to RXD0 and TXD0 of F1611 respectively. After the driver is installed, I got a virtual COM port on my PC. Then...

I connected TXD and RXD of CP2102 to RXD0 and TXD0 of F1611 respectively. After the driver is installed, I got a virtual COM port on my PC. Then I opened HyperTerminal (HT). I typed character 'U' and I am supposed to get 'U' back from MCU's UART interrupt routine. But nothing happened in HyperTerminal. Then I tried to connect TXD and RXD of CP2102 to a UART-RS232 converter chip (ST3232) wh...


OUTPUT UNIT IN MSP430F1121

Started by janko20022001 in MSP43021 years ago 9 replies

Hi All, couple days ago I started to work on aplication (based on MSP430F1121) where I need to implement a UART 9600 baud to comunication...

Hi All, couple days ago I started to work on aplication (based on MSP430F1121) where I need to implement a UART 9600 baud to comunication with peripherals. Idea I get from slaa078a.pdf where describes an implementing a UART function with TimerA3. At first I decide to write piece of CODE for transmit only. I get a file 11x1_uart1.s43 from package slaa078a.zip and remove a part for rece