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

What software languages have you used to design, develop, and debug software application interfaces?

882


Tell me what is the need for an infinite loop in embedded systems?

895


Describe, in as much detail as you think is relevant, as deeply as you can, what happens when I type "cnn.com" into a browser and press "go".

772


Explain the properties of a object oriented programming language.

849


Why embedded system is useful?

950


what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)

3082


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

795


How are variables mapped across to the various memories by the c compiler?

1142


What is difference between using a macro and inline function?

909


What are the qualifiers in c?

834


What happens when recursive functions are declared inline?

964


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

823


What is continuous integration? Why is it important?

961


How can you reduce interrupt latency?

759


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

845