<?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>p89lpc936 keil programming help required.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27930/p89lpc936-keil-programming-help-required</link><description> 
Hello all, 

 
I am trying to program Blinky program from Keil complier to
P89LPC936 microcontroller through a universal programmer(SuperPro).
But the microcontroller is not running. But when i write a simple
program in assambly and program the same</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/142742?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2010 07:14:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4e487281-59b8-4e3e-83c0-2b1c97925ac3</guid><dc:creator>Per Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I will not continue discussing this in two places, look at
8052.com&lt;/i&gt;&lt;br /&gt;
Which was the reason I did cross-link the two threads. However, the
OP didn&amp;#39;t pick up on the meaning of cross-posting and the havoc and
extra work introduced...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/139725?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2010 04:50:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c7eec2a8-ca81-49aa-b3e7-fde594161e46</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
I will not continue discussing this in two places, look at
8052.com&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/130695?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2010 03:17:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c2d2fa0f-83e7-4d7f-bac7-87e50a80f34b</guid><dc:creator>Adnan Ahmad</dc:creator><description>&lt;p&gt;&lt;p&gt;
Erik,&lt;/p&gt;

&lt;p&gt;
I have tried it too, Even then it is not working. I think i m
missing out some step while making the project and its settings which
is not creating the hex file correctly. Any idea on this.&lt;/p&gt;

&lt;p&gt;
the start900.a51 i have left it to default is it right way to do
this.&lt;/p&gt;

&lt;p&gt;
Regards&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/126461?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2010 11:09:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f995baec-76e7-445c-a89d-3f42de6de257</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;is it better now.. please help me.&lt;/i&gt;&lt;br /&gt;
No, READ THE TEXT ABOVE THE ENTRY WINDOW &amp;quot;place source code ...&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;why have you not answered&lt;/b&gt; the questions posted at
8052.com&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/116084?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2010 10:54:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:36ed6840-2665-48d6-88a0-5509e9ea511f</guid><dc:creator>Adnan Ahmad</dc:creator><description>&lt;p&gt;&lt;p&gt;
#include &amp;lt;REG936.H&amp;gt; // Register definition&lt;/p&gt;

&lt;p&gt;
// Delay Function----------------------------&lt;br /&gt;
//-------------------------------------------&lt;br /&gt;
void delay (unsigned long cnt)&lt;br /&gt;
{ while (--cnt);&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
// Main Function----------------------------&lt;br /&gt;
//-------------------------------------------&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;/p&gt;

&lt;p&gt;
unsigned char i;&lt;/p&gt;

&lt;p&gt;
P1M1 |= 0x20; P1M2 &amp;amp;= 0xDF;&lt;/p&gt;

&lt;p&gt;
P2M1 &amp;amp;= 0xE7; P2M2 |= 0x18;&lt;/p&gt;

&lt;p&gt;
delay (20000); for(;;) { for (i = 0x01; i; i &amp;lt;&amp;lt;= 1) { P2 =
i; // simulate running lights delay (20000); } for (i = 0x80; i; i
&amp;gt;&amp;gt;= 1) { P2 = i; delay (20000); } } }&lt;br /&gt;
}// main()&lt;/p&gt;

&lt;p&gt;
--------------------------------------------------------------&lt;br /&gt;
Hex file..&lt;/p&gt;

&lt;p&gt;
:10006B008F0B8E0A8D098C08780874FF12004DECEB&lt;br /&gt;
:06007B004D4E4F70F32210&lt;br /&gt;
:100003004391205392DF53A4E743A5187F207E4EEC&lt;br /&gt;
:100013007D007C0012006B7B01EB6013F5A07F2059&lt;br /&gt;
:100023007E4E7D007C0012006BEB25E0FB80EA7BBB&lt;br /&gt;
:1000330080EB60E3F5A07F207E4E7D007C00120004&lt;br /&gt;
:070043006BEBC313FB80EA25&lt;br /&gt;
:01004A002293&lt;br /&gt;
:04FFF00023001E00CC&lt;br /&gt;
:08FFF800000000000000000001&lt;br /&gt;
:030000000200817A&lt;br /&gt;
:0C00810078FFE4F6D8FD75810B02000347&lt;br /&gt;
:10004B007401FF3395E0FEFDFC080808E62FFFF670&lt;br /&gt;
:10005B0018E63EFEF618E63DFDF618E63CFCF622E9&lt;br /&gt;
:00000001FF&lt;/p&gt;

