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

How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?

772


Why is java used in embedded systems?

815


Explain what is embedded system in a computer system?

734


What is the difference between "set" logic, and "procedural" logic. When would you use each one and why?

746


What is yagni? Is this list of questions an example?

756


What is dma in an embedded system?

878


Why is model transformations used in the embedded system?

761


Describe to me some bad code you've read or inherited lately.

758


What is pass by value and pass by reference? How are structure passed as arguments?

831


What is so great about ?

714


What is loop unrolling?

840


Tell me what is null pointer and what is its use?

793


You have two computers, and you want to get data from one to the other. How could you do it?

772


What are the most common errors you've found in embedded systems?

808


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

772