[Tinyos-help] About Interrupt handling

Kirak, Hong hokira at gmail.com
Tue Jul 22 16:05:16 PDT 2008


Hi guys,

 

I'm making a communication system using UART0, and it seems UART overrun
error frequently happens.

 

I read some document about UART, and it says if UART interrupt is not fast
enough, that error occurs.

 

I'm doing nothing but a UART transmission, so I'm suspecting CPU is doing
something else when UART is transmitting.

 

And I guess it's related to atomic section or something like that, so my
questions are following.

 

1.       Is atomic section turn off entire interrupt?

2.       If a interrupt handler is defined TOSH_SIGNAL, not TOSH_INTERRUPT,
is it true that interrupt can not be nested? What happens TOSH_SIGNAL
interrupt has occurred during another TOSH_SIGNAL interrupt is on handling?

3.       I can see frequent error packets through UART, is it possible
reduce error rate through UART?

(Down to ideal error rate of UART with specific baud rate)

 

Any advice will be highly appreciated. Thanks.

 

With Kind Regards,

Kirak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080722/598606eb/attachment.htm 


More information about the Tinyos-help mailing list