cancel
Showing results for 
Search instead for 
Did you mean: 

ISR parameter

Posted on October 03, 2005 at 10:21

ISR parameter

1 REPLY 1
Posted on October 03, 2005 at 10:21

Hello,

I'd like to build an ascii frame with several ASCII char received on an UART.

I want to process like this :

UART interrupts the main() every time a char is received.

Every ASCII char should be saved in a chart.

When the whole frame is received (detected with a end of frame marker (ETX) ), I decode the message in the main() function.

My question is :

where can I declare the Message[] chart (in main(), in the startup file,...) ?

How can I pass the start address of the chart to the UART interrupt subroutine ?

Thanks for your advises,

Manu