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's your experience with qa engineering?

713


Explain me what are the rules followed by mutexes?

766


Describe a software development life cycle that you've managed.

796


What does DMA address will deal with?

897


What does malloc do? What will happen if we have a statement like malloc(sizeof(0));

823


If you've integrated new software in an existing system, tell us how you evaluated and identified the requirements for this new technology.

916


Explain what is interrupt latency? How can you reduce it?

825


Tell me what is the function of dma controlled in embedded system?

818


What are the characteristics of embedded system?

891


Tell me what type of scheduling is there in rtos?

764


Which parameters decide the size of data type for a processor?

801


What is the need for an infinite loop in embedded systems?

814


Tell me what are inline functions?

794


What's the difference between a web server, web farm and web garden? How would your web application need to change for each?

816


What is watchdog timer?

855