<?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>uvision2 v2.31</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/19557/uvision2-v2-31</link><description> I&amp;#39;m using an 8051/8052 emulator build with Siemens 80c535 uc, and i use uvision2 v2.31 to put the program in. This is a student version of uVision and i&amp;#39;m using it for educational purpose. my goal is to develop a system with serial communication. Problem</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/141583?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2005 04:23:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:12cc51da-d194-4c36-8641-9c48c18bf5d3</guid><dc:creator>Dario  Plichta</dc:creator><description>&lt;p&gt;Yes i did, program works in simulator but not on the emulator. I&amp;#39;m preety certen that the problem is with keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/138149?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2005 09:01:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:755e5d97-41c2-495b-951a-c2f1db60f4c7</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;Did you enable the serial interrupt? The serial interrupt should be not enabled when you use printf without interrupt controlled serial I/O.&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/134696?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2005 08:37:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5f1e472a-e05a-4706-8c16-54d78eb1a7a8</guid><dc:creator>Dario  Plichta</dc:creator><description>&lt;p&gt;I found out that the problem is with SFR on 80c535. When I debug code in debugger some information is writed on some locations in SFR on plases where are interrupt flags. I think that printf is not properly translated into hex code or with some bug so my emulator goes to interrupt (don&amp;#39;t know witch), but routine is not defined. Emulator was build on my faculty in 1995. I&amp;#39;l just skip printf and write function my self.&lt;br /&gt;
Thanx to all who tried to help,&lt;br /&gt;
good luck in your work with uc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/123057?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2005 08:07:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cda233d1-2aa1-48fa-9a7c-74961f6dd74d</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;Did you already talk to the emulator vendor?  How is the serial interface implemented?&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/111823?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2005 03:55:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a2b2aac7-ff2f-425e-869c-c9c8e5dfd355</guid><dc:creator>Dario  Plichta</dc:creator><description>&lt;p&gt;If you look into register SCON and transform 0x52 into binary  code you will get 01010010.&lt;br /&gt;
LSB is RI, nex to that bit is bit TI and it&amp;#39;s set to &amp;#39;1&amp;#39;. If TI is not set ot &amp;#39;1&amp;#39; then the putchar wouldn&amp;#39;t work, also thing wouldn&amp;#39;t work in the simulator!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/97678?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2005 09:27:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7969d198-4d10-422f-9a80-22e424841817</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Don&amp;#39;t you need to set TI to get the standard Keil printf working?&lt;br /&gt;
&lt;br /&gt;
See the &amp;quot;HELLO&amp;quot; example in your Keil\C51\Examples foldre&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/73668?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2005 07:14:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b5f50314-a027-4b73-bd1b-ff7436817800</guid><dc:creator>Dario  Plichta</dc:creator><description>&lt;p&gt;i mean that the uc is blocked (80c535), i use 80c535 to simulate function of 8051/8052.&lt;br /&gt;
Thing is that it works in simulator, but when i put my program down to emulator uc is blocked. i think it stays in infinite loop, because not a single byte is send. Program is simply as can be&lt;br /&gt;
&lt;pre&gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;reg51emu.h&amp;gt;

main()
{
    unsigned char q=0;

    TMOD=0x20
    TH1=0xFA;
    TL1=0xFA;
    TR1=1;

    SCON = 0x52;
    PCON = 0x00;

    printf(&amp;quot;Serija&amp;quot;);

    while (1){
	      q=q+1;
	      P1=q;
	     }
}
&lt;/pre&gt;
Odd thing is when printf is commenth thing works, when i use putchar thing works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uvision2 v2.31</title><link>https://community.arm.com/thread/45130?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2005 03:41:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:33a30176-c117-4b66-b9c1-c3ed47bc5485</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;i try to emulate function printf my emulator is blocked&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
What exactly do you mean by that?&lt;br /&gt;
What is &amp;quot;blocked&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Have you tried running it in the simulator?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>