<?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>2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15410/2-serial-ports-but-only-one-serial-window-definable</link><description> Maybe I am missing something in the documentation, but I cannot find where to configure a second serial port and assign it as a VTREG S1IN and S1OUT. I am able to debug the first serial port using SIN and SOUT. 
 
Any help is appreciated </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/150505?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2005 00:21:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bfda6a48-c6a5-4d9a-b3df-64e5a8b1aced</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;Hi again &amp;amp; again :)&lt;br /&gt;
&lt;br /&gt;
&amp;gt;So, using your &amp;quot;Terminal v1.9b,&amp;quot; can you send&lt;br /&gt;
&amp;gt;data to the device and receive data from the&lt;br /&gt;
&amp;gt;device using the same cable and COM port that&lt;br /&gt;
&amp;gt;you will use with the simulator?&lt;br /&gt;
&lt;br /&gt;
 Yes.&lt;br /&gt;
 Also, i made a program for windows command prompt to test that the M02 is working first.&lt;br /&gt;
&lt;br /&gt;
 With the simulator data from outside does not arrive in uVision (and I see is comming) ...&lt;br /&gt;
  An example:&lt;br /&gt;
&lt;br /&gt;
I send from the simulator:&lt;br /&gt;
#06#FF#52#00#0F#6E&lt;br /&gt;
the external device is responding (I see this with Advanced Serial Port, Spy Mode):&lt;br /&gt;
#06#00#52#00#FC#A8&lt;br /&gt;
, but nothing comes back in the simulator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/150098?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 06:45:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5aff735a-8e4c-4bfd-9f4e-39034b88a326</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;But remember I want the data from the device, not from a terminal...&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Of course, but first you need to verify that the connection between the device &amp;amp; the PC is actually working.&lt;br /&gt;
&lt;br /&gt;
So, using your &amp;quot;Terminal v1.9b,&amp;quot; can you send data to the device and receive data from the device &lt;b&gt;using the same cable and COM port&lt;/b&gt; that you will use with the simulator?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/141213?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 03:14:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:194e8049-d512-400e-865c-aceccf0a52bb</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt;Is that what your external device is using?&lt;br /&gt;
&lt;br /&gt;
Yes.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Have you tried just using hypoterminal?&lt;br /&gt;
&lt;br /&gt;
 I tried a much better one: &amp;quot;Terminal v1.9b&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 But remember I want the data from the device, not from a terminal...&lt;br /&gt;
 Anyway, I&amp;#39;m gona to try with the kit and let the simulator for other purposes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/137642?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 02:55:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dfa46a1e-6ba4-49b3-bf05-a31568b5920b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;It is possible the problem to be serial port config?&lt;br /&gt;
MODE COM1 38400, 2, 8, 1&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Is that what your external device is using?&lt;br /&gt;
&lt;br /&gt;
Have you tried just using hypoterminal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/134151?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 01:09:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:715cb298-68df-4b67-ab12-92dbe3fa45a9</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;yap, just to be sure, I tried right now in COmmand Window, REN = 1.&lt;br /&gt;
&lt;br /&gt;
 It is possible the problem to be serial port config?&lt;br /&gt;
 MODE COM1 38400, 2, 8, 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/121898?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 01:06:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:93ecbd2f-9de8-4e51-a6d9-3c32960b79f4</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;the data is going out from uVision to M02, M02 is responding, but nothing comes back to uVision simulator...&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Remember that the serial port receiver needs to be enabled.&lt;br /&gt;
&lt;br /&gt;
Have you enabled the serial port receiver (REN bit in SCON)?&lt;br /&gt;
&lt;a href="http://www.8052.com/tutser.phtml#Serial%20Mode" target="_blank"&gt;http://www.8052.com/tutser.phtml#Serial%20Mode&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/121917?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 00:39:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cca68783-676a-423d-9b1c-f801c176808b</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;and again..&lt;br /&gt;
&lt;br /&gt;
 I&amp;#39;m speaking about first serial port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/110229?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2005 00:37:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6f87d535-332d-4bd2-a4c4-996bb889032f</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;Hi again,&lt;br /&gt;
&lt;br /&gt;
 I use DK3200 with uPSD 3234A.&lt;br /&gt;
 The device I try to connect over simulated serial port is Feig M02 RFI reader.&lt;br /&gt;
&lt;br /&gt;
 Like I said already, the data is going out from uVision to M02, M02 is responding, but nothing comes back to uVision simulator...&lt;br /&gt;
&lt;br /&gt;
 Marius Cerlinca&lt;br /&gt;
&lt;br /&gt;
P.S. Any help is useful...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/95335?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2005 20:01:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:44555dfc-e0c6-4783-b1f8-463bdc7d80f7</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;Exactly which uPSD device?  I show that we support both serial ports on some of them.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/54985?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2005 15:59:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ed5d07a9-0175-4b06-9173-675187d35fba</guid><dc:creator>Marius Cerlinca</dc:creator><description>&lt;p&gt;Hi there,&lt;br /&gt;
&lt;br /&gt;
 I have the same big problem.&lt;br /&gt;
 When I using COM1 for simulation with uPSD, no data is comming back to SIN. I use &amp;quot;Advanced Port Monitor&amp;quot; and see that the device that is linked to COM1 is responding...&lt;br /&gt;
&lt;br /&gt;
 I think that uVision has a firewall for incomming data :))&lt;br /&gt;
&lt;br /&gt;
 Maybe someone has an answer...&lt;br /&gt;
&lt;br /&gt;
 Marius Cerlinca&lt;br /&gt;
&lt;br /&gt;
P.S. If I use a script like the one that follows, is working, but I want real answer from the device I want to connect to uPSD.&lt;br /&gt;
&lt;br /&gt;
define int seri_index;&lt;br /&gt;
signal void seri_start (float baudrate) {&lt;br /&gt;
  seri_index = 0;&lt;br /&gt;
  for (seri_index = 0; seri_index&amp;lt;6 ; seri_index++) {&lt;br /&gt;
    SIN = serial_input_buffer[seri_index];&lt;br /&gt;
    swatch (1.0 / ((baudrate/10.0) + 20.0));&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
define button &amp;quot;Send Data&amp;quot; , &amp;quot;seri_start(1200)&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/39731?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2003 21:39:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:eab9e353-1a7c-4b6c-a995-1e9846914a68</guid><dc:creator>huang jianhua</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;
I have a trouble in RS232 serial programming,that is I send data to terminal through Com1,the terminal should feed back data to PC though Com1,but no data in receiving buffer at all in fact.&lt;br /&gt;
I can make sure Sending data has no problem,but the key is I don&amp;#39;t receive data.&lt;br /&gt;
I want to know in RS232 communication,the relationship between thread of sending data and thread receiving data?&lt;br /&gt;
Thanks very much!&lt;br /&gt;
Best regard!&lt;br /&gt;
huangjianhua&lt;br /&gt;
2003/4/17&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2 Serial Ports, but only one Serial Window definable</title><link>https://community.arm.com/thread/39724?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2003 14:00:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d4c89c24-db76-4d4c-8f2e-940ff58fb9d0</guid><dc:creator>Jim Nanney</dc:creator><description>&lt;p&gt;Ok, found it, I have to write my own device dll to support the extra serial port.  I am using the ST uPSD 3234A.  It has 2 serial ports but only one is supported under debugging sessions with the S8051.DLL&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>