Discussion in "8051 Discussion Forum" started by    sks    Sep 19, 2008.
Sun Sep 21 2008, 02:32 pm
#11
Hello Mr Arun,
Thanks for ur advice. I have purchased a book of kenneth j ayala today . pl guide me should i read it from Numbering Systems and Binary Arithmetic or i should start from ch3 The 8051 Architecture onwards. actually i will love to learn while doing a project. i have written some codes, if u allow me i will glad to send or post to u for ur comments.
thanks
sks
Sun Sep 21 2008, 02:39 pm
#12
Hi Mr ExperimenterUK,
thanks for your comments, i am glad that u people are watching the forum and helping others. i am a learner, pl don't mind if write some odd things.
thanks again.
sks
Sun Sep 21 2008, 06:32 pm
#13
sks,
nobody is perfect, sir . we are all learners. As for the books part, i think u should start with numbering system if u are not familiar with it. In 8051, we usually encounter lack of data RAM space if we do not use variable lengths properly. So, better understand the basics of father of all languages "mathematics" before proceeding any further .
Sun Sep 21 2008, 07:16 pm
#14
hi pdi33,
thank u for ur guidance. let me study first. pl don't forget to help me whenever i need.
s.k.s
Mon Sep 22 2008, 06:17 pm
#15
hi Mr Ajay,
i am sks here, i have received 3 mails send by you. Thanks for that, pl guide me shall i send my queries through this quick reply window or mail from my mail id because the reply a got here itself the same in my mail. it confuses me.
i am using 8051IDE for simulation of my code what i am witting now is it OK.
pl guide me Thanks again
sks
Mon Sep 22 2008, 07:16 pm
#16
hi sks,
when u start a new thread, there is an option below the post window:
"If you wish to be notified by email when a reply is posted to your thread please tick the box"
by default the box is ticked. So whenever any member writes a new post in ur thread, u are automatically notified via e-mail sent in the admins name. So,u can ignore the mail as long as u are up to date with ur thread progress .
In future, if u do not want the notification, just uncheck the box before creating a new thread.
:-)
 sks like this.
Mon Sep 22 2008, 08:46 pm
#17
thank u pdi
sks
Tue Sep 23 2008, 04:47 pm
#18
Hi Mr pdi33,
i have written a counter program, if u allow me i want to send the same to u for ur comments and to identify my mistakes.
thanks
sks
Tue Sep 23 2008, 09:50 pm
#19
sks,
u need not ask for it, just attach the code along with ur post.
 sks like this.
Wed Sep 24 2008, 02:53 pm
#20
hi pdi,
i don't know how 2 attach a file. pl guide. i am pasting my code here itself,
please don't mind. it is a up counter 0 t0 99. pl check and comment.
thanks
sks

;simple 0 to 9 Hex counter
;hex value will be shown at p1,p2
;written by sks

org 00h ;reset all
mov r2,#90 ;load decimal 99-9 in r2 for total count
start:
mov r0,#00h ; clear r0
mov r1,#00h ; clear r1
mov p1,#00h ;p1=0
mov p2,#00h ;p2=0
count:
mov r0,a ;r0=a=0
inc r0 ;r0=r0+1 in every count
mov a,r0 ;a=r0 (incremented value)
mov p1,a ;p1=a
dec r2 ;r2=90-1 in every count
cjne r0,#9h,count ;if r0 not equal to 9 go to count else move to next line
acall tc_loop
clr a ;a=0
inc r1 ;r1=r1+1 in every count
mov a,r1 ;a=r2 (incremented value)
mov p2,a ;p2=a
mov p1,#00h ;p1=0
clr a ;a=0
cjne r1,#10,count ;if r0 not equal to 10 go to count else move to next line
tc_loop:
cjne r2,#0,tc_end ;if r2=0 stop counting
ajmp end
tc_end:
ret
end:
end

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am