EmbeddedRelated.com
Forums

Timer & UART with Audio

Started by manu singh May 1, 2011
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 timers and uart togeather?

-Manu


Beginning Microcontrollers with the MSP430

It is very easy to enable all of them. But you need to be careful to handle any of them.

You have only one CPU, and it can only do one instruction at a time. When you try to do many things "at the same time", you still need to do one instruction at a time and make it appear to accomplish those many things effectively "at the same" time.

--- In m..., manu singh wrote:
>
> 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 timers and uart togeather?
>
> -Manu
>
>

First, make sure that you have interrupt handlers for all interrupt sources, e.g. timer interrupts etc.

Stefan
--- In m..., manu singh wrote:
>
> 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 timers and uart togeather?
>
> -Manu
>
>

Stefan Hauenstein wrote:
> First, make sure that you have interrupt handlers for all interrupt sources, e.g. timer interrupts etc.
>

Yes, it may be that. Or that too much is handled in the interrupts and
the stack gets buried. Or an error in an interrupt where it just doesn't
return. Or...

But as there is no clue in the post, who can really say?

Best, Dan.

> Stefan
> --- In m..., manu singh wrote:
>
>> 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 timers and uart togeather?
>>
>> -Manu
>>
>>
>>
>
>