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

I have modified it a bit,

MOVL XAR1, #Data
MOVL XAR0, #0x00
MOVL XAR2, #0x00

Loop:
TBIT *XAR1,#XAR2
BF Loop1, NTC
INR AR0

Loop1:
INR AR2
MOV AL, *XAR0
CMP AL, @0x03
BF Action, EQ

MOV AL, *XAR2
CMP AL, @0x08
BF Loop, NEQ

Loop3:
EXIT

Action:

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is meant by a sandbox, why you would use one, and identify examples of sandboxes in the wild.

829


What are the essential components of embedded system?

840


Explain the concept of separation of concerns and it's pros and cons.

777


What are the rules followed by mutexes?

873


What is rtos in an embedded system?

855


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

743


Tell me can we use any function inside isr?

730


Explain what are the essential components of embedded system?

749


Would you call yourself a craftsman (craftsperson) and what does that word mean to you?

815


Tell me why do we need virtual device drivers when we have physical device drivers?

874


Tell me what is microcontroller?

793


Describe a pattern that is not the factory pattern?

750


Whose blogs or podcasts do you follow? Do you blog or podcast?

689


Tell me can you have constant volatile variables?

829


What is the function of simple thread poll in embedded system?

800