<?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>Primitive problem</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/13765/primitive-problem</link><description> I have assembled a simple scheme, my eval board: 164CI, address latch, 32kB RAM on CS0. Then I put cristall in BSL mode and downloaded Keil user167 monitor. Next monitor dowloaded my program as follows: 
 
#include &amp;lt;reg164.h&amp;gt; 
sbit tpindir = DP1L^0;</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Primitive problem</title><link>https://community.arm.com/thread/36904?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2000 01:14:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:82fea749-baf0-4b25-92cb-28f31b08ff45</guid><dc:creator>sushil jangam</dc:creator><description>&lt;p&gt;There are many ways to toggle a pin.&lt;br /&gt;
My preferred way is&lt;br /&gt;
1&amp;gt;&lt;br /&gt;
while(condition)&lt;br /&gt;
{&lt;br /&gt;
testpin=~testpin;&lt;br /&gt;
}&lt;br /&gt;
//remember ~ is a bit operator.&lt;br /&gt;
&lt;br /&gt;
2&amp;gt; This is when each pin is not separately defined. One can toggle any bit by xor operation on the port with the bit location under consideration equal to 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
while(condition)&lt;br /&gt;
{&lt;br /&gt;
testport=^0x01;&lt;br /&gt;
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Primitive problem</title><link>https://community.arm.com/thread/37142?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2000 20:54:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:54aac399-f20f-4251-94d7-929897357830</guid><dc:creator>Keil Support</dc:creator><description>&lt;p&gt;Have you configured the start167.a66 file and added it to your project?&lt;br /&gt;
&lt;br /&gt;
Since P1L.0 is also A0, the default configuration will configure the chip for non-multiplexed mode.&lt;br /&gt;
&lt;br /&gt;
Keil Support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Primitive problem</title><link>https://community.arm.com/thread/36898?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2000 13:11:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1f8fc97d-ba89-49a9-ac84-f3bb63c042bb</guid><dc:creator>Mark Odell</dc:creator><description>&lt;p&gt;&lt;i&gt;testpin = !testpin&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Have you tried &lt;pre&gt;testpin = ~testpin;&lt;/pre&gt; instead?&lt;br /&gt;
&lt;br /&gt;
- Mark&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>