&lt;p&gt;

------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;
And here is the assembly code and its hex file which is working
absolutely right.&lt;/p&gt;

&lt;p&gt;
Code:&lt;br /&gt;
; LPC936A1.A51&lt;br /&gt;
; Oct 7, 2010 PCB: ?&lt;/p&gt;

&lt;p&gt;
; Features: ?&lt;br /&gt;
; ?&lt;/p&gt;

&lt;p&gt;
$mod51&lt;/p&gt;

&lt;p&gt;
RL1 bit P2.3&lt;br /&gt;
RL2 bit P2.4&lt;/p&gt;

&lt;p&gt;
DSEG AT 20H&lt;br /&gt;
FLAG1: ds 1&lt;br /&gt;
STACK: ds 1&lt;/p&gt;

&lt;p&gt;
FRL1 bit FLAG1.0 ; Relay 1&lt;/p&gt;

&lt;p&gt;
CSEG org 0H ;ajmp Reset&lt;/p&gt;

&lt;p&gt;
org 30H&lt;/p&gt;

&lt;p&gt;
Reset: mov 0A5H, #0FFH&lt;/p&gt;

&lt;p&gt;
Start: mov c, FRL1 ; mov RL1,c cpl c mov FRL1,c mov RL2,c&lt;/p&gt;

&lt;p&gt;
acall Delay0&lt;/p&gt;

&lt;p&gt;
ajmp Start&lt;/p&gt;

&lt;p&gt;
Delay0:mov R7, #250&lt;br /&gt;
Delay: mov R6, #61&lt;br /&gt;
Delay1:nop nop nop nop nop nop nop nop&lt;/p&gt;

&lt;p&gt;
djnz R6, Delay1 djnz R7,Delay ret&lt;/p&gt;

&lt;p&gt;
Text: DB &amp;#39;(C) DIGIPOWER 2010&amp;#39;&lt;br /&gt;
Text0: DB &amp;#39; LPC936A1 &amp;#39;&lt;/p&gt;

&lt;p&gt;
END&lt;/p&gt;

&lt;p&gt;
----------------------------------------------------------&lt;br /&gt;
And its hex is&lt;br /&gt;
:020000000130CD&lt;br /&gt;
:1000300075A5FFA20092A3B3920092A411400133D0&lt;br /&gt;
:100040007FFA7E3D0000000000000000DEF6DFF2D7&lt;br /&gt;
:10005000222843292044494749504F5745522032CE&lt;br /&gt;
:0D006000303130204C5043393336413120CF&lt;br /&gt;
:00000001FF&lt;/p&gt;

&lt;p&gt;
is it better now.. please help me.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/104333?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2010 08:55:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b3e5c870-4be9-4432-8698-4674f1522ac8</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;That doesn&amp;#39;t relay solves my problem&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
it might&lt;/p&gt;

&lt;p&gt;
very few wants to decipher what is posted &lt;i&gt;forgetting to format
your code&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/78736?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2010 08:04:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:560b8e41-6203-4b3c-ae4a-158be37e086b</guid><dc:creator>Adnan Ahmad</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sir,&lt;/p&gt;

&lt;p&gt;
That doesn&amp;#39;t relay solves my problem. If you have any answer
pertaining to my problem then please tell.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: p89lpc936 keil programming help required.</title><link>https://community.arm.com/thread/65964?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2010 06:29:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8749bb45-05cf-4c0b-b4d4-5b077daf106a</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Besides forgetting to format your code using the proper tags, you
also forgot to mention that you have also posted to:&lt;br /&gt;
&lt;a href="http://www.8052.com/forum/thread/179165"&gt;www.8052.com/.../179165&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
And you forgot to properly markup your code there too.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>