Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Ads

Discussion Groups

Discussion Groups | MSP430 | Tx and RxBUF0 no response

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

Tx and RxBUF0 no response - u_siddiqi - Sep 22 0:55:40 2008

Hi,

I have a question. I am new on this controller and in embedded
programming for that matter, but i have run in on an issue with the
MSP 430F1610. I had programmed it in C using the FET tool for
opening/closing switches on a PCB and communicating on the USART0
through hyperterminal. For the init function i used the sample
program's USART functions as is. In the beginning, the whole thing
worked quite well, and the terminal program i set up was able to
communicate with the processor and perform the actions required.
However, now for some reason, the Rx interrupt does not seem to be
working, like when i send a command through hyperterminal it doesnt
recognize it. I have examined the pins on the processor and on the PCB
to ensure that it does recieve the right signals via RS232 interface,
but not sure what happens from there on. All i know is that the
program runs well in debugger mode, but does not recognize the Rx
interrupt. Can anyone please help in what might be the problem here?

My guess in what went wrong is that I used MSP430x16x.h file in the
beginning and then later on used a MSP430x14x.h for a sample program
on the same processor for which it did not work and then i tried to go
back to MSP430x16x.h and since then it hasnt worked like it used to.

Any help would be much appreciated.

Thanks
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: Tx and RxBUF0 no response - Rick Low - Sep 22 20:53:00 2008

--- In m...@yahoogroups.com, "u_siddiqi" wrote:
>
> Hi,
>
> I have a question. I am new on this controller and in embedded
> programming for that matter, but i have run in on an issue with the
> MSP 430F1610. I had programmed it in C using the FET tool for
> opening/closing switches on a PCB and communicating on the USART0
> through hyperterminal. For the init function i used the sample
> program's USART functions as is. In the beginning, the whole thing
> worked quite well, and the terminal program i set up was able to
> communicate with the processor and perform the actions required.
> However, now for some reason, the Rx interrupt does not seem to be
> working, like when i send a command through hyperterminal it doesnt
> recognize it. I have examined the pins on the processor and on the PCB
> to ensure that it does recieve the right signals via RS232 interface,
> but not sure what happens from there on. All i know is that the
> program runs well in debugger mode, but does not recognize the Rx
> interrupt. Can anyone please help in what might be the problem here?
>
> My guess in what went wrong is that I used MSP430x16x.h file in the
> beginning and then later on used a MSP430x14x.h for a sample program
> on the same processor for which it did not work and then i tried to go
> back to MSP430x16x.h and since then it hasnt worked like it used to.
>
> Any help would be much appreciated.
>
> Thanks
>
When you send a character to the MSP430, is the interrupt flag URXIFG0
being set in register IFG1? Also, is the interrupt enabled, e.g. is
the URXIE0 bit set in register IE1?

If you have recompiled your whole application with the correct header
file, I don't think that would be the issue here. Both those parts
have USART0 modules and all the bits in the special function registers
are in the same locations.

--rick

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Tx and RxBUF0 no response - Rick Low - Sep 22 21:00:36 2008

--- In m...@yahoogroups.com, "u_siddiqi" wrote:
>
> Hi,
>
> I have a question. I am new on this controller and in embedded
> programming for that matter, but i have run in on an issue with the
> MSP 430F1610. I had programmed it in C using the FET tool for
> opening/closing switches on a PCB and communicating on the USART0
> through hyperterminal. For the init function i used the sample
> program's USART functions as is. In the beginning, the whole thing
> worked quite well, and the terminal program i set up was able to
> communicate with the processor and perform the actions required.
> However, now for some reason, the Rx interrupt does not seem to be
> working, like when i send a command through hyperterminal it doesnt
> recognize it. I have examined the pins on the processor and on the PCB
> to ensure that it does recieve the right signals via RS232 interface,
> but not sure what happens from there on. All i know is that the
> program runs well in debugger mode, but does not recognize the Rx
> interrupt. Can anyone please help in what might be the problem here?
>
> My guess in what went wrong is that I used MSP430x16x.h file in the
> beginning and then later on used a MSP430x14x.h for a sample program
> on the same processor for which it did not work and then i tried to go
> back to MSP430x16x.h and since then it hasnt worked like it used to.
>
> Any help would be much appreciated.
>
> Thanks
>

Ah, almost forgot... What's the state of the global interrupt enable
flag in the processor status register?

--rick

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )