2005-10-03 01:21 AM
2005-10-03 01:21 AM
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