English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am sending messages from PC's com port, Each string is of 255 char, My 8051 system should recieve it and store it in external memory with some message serial numbers.for example say msg 01, msg 02 and so on..
And from PC I should be able to upload any required string by refering the string number along with command. Example upload msg50.
I am using Windows Hyper Terminal

2006-08-12 03:56:16 · 2 answers · asked by Sohail S 1 in Computers & Internet Programming & Design

(code can be assembly or C )I am sending messages from PC's com port, Each string is of 255 char, My 8051 system should recieve it and store it in external memory with some message serial numbers.for example say msg 01, msg 02 and so on..
And from PC I should be able to upload any required string by refering the string number along with command. Example upload msg50.
I am using Windows Hyper Terminal

2006-08-14 02:34:41 · update #1

2 answers

Okay, sounds good. Get writing.

You don't really expect someone to write your code for you, right?

2006-08-12 04:23:56 · answer #1 · answered by arbeit 4 · 0 1

I wont write the code (you dont say what language), but if the strings are all 255 bytes long then just set up an array (example unsigned char MyString[255][255]). This array will accept 255 strings with 255 char's each. Set up the serial port interrupt and start loading strings. With each new string, go to the next array. To retrieve, send the string number you want, go to that string and send it back. Example: you send 5, the micro goes to MyString[5][0] and starts sending out over the serial port.

Note: you better have lots of RAM to store the strings in. 255 strings of 255 char's = 65025 bytes, which without doing paging is about all the RAM you can access with an 8051.

2006-08-13 03:17:05 · answer #2 · answered by justme 7 · 0 0

fedest.com, questions and answers