<?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>Related assembly code</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28176/related-assembly-code</link><description> 
Actually i done code for pulse genetor from min 0 count and max
15k count and this count is display on 4 bit lcd. But their is slight
problem so i want code in assembly lang for 89c2051 ic. Thank
you. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Related assembly code</title><link>https://community.arm.com/thread/116684?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2012 06:15:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2145fca5-d0f0-4c50-a546-ef167a4d906a</guid><dc:creator>erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
there is not much hope&lt;/p&gt;

&lt;p&gt;
right over the entry window it says Place source code source
....&lt;/p&gt;

&lt;p&gt;
I posted post &lt;b&gt;the parts of your code&lt;/b&gt; fully indented and
commented .....&lt;/p&gt;

&lt;p&gt;
you post the whole mess, which, If I can decipher any of the mess
you posted is way more than anyone would want to look at for
free.&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: Related assembly code</title><link>https://community.arm.com/thread/105692?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2012 04:10:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cd312287-c51c-43b1-aae3-fedd586381de</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
1) You kind of ignored reading the information directly above the
message input box. Your &amp;quot;code&amp;quot; is unreadable since you didn&amp;#39;t post
it, tagged as code.&lt;/p&gt;

&lt;p&gt;
2) You write (screaming) &amp;quot;CHECK OUT AND TELL ME THIS IS CORRECT OR
NOT&amp;quot;. It has already been established that it&amp;#39;s not correct (since it
doesn&amp;#39;t work). So why do you ask us to spend time looking at the code
when the answer is already known?&lt;/p&gt;

&lt;p&gt;
3) For some very strange reason, you didn&amp;#39;t find it important to
tell us exactly what problems you are having with the code? Why not
tell what is happening, and what you did expect to happen? You expect
us to spend significant amount of time (that we could use to do
customer projects and send invoices for) just to look at an unknown
problem in source code posted to look like random garbage because you
hadn&amp;#39;t the time to read the posting instructions? How much time do
you spend on the net, giving free help to other people who screams at
you?&lt;/p&gt;

&lt;p&gt;
4) So is this a hobby project? Or maybe a school assignment?&lt;/p&gt;

&lt;p&gt;
5) Can a pulse generator actually count to zero? What does it then
start from, to be able to perform any counting?&lt;/p&gt;

&lt;p&gt;
6) I see that you did write several paragraphs describing your
actual hardware and how everything is connected. Or way a minute -
that must have been another thread, because this thread does not
contain any such information. You think that helps us help you debug
your code? In what way do think that?&lt;/p&gt;

&lt;p&gt;
7) You think you have a reasonable &amp;quot;density&amp;quot; of comments compared
to instructions in your code? Are you sure that you can open this
file 1 year from now, and quickly grasp what is happening? Or have
you seen any issue that too much comments slows down the assembler in
an unacceptable way, leading to too long build times?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related assembly code</title><link>https://community.arm.com/thread/79955?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2012 21:07:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:77afd436-6111-4bf9-b1dc-7ec6b8e0a906</guid><dc:creator>sonali tavate</dc:creator><description>&lt;p&gt;&lt;p&gt;
ORG 0000H LJMP MAIN ORG 0030H&lt;/p&gt;

&lt;p&gt;
CNT1 EQU 20H CNT2 EQU 22H&lt;/p&gt;

&lt;p&gt;
EN EQU P1.2 RS EQU P1.0 RW EQU P1.1 DAT EQU P1&lt;/p&gt;

&lt;p&gt;
MAIN: LCALL LCD_INT MOV SP,#50H SETB P3.0&lt;/p&gt;

&lt;p&gt;
MOV TH0,#0 MOV TL0,#0 MOV TMOD,#11H //LCALL AGAIN&lt;/p&gt;

&lt;p&gt;
AGAIN: MOV A,#080H LCALL COM&lt;/p&gt;

&lt;p&gt;
CLR P3.0 SETB TR0&lt;/p&gt;

&lt;p&gt;
SETB IT0&lt;/p&gt;

&lt;p&gt;
SETB TF0 CLR TR0&lt;/p&gt;

&lt;p&gt;
MOV CNT1,TH0 MOV CNT2,TL0 LCALL hextobcd&lt;/p&gt;

&lt;p&gt;
L1: SETB TR1 MOV TH1,#0F2H MOV TL1,#0C0H&lt;/p&gt;

&lt;p&gt;
MOV R0,#20H DEC R0 JNZ L1 //RET&lt;/p&gt;

&lt;p&gt;
SETB P3.7&lt;/p&gt;

&lt;p&gt;
MOV TH0,#0FFH MOV TL0,#0D8H&lt;/p&gt;

&lt;p&gt;
CLR P3.7 CLR TF0 /*MOV CNT1,TH0 MOV CNT2,TL0 */&lt;/p&gt;

&lt;p&gt;
DEC CNT1 DEC CNT2&lt;/p&gt;

&lt;p&gt;
JNZ L1 RET&lt;/p&gt;

&lt;p&gt;
hextobcd: mov r0,#00h mov r1,#00h cjne a,#00h,c1_hextobcd //If
number is not 0 then continue ret&lt;/p&gt;

&lt;p&gt;
c1_hextobcd: clr c mov b,#100 //First divide by 100 div ab mov
r0,a //save MSB in R0 clr c mov a,b mov b,#10 //Divide by 10 div ab
swap a mov r1,a //save the tens place in the Higher nibble of R1 mov
a,b orl a,r1 mov r1,a // save the tens place in the Lower nibble of
R1 ret&lt;/p&gt;

