Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Design a circuit to detect when 3 and only 3 bits are set
out of 8 bits.(eg. o0101100)

Answer Posted / gautam

Sorry thr was a bit mistake. Corrected :

MOV XAR1, #Data
MOV XAR0, #0
MOV XAR2, #0

Loop:
TBIT *XAR1, *XAR2
BF Loop1, NTC
INR *XAR0

Loop1:
INR *XAR2
MOV AL, *XAR0
CMP AL, #0x03
BF Loop3, EQ

MOV AL, *XAR2
CMP AL, #0x80
BF Loop, NEQ

Loop3:
EXIT

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.

823


Discuss the concept of yagni.

842


Tell me how does the interrupts handle by using the threads?

816


what is embedded system in a computer system?

1020


Explain the difference between testing and verification?

946


Can we use any function inside isr?

852


What is the purpose of the segment register?

772


How can you stop your dba from making off with a list of your users’ passwords?

986


You've just been assigned to a project in a new technology how would you get started?

816


Explain scope of static variables?

953


How does combination of functions reduce memory reuirement in embedded system?

784


Tell me why is it better to use multi-threading polling then single threading model?

809


What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?

825


How does the addition of service orientation change systems? When is it appropriate to use?

829


What is a 'volatile' variable?

828