You are on page 1of 2

  Home Study tools

 My courses
 My books My folder Career Life 

Find solutions for your homework Search

home / study / engineering / computer science / computer science questions and answers / 15. write a program to toggle all the bits of p1 and p2 …

Question: 15. Write a program to toggle all the bits of P1 and P2 continu… Post a question
Answers from our experts for your tough
homework questions

Enter question

Show transcribed image text


Continue to post
0 questions remaining
Expert Answer

Anonymous answered this


Was this answer helpful? 0 0
25 answers My Textbook Solutions
so, Code:

ORG 0000H

MOV P1,#55H
p1=0101 0101
MOV P2,#55H
p2=0101 0101
ACALL DELAY

MOV P1,#0AAH
p1=1010 1010
MOV P2,#0AAH
p2=1010 1010 Business... Algebra... Understand...
ACALL DELAY

SJMP HERE
CPL P1 3rd Edition 13th Edition 3rd Edition

DELAY : MOV R1,#200


CPL P2 View all solutions
BACK : MOV R2,#200

AGAIN : DJNZ R2,AGAIN

DJNZ R1,BACK

RET

END


Comment

Practice with similar questions

Q: Write a program to toggle all the bit of P1 and P2


continuously
A) Using AAH and 55H
B) Using the CPL instruction

A: See answer 100% (1 rating)

Questions viewed by other students

Q: Write a program to toggle all the bit of P1 and P2


continuously
A) Using AAH and 55H
B) Using the CPL instruction

A: See answer 100% (1 rating)

Q: 9. Write a program to get 8-bit data from P1 and send it to ports PO, P2, and P3. 10. Write a program to toggle all the
bits of P1 and P2 continuously a) Using 99H and 66H b) Using the CPL instruction. 11. Write a program to toggle P1.3,
P1.7, and P2.5 continuously without disturbing the rest of the bits.

A: See answer

Show more 
COMPANY LEGAL & POLICIES CHEGG PRODUCTS AND SERVICES CHEGG NETWORK CUSTOMER SERVICE

About Chegg Advertising Choices Cheap Textbooks Chegg Math Solver EasyBib Customer Service
Chegg For Good Cookie Notice Chegg Coupon Mobile Apps Internships.com Give Us Feedback
College Marketing General Policies Chegg Play Sell Textbooks Thinkful Manage Subscription
Corporate Development Intellectual Property Rights Chegg Study Help Solutions Manual
Investor Relations Terms of Use College Textbooks Study 101
Jobs Global Privacy Policy eTextbooks Textbook Rental
Join Our Affiliate Program DO NOT SELL MY INFO Flashcards Used Textbooks
Media Center Honor Code Learn Digital Access Codes
Site Map Honor Shield Uversity Chegg Life
Chegg Writing

© 2003-2022 Chegg Inc. All rights reserved.

You might also like