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 is the function of simple thread poll in embedded system?

909


Explain me why is model transformations used in the embedded system?

897


What is the need for having multibyte data input and output buffers in case of device ports?

939


Why continuous integration is important?

839


What's your experience with technical documentation?

907


What are the different types of buses used by the embedded systems?

956


What are the different types of embedded systems?

891


Accessing fixed memory locations

991


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

880


Describe the structure and contents of a design document, or a set of design documents, for a multi-tiered web application.

887


What is an embedded system?

891


Please write a program to show the functionality of power-save super loop?

879


What is the use of having the const qualifier?

829


Tell me what is the need for having multibyte data input and output buffers in case of device ports?

816


Can you name the differences between object-oriented and component-based design?

918