Discussion in "8051 Discussion Forum" started by    SAMEET    Aug 29, 2009.
Fri Sep 18 2009, 10:56 am
#21
i am attaching u my program can u guide me how i multiply 3 digit no 132. so kindly look into this
Attachment
Sat Sep 19 2009, 04:52 pm
#22
well 132 is a 8-bit number and ADC values is also 8-bit so just multiply both using MUL AB instruction in 8051.

put ADC value in A
132 in B

AxB = BA => B(MSB), A(LSB)

a 16-bit value.. you can easily manipulate the result for display.
Sun Sep 20 2009, 04:26 pm
#23
THANK YOU FOR UR HELP BUT NOW I AM FINDING DIFFICULTY IN DIVIDING 16 BIT BY 8 BIT HOPE U GIVE ME A EXPLANATION. COZ AS U DO IT USING SUBTRACTION I GONE THRU UR PROGRAM BUT HOPE U GIVE ME EXAMPLE OF ATLEAST ONE CYCLE MEANS IF I WANNA CONVERT FFH TO 336V.
THANK YOU.
Wed Sep 23 2009, 02:19 am
#24
i think you can find 16 bit division in code section..

check this link:
http://www.8051projects.net/downloads35.html
Thu Oct 01 2009, 02:18 pm
#25
I want timer interrupt program of 5 sec in assembly language help me
Thu Oct 01 2009, 08:04 pm
#26

what value xtal are you using ? direct 5 sec delay is not possible, you'd have to first do a delay for 50millisec and then a counter for 100 times , 50 millisec X 100 times = 5000 msec or 5 seconds.


Arun
Fri Oct 02 2009, 06:03 pm
#27
i want an example of timer interrupt in assembly language if u can coz i have completed with display to show 336 vdc on 7 segment display.
Sat Oct 03 2009, 12:30 pm
#28
here is a small example of timer 0 interrupt
org 0H
sjmp main

org 0BH ;ISR location for Timer 0 interrupt
sjmp T0_ISR

;Main routine
main:
mov TH0,#00 ;delay value
mov TL0,#00
clr TF0 ;clear timer flag
setb ET0 ;enable timer0 interrupt
setb EA ;enable global interrupt
setb TR0 ; enable timer
sjmp $

T0_ISR:
clr TF0 ;clear interrupt
;do something in ISR
RETI

end

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm