<?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>printf problem    plz help</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38670/printf-problem-plz-help</link><description> 
i m using c51 microvision4....i have a simple program using
logical bitwise operator .here is d part of d code... 

 
#include &amp;lt;stdio.h&amp;gt; 
void Display_Byte(const unsigned char); 
int main() 
{ unsigned char x = 0xFE; 
unsigned int y = 0x0A0B; 
printf</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: printf problem    plz help</title><link>https://community.arm.com/thread/78034?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2010 04:32:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1cc17d9c-ea00-45fa-9528-942cee34cf02</guid><dc:creator>pratibha paranjpe</dc:creator><description>&lt;p&gt;&lt;p&gt;
thanxxxxxxx a lot.......i didnt knw this...when i intialized
serial communiacation routine i gt d output in serial window
uart#1....&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf problem    plz help</title><link>https://community.arm.com/thread/57549?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2010 21:35:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3c979360-a5c3-4b40-a1f5-ac80eabcd74b</guid><dc:creator>JANGA chinna</dc:creator><description>&lt;p&gt;&lt;p&gt;
hai&lt;/p&gt;

&lt;p&gt;
After starting the timer (TI=1) gives this after printf works.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf problem    plz help</title><link>https://community.arm.com/thread/57548?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2010 21:26:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6b9cf99c-bd01-4ff4-a78c-edcbff171f7a</guid><dc:creator>JANGA chinna</dc:creator><description>&lt;p&gt;&lt;p&gt;
i think printf in serial window, first u can initialise serial
communication&lt;br /&gt;
then only printf works.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf problem    plz help</title><link>https://community.arm.com/thread/57564?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2010 04:39:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d4088f27-baf9-4a96-9558-42215a8f66e6</guid><dc:creator>Shital B</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Pratibha,&lt;/p&gt;

&lt;p&gt;
I think you have written wrong format of printf.&lt;/p&gt;

&lt;p&gt;
It should be&lt;/p&gt;

&lt;pre&gt;
printf(&amp;quot;%-35c&amp;quot;,x);
(if x is char)


&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf problem    plz help</title><link>https://community.arm.com/thread/57546?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2010 10:39:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8f7e1bae-1696-4531-be88-75691819b3fe</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
So, have you read the &lt;b&gt;documentation&lt;/b&gt; for printf to ensure
that you are using it correctly?&lt;/p&gt;

&lt;p&gt;
In particular, are you sure that you have corectly implemented the
support for your particular hardware...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>