<?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>Problem setting the port value</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/18396/problem-setting-the-port-value</link><description> I have the following code lines that worked well with SDCC compiler: 
 
data at 0x90 unsigned char motor1 = 0; // PORT 1 (90h) 
data at 0xB0 unsigned char motor2; // PORT 3 (B0h) 
 
But, when it does&amp;#39;t compile with Keil. I&amp;#39;m trying to control a step</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem setting the port value</title><link>https://community.arm.com/thread/43519?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2005 19:46:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:21c1d176-fc60-407c-bfe4-c62347dc7959</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;the following code lines that worked well with SDCC compiler ... it does&amp;#39;t compile with Keil&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Of course it doesn&amp;#39;t - that&amp;#39;s because it&amp;#39;s SDCC-specifc syntax; not Keil syntax.&lt;br /&gt;
&lt;br /&gt;
If you want to compile with Keil, you must use Keil syntax!&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;How can I declare these variables in a way Keil compiles OK?&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Read the Manual!&lt;/b&gt;&lt;br /&gt;
Do the tutorials.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting the port value</title><link>https://community.arm.com/thread/96910?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2005 15:36:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f1e5bfde-1b24-4d27-b760-38ad6adf179a</guid><dc:creator>Karl Hamsher</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I don&amp;#39;t want to include the reg51.h file im my code because I have space constraints...&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
reg51.h, or any other header file for that matter, unless improperly constructed, does not result in memory being allocated for any data or code objects it declares.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting the port value</title><link>https://community.arm.com/thread/73027?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2005 15:10:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:350939b6-148d-45ff-bc20-b2f68eb0e80c</guid><dc:creator>Nei San</dc:creator><description>&lt;p&gt;I don&amp;#39;t want to include the reg51.h file im my code because I have space constraints, in that case, can I declare P1 as:&lt;br /&gt;
&lt;br /&gt;
sfr P1 = 0x90; Is that correct?&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting the port value</title><link>https://community.arm.com/thread/43524?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2005 14:17:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:298c3e4d-ad1b-4b5d-9622-f6327a50c03f</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;data at 0x90 unsigned char motor1 = 0; // PORT 1 (90h)&lt;br /&gt;
data at 0xB0 unsigned char motor2; // PORT 3 (B0h)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
just&lt;br /&gt;
P1 = ??;&lt;br /&gt;
&lt;br /&gt;
No crummy &amp;quot;data at ..&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>