<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>serial port programe</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23690/serial-port-programe</link><description> 
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</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: serial port programe</title><link>https://community.arm.com/thread/55386?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2009 08:57:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff749bfc-c757-4547-aee2-51d11894314d</guid><dc:creator>Neil Kurzmam</dc:creator><description>&lt;p&gt;&lt;p&gt;
Look in the Sample folder the compiler installed.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial port programe</title><link>https://community.arm.com/thread/89563?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2009 07:12:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:23a1535e-372d-41e9-90d3-9cee16f5f45b</guid><dc:creator>Non Keil Related</dc:creator><description>&lt;p&gt;&lt;p&gt;
Here you go ...&lt;/p&gt;

&lt;pre&gt;

#include &amp;quot;UnknownCpu.H&amp;quot;
#include &amp;quot;SerialPortForUnknownCpu.H&amp;quot;

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;
  }
}
&lt;/pre&gt;

&lt;p&gt;
Enjoy&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial port programe</title><link>https://community.arm.com/thread/55391?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2009 07:00:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:142d8276-e90c-4bf0-af61-ecaaef20120c</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
Your post clearly indicates that you are not wanting &amp;quot;sample code&amp;quot;
but a ready made solution.&lt;br /&gt;
&amp;quot;sample code&amp;quot; will be TOTALLY WORTHLESS to you if you can not code
the job yourself. The &amp;quot;sample code&amp;quot; will never fit your needs totally
and if you can not do the job without the &amp;quot;sample code&amp;quot;, you will be
incapable of modifying the &amp;quot;sample code&amp;quot; to fit your purposes.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;must say what pins can use&lt;/i&gt;&lt;br /&gt;
for a &amp;quot;Non-Specific (Generic)&amp;quot; processor???.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;can u send now ???????&lt;/i&gt;&lt;br /&gt;
term paper due tomorrow?&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial port programe</title><link>https://community.arm.com/thread/55390?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2009 06:58:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:26412e8c-59aa-41f4-afc1-539138093807</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;what is the maximum size of the buffer ?? must say what pins
can use ??&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
you will know once somebody replies...&lt;br /&gt;
maybe there is already sample code in your tool-chain sample
folder...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>