HELP ME !!! I need some sample code in source. I want to save my data coming from seriel port in MCU. Send me some sample code using inbuffer and out buffer. what is the maximum size of the buffer ?? must say what pins can use ??
can u send now ???????
what is the maximum size of the buffer ?? must say what pins can use ??
you will know once somebody replies... maybe there is already sample code in your tool-chain sample folder...?
Your post clearly indicates that you are not wanting "sample code" but a ready made solution. "sample code" will be TOTALLY WORTHLESS to you if you can not code the job yourself. The "sample code" will never fit your needs totally and if you can not do the job without the "sample code", you will be incapable of modifying the "sample code" to fit your purposes.
must say what pins can use for a "Non-Specific (Generic)" processor???.
can u send now ??????? term paper due tomorrow?
Erik
Here you go ...
#include "UnknownCpu.H" #include "SerialPortForUnknownCpu.H" void main( void ) { SetSizeOfBufferInput( 1001.2 ); SetSizeOfBufferOutput( 999.5 ); SetTxPortPin( Pin2 ); SetRxPortPin( Pin3 ); SetGroundPortPin( Pin7 ); StartSerialPort( NOW ); Loop1: switch ( 1 ) { case 1: int FromSerialPort; FromSerialPort = GetDataFromPort( WAIT ); goto Loop1; } }
Enjoy
Look in the Sample folder the compiler installed.