&lt;p&gt;
SJMP AGAIN&lt;/p&gt;

&lt;p&gt;
//=====================FOR LCD
DATA====================================================&lt;/p&gt;

&lt;p&gt;
LCALL CLEAR LCALL LINE1 MOV DPTR,#MYDATA LCALL LOOP LCALL LINE2
MOV DPTR,#MYDATA2 LCALL LOOP LCALL LINE3 MOV DPTR,#MYDATA3 LCALL LOOP
LCALL LINE4 MOV DPTR,#MYDATA4 LCALL LOOP&lt;/p&gt;

&lt;p&gt;
///=======================ACTUALLY TMR N MODE
=================================================&lt;/p&gt;

&lt;p&gt;
////============================WRITE
DATA=======================================================================&lt;/p&gt;

&lt;p&gt;
W_NIB: PUSH ACC ORL DAT,#0F0H ORL A,#0FH ANL DAT,A SETB EN CLR EN
POP ACC SWAP A ORL DAT,#0F0H ORL A,#0FH ANL DAT,A SETB EN CLR EN
RET&lt;/p&gt;

&lt;p&gt;
///================================LCD
INITIALISE======================================================&lt;/p&gt;

&lt;p&gt;
LCD_INT: CLR RS CLR RW CLR RW SETB EN MOV DAT,#028H CLR EN LCALL
SDELAY MOV A,#028H LCALL COM MOV A,#0CH LCALL COM MOV A,#06H LCALL
COM LCALL CLEAR MOV A,#080H LCALL COM RET&lt;/p&gt;

&lt;p&gt;
//==================================CLEAR
COM========================================================&lt;/p&gt;

&lt;p&gt;
CLEAR: CLR RS MOV A,#01H LCALL COM RET&lt;/p&gt;

&lt;p&gt;
//===============================DATA
COM============================================================&lt;/p&gt;

&lt;p&gt;
DATAW: SETB RS CLR RW LCALL W_NIB LCALL LDELAY RET&lt;/p&gt;

&lt;p&gt;

///================================SDELAY===============================================================&lt;/p&gt;

&lt;p&gt;
SDELAY: MOV R6,#1 HERE2: MOV R7,#255 HERE: DJNZ R7,HERE DJNZ
R6,HERE2 RET&lt;/p&gt;

&lt;p&gt;

//=============================LDELAY=================================================================&lt;/p&gt;

&lt;p&gt;
LDELAY: MOV R6,#100 HER2: MOV R7,#255 HER: DJNZ R7,HER DJNZ
R6,HER2 RET&lt;/p&gt;

&lt;p&gt;

//==============================COMMAND===================================================================&lt;/p&gt;

&lt;p&gt;
COM: CLR RS CLR RW LCALL W_NIB LCALL SDELAY RET&lt;/p&gt;

&lt;p&gt;

//==============================LINE==================================================================&lt;/p&gt;

&lt;p&gt;
LINE1: MOV A,#002H LCALL COM RET LINE2: MOV A,#0C0H LCALL COM RET
LINE3: MOV A,#002H LCALL COM RET LINE4: MOV A,#0C0H LCALL COM RET&lt;/p&gt;

&lt;p&gt;

//==============================LOOP======================================================================&lt;/p&gt;

&lt;p&gt;
LOOP: CLR A MOVC A,@A+DPTR JZ GO_B2 LCALL DATAW LCALL SDELAY INC
DPTR SJMP LOOP GO_B2: RET&lt;/p&gt;

&lt;p&gt;

//===========================MYDATA========================================================================&lt;/p&gt;

&lt;p&gt;
MYDATA: DB &amp;quot; AUTOMATE &amp;quot;,0 MYDATA2: DB &amp;quot; INDIA,PUNE &amp;quot;,0 MYDATA3: DB
&amp;quot; VEHICLE &amp;quot;,0 MYDATA4: DB &amp;quot; SPEED &amp;quot;,0&lt;/p&gt;

&lt;p&gt;

//==============================================================================================================&lt;/p&gt;

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

&lt;p&gt;
THIS IS MY CODE CHECK OUT AND TELL ME THIS IS CORRECT OR
NOT......&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related assembly code</title><link>https://community.arm.com/thread/60326?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2012 11:03:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:eef486c1-c093-401f-a00b-8d069e0c2add</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;But their is slight problem so i want code in assembly lang for
89c2051 ic&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
What kind of logic reasoning is that supposed to be? You got some
&amp;quot;problem&amp;quot;, which you can&amp;#39;t even be bothered to name, and just like
that, you &amp;quot;want&amp;quot; assembly code for it? What has assembly code to do
with anything else in your text?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related assembly code</title><link>https://community.arm.com/thread/60324?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2012 06:03:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:17bb77b2-d27f-44b6-9e97-3156e9116ef6</guid><dc:creator>erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Actually i done code for pulse genetor from min 0 count and max
15k count and this count is display on 4 bit lcd. But their is slight
problem so i want code in assembly lang for 89c2051 ic.&lt;/i&gt;&lt;br /&gt;
if someone (I hope not) send you some code you will be exaxtly where
you are, no &amp;#39;received&amp;#39; code works off the bat and if you can not fix
your own code, you have just about the chance of a tailor in hell to
get &amp;#39;received&amp;#39; code to work.&lt;/p&gt;

&lt;p&gt;
stete &lt;b&gt;exactly, and fully&lt;/b&gt; what the problem with your code is
and post the parts of your code &lt;b&gt;fully indented and commented&lt;/b&gt;
related to the problem (e.g. the display section).&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>