'm writing a code where a intel hex-80 file is send through the hyperterminal..in my code,i decode the hex file,extract the data and write it onto the flash memory....the problem is when i type the hex file through hyperterminal,its workin fine...bt whn i send a file ,many charcaters are missing...pls help...the baud rate is set as 9600....workin on p89lpc915 on keil....
Exactly! Well done!
"but wat can i do abt it???"
Well, you need to keep thinking! These are exactly the types issues that you will always need to address as a fundamental part of any programming task!
Three choices should be obvious:
1. Ensure that you process each character quickly enough to be ready before the next one arrives;
2. Provide some way to quickly store the data as it arrives, so that you can process it later, at your leisure. This is known as buffering.
3. Devise some scheme - or "protocol" - so that the microcontroller can tell the PC when it's ready to receive more data. This is known as Flow-Control or Pacing.