Question

Write a program for 8051 in assembly that upon startup writes 55H (0x55) to port 2...

Write a program for 8051 in assembly that upon startup writes 55H (0x55) to port 2 of the microcontroller and then AAH (0xAA) to port 2 after 25 mSec and stops. (Oscillator = 29.4MHz)

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

cli
push ds
push 0
pop ds
mov ax, word[ds:8h*4], ivt
mov dx, word[ds:8h*4+2]
mov word[intold], ax
mov word[intold+2], dx
mov word[ds:8h*4], ivt
mov word[ds:8h*4+2], cs
pop ds
sti
ivt:
pushf
pusha
mov al, 0x55
out 2, al
mov al, 0xaa
popf
db 0eah
intold dw 0, 0

Add a comment
Know the answer?
Add Answer to:
Write a program for 8051 in assembly that upon startup writes 55H (0x55) to port 2...
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