Question

In 8051 microcontroller to program it using Assembly. Write an assembly program to generate one pulse...

In 8051 microcontroller to program it using Assembly.

Write an assembly program to generate one pulse with high duration of 5 ms and low duration of 2.5 ms using timer 0 with XTAL = 11.0592MHz.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ORG 0000h

MOV P1,#00000000B

MOV TMOD,#00000001B

MAIN : SETB P1.0

ACALL DELAY

CLR P1.0

ACALL DELAY1

SJMP MAIN

DELAY: MOV TH0,#0EEH

MOV TL0,#00H

SETB TR0

ACALL HERE

RET

DELAY1: MOV TH0,#0F7H

MOV TLO,#00H

SETB TR0

HERE: JNB TF0,HERE

CLR TR0

CLR TF0

SETB P1.0

RET

END

For delay and delay1 Calculation given in picture.

I have done this program in keil software so check output graph also.: 11.0992 mH2 so, times, clock impt 2 0.9216 M12 12 o.927 So00/1.085 26= 66536 So, TrtL = 65636-4608-60928- EEOOH. So, tunnee

Add a comment
Know the answer?
Add Answer to:
In 8051 microcontroller to program it using Assembly. Write an assembly program to generate one pulse...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT