software uart-msp430f2111

I’m using msp430f2111. it has one Timer. Already i used one software UART.Shall i add one more Software UART. is it possible?

Software UARTs are entirely code driven. What exactly is your requirement here? If its having two UARTs running concurrently, you’ll want to change processors soon…

Thank you for your’s reply. i need two software uart , one for communication between gps and microcontroller,another for communication between pc and microcontroller. is it possible in msp430f2111.

You are the only one who can answer that question. I can’t see your software.

I’d use a chip with a hardware UART, and do the other one in software.

Leon

so i couldn’t use two software uart.is it?

If you want, but why not make things easy for yourself?

Leon

That’s what i’m telling to my boss.we have msp430f2111.it doesn’t have hardware uart.ok tellme shall i use two software uart.please guide me.

Why do you have to use that chip?

Leon

F2111 has a Timer_A3 module. Running at 16MHz, one probably could implement three half-duplex software ARTs for up to 9600b/s operation. But that takes skills and dedication.

If you need to ask, you probably cannot do it. Use a different approach. If your boss insists, you need a new boss.

leon They have two chip one is msp430f2111 and another one is msp430f2101.And i couldn’t change my boss,i should do the task.Old cow i know this is very very difficult to me.give me a good guidance we can finish it.

naz, it all depends on your software UART implementation. There is no clear cut answer here, except that on each timer interval you do an action on all UARTs.

Thank you theatrus.i’m beginner to this field.give me some idea next what i have to do.

Look at the examples on the TI web site; there is some software UART code using TIMER_A.

Leon

i tried it leon.but they are one only one software uart.our objective is,we have to use two software uart.

You have to write another one.

Leon

leon give me some idea i’ll do it and finish it.

Naz;

I suggest you read through the MSP430 User guide, specifically the see the section on the Timer_A module. Go through your current software UART code, and make sure you understand how it works.

What you’ll want to do, in a nutshell, is copy your current code, except change all the control and capture/compare registers… (I.e. if you’re using, say CCR0 now, you’ll have to switch to use CCR1 and it’s associated control registers and interrupt vector… So for two uarts, you’ll have two chunks of software, one using CCR0 and another CCR1)… Just remember that you have to change a bunch of registers for each CCR.

i’ll try and i’ll let u know

Any one have two software uart example program in msp430